/* ============================================
   APOSTILLE WORLDWIDE — Opulent Black & Gold
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --bg-black: #0a0a0a;
  --bg-deep: #050505;
  --bg-card: #111111;
  --bg-card-elev: #181818;
  --gold: #d4af37;
  --gold-bright: #e8c971;
  --gold-soft: #b8932e;
  --gold-faint: rgba(212, 175, 55, 0.15);
  --gold-line: rgba(212, 175, 55, 0.25);
  --text-primary: #f5f0e1;
  --text-secondary: #c9c0a8;
  --text-muted: #8a8270;
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Outfit', -apple-system, sans-serif;
  --max-w: 1280px;
  --content-w: 760px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  background-color: var(--bg-black);
  color: var(--text-primary);
  line-height: 1.65;
  font-weight: 300;
  font-size: 16px;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse at top, rgba(212, 175, 55, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at bottom, rgba(212, 175, 55, 0.025) 0%, transparent 60%);
  background-attachment: fixed;
}

/* Subtle noise texture overlay */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  opacity: 0.03;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--gold); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--gold-bright); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); margin-bottom: 0.6rem; color: var(--gold-bright); }
h4 { font-size: 1.05rem; color: var(--gold-bright); margin-bottom: 0.4rem; }

p { margin-bottom: 1rem; color: var(--text-secondary); }

/* ============================================
   TOP BAR
   ============================================ */

.top-bar {
  background: var(--bg-deep);
  border-bottom: 1px solid var(--gold-line);
  padding: 0.5rem 0;
  font-size: 0.82rem;
  position: relative;
  z-index: 10;
}

.top-bar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-bar-tag {
  color: var(--gold);
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.top-bar-contact { color: var(--text-muted); }
.top-bar-contact a { color: var(--text-secondary); margin-left: 1rem; }
.top-bar-contact a:hover { color: var(--gold-bright); }

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
  background: var(--bg-black);
  border-bottom: 1px solid var(--gold-line);
  padding: 1rem 0;
  position: relative;
  z-index: 10;
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.nav-brand img {
  width: 44px;
  height: auto;
  border-radius: 50%;
}

.nav-brand-text {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--gold-bright);
  letter-spacing: 0.01em;
  line-height: 1;
}

.nav-brand-text span {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 4px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.nav-links a {
  color: var(--text-secondary);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
}
.nav-links a:hover { color: var(--gold-bright); }

.nav-cta {
  background: linear-gradient(135deg, var(--gold-soft) 0%, var(--gold-bright) 100%);
  color: var(--bg-black) !important;
  padding: 0.6rem 1.4rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.nav-cta:hover {
  background: var(--gold-bright);
  color: var(--bg-black) !important;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  padding: 6rem 1.5rem 5rem;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at center, rgba(212, 175, 55, 0.08) 0%, transparent 60%),
    var(--bg-deep);
  border-bottom: 1px solid var(--gold-line);
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-logo {
  width: 180px;
  height: auto;
  margin: 0 auto 2rem;
  filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.2));
  animation: floatLogo 6s ease-in-out infinite;
}

@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-eyebrow {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-family: var(--serif);
  font-weight: 500;
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 50%, var(--gold-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.hero-tagline {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 2.5rem;
  font-weight: 300;
  line-height: 1.6;
}

.hero-tagline em {
  color: var(--gold-bright);
  font-style: italic;
  font-family: var(--serif);
  font-size: 1.2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.95rem 2.2rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  background: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-soft) 0%, var(--gold-bright) 100%);
  color: var(--bg-black);
  border: 1px solid var(--gold);
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.2);
}
.btn-primary:hover {
  background: var(--gold-bright);
  color: var(--bg-black);
  box-shadow: 0 6px 30px rgba(212, 175, 55, 0.4);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}
.btn-ghost:hover {
  background: var(--gold-faint);
  color: var(--gold-bright);
  border-color: var(--gold-bright);
}

/* Decorative elements */
.hero-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2rem auto;
  color: var(--gold);
  opacity: 0.6;
}

.hero-ornament::before, .hero-ornament::after {
  content: '';
  height: 1px;
  width: 80px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.hero-ornament-icon {
  font-size: 1.2rem;
  letter-spacing: 0.5em;
}

/* ============================================
   TRUST BADGES
   ============================================ */

.trust-row {
  background: var(--bg-deep);
  padding: 3rem 1.5rem;
  border-bottom: 1px solid var(--gold-line);
}

.trust-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.trust-item {
  text-align: center;
  padding: 1rem;
}

.trust-item-num {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--gold-bright);
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.trust-item-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}

/* ============================================
   MAIN LAYOUT — sidebar + content
   ============================================ */

.main-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem 1.5rem;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: start;
  position: relative;
  z-index: 2;
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--gold-line);
  border-radius: 4px;
  padding: 1.5rem 1.2rem;
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  font-size: 0.88rem;
}

.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: var(--gold-line); border-radius: 2px; }

.sidebar-title {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--gold-bright);
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.sidebar-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--gold-line);
}

.sidebar ul { list-style: none; }
.sidebar li { margin: 0; }
.sidebar a {
  display: block;
  padding: 0.32rem 0.5rem;
  color: var(--text-secondary);
  border-radius: 2px;
  font-size: 0.86rem;
  font-weight: 300;
  transition: all 0.15s ease;
  border-left: 2px solid transparent;
}
.sidebar a:hover {
  background: var(--gold-faint);
  color: var(--gold-bright);
  border-left-color: var(--gold);
  padding-left: 0.7rem;
}
.sidebar a.current {
  color: var(--gold-bright);
  border-left-color: var(--gold);
  background: var(--gold-faint);
  padding-left: 0.7rem;
}

