@import url("fonts.css");

:root{
  --background:#f1f2f3;
  --foreground:#001a47;
  --card:#ffffff;
  --primary:#002057;
  --primary-foreground:#fafafa;
  --secondary:#eaedf0;
  --secondary-foreground:#002057;
  --muted:#eaedf0;
  --muted-foreground:#5a687c;
  --accent:#a8b2bd;
  --accent-foreground:#002057;
  --border:#dce0e5;
  --font-heading:'Playfair Display', ui-serif, Georgia, serif;
  --font-body:'Inter', ui-sans-serif, system-ui, sans-serif;
  --radius:0.75rem;
}

*{box-sizing:border-box;margin:0;padding:0;}
html{scroll-behavior:smooth;}
html,body{overflow-x:hidden;width:100%;}
body{
  font-family:var(--font-body);
  background:var(--background);
  color:var(--foreground);
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
ul{list-style:none;}
/* Default size for any inline SVG icon that isn't otherwise scoped;
   more specific rules below (.icon-circle svg, .stars svg, etc.) override this. */
svg{width:1em;height:1em;flex-shrink:0;vertical-align:middle;}
.btn svg{width:1.1em;height:1.1em;}
.container{max-width:1180px;margin:0 auto;padding:0 24px;}
.container-narrow{max-width:820px;margin:0 auto;padding:0 24px;}

h1,h2,h3,h4{font-family:var(--font-heading);font-weight:700;color:var(--primary);line-height:1.15;letter-spacing:-0.01em;}

.eyebrow{
  display:inline-flex;align-items:center;gap:8px;
  font-size:0.72rem;font-weight:600;letter-spacing:0.25em;text-transform:uppercase;color:var(--accent-foreground);
  opacity:0.65;
}
.eyebrow::before{content:"";width:28px;height:1px;background:var(--accent);}

/* Buttons */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:14px 30px;border-radius:999px;font-weight:600;font-size:0.95rem;
  transition:background .3s ease, color .3s ease, transform .2s ease;
  border:1px solid transparent;cursor:pointer;
}
.btn-primary{background:var(--primary);color:var(--primary-foreground);}
.btn-primary:hover{background:var(--accent);color:var(--accent-foreground);}
.btn-outline{border-color:rgba(0,32,87,0.2);color:var(--primary);}
.btn-outline:hover{background:var(--secondary);}
.btn-light{background:var(--primary-foreground);color:var(--primary);}
.btn-light:hover{background:var(--accent);color:var(--accent-foreground);}
.btn-block{width:100%;}

/* Header */
header.site-header{
  position:sticky;top:0;z-index:50;
  background:rgba(241,242,243,0.85);
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border);
}
.header-inner{display:flex;align-items:center;justify-content:space-between;padding:14px 0;}
.brand{display:flex;align-items:center;gap:12px;}
.brand-badge{width:42px;height:42px;flex-shrink:0;}
.brand-badge img{width:100%;height:100%;object-fit:contain;}
.brand-name{font-family:var(--font-heading);font-weight:700;font-size:1.4rem;color:var(--primary);line-height:1;}
.brand-name span{color:var(--accent);}
.brand-sub{display:block;font-size:0.6rem;letter-spacing:0.3em;text-transform:uppercase;color:var(--accent);font-weight:600;margin-top:3px;}

nav.main-nav{display:flex;align-items:center;gap:32px;}
nav.main-nav a{font-size:0.92rem;font-weight:500;color:rgba(0,26,71,0.65);transition:color .2s ease;}
nav.main-nav a:hover{color:var(--primary);}
nav.main-nav a.active{color:var(--accent-foreground);position:relative;}
nav.main-nav a.active::after{content:"";position:absolute;left:0;right:0;bottom:-6px;height:2px;background:var(--accent);border-radius:2px;}

.header-cta{display:flex;align-items:center;gap:16px;}
.menu-toggle{display:none;background:none;border:0;color:var(--primary);cursor:pointer;padding:6px;}
.menu-toggle svg{width:26px;height:26px;}

.mobile-nav{display:none;flex-direction:column;padding:8px 24px 24px;border-top:1px solid var(--border);background:var(--background);}
.mobile-nav a{padding:12px 0;font-family:var(--font-heading);font-size:1.3rem;font-weight:600;color:var(--primary);border-bottom:1px solid var(--border);}
.mobile-nav a.active{color:var(--accent-foreground);}

