:root{
  --navy: #032740;
  --navy-soft: #24455C;
  --teal: #0A8EA2;
  --teal-soft: #3FA9BB;
  --cream: #F4EEE8;
  --cream-light: #FAF7F2;
  --line: rgba(3,39,64,0.14);
  --max: 1080px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body{
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: 'Work Sans', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .wordmark{
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--navy);
}

a{ color: inherit; }
img{ display: block; max-width: 100%; }

.wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
header{
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244,238,232,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 14px 24px;
}
.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img{ height: 42px; width: auto; }
.brand span{
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--navy);
}

nav{ display: flex; gap: 6px; flex-wrap: wrap; }
nav a{
  font-family: 'Work Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--navy-soft);
  padding: 9px 16px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}
nav a:hover, nav a:focus-visible{
  background: var(--navy);
  color: var(--cream-light);
}
nav a.active{
  background: var(--teal);
  color: #fff;
}
nav a:focus-visible{ outline: 2px solid var(--teal); outline-offset: 2px; }

/* ---------- Hero ---------- */
.hero{ padding: 56px 0 16px; }
.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 18px;
}
.eyebrow .dot{
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse{
  0%, 100%{ opacity: 1; transform: scale(1); }
  50%{ opacity: 0.35; transform: scale(0.7); }
}
.hero h1{
  font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 1.15;
  max-width: 20ch;
}
.hero p.lede{
  margin-top: 18px;
  max-width: 52ch;
  font-size: 1.05rem;
  color: var(--navy-soft);
}

.hero-grid{
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 30px;
  align-items: center;
}
.hero-grid .hero-text, .hero-grid .carousel{ width: 100%; }
@media (min-width: 860px){
  .hero-grid{
    flex-direction: row;
    align-items: center;
    gap: 48px;
  }
  .hero-grid .hero-text{ flex: 1.05; margin-top: -30px; }
  .hero-grid .carousel{ flex: 0.95; }
}

/* ---------- Carousel ---------- */
.carousel{
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4/3;
  border: 1px solid var(--line);
  background: var(--navy);
}
.carousel-track{
  display: flex;
  height: 100%;
  transition: transform 0.5s ease;
}
@media (prefers-reduced-motion: reduce){
  .carousel-track{ transition: none; }
}
.carousel-slide{
  flex: 0 0 100%;
  height: 100%;
}
.carousel-slide img{
  width: 100%; height: 100%;
  object-fit: cover;
}
.carousel-btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px; height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(3,39,64,0.55);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.carousel-btn:hover, .carousel-btn:focus-visible{ background: var(--teal); }
.carousel-btn.prev{ left: 12px; }
.carousel-btn.next{ right: 12px; }

.carousel-dots{
  position: absolute;
  left: 0; right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.carousel-dots button{
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(244,238,232,0.5);
  cursor: pointer;
  padding: 0;
}
.carousel-dots button.active{ background: var(--cream-light); }

/* ---------- Social row ---------- */
.social-row{
  display: flex;
  gap: 12px;
  margin: 34px 0 8px;
  flex-wrap: wrap;
}
.social-row a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--cream-light);
  transition: background 0.2s ease, transform 0.2s ease;
}
.social-row a:hover, .social-row a:focus-visible{
  background: var(--teal);
  transform: translateY(-2px);
}
.social-row svg{ width: 19px; height: 19px; fill: currentColor; }

/* ---------- Sections ---------- */
section.block{
  padding: 44px 0;
  border-top: 1px solid var(--line);
}
section.block h2{
  font-size: 1.6rem;
  margin-bottom: 16px;
}
section.block .col{ max-width: 62ch; }
section.block p{ color: var(--navy-soft); font-size: 1.02rem; }

.pillars{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.pillars li{
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal);
  background: var(--cream-light);
  border: 1px solid var(--line);
  padding: 7px 14px;
  border-radius: 999px;
}

/* ---------- Contact ---------- */
.contact-grid{
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.contact-grid > *{ width: 100%; }
@media (min-width: 800px){
  .contact-grid{ flex-direction: row; }
  .contact-grid > *{ flex: 1; min-width: 0; }
}

.contact-info p{ margin: 0 0 10px; }
.contact-info .mail{
  display: inline-block;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 2px solid var(--teal);
}
.contact-info .addr{ margin-top: 20px; font-size: 0.95rem; }
.contact-info .map{
  margin-top: 20px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.contact-info .map iframe{ width: 100%; height: 260px; border: 0; display: block; }

form.contact-form{ display: grid; gap: 14px; }
.field{ display: grid; gap: 6px; }
.field label{ font-size: 0.85rem; font-weight: 600; color: var(--navy-soft); }
.field input, .field textarea{
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream-light);
  color: var(--navy);
  resize: vertical;
}
.field input:focus, .field textarea:focus{
  outline: 2px solid var(--teal);
  outline-offset: 1px;
}
/* honeypot - hidden from real people, bots often fill every field */
.hp-field{ position: absolute; left: -9999px; top: -9999px; }

.submit-btn{
  justify-self: start;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  background: var(--navy);
  border: none;
  padding: 13px 28px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.submit-btn:hover, .submit-btn:focus-visible{ background: var(--teal); }
.submit-btn:disabled{ opacity: 0.6; cursor: not-allowed; }

.form-msg{
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 8px;
  display: none;
}
.form-msg.show{ display: block; }
.form-msg.ok{ background: #E4F4EE; color: #1C6B4C; }
.form-msg.err{ background: #FBE7E4; color: #A13D2B; }

/* ---------- Footer ---------- */
footer{ border-top: 1px solid var(--line); padding: 28px 0 40px; }
.footer-inner{
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-brand{ font-size: 0.85rem; color: var(--navy-soft); }
.footer-brand strong{ color: var(--navy); }
.footer-copy{ font-size: 0.78rem; color: var(--navy-soft); opacity: 0.75; }

@media (max-width: 560px){
  .header-inner{ padding: 12px 20px; }
  .wrap{ padding: 0 20px; }
  .hero{ padding: 40px 0 10px; }
  section.block{ padding: 36px 0; }
}
