/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --header-height: 4.4rem;
  --ink:        #e8e4de;
  --forest:     #0e1014;
  --forest-2:   #0e1014;
  --cream:      #14181e;
  --sand:       #222830;
  --gold:       #6ab4a4;
  --gold-soft:  rgba(106,180,164,0.10);
  --gold-dim:   rgba(106,180,164,0.15);
  --white:      #1c2128;
  --muted:      #b0aaa0;
  --line:       rgba(106,180,164,0.12);
  --serif:      Georgia, 'Times New Roman', serif;
  --mono:       'Courier New', monospace;
  --ease:       cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Reset & base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.8;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Skip link ───────────────────────────────────────────── */
.skip-link { position: absolute; left: -999px; top: 0; background: var(--forest); color: #fff; padding: 0.75rem 1rem; z-index: 999; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* ── Header ──────────────────────────────────────────────── */
header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: var(--header-height);
  padding: 0.85rem clamp(1.5rem, 5vw, 5rem);
  background: rgba(20,24,30,0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  transition: box-shadow 0.3s;
}
header.scrolled { box-shadow: 0 4px 32px rgba(21,32,24,0.08); }
.brand {
  font-size: 1.2rem; letter-spacing: 0.05em; color: var(--forest); white-space: nowrap;
}
.brand span { color: var(--gold); font-style: italic; }
nav ul { list-style: none; display: flex; gap: 2rem; align-items: center; }
nav a {
  font-family: var(--mono); font-size: 0.67rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); transition: color 0.2s;
}
nav a:hover { color: var(--forest); }
.nav-cta {
  color: #ffffff !important; background: #4a9488;
  padding: 0.6rem 1.1rem; border-radius: 999px; transition: all 0.22s var(--ease) !important;
}
.nav-cta:hover { background: #6ab4a4 !important; box-shadow: 0 8px 24px rgba(106,180,164,0.15); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 0.9rem 1.8rem; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; transition: all 0.22s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: #4a9488; color: #ffffff; }
.btn-primary:hover { background: #6ab4a4; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(106,180,164,0.15); }
.btn-outline { border-color: rgba(31,49,41,0.28); color: var(--forest); }
.btn-outline:hover { border-color: var(--forest); background: rgba(31,49,41,0.04); }

/* ── Section base ────────────────────────────────────────── */
section { scroll-margin-top: var(--header-height); }
.section-label {
  font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold);
  display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.2rem;
}
.section-label::before { content: ''; width: 2rem; height: 1px; background: var(--gold); flex-shrink: 0; }
h1, h2, h3 { font-weight: 300; color: var(--forest); }
h2 { font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.06; letter-spacing: -0.03em; }
h3 { font-size: 1.25rem; line-height: 1.3; }

/* ── Fade-in on scroll ───────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.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; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ══════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════ */
.hero {
  min-height: 100svh; padding-top: 4.4rem;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.9fr);
  border-bottom: 1px solid var(--line);
}
.hero-copy {
  padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 5vw, 5rem);
  display: flex; flex-direction: column; justify-content: center; gap: 0;
  max-width: 72rem;
}
.hero-eyebrow {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold);
  display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.8rem;
  opacity: 0; animation: fadeUp 0.8s var(--ease) 0.1s forwards;
}
.hero-eyebrow::before { content: ''; width: 2rem; height: 1px; background: var(--gold); }
h1 {
  font-size: clamp(2.8rem, 6.5vw, 6rem);
  line-height: 0.97; letter-spacing: -0.045em; max-width: 14ch;
  opacity: 0; animation: fadeUp 0.9s var(--ease) 0.2s forwards;
}
h1 em { color: var(--gold); font-style: italic; }
.hero-desc {
  margin-top: 1.8rem; max-width: 42rem; color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.1rem); line-height: 1.8;
  opacity: 0; animation: fadeUp 0.9s var(--ease) 0.3s forwards;
}
.hero-ethos {
  margin-top: 1.2rem; max-width: 42rem;
  font-size: clamp(0.95rem, 1.2vw, 1rem); color: var(--muted);
  line-height: 1.8; font-style: italic;
  opacity: 0; animation: fadeUp 0.9s var(--ease) 0.38s forwards;
}
.hero-actions {
  margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 1rem;
  opacity: 0; animation: fadeUp 0.9s var(--ease) 0.46s forwards;
}
.hero-photo {
  position: relative;
  min-height: 100%;
  border-left: 1px solid var(--line);
  overflow: hidden;
  background: #0e1014;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  min-height: calc(100svh - 4.4rem);
  object-fit: cover;
  filter: grayscale(1) contrast(1.04);
  opacity: 0.86;
}

