/* =======================================================
   CECILIA VAN GRAAN — SHARED DESIGN SYSTEM
   Aesthetic: Refined Luxury Financial Services
   Display: Cormorant Garamond  |  Body: Outfit
   Palette: Deep Navy #0D1B2E + Warm Gold #C9943A + Cream #F5F0E6
   ======================================================= */

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

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--text); background: var(--cream); line-height: 1.65; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---- Variables ---- */
:root {
  --navy:        #0D1B2E;
  --navy-mid:    #162540;
  --navy-light:  #1E3353;
  --gold:        #C9943A;
  --gold-bright: #D9A840;
  --gold-pale:   rgba(201,148,58,0.09);
  --gold-border: rgba(201,148,58,0.22);
  --cream:       #F5F0E6;
  --cream-dark:  #EAE4D6;
  --white:       #FFFFFF;
  --text:        #1C2738;
  --text-mid:    #3D4E65;
  --text-light:  #6A7A8F;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Outfit', system-ui, sans-serif;

  --shadow-xs: 0 1px 4px rgba(13,27,46,0.06);
  --shadow-sm: 0 3px 14px rgba(13,27,46,0.09);
  --shadow-md: 0 8px 32px rgba(13,27,46,0.13);
  --shadow-lg: 0 20px 64px rgba(13,27,46,0.18);

  --max:       1200px;
  --radius:    14px;
  --radius-sm: 8px;
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Grain overlay ---- */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 9999;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.018;
}

/* ===========================
   NAVIGATION  (light cream — matches original palette)
   =========================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(193,196,202,0.97);   /* matches original #C0C3C9 gray */
  box-shadow: 0 1px 10px rgba(0,0,0,0.10);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.nav.scrolled {
  background: rgba(185,188,194,0.99);
  box-shadow: 0 2px 18px rgba(0,0,0,0.14);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max); margin: 0 auto; padding: 0.85rem 2rem; gap: 1.5rem;
}
.nav-logo {
  font-family: 'Amita', Georgia, serif; font-size: 1.35rem; font-weight: 700;
  color: var(--navy); white-space: nowrap; flex-shrink: 0; letter-spacing: 0.01em;
}
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 0.1rem; }
.nav-links a {
  font-size: 0.72rem; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.09em; color: var(--text-mid);
  padding: 0.45rem 0.85rem; border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--navy); background: rgba(0,0,0,0.07); }
.nav-links a.active { color: var(--gold); font-weight: 700; }
.nav-cta {
  font-size: 0.69rem !important; font-weight: 700 !important;
  color: var(--white) !important; background: var(--navy) !important;
  padding: 0.5rem 1.15rem !important; border-radius: 5px;
  letter-spacing: 0.1em !important;
  transition: opacity 0.2s, transform 0.2s !important;
}
.nav-cta:hover { opacity: 0.85; transform: translateY(-1px); }
.mobile-btn {
  display: none; flex-direction: column; gap: 5px; padding: 4px;
}
.mobile-btn span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 1px; transition: all 0.3s; }
@media (max-width: 900px) {
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(185,188,194,0.99); flex-direction: column; padding: 1rem; gap: 0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.8rem 1rem; width: 100%; border-radius: 0; }
  .mobile-btn { display: flex; }
}

/* ===========================
   UTILITIES
   =========================== */
.container { max-width: var(--max); margin: 0 auto; padding: 0 2rem; }
.section-tag {
  font-size: 0.67rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.2em; color: var(--gold); display: block; margin-bottom: 0.55rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 600; color: var(--navy); line-height: 1.13;
}
.section-title em { font-style: italic; color: var(--gold); }
.divider {
  width: 50px; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  border-radius: 99px; margin: 0.9rem 0 1.7rem;
}
.divider.center { margin-left: auto; margin-right: auto; }
.section-head { text-align: center; margin-bottom: 3.5rem; }
.section-head .divider { margin: 0.9rem auto 0; }

/* ===========================
   BUTTONS
   =========================== */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.75rem; border-radius: var(--radius-sm);
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; transition: all 0.25s var(--ease);
}
.btn-primary { background: linear-gradient(135deg, var(--navy), var(--navy-mid)); color: var(--white); }
.btn-primary:hover { opacity: 0.88; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: var(--gold-bright); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.45); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }

