/* ============================================
   Panama Visa Experts - Main Stylesheet
   Optimized for performance, accessibility, SEO
   ============================================ */

:root {
  --ink-0: #0c1220;
  --ink-1: #1a2436;
  --ink-2: #2d3a52;
  --ink-3: #4a5670;
  --paper: #fafaf7;
  --paper-2: #f3f1eb;
  --paper-3: #e8e4da;
  --line: #d4cfc1;
  --text: #1a2436;
  --text-soft: #4a5670;
  --text-mute: #7a8499;
  --gold: #b8924a;
  --gold-soft: #d4ba7a;
  --green: #2d6a4f;
  --crimson: #9a2c3d;
  --shadow-sm: 0 2px 4px rgba(12,18,32,0.06);
  --shadow-md: 0 8px 24px rgba(12,18,32,0.08);
  --shadow-lg: 0 24px 48px rgba(12,18,32,0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01', 'cv11';
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--ink-1);
  text-decoration: underline;
  text-decoration-color: var(--gold-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: all 0.2s;
}
a:hover { color: var(--gold); text-decoration-color: var(--gold); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============ TYPOGRAPHY ============ */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink-0);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); margin-bottom: 1.5rem; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 1.2rem; }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin-bottom: 0.8rem; }
h4 { font-size: 1.15rem; margin-bottom: 0.6rem; }

p { margin-bottom: 1.2rem; }

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: inline-block;
}

.lead {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 400;
  font-style: italic;
  color: var(--ink-2);
  line-height: 1.5;
  margin-bottom: 2rem;
}

/* ============ ANNOUNCEMENT BAR ============ */
.announce {
  background: var(--ink-0);
  color: var(--paper-2);
  text-align: center;
  font-size: 0.82rem;
  padding: 0.6rem 1rem;
  letter-spacing: 0.02em;
}
.announce strong { color: var(--gold-soft); }

/* ============ HEADER ============ */
header.main-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(250,250,247,0.95);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink-0);
}
.logo-mark {
  width: 38px;
  height: 38px;
  background: var(--ink-0);
  color: var(--gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 600;
  font-style: italic;
}
.logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
}
.logo-tag {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-top: 0.2rem;
}

nav.main-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}
nav.main-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--ink-2);
  font-weight: 500;
  transition: color 0.2s;
}
nav.main-nav a:hover { color: var(--gold); }

.btn {
  display: inline-block;
  background: var(--ink-0);
  color: var(--paper);
  padding: 0.85rem 1.6rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  border: 1px solid var(--ink-0);
  transition: all 0.25s;
  cursor: pointer;
}
.btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--paper);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--ink-0);
}
.btn-outline:hover {
  background: var(--ink-0);
  color: var(--paper);
  border-color: var(--ink-0);
}
.btn-large { padding: 1.1rem 2.2rem; font-size: 1rem; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--ink-0);
}

/* ============ HERO ============ */
.hero {
  padding: 5rem 0 6rem;
  background:
    radial-gradient(at 80% 20%, rgba(184,146,74,0.08), transparent 50%),
    var(--paper);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero-meta {
  display: flex;
  gap: 2rem;
  margin: 2.5rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.hero-meta-item {
  flex: 1;
}
.hero-meta-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--ink-0);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.hero-meta-num span { color: var(--gold); }
.hero-meta-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-mute);
  font-weight: 500;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.trust-strip {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-mute);
}
.trust-strip strong { color: var(--ink-1); }

/* ============ HERO FORM ============ */
.hero-form {
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  position: relative;
}
.hero-form::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft), var(--gold));
}
.hero-form h3 {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}
.hero-form-sub {
  font-size: 0.9rem;
  color: var(--text-soft);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-2);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  background: var(--paper);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink-1);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-submit {
  width: 100%;
  padding: 1.1rem;
  background: var(--ink-0);
  color: var(--paper);
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.2s;
}
.form-submit:hover { background: var(--gold); }
.form-disclaimer {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--text-mute);
  line-height: 1.5;
}