/* Mobile nav button fix - ensures text is always visible */
.mobile-nav .btn {
  color: var(--primary-foreground) !important;
  background: var(--primary);
  border: none;
}

.mobile-nav .btn:hover {
  background: var(--accent);
  color: var(--accent-foreground) !important;
}

@media (max-width:900px){
  nav.main-nav, .header-cta{display:none;}
  .menu-toggle{display:inline-flex;}
  body.nav-open .mobile-nav{display:flex;}
}

/* Hero */
.hero{padding:64px 0 80px;overflow:hidden;}
.hero-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:64px;align-items:center;}
.hero h1{font-size:clamp(2.4rem,5vw,4rem);}
.hero h1 em{font-style:italic;color:var(--accent-foreground);}
.hero p.lead{margin-top:24px;font-size:1.1rem;color:var(--muted-foreground);max-width:480px;line-height:1.7;}
.hero-actions{display:flex;gap:16px;margin-top:32px;flex-wrap:wrap;}
.hero-meta{display:flex;gap:28px;margin-top:28px;font-size:0.9rem;color:var(--muted-foreground);flex-wrap:wrap;}
.hero-meta span{display:flex;align-items:center;gap:8px;}
.hero-meta svg{width:16px;height:16px;color:var(--accent-foreground);}
.hero-image-wrap{position:relative;}
.hero-image{position:relative;aspect-ratio:3/4;border-radius:2rem;overflow:hidden;background:var(--secondary);}
.hero-image img{width:100%;height:100%;object-fit:cover;}

@media (max-width:900px){
  .hero-grid{grid-template-columns:1fr;gap:40px;}
  .hero-image-wrap{max-width:420px;margin:0 auto;}
}

/* Sections */
section{padding:88px 0;}
.section-tight{padding:64px 0;}
.section-secondary{background:var(--secondary);}
.section-primary{background:var(--primary);color:rgba(250,250,250,0.9);}
.section-primary h2, .section-primary h3{color:var(--primary-foreground);}
.section-header{max-width:640px;margin:0 auto 56px;text-align:center;}
.section-header h2{margin-top:16px;font-size:clamp(1.9rem,3.6vw,2.75rem);}
.section-header p{margin-top:18px;font-size:1.08rem;color:var(--muted-foreground);line-height:1.7;}
.section-primary .section-header p{color:rgba(250,250,250,0.65);}

.grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:24px;}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;}
.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;}
@media (max-width:900px){.grid-4{grid-template-columns:repeat(2,1fr);}.grid-3{grid-template-columns:1fr;}}
@media (max-width:600px){.grid-2,.grid-4{grid-template-columns:1fr;}}

.card{background:var(--card);border:1px solid var(--border);border-radius:1.25rem;padding:32px;}
.card h3{font-size:1.2rem;}
.card p{margin-top:10px;color:var(--muted-foreground);font-size:0.95rem;line-height:1.65;}

.step-card{position:relative;}
.step-num{font-family:var(--font-heading);font-size:2.4rem;font-weight:700;color:rgba(168,178,189,0.35);}

.icon-circle{width:48px;height:48px;border-radius:999px;background:rgba(168,178,189,0.16);display:flex;align-items:center;justify-content:center;margin-bottom:18px;}
.icon-circle svg{width:22px;height:22px;color:var(--accent-foreground);}
.section-primary .icon-circle{background:rgba(255,255,255,0.1);}

.values-grid .card{text-align:center;}
.values-grid .icon-circle{margin:0 auto 16px;}

.quote-card p{color:rgba(0,26,71,0.8);font-style:italic;line-height:1.7;}
.quote-card .name{margin-top:16px;font-family:var(--font-heading);font-weight:700;color:var(--primary);font-style:normal;}
.quote-card .place{font-size:0.85rem;color:var(--muted-foreground);font-style:normal;}
.stars{display:flex;gap:3px;color:var(--accent-foreground);margin-bottom:14px;}
.stars svg{width:15px;height:15px;}

.cta-banner{background:var(--accent-foreground);border-radius:2rem;padding:64px 40px;text-align:center;color:var(--primary-foreground);}
.cta-banner h2{color:var(--primary-foreground);}
.cta-banner p{margin-top:12px;color:rgba(250,250,250,0.75);max-width:420px;margin-left:auto;margin-right:auto;}
.cta-banner .btn{margin-top:28px;}

