/* ===== ANAVIA — PREMIUM SHARED STYLES ===== */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{
  --teal:#3d9e9d;--teal-2:#4aabaa;--teal-light:#7ec8c7;--teal-pale:#d6f0ef;
  --teal-dark:#1e5a5a;--gold:#c9a84c;--gold-light:#e8c97a;--gold-pale:#fdf5e4;
  --cream:#faf7f2;--warm:#f5f0e8;--dark:#1a2e2e;
  --text:#2a3a3a;--mid:#4a6060;--light:#7a9898;
  --green:#6daa8a;--purple:#8b7bb5;--orange:#e8844a;
  --ease:cubic-bezier(.4,0,.2,1);
}
html{scroll-behavior:smooth}
body{font-family:'DM Sans',sans-serif;background:var(--cream);color:var(--text);overflow-x:hidden}

/* NAV */
nav{position:fixed;inset:0 0 auto;z-index:200;display:flex;align-items:center;justify-content:space-between;padding:1.1rem 5%;background:rgba(255,255,255,0.95);backdrop-filter:blur(20px);border-bottom:1px solid rgba(74,171,170,0.12);transition:all 0.4s}
.nav-logo{display:flex;align-items:center;gap:.85rem;text-decoration:none}
.logo-mark{display:flex;align-items:center;justify-content:center}
.logo-image{width:90px;height:90px;object-fit:contain;display:block}
.logo-mark svg{width:44px;height:44px}
.nav-brand h1{font-family:'Cormorant Garamond',serif;font-size:1.85rem;font-weight:700;background:linear-gradient(135deg,var(--teal-dark) 0%,var(--teal) 40%,var(--teal-2) 65%,var(--gold) 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;letter-spacing:.2em;line-height:1}
.nav-brand p{font-size:.57rem;color:var(--light);letter-spacing:.16em;text-transform:uppercase;margin-top:2px}
.nav-links{display:flex;gap:1.5rem;list-style:none;align-items:center}
.nav-links a{text-decoration:none;color:var(--mid);font-size:.77rem;font-weight:400;letter-spacing:.03em;transition:color .2s;position:relative}
.nav-links a::after{content:'';position:absolute;bottom:-3px;left:0;right:0;height:1px;background:var(--gold);transform:scaleX(0);transform-origin:left;transition:transform .3s}
.nav-links a:hover,.nav-links a.active{color:var(--teal)}
.nav-links a:hover::after,.nav-links a.active::after{transform:scaleX(1)}
.nav-cta{background:var(--teal)!important;color:#fff!important;padding:.48rem 1.3rem!important;border-radius:50px!important;font-weight:500!important;transition:all .25s!important}
.nav-cta::after{display:none!important}
.nav-cta:hover{background:var(--teal-dark)!important;transform:translateY(-1px)!important}
.hamburger{display:none;flex-direction:column;gap:5px;cursor:pointer;padding:.5rem;z-index:201}
.hamburger span{display:block;width:22px;height:1.5px;background:var(--teal);border-radius:2px;transition:all .3s}
.hamburger.open span:nth-child(1){transform:rotate(45deg) translate(5px,5px)}
.hamburger.open span:nth-child(2){opacity:0}
.hamburger.open span:nth-child(3){transform:rotate(-45deg) translate(5px,-5px)}
.mobile-nav{display:none;position:fixed;inset:0;z-index:199;background:var(--cream);flex-direction:column;align-items:center;justify-content:center;gap:2rem}
.mobile-nav.open{display:flex}
.mobile-nav a{font-family:'Cormorant Garamond',serif;font-size:2rem;font-weight:300;color:var(--text);text-decoration:none;letter-spacing:.05em;transition:color .2s}
.mobile-nav a:hover{color:var(--teal)}

/* PAGE HERO */
.page-hero{min-height:58vh;padding:10rem 5% 5rem;position:relative;overflow:hidden;display:flex;align-items:flex-end}
.ph-bg{position:absolute;inset:0}
@keyframes orb{0%,100%{transform:translate(0,0) scale(1)}50%{transform:translate(18px,-14px) scale(1.05)}}
.ph-content{position:relative;z-index:2;max-width:800px}
.ph-eyebrow{display:inline-flex;align-items:center;gap:.6rem;font-size:.62rem;letter-spacing:.22em;text-transform:uppercase;color:rgba(201,168,76,.8);margin-bottom:1.3rem}
.ph-eyebrow::before{content:'';width:20px;height:1px;background:rgba(201,168,76,.5)}
.page-hero h1{font-family:'Cormorant Garamond',serif;font-size:clamp(2.8rem,5.5vw,4.8rem);font-weight:300;color:#fff;line-height:1.06;margin-bottom:1.1rem}
.page-hero h1 em{font-style:italic;color:var(--teal-light)}
.ph-sub{font-size:.9rem;color:rgba(255,255,255,.5);line-height:1.85;max-width:510px}
.breadcrumb{position:absolute;top:1.5rem;left:5%;z-index:3;display:flex;align-items:center;gap:.45rem;font-size:.66rem;color:rgba(255,255,255,.28);letter-spacing:.04em}
.breadcrumb a{color:rgba(255,255,255,.38);text-decoration:none;transition:color .2s}
.breadcrumb a:hover{color:var(--gold-light)}
.breadcrumb .cur{color:rgba(255,255,255,.58)}

/* SHARED SECTION */
section{padding:6rem 5%}
.container{max-width:1180px;margin:0 auto}
.eyebrow{display:flex;align-items:center;gap:.7rem;font-size:.62rem;letter-spacing:.22em;text-transform:uppercase;color:var(--gold);font-weight:500;margin-bottom:.9rem}
.eyebrow::before{content:'';width:24px;height:1px;background:var(--gold)}
.eyebrow-c{justify-content:center}
.eyebrow-c::before,.eyebrow-c::after{content:'';width:24px;height:1px;background:var(--gold)}
.heading{font-family:'Cormorant Garamond',serif;font-size:clamp(2.1rem,3.8vw,3.2rem);font-weight:300;color:var(--text);line-height:1.12;margin-bottom:1.4rem}
.heading em{font-style:italic;color:var(--teal)}
.lead{font-size:.92rem;line-height:1.88;color:var(--mid)}

/* BUTTONS */
.btn{display:inline-flex;align-items:center;gap:.45rem;text-decoration:none;font-size:.82rem;font-weight:500;letter-spacing:.02em;border:none;cursor:pointer;transition:all .28s;border-radius:50px;padding:.82rem 1.9rem}
.btn-primary{background:var(--teal);color:#fff;box-shadow:0 6px 26px rgba(74,171,170,.26)}
.btn-primary:hover{background:var(--teal-dark);transform:translateY(-2px);box-shadow:0 12px 38px rgba(74,171,170,.36)}
.btn-outline{background:transparent;color:var(--teal);border:1.5px solid var(--teal)}
.btn-outline:hover{background:var(--teal-pale);transform:translateY(-2px)}
.btn-gold{background:var(--gold);color:#fff;box-shadow:0 6px 22px rgba(201,168,76,.28)}
.btn-gold:hover{background:#b8952f;transform:translateY(-2px)}
.btn-white{background:#fff;color:var(--teal-dark);box-shadow:0 6px 22px rgba(0,0,0,.1)}
.btn-white:hover{background:var(--cream);transform:translateY(-2px)}
.btn-ghost{background:transparent;color:#fff;border:1px solid rgba(255,255,255,.28)}
.btn-ghost:hover{background:rgba(255,255,255,.07);transform:translateY(-2px)}

/* CHIPS */
.chip{display:inline-flex;align-items:center;gap:.3rem;background:var(--teal-pale);color:var(--teal-dark);border-radius:50px;padding:.35rem .82rem;font-size:.7rem;font-weight:500}

/* FOOTER */
footer{background:#0d1e1e;color:rgba(255,255,255,.3);padding:3.5rem 5% 2rem}
.footer-inner{max-width:1200px;margin:0 auto;display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:3rem;margin-bottom:2.5rem}
.footer-logo{display:flex;align-items:center;justify-content:flex-start;margin-bottom:1rem}
.fb h3{font-family:'Cormorant Garamond',serif;font-size:1.6rem;color:var(--teal);font-weight:600;letter-spacing:.05em;margin-bottom:.3rem}
.fb .sub{font-size:.6rem;letter-spacing:.12em;text-transform:uppercase;color:rgba(255,255,255,.2);margin-bottom:1rem}
.fb .tag{font-family:'Cormorant Garamond',serif;font-style:italic;color:rgba(255,255,255,.38);font-size:.88rem;line-height:1.6}
.fc h4{font-size:.68rem;letter-spacing:.15em;text-transform:uppercase;color:rgba(255,255,255,.45);margin-bottom:1.2rem}
.fc ul{list-style:none;display:flex;flex-direction:column;gap:.7rem}
.fc ul li a{color:rgba(255,255,255,.28);text-decoration:none;font-size:.81rem;transition:color .2s}
.fc ul li a:hover{color:var(--teal-light)}
.footer-bottom{max-width:1200px;margin:0 auto;padding-top:2rem;border-top:1px solid rgba(255,255,255,.06);display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:1rem}
.footer-bottom p{font-size:.73rem}
.footer-bottom span{color:var(--teal)}

/* REVEAL */
.reveal{opacity:0;transform:translateY(26px);transition:opacity .7s,transform .7s}
.reveal-l{opacity:0;transform:translateX(-26px);transition:opacity .7s,transform .7s}
.reveal-r{opacity:0;transform:translateX(26px);transition:opacity .7s,transform .7s}
.reveal.on,.reveal-l.on,.reveal-r.on{opacity:1;transform:translate(0)}

/* RESPONSIVE */
@media(max-width:1300px){.nav-links{display:none}.hamburger{display:flex}}
@media(max-width:960px){.ft-inner{grid-template-columns:1fr;gap:2.2rem}}
@media(max-width:768px){.footer-inner{grid-template-columns:1fr 1fr}}
@media(max-width:600px){section{padding:4rem 5%}.page-hero{padding:8rem 5% 4rem}.page-hero h1{font-size:2.3rem}.footer-inner{grid-template-columns:1fr}}

/* ===== GLOBAL MOBILE RESPONSIVE ENHANCEMENTS ===== */

/* All images responsive by default */
img{max-width:100%;height:auto;display:block}

/* Prevent horizontal overflow */
img,video,iframe,embed{max-width:100%}

/* iOS: prevent auto-zoom on form inputs (needs font-size >= 16px) */
@media(max-width:768px){
  input,textarea,select{font-size:16px!important}
}

/* Smooth tap highlight on mobile */
a,button{-webkit-tap-highlight-color:rgba(74,171,170,.15)}

/* ---- TABLET (max 768px) ---- */
@media(max-width:768px){
  /* NAV */
  nav{padding:.85rem 4%}
  .logo-mark svg{width:38px;height:38px}
  .nav-brand h1{font-size:1.55rem}
  .nav-brand p{font-size:.5rem}

  /* FOOTER */
  .footer-inner{grid-template-columns:1fr 1fr;gap:2rem}
  .fb h3{font-size:1.3rem}
  .footer-bottom{flex-direction:column;text-align:center;gap:.6rem}

  /* PAGE HERO */
  .page-hero{min-height:50vh;padding:9rem 5% 4rem}
  .page-hero h1{font-size:clamp(2.2rem,6vw,3.5rem)}
  .ph-sub{font-size:.85rem;max-width:100%}

  /* SECTION */
  section{padding:4.5rem 4%}
  .heading{font-size:clamp(1.8rem,5vw,2.6rem)}
}

/* ---- MOBILE (max 480px) ---- */
@media(max-width:480px){
  /* NAV */
  nav{padding:.75rem 4%}
  .logo-mark svg{width:34px;height:34px}
  .nav-brand h1{font-size:1.35rem;letter-spacing:.12em}
  .nav-brand p{display:none}

  /* MOBILE NAV links larger tap targets */
  .mobile-nav a{font-size:1.7rem}

  /* PAGE HERO */
  .page-hero{min-height:45vh;padding:8rem 4% 3.5rem}
  .page-hero h1{font-size:2rem;line-height:1.15}
  .ph-sub{font-size:.82rem}

  /* SECTION */
  section{padding:3.5rem 4%}
  .heading{font-size:1.75rem}
  .lead{font-size:.88rem}

  /* BUTTONS stack on very small screens */
  .btn{padding:.75rem 1.5rem;font-size:.8rem}

  /* FOOTER */
  .footer-inner{grid-template-columns:1fr;gap:1.8rem}
  .footer-bottom{font-size:.65rem}

  /* Breadcrumb */
  .breadcrumb{font-size:.6rem;gap:.3rem}
}

/* Ensure all grid layouts collapse to 1 col on very small phones */
@media(max-width:380px){
  section{padding:3rem 4%}
  .page-hero h1{font-size:1.8rem}
  nav{padding:.7rem 3%}
}

/* ===== AUTH MODAL SYSTEM STYLING ===== */
.auth-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(14, 30, 44, 0.85);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.auth-overlay.open {
  display: flex;
  opacity: 1;
}

.auth-modal {
  background: #0e1e2c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 460px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transform: translateY(-30px);
  transition: transform 0.3s ease;
  color: white;
}

.auth-overlay.open .auth-modal {
  transform: translateY(0);
}

.auth-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.2s;
}

.auth-close:hover {
  color: white;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.auth-brand-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
}

.auth-brand-tagline {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.auth-greeting {
  font-size: 1.6rem;
  font-weight: 300;
  font-family: 'Cormorant Garamond', serif;
  color: #fff;
  margin-bottom: 0.2rem;
}

.auth-greeting-sub {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 1.5rem;
}

.auth-tabs {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 1.4rem;
}

.auth-tab {
  flex: 1;
  padding: 0.5rem;
  border: none;
  border-radius: 9px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.22s;
  background: transparent;
  color: rgba(255, 255, 255, 0.38);
}

.auth-tab.active {
  background: linear-gradient(135deg, #4aabaa, #1e6060);
  color: white;
  box-shadow: 0 3px 10px rgba(74, 171, 170, 0.35);
}

.auth-tab:not(.active):hover {
  color: rgba(255, 255, 255, 0.65);
}

.auth-field {
  margin-bottom: 0.9rem;
}

.auth-field label {
  display: block;
  font-size: 0.73rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.04em;
  margin-bottom: 0.38rem;
}

.auth-req {
  color: #ff6b6b;
  margin-left: 2px;
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-icon {
  position: absolute;
  left: 0.85rem;
  font-size: 0.9rem;
  pointer-events: none;
  z-index: 1;
}

.auth-input-wrap input,
.auth-input-wrap select {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.72rem 2.6rem 0.72rem 2.4rem;
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.auth-input-wrap input::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.auth-input-wrap input:focus,
.auth-input-wrap select:focus {
  border-color: rgba(74, 171, 170, 0.55);
  background: rgba(74, 171, 170, 0.08);
}

.auth-input-wrap select option {
  background: #0e1e2c;
  color: white;
}

.auth-eye {
  position: absolute;
  right: 0.75rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  opacity: 0.4;
  transition: opacity 0.2s;
  padding: 0;
}

.auth-eye:hover {
  opacity: 1;
}

.auth-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.auth-error {
  font-size: 0.78rem;
  border-radius: 10px;
  margin-bottom: 0;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s;
  line-height: 1.4;
}

.auth-error.show-error {
  color: #ff7878;
  background: rgba(255, 80, 80, 0.1);
  border: 1px solid rgba(255, 80, 80, 0.2);
  padding: 0.55rem 0.85rem;
  max-height: 80px;
  margin-bottom: 0.8rem;
}

.auth-error.show-success {
  color: #5dd87a;
  background: rgba(80, 200, 100, 0.1);
  border: 1px solid rgba(80, 200, 100, 0.2);
  padding: 0.55rem 0.85rem;
  max-height: 80px;
  margin-bottom: 0.8rem;
}

.auth-btn {
  width: 100%;
  padding: 0.82rem;
  background: linear-gradient(135deg, #4aabaa 0%, #1e6060 100%);
  border: none;
  border-radius: 12px;
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 6px 20px rgba(74, 171, 170, 0.35);
  margin-bottom: 0.9rem;
}

.auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(74, 171, 170, 0.5);
}

.auth-btn:active {
  transform: scale(0.98);
}

.auth-switch-text {
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.3);
}

.auth-link-btn {
  background: none;
  border: none;
  color: #7ec8c7;
  cursor: pointer;
  font-size: 0.78rem;
  font-family: 'DM Sans', sans-serif;
  text-decoration: underline;
  padding: 0;
  transition: color 0.2s;
}

.auth-link-btn:hover {
  color: #4aabaa;
}

.auth-footer-note {
  text-align: center;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.2);
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 480px) {
  .auth-modal {
    padding: 1.5rem 1.2rem 1.2rem;
    border-radius: 20px;
  }
  .auth-row2 {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
