/* ============================================================
   TURNIS — Design System
   Palette: navy #202c54 | peach #f8ece4 | cream #f2e7dd | dark #191919
   Accents: pink #fb63be | sky #7ec1ff | orange #f9512c | sage #4a7c6f
   Fonts: Playfair Display (display) + DM Sans (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,700;1,9..40,400&family=Playfair+Display:ital,wght@0,700;0,900;1,700;1,900&display=swap');

:root {
  --navy:   #202c54;
  --peach:  #f8ece4;
  --cream:  #f2e7dd;
  --dark:   #191919;
  --white:  #ffffff;
  --pink:   #fb63be;
  --sky:    #7ec1ff;
  --orange: #f9512c;
  --sage:   #4a7c6f;
  --muted:  rgba(25,25,25,0.5);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 40px;

  --shadow-sm: 0 2px 8px rgba(32,44,84,0.08);
  --shadow-md: 0 8px 32px rgba(32,44,84,0.12);
  --shadow-lg: 0 20px 60px rgba(32,44,84,0.18);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--peach);
  color: var(--dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---- NAV ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw;
  height: 68px;
  background: rgba(248,236,228,0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(32,44,84,0.08);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: var(--shadow-sm); }

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 1.6rem;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex; align-items: center; gap: 2rem;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-size: 0.92rem;
  font-weight: 500;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.nav-links a:hover, .nav-links a.active { opacity: 1; }

.nav-actions { display: flex; align-items: center; gap: 0.75rem; }

.btn { display: inline-flex; align-items: center; gap: 0.4rem; text-decoration: none; font-family: 'DM Sans', sans-serif; font-weight: 700; border-radius: 100px; transition: all 0.2s; cursor: pointer; border: none; }
.btn-sm  { padding: 0.55rem 1.2rem; font-size: 0.88rem; }
.btn-md  { padding: 0.8rem 1.8rem; font-size: 0.95rem; }
.btn-lg  { padding: 1rem 2.4rem; font-size: 1.05rem; }

.btn-primary   { background: var(--navy); color: var(--cream); box-shadow: 0 4px 16px rgba(32,44,84,0.2); }
.btn-primary:hover { background: #2d3f78; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(32,44,84,0.28); }

.btn-secondary { background: transparent; color: var(--navy); border: 1.5px solid rgba(32,44,84,0.25); }
.btn-secondary:hover { border-color: var(--navy); background: rgba(32,44,84,0.04); transform: translateY(-1px); }

.btn-ghost { background: transparent; color: var(--dark); opacity: 0.6; }
.btn-ghost:hover { opacity: 1; }

.btn-cream { background: var(--cream); color: var(--navy); }
.btn-cream:hover { background: white; transform: translateY(-2px); }

.btn-pink { background: var(--pink); color: white; box-shadow: 0 4px 16px rgba(251,99,190,0.3); }
.btn-pink:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(251,99,190,0.4); }

.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--dark); border-radius: 2px; transition: all 0.3s; }

/* ---- TYPOGRAPHY ---- */
.display-xl { font-family: 'Playfair Display', serif; font-weight: 900; font-size: clamp(3.5rem, 8vw, 7rem); line-height: 0.92; letter-spacing: -0.03em; }
.display-lg { font-family: 'Playfair Display', serif; font-weight: 900; font-size: clamp(2.8rem, 6vw, 5.5rem); line-height: 0.94; letter-spacing: -0.025em; }
.display-md { font-family: 'Playfair Display', serif; font-weight: 900; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1; letter-spacing: -0.02em; }
.display-sm { font-family: 'Playfair Display', serif; font-weight: 700; font-size: clamp(1.4rem, 2.5vw, 2rem); line-height: 1.1; letter-spacing: -0.01em; }

.eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy); opacity: 0.45; }
.lead    { font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.7; color: var(--muted); }
.body-lg { font-size: 1rem; line-height: 1.65; }
.label   { font-size: 0.82rem; font-weight: 700; }

em.serif { font-style: italic; color: var(--navy); }

/* ---- LAYOUT ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 5vw; }
.section   { padding: 7rem 0; }
.section-sm { padding: 4rem 0; }

/* ---- REVEAL ---- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.75s cubic-bezier(.22,1,.36,1), transform 0.75s cubic-bezier(.22,1,.36,1); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---- BADGE / TAG ---- */
.tag { display: inline-block; padding: 0.35rem 0.9rem; border-radius: 100px; font-size: 0.78rem; font-weight: 700; }
.tag-navy  { background: rgba(32,44,84,0.08); color: var(--navy); }
.tag-pink  { background: rgba(251,99,190,0.12); color: #d43d9e; }
.tag-sky   { background: rgba(126,193,255,0.18); color: #2471a3; }
.tag-sage  { background: rgba(74,124,111,0.12); color: var(--sage); }

/* ---- DIVIDER ---- */
.divider { width: 48px; height: 3px; background: var(--navy); border-radius: 2px; }
.divider-peach { background: var(--peach); }

/* ---- FOOTER ---- */
footer {
  background: var(--navy);
  color: var(--cream);
  padding: 5rem 5vw 2.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(242,231,221,0.1);
  margin-bottom: 2.5rem;
}
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 2rem;
  color: var(--cream);
  text-decoration: none;
  display: block;
  margin-bottom: 1rem;
}
.footer-tagline { color: rgba(242,231,221,0.5); font-size: 0.95rem; line-height: 1.6; max-width: 260px; }
.footer-col h4 { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(242,231,221,0.4); margin-bottom: 1.2rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col ul a { color: rgba(242,231,221,0.65); text-decoration: none; font-size: 0.92rem; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--cream); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-copy { color: rgba(242,231,221,0.3); font-size: 0.85rem; }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: rgba(242,231,221,0.3); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.footer-legal a:hover { color: rgba(242,231,221,0.6); }

/* ---- MOBILE NAV ---- */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-desktop-cta { display: none; }
  .mobile-menu {
    position: fixed; top: 68px; left: 0; right: 0; bottom: 0;
    background: var(--peach); z-index: 199;
    padding: 2rem 5vw;
    display: flex; flex-direction: column; gap: 1.5rem;
    transform: translateX(100%); transition: transform 0.35s cubic-bezier(.22,1,.36,1);
    overflow-y: auto;
  }
  .mobile-menu.open { transform: none; }
  .mobile-menu a { font-size: 1.5rem; font-weight: 700; color: var(--dark); text-decoration: none; font-family: 'Playfair Display', serif; }
  .mobile-menu .btn { align-self: flex-start; }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