/* ============ SECTION BASE ============ */
section {
  padding: 5rem 0;
}
section.alt {
  background: var(--paper-2);
}
section.dark {
  background: var(--ink-0);
  color: var(--paper-2);
}
section.dark h1, section.dark h2, section.dark h3 {
  color: var(--paper);
}
section.dark .eyebrow { color: var(--gold-soft); }
section.dark .lead { color: var(--paper-3); }

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}
.section-header.left {
  text-align: left;
  margin: 0 0 3rem;
}

/* ============ SERVICES GRID ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 2.2rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  position: relative;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-soft);
}
.service-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  font-weight: 600;
}
.service-card h3 {
  margin-bottom: 0.8rem;
}
.service-card p {
  font-size: 0.94rem;
  color: var(--text-soft);
  flex-grow: 1;
}
.service-meta {
  display: flex;
  justify-content: space-between;
  padding-top: 1.2rem;
  margin-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
}
.service-meta-item strong {
  display: block;
  color: var(--ink-0);
  font-size: 1rem;
  margin-bottom: 0.1rem;
  font-family: 'Cormorant Garamond', serif;
}
.service-meta-item span {
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
}
.service-card .arrow {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* ============ TWO COLUMN ============ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.two-col img {
  border-radius: 2px;
  box-shadow: var(--shadow-lg);
}

/* ============ PROCESS STEPS ============ */
.process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  counter-reset: process;
}
.process-step {
  position: relative;
  padding-top: 4rem;
  counter-increment: process;
}
.process-step::before {
  content: counter(process, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
  opacity: 0.4;
}
.process-step h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}
.process-step p {
  font-size: 0.92rem;
  color: var(--text-soft);
}

/* ============ FAQ ============ */
.faq-grid {
  max-width: 880px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item details {
  padding: 1.5rem 0;
}
.faq-item summary {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink-0);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--gold);
  transition: transform 0.3s;
  flex-shrink: 0;
  font-weight: 300;
}
.faq-item details[open] summary::after {
  transform: rotate(45deg);
}
.faq-item .answer {
  margin-top: 1rem;
  color: var(--text-soft);
  font-size: 0.98rem;
  line-height: 1.7;
}
.faq-item .answer p { margin-bottom: 0.8rem; }
.faq-item .answer p:last-child { margin-bottom: 0; }
.faq-item .answer ul {
  margin: 0.8rem 0 0.8rem 1.5rem;
}
.faq-item .answer ul li { margin-bottom: 0.4rem; }

/* ============ TESTIMONIALS ============ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.testimonial {
  background: var(--paper);
  padding: 2.5rem;
  border-left: 3px solid var(--gold);
  position: relative;
}
.testimonial-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--ink-1);
  font-style: italic;
  margin-bottom: 1.5rem;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink-1);
  color: var(--gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
}
.testimonial-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-0);
}
.testimonial-loc {
  font-size: 0.78rem;
  color: var(--text-mute);
}

/* ============ COUNTRIES STRIP ============ */
.countries {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.country {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-soft);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.country-flag {
  font-size: 1.8rem;
  margin-bottom: 0.3rem;
}

/* ============ CTA SECTION ============ */
.cta-banner {
  background: var(--ink-0);
  color: var(--paper);
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(184,146,74,0.15), transparent 70%);
  pointer-events: none;
}
.cta-banner h2 {
  color: var(--paper);
  position: relative;
}
.cta-banner p {
  color: var(--paper-3);
  max-width: 600px;
  margin: 0 auto 2rem;
  position: relative;
}
.cta-banner .btn {
  background: var(--gold);
  border-color: var(--gold);
  position: relative;
}
.cta-banner .btn:hover {
  background: var(--paper);
  color: var(--ink-0);
  border-color: var(--paper);
}