/* ===========================
   CARDS
   =========================== */
.card {
  background: var(--white); border-radius: var(--radius);
  padding: 2rem 1.85rem; box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.04); border-top: 3px solid var(--gold);
  display: flex; flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--gold-pale); border: 1px solid var(--gold-border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.15rem; flex-shrink: 0;
}
.card-icon svg { width: 20px; height: 20px; color: var(--gold); stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.card h3 {
  font-size: 0.97rem; font-weight: 700; color: var(--navy);
  margin-bottom: 0.85rem; padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--cream-dark);
}
.card p { font-size: 0.87rem; color: var(--text-light); line-height: 1.75; margin-bottom: 0.65rem; }
.card p:last-child { margin-bottom: 0; }
.card p strong { color: var(--text-mid); font-weight: 600; }
.card-list { margin: 0.55rem 0; }
.card-list li { display: flex; align-items: flex-start; gap: 9px; font-size: 0.86rem; color: var(--text-light); line-height: 1.65; padding: 3px 0; }
.card-list li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); flex-shrink: 0; margin-top: 8px; }
.card-steps { margin: 0.65rem 0; }
.card-step { display: flex; align-items: flex-start; gap: 10px; font-size: 0.84rem; color: var(--text-light); line-height: 1.65; padding: 5px 0; border-bottom: 1px solid var(--cream-dark); }
.card-step:last-child { border-bottom: none; }
.step-num { width: 21px; height: 21px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--gold-bright)); color: var(--white); font-size: 0.64rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.card-quote { margin-top: auto; background: linear-gradient(135deg, var(--navy), var(--navy-mid)); border-radius: var(--radius-sm); padding: 1.1rem 1.25rem; }
.card-quote p { color: rgba(248,244,238,0.82); font-size: 0.82rem; line-height: 1.7; font-style: italic; margin: 0; }

/* ===========================
   INNER PAGE BANNER (hero for secondary pages)
   =========================== */
.page-banner {
  position: relative; min-height: 90vh;
  display: flex; flex-direction: column; overflow: hidden;
}
.page-banner-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.page-banner-overlay { position: absolute; inset: 0; background: rgba(255,255,255,0.76); }
.page-banner-nav { position: relative; z-index: 2; }
.page-banner-content {
  position: relative; z-index: 2; flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 3rem 2rem 5rem;
  max-width: 740px; margin: 0 auto; width: 100%;
}
.page-banner-content h1 {
  font-family: var(--font-display); font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 600; color: var(--navy); line-height: 1.15; margin-bottom: 1.25rem;
}
.page-banner-content p { color: var(--text-mid); font-size: 1rem; line-height: 1.75; max-width: 540px; margin-bottom: 1.75rem; }
.banner-arrow-down {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  color: var(--navy); opacity: 0.35; animation: bounceArrow 2s ease-in-out infinite;
}
@keyframes bounceArrow { 0%,100%{transform:translateX(-50%) translateY(0);} 50%{transform:translateX(-50%) translateY(8px);} }

/* ===========================
   DARK BACKGROUND SECTION
   =========================== */
.dark-section { position: relative; padding: 7rem 0; overflow: hidden; }
.dark-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center; background-attachment: fixed;
  filter: brightness(0.22) saturate(0.6);
}
.dark-bg::after { content: ''; position: absolute; inset: 0; background: rgba(13,27,46,0.72); }
.dark-inner { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; padding: 0 2rem; text-align: center; }
.dark-inner .section-title { color: var(--white); }
.dark-inner .divider { background: var(--gold); margin: 0.9rem auto 2rem; }
.dark-text { color: rgba(248,244,238,0.85); font-size: 1rem; line-height: 1.85; }
.dark-text p { margin-bottom: 1.5rem; }
.dark-text p:last-child { margin-bottom: 0; }
.dark-text .highlight { color: var(--gold); font-family: var(--font-display); font-size: 1.2em; font-style: italic; }

/* ===========================
   FOOTER
   =========================== */