/* About page — facility gallery */
.gallery-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;}
.gallery-item{background:var(--card);border:1px solid var(--border);border-radius:1.25rem;overflow:hidden;}
.gallery-item img{width:100%;aspect-ratio:4/3;object-fit:cover;}
.gallery-item figcaption{padding:14px 16px;font-size:0.88rem;color:var(--muted-foreground);line-height:1.5;}
@media (max-width:800px){.gallery-grid{grid-template-columns:1fr;}}

/* About page */
.story-card{background:var(--secondary);border-radius:1.25rem;padding:36px;}
.about-cta{background:var(--primary);color:var(--primary-foreground);border-radius:1.5rem;padding:56px 32px;text-align:center;}
.about-cta h3{color:var(--primary-foreground);font-size:1.9rem;}
.about-cta p{margin-top:10px;color:rgba(250,250,250,0.65);}
.about-cta .btn{margin-top:24px;}

/* Contact page */
.contact-info{display:flex;flex-direction:column;gap:16px;}
.contact-row{display:flex;align-items:flex-start;gap:16px;background:var(--card);border:1px solid var(--border);border-radius:1.25rem;padding:20px;}
.contact-row .icon-circle{margin:0;flex-shrink:0;}
.contact-row .label{font-size:0.72rem;text-transform:uppercase;letter-spacing:0.08em;color:var(--muted-foreground);}
.contact-row .value{margin-top:2px;font-weight:600;color:var(--primary);}

.form-card{background:var(--card);border:1px solid var(--border);border-radius:1.25rem;padding:36px;}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px;}
@media (max-width:600px){.form-row{grid-template-columns:1fr;}}
.field{margin-bottom:18px;}
.field label{display:block;font-size:0.88rem;font-weight:600;color:var(--primary);margin-bottom:6px;}
.field input, .field textarea{
  width:100%;border:1px solid var(--border);background:var(--background);
  border-radius:0.75rem;padding:12px 14px;font-family:var(--font-body);font-size:0.95rem;color:var(--foreground);
}
.field textarea{min-height:130px;resize:vertical;}
.field input:focus, .field textarea:focus{outline:2px solid var(--accent-foreground);outline-offset:1px;}
.form-note{margin-top:16px;font-size:0.82rem;color:var(--muted-foreground);text-align:center;}

.contact-grid{display:grid;grid-template-columns:0.85fr 1.15fr;gap:40px;align-items:start;}
@media (max-width:800px){.contact-grid{grid-template-columns:1fr;}}

/* FAQ */
.faq-item{border:1px solid var(--border);border-radius:1rem;background:var(--card);overflow:hidden;margin-bottom:12px;}
.faq-item summary{
  list-style:none;cursor:pointer;padding:20px 24px;font-family:var(--font-heading);
  font-weight:600;font-size:1.05rem;color:var(--primary);display:flex;justify-content:space-between;align-items:center;gap:16px;
}
.faq-item summary::-webkit-details-marker{display:none;}
.faq-item summary .icon{flex-shrink:0;width:22px;height:22px;border-radius:999px;background:var(--secondary);display:flex;align-items:center;justify-content:center;position:relative;}
.faq-item summary .icon::before, .faq-item summary .icon::after{content:"";position:absolute;background:var(--accent-foreground);border-radius:2px;}
.faq-item summary .icon::before{width:10px;height:2px;}
.faq-item summary .icon::after{width:2px;height:10px;transition:transform .2s ease;}
.faq-item[open] summary .icon::after{transform:rotate(90deg);opacity:0;}
.faq-item .faq-body{padding:0 24px 22px;color:var(--muted-foreground);line-height:1.7;font-size:0.95rem;}

/* Legal */
.legal-nav{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:40px;}
.legal-nav a{padding:9px 18px;border-radius:999px;border:1px solid var(--border);font-size:0.85rem;font-weight:600;color:var(--primary);background:var(--card);}
.legal-nav a:hover{background:var(--secondary);}
.legal-section{margin-bottom:52px;scroll-margin-top:100px;}
.legal-section h2{font-size:1.6rem;margin-bottom:14px;}
.legal-section h3{font-size:1.1rem;margin-top:22px;margin-bottom:8px;}
.legal-section p, .legal-section li{color:var(--muted-foreground);line-height:1.75;margin-bottom:12px;font-size:0.97rem;}
.legal-section ul{padding-left:20px;list-style:disc;}
.legal-updated{color:var(--muted-foreground);font-size:0.85rem;margin-bottom:8px;}