/* ── Keyframes ───────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

/* ══════════════════════════════════════════════════════════
   WHAT WE DO — three pillar cards
══════════════════════════════════════════════════════════ */
.what-we-do {
  background: var(--white);
  padding: clamp(5rem, 9vw, 8rem) clamp(1.5rem, 5vw, 5rem);
  border-bottom: 1px solid var(--line);
}
.what-we-do-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: end;
  margin-bottom: 4rem;
}
.what-we-do-head h2 { max-width: 18ch; }
.what-we-do-head p { color: var(--muted); max-width: 38rem; align-self: end; padding-bottom: 0.3rem; }
.pillars {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line); gap: 1px; background: var(--line);
}
.pillar {
  background: var(--white); padding: 2.5rem 2rem;
  display: flex; flex-direction: column; gap: 1rem;
  transition: background 0.25s;
}
.pillar:hover { background: var(--cream); }
.pillar-icon {
  width: 3rem; height: 3rem; border-radius: 8px;
  background: rgba(106,180,164,0.10); border: 1px solid rgba(106,180,164,0.15);
  display: grid; place-items: center; font-size: 1.2rem;
  flex-shrink: 0;
}
.pillar h3 { color: var(--forest); margin-top: 0.3rem; }
.pillar p { color: var(--muted); font-size: 0.95rem; line-height: 1.7; }

/* ══════════════════════════════════════════════════════════
   WHO WE BUILD FOR — persona tags
══════════════════════════════════════════════════════════ */
.who {
  background: var(--forest);
  padding: clamp(5rem, 9vw, 8rem) clamp(1.5rem, 5vw, 5rem);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.who .section-label { color: rgba(185,149,93,0.9); }
.who .section-label::before { background: rgba(185,149,93,0.9); }
.who h2 { color: var(--white); max-width: 22ch; }
.who-body {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; margin-top: 3.5rem; align-items: start;
}
.who-text p { color: rgba(255,255,255,0.68); line-height: 1.8; }
.who-text p + p { margin-top: 1rem; }
.persona-grid {
  display: flex; flex-wrap: wrap; gap: 0.65rem;
}
.persona-tag {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 0.55rem 1rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15); color: rgba(255,255,255,0.75);
  transition: all 0.2s; cursor: default;
}
.persona-tag:hover {
  border-color: rgba(185,149,93,0.6); color: var(--gold);
  background: rgba(185,149,93,0.08);
}
.persona-tag.featured {
  border-color: rgba(185,149,93,0.4); color: var(--gold);
  background: rgba(185,149,93,0.1);
}