.footer { background: var(--navy); color: rgba(248,244,238,0.76); }
.footer-main {
  max-width: var(--max); margin: 0 auto; padding: 4rem 2rem 3rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start;
}
@media (max-width: 640px) { .footer-main { grid-template-columns: 1fr; gap: 2.5rem; padding: 3rem 1.5rem 2rem; } }
.footer-title { font-family: var(--font-display); font-size: 1.85rem; font-weight: 600; color: var(--white); margin-bottom: 0.2rem; }
.footer-sub { font-family: 'Amita', Georgia, serif; font-size: 1.1rem; font-weight: 700; letter-spacing: 0.02em; color: var(--gold); margin-bottom: 1.75rem; }
.footer-contacts { display: flex; flex-direction: column; gap: 1rem; }
.footer-contact { display: flex; align-items: flex-start; gap: 12px; }
.f-icon { width: 36px; height: 36px; border-radius: 8px; background: var(--gold-pale); border: 1px solid var(--gold-border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.f-icon svg { width: 15px; height: 15px; stroke: var(--gold); stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.footer-contact-body { font-size: 0.84rem; line-height: 1.65; }
.footer-contact-body a { color: inherit; transition: color 0.2s; }
.footer-contact-body a:hover { color: var(--gold); }
.footer-map { border-radius: var(--radius); overflow: hidden; height: 215px; background: var(--navy-mid); }
.footer-map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(20%) brightness(0.85); }
.footer-bar {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 1.2rem 2rem; max-width: var(--max); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 0.75rem;
}
.footer-bar p { font-size: 0.72rem; color: rgba(248,244,238,0.33); }
.footer-bar-credit { font-size: 0.65rem !important; color: rgba(248,244,238,0.22) !important; margin-top: 0.2rem; }
.footer-bar-links { display: flex; gap: 1.5rem; }
.footer-bar-links a { font-size: 0.72rem; color: rgba(248,244,238,0.42); transition: color 0.2s; }
.footer-bar-links a:hover { color: var(--gold); }

/* ===========================
   SCROLL REVEAL
   =========================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.72s var(--ease), transform 0.72s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.rd1 { transition-delay: 0.08s; }
.rd2 { transition-delay: 0.18s; }
.rd3 { transition-delay: 0.28s; }
.rd4 { transition-delay: 0.38s; }

/* ===========================
   DESIGN SWITCHER
   (floating pill — lets you jump between new & original design)
   =========================== */
.design-switch {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9500;
  display: flex; align-items: center; gap: 0.6rem;
  background: rgba(13,27,46,0.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(201,148,58,0.35); border-radius: 99px;
  padding: 0.5rem 1.15rem 0.5rem 0.85rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.22);
  font-size: 0.7rem; font-family: var(--font-body);
  white-space: nowrap; transition: border-color 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.design-switch:hover {
  border-color: rgba(201,148,58,0.7);
  box-shadow: 0 6px 28px rgba(0,0,0,0.28);
}
.ds-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
  background: #34d399; animation: dsPulse 2.2s ease-in-out infinite;
}
.design-switch.ds-original .ds-dot { background: #f59e0b; }
@keyframes dsPulse { 0%,100%{opacity:1;transform:scale(1);} 50%{opacity:0.5;transform:scale(0.75);} }
.ds-current { color: rgba(255,255,255,0.6); font-weight: 400; }
.ds-current strong { color: var(--white); font-weight: 600; }
.ds-divider { color: rgba(255,255,255,0.25); margin: 0 0.1rem; }
.ds-action { color: var(--gold); font-weight: 700; letter-spacing: 0.03em; }
.ds-action:hover { opacity: 0.8; }

/* ===========================
   WHATSAPP FLOATING BUTTON
   =========================== */
.whatsapp-float {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 9000;
  width: 56px; height: 56px; background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.40);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.55); }
.whatsapp-float svg { width: 30px; height: 30px; fill: #fff; }

/* ===========================
   MOBILE GLOBAL FIXES
   =========================== */
@media (max-width: 768px) {
  .dark-bg { background-attachment: scroll; }
  .dark-section { padding: 4rem 0; }
  .dark-inner { padding: 0 1.25rem; }
  .container { padding: 0 1.25rem; }
  .section-head { margin-bottom: 2.5rem; }
  .footer-main { padding: 3rem 1.25rem 2rem; }
  .footer-bar { padding: 1rem 1.25rem; }
}
