/* ============================================================
   ALIF — A New Beginning
   Palette drawn from the logo: deep emerald, teal vortex,
   aqua light, warm cream paper, restrained candlelight gold.
   ============================================================ */

:root {
  --ink:        #072e2a;   /* deepest teal — near-black text */
  --emerald:    #0e4a43;   /* deep emerald */
  --emerald-2:  #0a3a35;
  --teal:       #2f8a7d;   /* mid teal */
  --aqua:       #7fd4c7;   /* vortex light */
  --aqua-soft:  #cfe9e2;
  --cream:      #f4f1e7;   /* paper */
  --cream-2:    #fbfaf3;
  --cream-3:    #eee9db;
  --gold:       #c3a24e;   /* candlelight — used sparingly */
  --text:       #23423c;
  --text-soft:  #4c6660;
  --line:       rgba(14, 74, 67, 0.14);

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Mulish", system-ui, -apple-system, sans-serif;

  --wrap: 1120px;
  --radius: 14px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--emerald); color: var(--cream-2);
  padding: 10px 16px; border-radius: 8px; transition: top .2s;
}
.skip-link:focus { top: 16px; }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- shared type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .74rem; letter-spacing: .22em; text-transform: uppercase;
  font-weight: 600; color: var(--teal); margin-bottom: 22px;
}
.eyebrow-light { color: var(--aqua); }

/* the alif stroke — a single upright line = a beginning */
.alif-stroke {
  display: inline-block; width: 2px; height: 20px;
  background: currentColor; border-radius: 2px; opacity: .85;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.section-intro {
  margin-top: 20px; max-width: 46ch;
  font-size: 1.075rem; color: var(--text-soft);
}

.section { padding-block: clamp(72px, 11vw, 130px); }
.section-head { max-width: 640px; margin-bottom: 60px; }
.section-head-light .section-title { color: var(--cream-2); }
.section-head-light .section-intro { color: var(--aqua-soft); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 30px; border-radius: 100px;
  font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s;
  border: 1.5px solid transparent; white-space: nowrap;
}
.btn-primary {
  background: var(--emerald); color: var(--cream-2);
  box-shadow: 0 8px 24px -12px rgba(7,46,42,.6);
}
.btn-primary:hover { background: var(--ink); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(207,233,226,.5); color: var(--cream-2); }
.btn-ghost:hover { background: rgba(255,255,255,.08); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding-block: 16px;
  transition: background .4s var(--ease), box-shadow .4s, padding .4s;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 44px; height: 44px; object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.25)); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 600;
  color: var(--cream-2); letter-spacing: .02em;
}
.brand-sub {
  font-size: .62rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--aqua); margin-top: 3px; font-weight: 600;
}

/* scrolled state (added via JS) */
.site-header.scrolled {
  background: rgba(251,250,243,.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line), 0 12px 30px -24px rgba(7,46,42,.5);
}
.site-header.scrolled .brand-name { color: var(--ink); }
.site-header.scrolled .brand-sub { color: var(--teal); }
.site-header.scrolled .nav-menu a { color: var(--text); }
.site-header.scrolled .nav-menu a:hover { color: var(--emerald); }
.site-header.scrolled .nav-cta { color: var(--cream-2); }
.site-header.scrolled .nav-toggle-bar,
.site-header.scrolled .nav-toggle-bar::before,
.site-header.scrolled .nav-toggle-bar::after { background: var(--ink); }

