/*
Theme Name: Visascopic
Author: Visascopic
Description: Editorial travel and visa resources theme, matching the Visascopic design preview. Includes a local visa resource finder and native WordPress blogs.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: visascopic
*/
:root {
  --radius: 0.625rem;
  --background: oklch(0.995 0.002 170);
  --foreground: oklch(0.27 0.035 190);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.129 0.042 264.695);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.129 0.042 264.695);
  --primary: oklch(0.48 0.09 185);
  --primary-foreground: oklch(0.984 0.003 247.858);
  --secondary: oklch(0.96 0.016 180);
  --secondary-foreground: oklch(0.208 0.042 265.755);
  --muted: oklch(0.968 0.007 247.896);
  --muted-foreground: oklch(0.53 0.022 190);
  --accent: oklch(0.95 0.028 180);
  --accent-foreground: oklch(0.208 0.042 265.755);
  --destructive: oklch(0.577 0.245 27.325);
  --destructive-foreground: oklch(0.984 0.003 247.858);
  --border: oklch(0.91 0.012 180);
  --input: oklch(0.929 0.013 255.508);
  --ring: oklch(0.704 0.04 256.788);
  --chart-1: oklch(0.646 0.222 41.116);
  --chart-2: oklch(0.6 0.118 184.704);
  --chart-3: oklch(0.398 0.07 227.392);
  --chart-4: oklch(0.828 0.189 84.429);
  --chart-5: oklch(0.769 0.188 70.08);
  --sidebar: oklch(0.984 0.003 247.858);
  --sidebar-foreground: oklch(0.129 0.042 264.695);
  --sidebar-primary: oklch(0.208 0.042 265.755);
  --sidebar-primary-foreground: oklch(0.984 0.003 247.858);
  --sidebar-accent: oklch(0.968 0.007 247.896);
  --sidebar-accent-foreground: oklch(0.208 0.042 265.755);
  --sidebar-border: oklch(0.929 0.013 255.508);
  --sidebar-ring: oklch(0.704 0.04 256.788);
  --font-body: 'DM Sans', sans-serif;
  --font-editorial: 'Lora', Georgia, serif;
  --hero-foreground: oklch(1 0 0);
  --hero-muted: oklch(0.94 0.014 180);
  --sunshine: oklch(0.8 0.13 65);
  --hero-overlay: linear-gradient(90deg, oklch(0.21 0.045 190 / 79%), oklch(0.25 0.035 190 / 28%) 62%, oklch(0.25 0.035 190 / 8%));
  --floating-shadow: 0 10px 35px oklch(0.3 0.04 180 / 8%);
}