/* Content area */
.content {
  min-width: 0; /* prevents grid overflow */
}

.content section {
  margin-bottom: 3.5rem;
}

.content h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.8rem;
}
.content h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.content h3 {
  font-family: var(--serif);
  color: var(--gold-bright);
  font-weight: 500;
  font-size: 1.35rem;
  margin-top: 1.8rem;
  margin-bottom: 0.6rem;
}

.content p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1.1rem;
}

.content em {
  color: var(--gold-bright);
  font-style: italic;
  font-family: var(--serif);
  font-weight: 500;
}

.content strong {
  color: var(--text-primary);
  font-weight: 500;
}

/* Hero image inside country pages */
.country-hero {
  position: relative;
  height: 360px;
  margin-bottom: 3rem;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--gold-line);
}

.country-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.country-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0.4), rgba(10, 10, 10, 0.92));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem;
}

.country-hero-eyebrow {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold-bright);
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.country-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  color: var(--text-primary);
  margin: 0;
  line-height: 1.1;
  font-weight: 500;
}

/* ============================================
   ABOUT BLOCK ON LANDING
   ============================================ */

.about-block {
  max-width: var(--content-w);
  margin: 0 auto;
}

.about-block p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ============================================
   USE-CASE GRID
   ============================================ */

.use-cases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.use-case {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-elev) 100%);
  border: 1px solid var(--gold-line);
  border-radius: 4px;
  padding: 1.75rem 1.75rem 1.25rem;
  position: relative;
  transition: border-color 0.3s ease;
}
.use-case:hover { border-color: var(--gold); }

.use-case::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, var(--gold), transparent);
  border-radius: 2px 0 0 2px;
}

.use-case h3 {
  font-family: var(--serif);
  color: var(--gold-bright);
  font-size: 1.25rem;
  margin-bottom: 0.7rem;
  margin-top: 0;
}

.use-case p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: 1.7;
}

/* ============================================
   FAQ
   ============================================ */

.faq-list { margin-top: 1.5rem; }

.faq-item {
  border-bottom: 1px solid var(--gold-line);
  padding: 1.25rem 0;
}

.faq-item:last-child { border-bottom: none; }

.faq-q {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--gold-bright);
  font-weight: 500;
  margin-bottom: 0.6rem;
}

.faq-a {
  color: var(--text-secondary);
  font-size: 0.97rem;
  line-height: 1.7;
  margin-bottom: 0;
}

/* ============================================
   CONTACT FORM
   ============================================ */

.form-section {
  background: linear-gradient(135deg, var(--bg-deep) 0%, #0c0c0c 100%);
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line);
  padding: 5rem 1.5rem;
  position: relative;
  z-index: 2;
}

.form-wrap {
  max-width: 720px;
  margin: 0 auto;
}

.form-wrap h2 {
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--gold-bright);
  margin-bottom: 0.8rem;
  font-weight: 500;
}

.form-wrap > p {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  font-size: 1rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 0.55rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.95rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--gold-line);
  border-radius: 2px;
  color: var(--text-primary);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--bg-card-elev);
  box-shadow: 0 0 0 3px var(--gold-faint);
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-submit {
  text-align: center;
  margin-top: 2rem;
}

.form-submit button {
  background: linear-gradient(135deg, var(--gold-soft) 0%, var(--gold-bright) 100%);
  color: var(--bg-black);
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 1.05rem 3rem;
  border: 1px solid var(--gold);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 24px rgba(212, 175, 55, 0.18);
}

.form-submit button:hover {
  background: var(--gold-bright);
  box-shadow: 0 6px 36px rgba(212, 175, 55, 0.4);
  transform: translateY(-1px);
}

.form-note {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-style: italic;
  font-family: var(--serif);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--gold-line);
  padding: 4rem 1.5rem 2rem;
  position: relative;
  z-index: 2;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--gold-bright);
  margin-bottom: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.footer-col p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}
.footer-col ul a:hover { color: var(--gold-bright); }

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.footer-brand img {
  width: 38px;
  height: auto;
  border-radius: 50%;
}

.footer-brand-name {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--gold-bright);
  font-weight: 600;
}

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--gold-line);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.footer-bottom em {
  color: var(--gold);
  font-family: var(--serif);
  font-style: italic;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 980px) {
  .main-wrap {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .sidebar {
    position: static;
    max-height: none;
  }
  .sidebar-list {
    columns: 2;
    column-gap: 1rem;
  }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 640px) {
  .nav-inner { flex-direction: column; align-items: flex-start; }
  .nav-links { width: 100%; flex-wrap: wrap; gap: 1rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero { padding: 4rem 1.5rem 3rem; }
  .country-hero { height: 260px; }
  .country-hero-overlay { padding: 1.5rem; }
  .top-bar-inner { font-size: 0.75rem; }
  .sidebar-list { columns: 1; }
}

/* ============================================
   PAGE LOAD ANIMATION
   ============================================ */

.fade-in {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in-1 { animation-delay: 0.1s; }
.fade-in-2 { animation-delay: 0.25s; }
.fade-in-3 { animation-delay: 0.4s; }
.fade-in-4 { animation-delay: 0.55s; }

/* Sidebar list as grid for landing only */
.sidebar-list-landing {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.1rem;
}

.sidebar-landing-wrap {
  background: var(--bg-card);
  border: 1px solid var(--gold-line);
  border-radius: 4px;
  padding: 2rem;
  margin-top: 2rem;
}

.sidebar-landing-wrap h2 {
  font-family: var(--serif);
  color: var(--gold-bright);
  margin-bottom: 0.5rem;
  text-align: center;
  border: none;
  padding-bottom: 0;
}
.sidebar-landing-wrap h2::after { display: none; }

.sidebar-landing-wrap > p {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}