/* Page hero (inner pages) */
.page-hero{padding:64px 0 8px;text-align:center;}
.page-hero h1{margin-top:14px;font-size:clamp(2.2rem,4.5vw,3.2rem);}
.page-hero p{margin-top:16px;color:var(--muted-foreground);font-size:1.05rem;max-width:560px;margin-left:auto;margin-right:auto;}

/* Footer */
footer{background:var(--primary);color:rgba(250,250,250,0.85);}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:48px;padding:72px 0 56px;}
.footer-brand .brand-name{color:var(--primary-foreground);font-size:1.7rem;}
.footer-brand p{margin-top:16px;color:rgba(250,250,250,0.55);max-width:340px;line-height:1.7;font-size:0.95rem;}
.footer-social{display:flex;gap:12px;margin-top:20px;}
.footer-social a{width:38px;height:38px;border-radius:999px;background:rgba(255,255,255,0.1);display:flex;align-items:center;justify-content:center;transition:background .2s ease;}
.footer-social a:hover{background:var(--accent);}
.footer-social svg{width:16px;height:16px;}
.footer-col h4{font-family:var(--font-heading);font-size:1.05rem;color:var(--primary-foreground);margin-bottom:16px;}
.footer-col a{display:block;padding:6px 0;color:rgba(250,250,250,0.55);font-size:0.92rem;}
.footer-col a:hover{color:var(--accent);}
.footer-row{display:flex;align-items:flex-start;gap:10px;color:rgba(250,250,250,0.55);font-size:0.92rem;margin-bottom:14px;}
.footer-row svg{width:16px;height:16px;color:var(--accent);flex-shrink:0;margin-top:2px;}
.footer-bottom{border-top:1px solid rgba(255,255,255,0.1);}
.footer-bottom-inner{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;padding:22px 0;font-size:0.78rem;color:rgba(250,250,250,0.4);}
.footer-bottom-inner .links{display:flex;gap:20px;}
.footer-bottom-inner a:hover{color:var(--accent);}

@media (max-width:800px){
  .footer-grid{grid-template-columns:1fr;padding:56px 0 40px;}
}

/* Utility */
.mt-0{margin-top:0;}
.text-center{text-align:center;}
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);}

/* Form submission loading state */
.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Hidden field for botcheck */
.hidden {
  display: none !important;
}

/* ============================================
   FOOTER MOBILE FIX
   ============================================ */
@media (max-width: 800px){

  /* Add left/right padding to the footer grid so text doesn't touch edges */
  footer .footer-grid{
    padding: 48px 20px 32px !important;
    gap: 36px !important;
  }

  /* Bottom bar: stack copyright and links vertically instead of squishing */
  .footer-bottom-inner{
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 20px !important;
    gap: 14px !important;
  }

  .footer-bottom-inner .links{
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
  }

  /* Text sizing */
  .footer-brand .brand-name{
    font-size: 1.35rem;
  }

  .footer-brand p{
    font-size: 0.9rem;
    max-width: 100%;
  }

  .footer-col h4{
    font-size: 1rem;
    margin-bottom: 12px;
  }

  .footer-col a,
  .footer-row{
    font-size: 0.88rem;
  }

  .footer-row{
    gap: 8px;
    margin-bottom: 12px;
  }

  .footer-row svg{
    width: 15px;
    height: 15px;
  }

  .footer-social{
    gap: 10px;
    margin-top: 16px;
  }

  .footer-social a{
    width: 36px;
    height: 36px;
  }
}

/* Extra tightening for very small phones (iPhone SE, small Androids) */
@media (max-width: 420px){

  footer .footer-grid{
    padding: 40px 16px 28px !important;
    gap: 30px !important;
  }

  .footer-bottom-inner{
    padding: 18px 16px !important;
  }

  .footer-brand .brand-name{
    font-size: 1.25rem;
  }

  .footer-brand p,
  .footer-col a,
  .footer-row,
  .footer-bottom-inner{
    font-size: 0.82rem;
  }

  .footer-row svg{
    width: 14px;
    height: 14px;
  }
}