/* Mango Hill — one page site
   Colour + hero tokens mirror the design's `accentColor` / `darkHero` props.
   Swap --accent (and set data-hero="dark" on <html>) to change the scheme. */

:root {
  --accent: #7c4dbe;
  --accent-hover: #613a99;

  --ink: #131a24;
  --ink-muted: #3d4a59;
  --body: #4c5a6a;
  --line: #e3e9ef;
  --page: #f7f9fb;

  --hero-bg: var(--page);
  --hero-fg: var(--ink);
  --hero-body: var(--ink-muted);
  --hero-kicker: var(--accent);
  --hero-btn-border: #c6d1dc;

  --sans: 'Libre Franklin', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
}

/* The design's darkHero prop */
:root[data-hero="dark"] {
  --hero-bg: #131a24;
  --hero-fg: #f2f5f8;
  --hero-body: #aebccb;
  --hero-kicker: #7fb0e0;
  --hero-btn-border: #334153;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

img, svg { max-width: 100%; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.kicker-accent { color: var(--accent); }
.kicker-light { color: #7fb0e0; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-sm { padding: 9px 18px; font-size: 14px; }

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border: none;
}
.btn-primary:hover { background: var(--accent-hover); color: #ffffff; }

.btn-ghost {
  border: 1px solid var(--hero-btn-border);
  color: var(--hero-fg);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 249, 251, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { color: var(--ink); }

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 6px 6px 6px 2px;
  background: var(--accent);
}

.brand-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}
.nav a { color: var(--ink-muted); }
.nav a:hover { color: var(--accent); }
.nav .btn-primary { color: #ffffff; font-weight: 600; }

/* ---------- Hero ---------- */

.hero {
  background: var(--hero-bg);
  color: var(--hero-fg);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  padding-top: 104px;
  padding-bottom: 96px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  align-items: center;
}

.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.hero .kicker { color: var(--hero-kicker); }

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 52px;
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}

.lede {
  margin: 0;
  font-size: 18px;
  line-height: 1.65;
  color: var(--hero-body);
  max-width: 54ch;
  text-wrap: pretty;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }

.hero-art { width: 100%; max-width: 380px; justify-self: end; }

/* ---------- Section heads ---------- */

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 62ch;
}

.section-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

/* ---------- Services ---------- */

.services { background: #ffffff; }
.services .wrap { padding-top: 96px; padding-bottom: 96px; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.service-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #fbfcfd;
  transition: border-color 0.15s ease;
}
.service-card:hover { border-color: var(--accent); }

.service-num {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  color: var(--accent);
}

.service-card h3 { margin: 0; font-size: 19px; font-weight: 600; }

.service-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--body);
  text-wrap: pretty;
}

/* ---------- Process ---------- */

.process { background: var(--page); border-top: 1px solid var(--line); }
.process .wrap { padding-top: 96px; padding-bottom: 96px; }

.step-grid {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--ink);
}

.step {
  padding: 28px 24px 8px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-right: 1px solid var(--line);
}
.step:last-child { border-right: none; }

.step-num { font-size: 13px; font-weight: 600; color: var(--accent); }

.step h3 { margin: 0; font-size: 17px; font-weight: 600; }

.step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--body);
  text-wrap: pretty;
}

/* ---------- Contact ---------- */

.contact { background: #131a24; color: #f2f5f8; }

.contact-inner {
  padding-top: 96px;
  padding-bottom: 96px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
}

.contact-copy { display: flex; flex-direction: column; gap: 18px; }

.contact-copy h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

.contact-copy p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: #aebccb;
  max-width: 46ch;
  text-wrap: pretty;
}

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form[hidden] { display: none; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.field { display: block; }

.contact-form input,
.contact-form textarea {
  background: #1d2735;
  border: 1px solid #334153;
  border-radius: 6px;
  padding: 13px 15px;
  font-size: 15px;
  color: #f2f5f8;
  font-family: inherit;
  width: 100%;
}
.contact-form textarea { resize: vertical; }

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #9aa7b5; }

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #7fb0e0;
  outline: none;
}
.contact-form input:focus-visible,
.contact-form textarea:focus-visible { outline: none; }

.contact-form .btn-primary { align-self: flex-start; }
.contact-form .btn-primary:disabled { opacity: 0.7; cursor: default; }
.contact-form .btn-primary:disabled:hover { background: var(--accent); }

.contact-thanks {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}
.contact-thanks[hidden] { display: none; }
/* Focused programmatically after submit — no ring needed on a static region. */
.contact-thanks:focus { outline: none; }

.thanks-title {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
}

.contact-thanks p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #aebccb;
}

/* ---------- Footer ---------- */

.site-footer { background: #0d131b; color: #8494a5; }

.footer-inner {
  padding-top: 28px;
  padding-bottom: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 13px;
}

.footer-links { display: flex; gap: 24px; }
.footer-links a { color: #8494a5; }
.footer-links a:hover { color: #ffffff; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .wrap { padding: 0 24px; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 72px;
    padding-bottom: 72px;
  }
  .hero h1 { font-size: 40px; }
  .hero-art { justify-self: start; max-width: 300px; }

  .services .wrap,
  .process .wrap { padding-top: 72px; padding-bottom: 72px; }

  .service-grid { grid-template-columns: 1fr; gap: 20px; }

  .step-grid { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2n) { border-right: none; }
  .step:nth-child(n + 3) { border-top: 1px solid var(--line); padding-top: 28px; }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 72px;
    padding-bottom: 72px;
  }
  .contact-copy h2 { font-size: 32px; }
}

@media (max-width: 680px) {
  .header-inner { height: auto; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
  .nav { gap: 18px; flex-wrap: wrap; }

  .hero h1 { font-size: 34px; }
  .lede { font-size: 17px; }
  .hero-actions .btn { flex: 1 1 auto; text-align: center; }

  .section-head h2 { font-size: 28px; }

  .step-grid { grid-template-columns: 1fr; }
  .step { border-right: none; padding-right: 0; }
  .step:nth-child(n + 2) { border-top: 1px solid var(--line); padding-top: 28px; }

  .field-row { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