/* ══════════════════════════════════════════════════════════
   ENQUIRIES — horizontal cards
══════════════════════════════════════════════════════════ */
.enquiries {
  background: var(--cream);
  padding: clamp(5rem, 9vw, 8rem) clamp(1.5rem, 5vw, 5rem);
  border-bottom: 1px solid var(--line);
}
.enquiries-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: end; margin-bottom: 3.5rem;
}
.enquiries-head h2 { max-width: 20ch; }
.enquiries-head p { color: var(--muted); align-self: end; padding-bottom: 0.2rem; }
.enquiry-cards { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.enquiry-card {
  background: var(--cream); padding: 1.6rem 2rem;
  display: grid; grid-template-columns: 14rem 1fr auto;
  align-items: center; gap: 2rem;
  transition: background 0.2s;
}
.enquiry-card:hover { background: var(--white); }
.enquiry-card-type {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink);
}
.enquiry-card-desc { color: var(--muted); font-size: 0.95rem; }
.enquiry-card-arrow {
  color: var(--gold); font-size: 1rem; opacity: 0.5;
  transition: opacity 0.2s, transform 0.2s;
}
.enquiry-card:hover .enquiry-card-arrow { opacity: 1; transform: translateX(4px); }

/* ══════════════════════════════════════════════════════════
   ABOUT — split layout
══════════════════════════════════════════════════════════ */
.about {
  background: var(--white);
  padding: clamp(5rem, 9vw, 8rem) clamp(1.5rem, 5vw, 5rem);
  border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center;
}
.about-visual {
  position: relative; min-height: 22rem;
  background: linear-gradient(135deg, #1c2832, #14181e);
  border: 1px solid var(--line); border-radius: 4px;
  display: grid; place-items: center; overflow: hidden;
}
.about-visual::before {
  content: '';
  position: absolute; width: 28rem; height: 28rem; border-radius: 50%;
  border: 1px solid var(--gold-dim); top: -8rem; left: -8rem;
}
.about-visual::after {
  content: '';
  position: absolute; width: 16rem; height: 16rem; border-radius: 50%;
  border: 1px solid var(--gold-dim); bottom: -4rem; right: -4rem;
}
.about-card {
  position: relative; z-index: 2;
  background: rgba(255,255,255,0.8); backdrop-filter: blur(8px);
  border: 1px solid rgba(106,180,164,0.18); border-radius: 6px;
  padding: 1.8rem; width: min(80%, 20rem);
  box-shadow: 0 16px 48px rgba(21,32,24,0.08);
}
.about-card-label {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 0.8rem;
}
.about-card-text { color: var(--muted); font-size: 0.95rem; line-height: 1.7; font-style: italic; }
.about-copy h2 { max-width: 18ch; }
.about-copy p { color: var(--muted); margin-top: 1.4rem; line-height: 1.8; }

/* ══════════════════════════════════════════════════════════
   CONTACT — two-column form
══════════════════════════════════════════════════════════ */
.contact {
  background: rgba(106,180,164,0.10);
  padding: clamp(5rem, 9vw, 8rem) clamp(1.5rem, 5vw, 5rem);
  border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 5rem; align-items: start;
}
.contact-copy h2 { max-width: 16ch; }
.contact-copy p { color: var(--muted); margin-top: 1.3rem; line-height: 1.8; }
.contact-email {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: 1.6rem; color: var(--gold); font-family: var(--mono);
  font-size: 0.78rem; letter-spacing: 0.08em; text-decoration: underline;
  text-underline-offset: 3px;
}
.form-panel {
  background: var(--white);
  border: 1px solid rgba(106,180,164,0.18);
  box-shadow: 0 24px 64px rgba(21,32,24,0.09);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  border-radius: 8px;
}
form { display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
label {
  display: grid; gap: 0.5rem;
  font-family: var(--mono); font-size: 0.66rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
input, select, textarea {
  width: 100%; border: 1px solid rgba(31,49,41,0.16);
  background: var(--cream); color: var(--ink);
  font: 1rem var(--serif); padding: 0.85rem 1rem;
  border-radius: 5px; transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(106,180,164,0.15);
}
textarea { min-height: 8rem; resize: vertical; }
.hidden-field { position: absolute; left: -9999px; opacity: 0; }
.form-note {
  font-size: 0.8rem; color: var(--muted); line-height: 1.6;
  margin-top: 0.5rem; font-family: var(--mono); letter-spacing: 0.04em;
}

/* ══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
footer {
  background: var(--forest); color: rgba(255,255,255,0.55);
  padding: 3rem clamp(1.5rem, 5vw, 5rem);
  display: flex; flex-wrap: wrap; gap: 2rem;
  justify-content: space-between; align-items: center;
}
.footer-brand { color: var(--white); font-size: 1.05rem; letter-spacing: 0.05em; }
.footer-brand span { color: var(--gold); font-style: italic; }
.footer-meta { font-family: var(--mono); font-size: 0.63rem; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 0.3rem; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: center; }
.footer-links a {
  font-family: var(--mono); font-size: 0.63rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(255,255,255,0.45);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .what-we-do-head, .enquiries-head { grid-template-columns: 1fr; gap: 1.5rem; }
  .pillars { grid-template-columns: 1fr; }
  .who-body { grid-template-columns: 1fr; gap: 2.5rem; }
  .about { grid-template-columns: 1fr; }
  .about-visual { min-height: 16rem; }
  .contact { grid-template-columns: 1fr; gap: 3rem; }
  .enquiry-card { grid-template-columns: 1fr; gap: 0.4rem; }
  .enquiry-card-arrow { display: none; }
}
@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-photo { min-height: 22rem; border-left: none; border-top: 1px solid var(--line); }
  .hero-photo img { min-height: 22rem; }
  nav a:not(.nav-cta) { display: none; }
  h2 { font-size: clamp(1.7rem, 6vw, 2.8rem); }
  .form-row { grid-template-columns: 1fr; }
}

/* ── Midnight Care dark overrides ──────────────────────── */
body { background: #14181e; color: #e8e4de; }
header { background: rgba(20,24,30,0.95); border-bottom-color: rgba(106,180,164,0.12); }
.brand { color: #e8e4de; }
.brand span { color: #6ab4a4; }
h1, h2, h3 { color: #e8e4de; }
h1 em, h2 em { color: #6ab4a4; }
.hero-eyebrow, .section-label { color: #6ab4a4; }
.hero-eyebrow::before, .section-label::before { background: #6ab4a4; }
.hero-desc, .hero-ethos { color: #b0aaa0; }
.btn-outline { border-color: #38404e; color: #e8e4de; }
.btn-outline:hover { background: #222830; border-color: #6ab4a4; }
.what-we-do { background: #1c2128; }
.pillars { background: rgba(106,180,164,0.12); border-color: rgba(106,180,164,0.12); }
.pillar { background: #1c2128; }
.pillar:hover { background: #222830; }
.pillar h3 { color: #e8e4de; }
.pillar p { color: #b0aaa0; }
.who { background: #0e1014; }
.enquiries { background: #14181e; }
.enquiry-cards { background: rgba(106,180,164,0.12); border-color: rgba(106,180,164,0.12); }
.enquiry-card { background: #14181e; }
.enquiry-card:hover { background: #222830; }
.enquiry-card-type { color: #e8e4de; }
.enquiry-card-desc { color: #b0aaa0; }
.about { background: #1c2128; }
.about-visual { background: linear-gradient(135deg, #222830, #14181e); border-color: rgba(106,180,164,0.12); }
.about-card { background: rgba(28,33,40,0.95); border-color: rgba(106,180,164,0.18); }
.about-card-label { color: #6ab4a4; }
.about-card-text { color: #b0aaa0; }
.about-copy p { color: #b0aaa0; }
.contact { background: rgba(106,180,164,0.07); }
.contact-copy p { color: #b0aaa0; }
.form-panel { background: #1c2128; border-color: rgba(106,180,164,0.18); box-shadow: 0 24px 64px rgba(0,0,0,0.40); }
label { color: #b0aaa0; }
input, select, textarea { background: #222830; border-color: #38404e; color: #e8e4de; }
input::placeholder, textarea::placeholder { color: #38404e; opacity:1; }
footer { background: #0e1014; }
.footer-brand { color: #e8e4de; }
.footer-brand span { color: #6ab4a4; }