/* nav */
.nav-menu { list-style: none; display: flex; align-items: center; gap: 34px; padding: 0; }
.nav-menu a {
  color: var(--cream-2); font-size: .92rem; font-weight: 500;
  transition: color .2s; position: relative;
}
.nav-menu a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1.5px; width: 0;
  background: currentColor; transition: width .3s var(--ease);
}
.nav-menu a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  background: var(--gold); color: var(--ink) !important;
  padding: 10px 22px; border-radius: 100px; font-weight: 600;
  transition: transform .25s var(--ease), background .25s;
}
.nav-cta:hover { transform: translateY(-2px); background: #cfae5c; }

.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; position: relative; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  content: ""; position: absolute; left: 8px; width: 24px; height: 2px;
  background: var(--cream-2); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle-bar { top: 19px; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 140px 24px 90px;
  color: var(--cream-2);
  background:
    radial-gradient(120% 90% at 50% 8%, #14655b 0%, #0c443d 42%, #072b28 100%);
  overflow: hidden;
}
/* faint vortex swirl echo behind logo */
.hero::before {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: min(120vw, 1000px); aspect-ratio: 1; transform: translate(-50%,-56%);
  background: radial-gradient(circle, rgba(127,212,199,.16) 0%, rgba(127,212,199,0) 58%);
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 2; max-width: 760px; }

.hero-logo-wrap { margin: 4px auto 26px; width: min(58vw, 260px); }
.hero-logo {
  width: 100%; animation: floaty 7s ease-in-out infinite;
  filter: drop-shadow(0 26px 50px rgba(0,0,0,.4));
}
@keyframes floaty {
  0%,100% { transform: translateY(0) rotate(-.6deg); }
  50%     { transform: translateY(-14px) rotate(.6deg); }
}

.hero-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(3rem, 9vw, 6rem); line-height: .98;
  letter-spacing: -0.015em; color: var(--cream-2);
}
.hero-title em { font-style: italic; color: var(--aqua); }

.hero-lede {
  margin: 26px auto 38px; max-width: 52ch;
  font-size: 1.15rem; color: var(--aqua-soft);
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* drifting petals */
.hero-petals { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.petal {
  position: absolute; top: -8%; width: 12px; height: 16px;
  background: linear-gradient(180deg, #f7d9e0, #f2b8c6);
  border-radius: 60% 60% 60% 60% / 80% 80% 40% 40%;
  opacity: .0; transform: rotate(20deg);
  animation: fall linear infinite;
}
.petal:nth-child(1){ left: 8%;  width:10px;height:14px; animation-duration: 15s; animation-delay: 0s; }
.petal:nth-child(2){ left: 20%; animation-duration: 19s; animation-delay: 4s; }
.petal:nth-child(3){ left: 34%; width:9px;height:12px; animation-duration: 22s; animation-delay: 8s; }
.petal:nth-child(4){ left: 48%; animation-duration: 17s; animation-delay: 2s; }
.petal:nth-child(5){ left: 63%; width:11px;height:15px; animation-duration: 21s; animation-delay: 6s; }
.petal:nth-child(6){ left: 76%; animation-duration: 16s; animation-delay: 10s; }
.petal:nth-child(7){ left: 88%; width:8px;height:11px; animation-duration: 24s; animation-delay: 1s; }
.petal:nth-child(8){ left: 55%; animation-duration: 20s; animation-delay: 13s; }
@keyframes fall {
  0%   { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; }
  10%  { opacity: .55; }
  90%  { opacity: .4; }
  100% { transform: translateY(112vh) translateX(40px) rotate(300deg); opacity: 0; }
}

.scroll-cue {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1.5px solid rgba(207,233,226,.5);
  border-radius: 100px; display: flex; justify-content: center; padding-top: 8px; z-index: 3;
}
.scroll-cue span {
  width: 4px; height: 8px; border-radius: 4px; background: var(--aqua);
  animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue { 0%{transform:translateY(0);opacity:1;} 70%{transform:translateY(14px);opacity:0;} 100%{opacity:0;} }

/* ============================================================
   STATEMENT
   ============================================================ */
.statement { background: var(--cream-2); padding-block: clamp(64px, 9vw, 110px); }
.statement-inner { max-width: 820px; margin-inline: auto; text-align: center; }
.alif-glyph {
  font-family: var(--font-display); font-size: 3.4rem; color: var(--teal);
  margin-bottom: 18px; line-height: 1;
}
.statement-text {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.5rem, 3.6vw, 2.35rem); line-height: 1.35;
  color: var(--ink); letter-spacing: -0.005em;
}

/* ============================================================
   ESSENCE — cards
   ============================================================ */
.essence { background: var(--cream); }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: var(--cream-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 40px 32px;
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 50px -30px rgba(7,46,42,.45);
  border-color: rgba(47,138,125,.35);
}
.card-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--aqua-soft); color: var(--emerald);
  font-family: var(--font-display); font-size: 1.7rem; margin-bottom: 22px;
}
.card h3 {
  font-family: var(--font-display); font-weight: 600; font-size: 1.6rem;
  color: var(--ink); margin-bottom: 12px;
}
.card p { color: var(--text-soft); font-size: 1rem; }

/* ============================================================
   SERVICES
   ============================================================ */
.services { background: var(--cream-2); }
.service-list {
  display: grid; grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
}
.service {
  padding: 34px 8px 34px 0; border-bottom: 1px solid var(--line);
  transition: padding-left .3s var(--ease);
}
.service:nth-child(odd) { padding-right: 44px; border-right: 1px solid var(--line); padding-left: 4px; }
.service:nth-child(even) { padding-left: 44px; }
.service:hover { padding-left: 16px; }
.service:nth-child(even):hover { padding-left: 56px; }
.service-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.service-head h3 {
  font-family: var(--font-display); font-weight: 600; font-size: 1.55rem; color: var(--ink);
}
.service-tag {
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal); font-weight: 600; white-space: nowrap;
  padding: 4px 10px; border: 1px solid var(--line); border-radius: 100px;
}
.service p { color: var(--text-soft); max-width: 44ch; }
.services-note {
  margin-top: 40px; font-size: 1.05rem; color: var(--text-soft);
}
.services-note a { color: var(--emerald); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   EXPERIENCE — dark, numbered timeline (a true sequence)
   ============================================================ */
.experience {
  background:
    radial-gradient(130% 100% at 80% 0%, #12554c 0%, #0b3b36 46%, #082e2a 100%);
  color: var(--cream-2);
}
.timeline { list-style: none; padding: 0; max-width: 820px; }
.step {
  display: grid; grid-template-columns: 88px 1fr; gap: 8px 30px;
  padding: 34px 0; border-bottom: 1px solid rgba(207,233,226,.16);
  align-items: start;
}
.step:last-child { border-bottom: 0; }
.step-num {
  font-family: var(--font-display); font-size: 3.2rem; font-weight: 500;
  color: var(--aqua); line-height: 1;
}
.step-body h3 {
  font-family: var(--font-display); font-weight: 600; font-size: 1.7rem;
  color: var(--cream-2); margin-bottom: 8px;
}
.step-body p { color: var(--aqua-soft); max-width: 54ch; }

/* ============================================================
   VOICES
   ============================================================ */
.voices { background: var(--cream); }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.quote {
  background: var(--cream-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 30px; position: relative;
}
.quote::before {
  content: "\201C"; font-family: var(--font-display); font-size: 4rem;
  color: var(--aqua); position: absolute; top: 6px; left: 20px; line-height: 1; opacity: .6;
}
.quote blockquote {
  font-family: var(--font-display); font-style: italic; font-size: 1.35rem;
  line-height: 1.4; color: var(--ink); margin: 22px 0 18px; position: relative;
}
.quote figcaption { font-size: .9rem; font-weight: 600; color: var(--teal); letter-spacing: .02em; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  background:
    linear-gradient(180deg, #0b3b36 0%, #082e2a 100%);
  color: var(--cream-2);
}
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: start; }
.contact-intro .section-title { color: var(--cream-2); }
.contact-lede { margin: 22px 0 34px; color: var(--aqua-soft); font-size: 1.08rem; max-width: 42ch; }

.contact-details { list-style: none; padding: 0; display: grid; gap: 18px; }
.contact-details li {
  display: flex; flex-direction: column; gap: 3px;
  padding-bottom: 18px; border-bottom: 1px solid rgba(207,233,226,.16);
}
.cd-label {
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--aqua); font-weight: 600;
}
.contact-details a, .contact-details span:not(.cd-label) { color: var(--cream-2); font-size: 1.05rem; }
.contact-details a:hover { color: var(--aqua); }

/* form */
.contact-form {
  background: rgba(251,250,243,.97); color: var(--text);
  border-radius: 18px; padding: 38px 34px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.5);
}
.hp-field { position: absolute; left: -9999px; }
.field { margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label {
  display: block; font-size: .82rem; font-weight: 600; color: var(--emerald);
  margin-bottom: 8px; letter-spacing: .02em;
}
.optional { color: var(--text-soft); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; font: inherit; color: var(--ink);
  background: #fff; border: 1.5px solid var(--cream-3); border-radius: 10px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(47,138,125,.15);
}
.contact-form .btn-primary { margin-top: 6px; }
.form-status { margin-top: 14px; font-size: .95rem; min-height: 1.2em; text-align: center; }
.form-status.ok { color: var(--emerald); font-weight: 600; }
.form-status.err { color: #b5482f; font-weight: 600; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--ink); color: var(--aqua-soft); padding-top: 56px; }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 28px; padding-bottom: 40px;
  border-bottom: 1px solid rgba(207,233,226,.14);
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-mark { width: 52px; height: 52px; object-fit: contain; }
.footer-name { font-family: var(--font-display); font-size: 1.6rem; color: var(--cream-2); line-height: 1; }
.footer-sub { font-size: .64rem; letter-spacing: .26em; text-transform: uppercase; color: var(--aqua); margin-top: 4px; }
.footer-nav { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-nav a { font-size: .92rem; transition: color .2s; }
.footer-nav a:hover { color: var(--aqua); }

.footer-base { padding-block: 28px 40px; display: grid; gap: 14px; }
.footer-disclaimer { font-size: .78rem; color: rgba(207,233,226,.6); max-width: 70ch; line-height: 1.6; }
.footer-copy { font-size: .8rem; color: rgba(207,233,226,.7); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .cards-3, .quotes { grid-template-columns: 1fr; }
  .service-list { grid-template-columns: 1fr; }
  .service, .service:nth-child(odd), .service:nth-child(even) {
    padding: 28px 0; border-right: 0; padding-left: 0;
  }
  .service:hover, .service:nth-child(even):hover { padding-left: 10px; }
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; z-index: 120; }
  .nav-menu {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px);
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 26px; padding: 40px;
    background: var(--emerald-2);
    transform: translateX(100%); transition: transform .4s var(--ease);
    box-shadow: -20px 0 60px -20px rgba(0,0,0,.6);
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-menu a { color: var(--cream-2) !important; font-size: 1.15rem; }
  .site-header.scrolled .nav-menu a { color: var(--cream-2); }
  .nav-cta { background: var(--gold); }
  body.menu-open { overflow: hidden; }
}

@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .contact-form { padding: 30px 22px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; }
  .hero-actions { flex-direction: column; align-items: stretch; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .hero-logo { animation: none; }
}