* { box-sizing: border-box; }
body { margin:0; background:var(--background); color:var(--foreground); font-family:var(--font-body); }
button,input,select,textarea { font:inherit; }
button,.button { cursor:pointer; }
a { color:var(--primary); }
svg { flex-shrink:0; vertical-align:middle; }
button,.button { display:inline-flex; align-items:center; justify-content:center; gap:8px; height:40px; padding:8px 16px; border:1px solid transparent; border-radius:6px; background:var(--primary); color:var(--primary-foreground); text-decoration:none; font-size:14px; font-weight:500; line-height:1.2; }
button:hover,.button:hover { background:color-mix(in oklab,var(--primary) 90%,var(--foreground)); }
button:disabled { opacity:.5; cursor:not-allowed; }
button svg,.button svg { width:16px; height:16px; }
button:focus-visible,a:focus-visible { outline:2px solid var(--primary); outline-offset:4px; }
html { scroll-behavior: smooth; scroll-padding-top: 30px; }
button, a, select { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { letter-spacing: 0; }
.site-container { width: min(1160px, calc(100% - 80px)); margin-inline: auto; }
.topbar { background: var(--secondary); font-size: 11px; padding-block: 9px; color: var(--primary); }
.topbar .site-container { display: flex; justify-content: space-between; align-items: center; }
.topbar span { display: flex; gap: 7px; align-items: center; }
.site-header { height: 87px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { color: var(--foreground); text-decoration: none; display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 26px; }
.brand-icon { color: var(--primary); width: 31px; height: 31px; }
.brand span span { color: var(--primary); }
.desktop-nav { display: flex; gap: 29px; align-items: center; }
.desktop-nav a, .mobile-nav a { text-decoration: none; color: var(--muted-foreground); font-size: 13px; font-weight: 500; }
.desktop-nav a:first-child, .desktop-nav a:hover { color: var(--primary); }
.menu-toggle { display: none; }
.mobile-nav { display: none; }
.hero { position: relative; height: 520px; color: var(--hero-foreground); }
.hero-photo, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-photo { object-position: center 51%; }
.hero-shade { background: var(--hero-overlay); }
.hero-content { position: relative; padding-top: 71px; }
.eyebrow { display: flex; align-items: center; gap: 9px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; }
.hero .eyebrow { color: var(--hero-muted); }
.hero h1 { font-family: var(--font-editorial); font-weight: 500; font-size: 52px; line-height: 1.2; margin: 21px 0 20px; }
.hero h1 em { color: var(--sunshine); font-weight: 400; }
.hero-description { color: var(--hero-muted); max-width: 470px; font-size: 14px; line-height: 1.85; }
.hero-footnote { display: flex; gap: 9px; align-items: center; color: var(--hero-muted); font-size: 11px; margin-top: 24px; }
.location-label { position: absolute; right: 44px; bottom: 86px; display: flex; gap: 7px; align-items: center; font-size: 11px; color: var(--hero-muted); }
.finder { position: relative; margin-top: -60px; padding: 23px 27px 26px; background: var(--background); border: 1px solid var(--border); border-radius: 7px; box-shadow: var(--floating-shadow); }
.finder-heading { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; margin-bottom: 17px; }
.finder-heading svg { color: var(--primary); }
.finder-form { display: grid; grid-template-columns: 1fr 36px 1fr 1fr 190px; gap: 16px; align-items: end; }
.field label { display: block; color: var(--muted-foreground); font-size: 10px; font-weight: 500; margin-bottom: 8px; }
.select-wrap { position: relative; }
.select-wrap > svg { position: absolute; left: 12px; top: 16px; color: var(--primary); width: 16px; height: 16px; pointer-events: none; }
.field select { width: 100%; height: 48px; padding: 0 27px 0 37px; border: 1px solid var(--border); border-radius: 4px; background: var(--background); color: var(--foreground); font-size: 12px; font-family: inherit; }
.field select:focus { outline: 2px solid var(--primary); outline-offset: 2px; }
.swap { margin-bottom: 5px; color: var(--muted-foreground); }
.find-button { height: 48px; font-size: 12px; }
.confidence { display: grid; grid-template-columns: repeat(3, 1fr); padding: 30px 0 31px; border-bottom: 1px solid var(--border); }
.confidence-item { display: flex; align-items: center; justify-content: center; gap: 12px; }
.confidence-item + .confidence-item { border-left: 1px solid var(--border); }
.confidence-item svg { color: var(--primary); width: 23px; height: 23px; stroke-width: 1.5; }
.confidence-item strong { display: block; font-size: 12px; font-weight: 600; }
.confidence-item p { margin: 4px 0 0; font-size: 10px; color: var(--muted-foreground); }
.destinations { padding-top: 53px; padding-bottom: 58px; }
.section-eyebrow { color: var(--primary); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 10px; margin-bottom: 27px; }
.section-heading h2, .process h2, .faq h2, .about h2 { font-family: var(--font-editorial); font-size: 32px; font-weight: 500; margin: 0 0 9px; }
.section-heading p, .section-subtitle { color: var(--muted-foreground); font-size: 12px; margin: 0; line-height: 1.8; }
.destination-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.destination-card { border: 1px solid var(--border); border-radius: 6px; overflow: hidden; background: var(--card); transition: transform .25s, box-shadow .25s; }
.destination-card:hover { transform: translateY(-4px); box-shadow: var(--floating-shadow); }
.destination-image { position: relative; overflow: hidden; aspect-ratio: 1.8; }
.destination-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.destination-card:hover img { transform: scale(1.03); }
.region-label { position: absolute; left: 15px; top: 15px; padding: 5px 9px; background: var(--background); color: var(--foreground); font-size: 9px; border-radius: 3px; }
.destination-content { padding: 19px 20px 13px; }
.destination-title { display: flex; justify-content: space-between; align-items: center; }
.destination-title h3 { font-size: 17px; font-weight: 600; margin: 0; }
.destination-title span { font-size: 10px; font-weight: 600; color: var(--muted-foreground); }
.destination-content p { color: var(--muted-foreground); font-size: 11px; line-height: 1.7; margin: 9px 0 16px; }
.destination-footer { padding-top: 12px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.destination-footer > span { color: var(--muted-foreground); font-size: 10px; display: flex; align-items: center; gap: 5px; }
.destination-footer .guide-button { padding: 0; height: 29px; font-size: 11px; }
.process { padding: 48px 0 54px; background: var(--secondary); }
.process-heading { text-align: center; }
.process-heading .eyebrow { justify-content: center; margin-bottom: 12px; }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 60px; margin-top: 34px; }
.step-number { color: var(--primary); font-family: var(--font-editorial); font-size: 30px; font-style: italic; }
.process-grid h3 { font-size: 15px; margin: 10px 0 8px; }
.process-grid p { color: var(--muted-foreground); font-size: 12px; line-height: 1.8; margin: 0; }
.about { padding-block: 53px; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; border-bottom: 1px solid var(--border); }
.about .eyebrow { margin-bottom: 13px; }
.about p { font-size: 13px; line-height: 1.9; color: var(--muted-foreground); }
.about-note { display: flex; gap: 15px; align-items: start; }
.about-note svg { color: var(--primary); flex-shrink: 0; margin-top: 17px; }
.faq { max-width: 780px; margin-inline: auto; padding: 52px 0 60px; }
.faq h2 { margin-bottom: 25px; }
.faq details { border-bottom: 1px solid var(--border); padding-block: 17px; }
.faq summary { cursor: pointer; font-size: 13px; font-weight: 500; }
.faq details p { color: var(--muted-foreground); font-size: 12px; line-height: 1.8; }
.site-footer { border-top: 1px solid var(--border); padding-block: 26px; }
.footer-content { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-footer .brand { font-size: 20px; }
.site-footer p { color: var(--muted-foreground); font-size: 10px; }
.dialog-backdrop { position: fixed; inset: 0; background: oklch(0.2 0.025 180 / 60%); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 24px; }
.guide-dialog { background: var(--background); border-radius: 7px; padding: 30px; width: min(560px, 100%); max-height: 85dvh; overflow: auto; box-shadow: var(--floating-shadow); }
.dialog-header { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.guide-dialog h2 { font-family: var(--font-editorial); font-size: 27px; font-weight: 500; margin: 8px 0; }
.guide-dialog h3 { font-size: 14px; margin-top: 23px; }
.guide-dialog p, .guide-dialog li { color: var(--muted-foreground); font-size: 13px; line-height: 1.8; }
.guide-dialog ul { padding-left: 20px; }
.guide-notice { background: var(--secondary); border-left: 3px solid var(--primary); padding: 12px 16px; margin-block: 20px; }
.guide-notice p { margin: 0; }
.guide-dialog a { text-decoration: none; }
@media (max-width: 900px) {
  .site-container { width: calc(100% - 44px); }
  .desktop-nav { gap: 17px; }
  .desktop-nav a { font-size: 11px; }
  .header-cta { display: none; }
  .finder-form { grid-template-columns: 1fr 32px 1fr; }
  .purpose-field { grid-column: 1 / 3; }
  .find-button { grid-column: 3; }
  .destination-grid { gap: 15px; }
  .destination-title h3 { font-size: 15px; }
  .destination-content { padding-inline: 14px; }
  .destination-footer > span { display: none; }
  .about { gap: 30px; }
}
@media (max-width: 600px) {
  .site-container { width: calc(100% - 36px); }
  .topbar { font-size: 9px; }
  .topbar .topbar-right { display: none; }
  .site-header { height: 72px; }
  .brand { font-size: 24px; }
  .desktop-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-nav { display: flex; gap: 18px; flex-wrap: wrap; padding-bottom: 20px; }
  .hero { height: 490px; }
  .hero-content { padding-top: 52px; }
  .hero h1 { font-size: 37px; line-height: 1.25; margin-top: 24px; }
  .hero-description { font-size: 13px; max-width: 310px; }
  .hero .eyebrow { font-size: 9px; letter-spacing: 1.4px; }
  .hero-footnote { font-size: 10px; max-width: 290px; line-height: 1.7; }
  .location-label { display: none; }
  .finder { margin-top: -52px; padding: 20px; }
  .finder-form { gap: 12px; grid-template-columns: 1fr; }
  .swap { display: none; }
  .purpose-field, .find-button { grid-column: auto; }
  .confidence { gap: 15px; padding-block: 25px; }
  .confidence-item { flex-direction: column; text-align: center; gap: 8px; }
  .confidence-item strong { font-size: 10px; }
  .confidence-item p { display: none; }
  .confidence-item + .confidence-item { border-left: 0; }
  .destinations { padding-top: 38px; padding-bottom: 40px; }
  .section-heading { align-items: start; margin-bottom: 23px; flex-direction: column; gap: 11px; }
  .section-heading h2, .process h2, .about h2, .faq h2 { font-size: 28px; }
  .section-heading > .button { align-self: start; }
  .destination-grid { grid-template-columns: 1fr; gap: 22px; }
  .destination-title h3 { font-size: 18px; }
  .destination-content { padding: 19px 20px 13px; }
  .destination-footer > span { display: flex; }
  .process-grid { grid-template-columns: 1fr; gap: 24px; }
  .process-grid > div { display: grid; grid-template-columns: 42px 1fr; column-gap: 12px; }
  .step-number { grid-row: span 2; padding-top: 3px; }
  .process-grid h3 { margin-top: 7px; }
  .about { grid-template-columns: 1fr; gap: 12px; padding-block: 38px; }
  .faq { padding: 38px 18px; }
  .footer-content { flex-direction: column; align-items: start; gap: 8px; }
  .guide-dialog { padding: 23px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

[hidden] { display:none !important; }
.eyebrow { letter-spacing:0; }
.header-cta { white-space:nowrap; }
.menu-toggle,.swap,.icon-button { width:36px; padding:0; background:transparent; color:var(--foreground); }
.icon-button { font-size:26px; flex-shrink:0; }
.guide-button { background:transparent; color:var(--primary); }
.guide-button:hover,.menu-toggle:hover,.swap:hover,.icon-button:hover { background:var(--secondary); }
.section-heading>button { background:transparent; border-color:var(--border); color:var(--foreground); }
.guide-dialog { border:1px solid var(--border); color:var(--foreground); }
.guide-dialog::backdrop { background:color-mix(in oklab,var(--foreground) 60%,transparent); }
.guide-dialog:not([open]) { display:none; }
.guide-dialog[open] { display:block; }
.directory-list { display:grid; gap:8px; margin-top:20px; }
.directory-list button { justify-content:space-between; background:transparent; color:var(--foreground); border-color:var(--border); width:100%; }
.skip-link { position:absolute; top:-60px; left:16px; z-index:100; background:var(--background); padding:12px; }
.skip-link:focus { top:10px; }
.blog-page { padding-block:50px 70px; min-height:65vh; }
.blog-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:34px; }
.blog-page h1,.article-page h1 { font-family:var(--font-editorial); font-size:38px; font-weight:500; line-height:1.3; overflow-wrap:anywhere; }
.blog-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.blog-card { border:1px solid var(--border); border-radius:6px; overflow:hidden; background:var(--card); }
.blog-card-content { padding:22px; }
.blog-photo { width:100%; aspect-ratio:1.8; object-fit:cover; display:block; }
.blog-card h2 { font-family:var(--font-editorial); font-size:21px; line-height:1.5; margin:12px 0; overflow-wrap:anywhere; }
.blog-card h2 a { text-decoration:none; color:var(--foreground); }
.post-category { font-size:11px; color:var(--primary); }
.post-category a { text-decoration:none; }
.post-excerpt { font-size:14px; line-height:1.8; color:var(--muted-foreground); }
.post-meta { display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; color:var(--muted-foreground); font-size:12px; margin-top:20px; }
.read-link { text-decoration:none; font-weight:500; }
.article-page { max-width:800px; min-height:65vh; padding-block:50px 70px; }
.article-photo { max-width:100%; height:auto; margin-block:20px; }
.entry-content { font-size:16px; line-height:1.9; overflow-wrap:anywhere; }
.entry-content img,.entry-content video,.entry-content iframe { max-width:100%; }
.entry-content img { height:auto; }
.entry-content h2,.entry-content h3 { font-family:var(--font-editorial); }
.entry-content table { display:block; max-width:100%; overflow:auto; }
.pagination { margin-top:30px; display:flex; gap:12px; }
input,textarea { max-width:100%; border:1px solid var(--border); border-radius:4px; padding:10px; background:var(--background); color:var(--foreground); }
.comment-list { padding-left:20px; }
@media(max-width:900px) { .blog-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { .blog-heading { align-items:start; flex-direction:column; } .blog-grid { grid-template-columns:1fr; } .blog-page h1,.article-page h1 { font-size:30px; } }