/* ============ ARTICLE / PAGE CONTENT ============ */
.page-hero {
  padding: 4rem 0 3rem;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.breadcrumb {
  font-size: 0.82rem;
  color: var(--text-mute);
  margin-bottom: 1rem;
}
.breadcrumb a {
  color: var(--text-mute);
  text-decoration: none;
}
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { margin: 0 0.5rem; opacity: 0.5; }

.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 4rem;
  padding: 4rem 0;
}

.article-body {
  max-width: 720px;
}

.article-body h2 {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.article-body h2:first-child {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}
.article-body h3 {
  margin-top: 1.8rem;
}
.article-body p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink-2);
}
.article-body ul, .article-body ol {
  margin: 1rem 0 1.5rem 1.5rem;
}
.article-body li {
  margin-bottom: 0.6rem;
  color: var(--ink-2);
  line-height: 1.7;
}
.article-body strong {
  color: var(--ink-0);
  font-weight: 600;
}
.article-body blockquote {
  border-left: 3px solid var(--gold);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--paper-2);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--ink-1);
}

.fact-box {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  padding: 1.5rem 1.8rem;
  margin: 2rem 0;
}
.fact-box-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.fact-box p:last-child { margin-bottom: 0; }

.requirements-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.requirements-table th,
.requirements-table td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.requirements-table th {
  background: var(--paper-2);
  font-weight: 600;
  color: var(--ink-0);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.aside-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 2rem;
  position: sticky;
  top: 100px;
}
.aside-card h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.aside-card p {
  font-size: 0.92rem;
  color: var(--text-soft);
  margin-bottom: 1.5rem;
}
.aside-card .btn {
  width: 100%;
  text-align: center;
  margin-bottom: 0.7rem;
}
.aside-card .contact-info {
  font-size: 0.85rem;
  color: var(--text-soft);
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  margin-top: 1rem;
}
.aside-card .contact-info strong {
  color: var(--ink-0);
  display: block;
  margin-bottom: 0.2rem;
}

/* ============ FOOTER ============ */
footer.main-footer {
  background: var(--ink-0);
  color: var(--paper-3);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
footer h5 {
  color: var(--paper);
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.2rem;
}
footer ul {
  list-style: none;
}
footer ul li {
  margin-bottom: 0.6rem;
}
footer a {
  color: var(--paper-3);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}
footer a:hover { color: var(--gold-soft); }

.footer-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  color: var(--paper);
  margin-bottom: 1rem;
}
.footer-tag {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--paper-3);
  margin-bottom: 1.5rem;
  max-width: 320px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-mute);
  flex-wrap: wrap;
  gap: 1rem;
}

/* ============ WHATSAPP FLOAT ============ */
.wa-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: #25D366;
  color: white;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(37,211,102,0.4);
  z-index: 99;
  transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; fill: white; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .article-layout { grid-template-columns: 1fr; gap: 2rem; }
  .aside-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 700px) {
  .container { padding: 0 1.2rem; }
  nav.main-nav { display: none; }
  nav.main-nav.open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 1.5rem;
  }
  nav.main-nav.open ul {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  .menu-toggle { display: block; }
  .hero { padding: 3rem 0 4rem; }
  .hero-meta { flex-direction: column; gap: 1rem; }
  .hero-form { padding: 1.8rem; }
  section { padding: 3.5rem 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ============ UTILITIES ============ */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0 !important; }
.mt-0 { margin-top: 0 !important; }

/* AEO: Make answer boxes very prominent for AI extraction */
.answer-box {
  background: var(--paper-2);
  border: 2px solid var(--ink-0);
  padding: 1.5rem 2rem;
  margin: 1.5rem 0;
  position: relative;
}
.answer-box::before {
  content: 'QUICK ANSWER';
  position: absolute;
  top: -10px;
  left: 1.5rem;
  background: var(--ink-0);
  color: var(--gold-soft);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 0.3rem 0.8rem;
}
.answer-box p {
  margin-bottom: 0;
  font-size: 1rem;
  color: var(--ink-1);
  font-weight: 500;
}
