/* ============================================================
   BACKBONE — styles.css
   Taken from the logo: navy mountain, sunset sky, heavy lowercase type
============================================================ */

/* ── DESIGN TOKENS ── */
:root {
  --navy:        #0f202f;   /* logo colour */
  --navy-2:      #1a3247;
  --navy-3:      #27465f;
  --ink:         #0f202f;
  --ink-sub:     #4b5b69;
  --ink-muted:   #7d8b97;

  --sky:         #cfe4f7;   /* summit */
  --sky-pale:    #eef5fc;
  --white:       #ffffff;
  --paper:       #fbfaf7;
  --line:        #e3e8ee;

  --sun-yellow:  #ffe066;
  --sun-orange:  #ff9a3c;
  --sun-coral:   #e0565b;
  --sun-purple:  #8e3b8f;
  --sunset:      linear-gradient(90deg, var(--sun-purple) 0%, var(--sun-coral) 35%, var(--sun-orange) 68%, var(--sun-yellow) 100%);

  --font-head:   'Montserrat', system-ui, sans-serif;
  --font-body:   'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius:      16px;
  --radius-sm:   10px;
  --shadow:      0 10px 30px rgba(15, 32, 47, 0.08);
  --shadow-lg:   0 18px 50px rgba(15, 32, 47, 0.14);
  --transition:  0.2s ease;
  --max:         1120px;
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a   { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }

:focus-visible { outline: 3px solid var(--sun-orange); outline-offset: 3px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  background: var(--navy); color: var(--white); padding: 0.6rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; }

.container { width: min(var(--max), 100% - 3rem); margin-inline: auto; }

/* ── HEADER ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 18px rgba(15, 32, 47, 0.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand img { height: 42px; width: auto; }
/* On the home page the header logo appears once the big hero logo has scrolled away */
.home .brand { opacity: 0; pointer-events: none; transition: opacity var(--transition); }
.home .site-header.scrolled .brand { opacity: 1; pointer-events: auto; }

.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav a {
  text-decoration: none; font-weight: 600; font-size: 0.95rem; color: var(--ink-sub);
  padding: 0.5rem 0.85rem; border-radius: 999px; transition: color var(--transition), background var(--transition);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--sky-pale); }
.nav a.nav-cta { background: var(--navy); color: var(--white); margin-left: 0.5rem; }
.nav a.nav-cta:hover { background: var(--navy-3); color: var(--white); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 0.5rem; color: var(--ink);
}
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.5rem 1rem; box-shadow: var(--shadow);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.8rem 0.5rem; border-radius: var(--radius-sm); }
  .nav a.nav-cta { margin: 0.5rem 0 0; text-align: center; }
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem; letter-spacing: -0.01em;
  padding: 0.95rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--navy); color: var(--white); box-shadow: 0 8px 22px rgba(15, 32, 47, 0.22); }
.btn-primary:hover { background: var(--navy-3); box-shadow: 0 12px 28px rgba(15, 32, 47, 0.28); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.btn-sunset { background: var(--sunset); color: var(--navy); box-shadow: 0 8px 22px rgba(224, 86, 91, 0.3); }

/* ── HERO ── */
.hero {
  position: relative; overflow: hidden; text-align: center;
  padding: 3.5rem 0 5.5rem;
  /* white behind the logo so its pale-blue summit stays visible; the sky deepens below */
  background: linear-gradient(180deg, var(--white) 0%, var(--white) 35%, var(--sky-pale) 75%, var(--sky) 100%);
}
.hero-logo { width: min(560px, 88%); margin: 0 auto 2.5rem; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; margin-bottom: 1.1rem; }
.hero-lead { font-size: clamp(1.08rem, 2vw, 1.3rem); color: var(--ink-sub); max-width: 680px; margin: 0 auto 2.2rem; }
.keep { white-space: nowrap; }   /* a phrase that stays on one line (never "one-" / "time") */
.hero-actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 1.4rem; font-size: 0.95rem; color: var(--ink-muted); }

.sunset-text {
  background: linear-gradient(90deg, var(--sun-purple), var(--sun-coral) 45%, var(--sun-orange));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ── SECTIONS ── */
.section { padding: 5.5rem 0; }
.section-alt { background: var(--paper); }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--sun-coral); margin-bottom: 0.75rem;
}
.section-head { max-width: 700px; margin-bottom: 3rem; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 800; margin-bottom: 0.9rem; }
.section-head p { color: var(--ink-sub); font-size: 1.1rem; }

/* ── VALUES (navy band) ── */
.values { background: var(--navy); color: var(--white); position: relative; }
.values::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--sunset); }
.values .section-head h2 { color: var(--white); }
.values .section-head p { color: #b9c6d2; }
.values .eyebrow { color: var(--sun-orange); }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.value {
  background: var(--navy-2); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: var(--radius);
  padding: 2rem 1.75rem;
}
.value-num {
  font-family: var(--font-head); font-weight: 800; font-size: 0.85rem; letter-spacing: 0.1em;
  display: inline-block; padding: 0.3rem 0.7rem; border-radius: 999px; margin-bottom: 1.1rem;
  background: rgba(255, 154, 60, 0.15); color: var(--sun-orange);
}
.value h3 { font-size: 1.45rem; font-weight: 800; margin-bottom: 0.6rem; }
.value p { color: #c4d0db; }

/* ── SERVICES ── */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow); transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1.2rem;
  background: var(--sky-pale); color: var(--navy);
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 0.5rem; }
.card p { color: var(--ink-sub); }
.card ul { margin-top: 1rem; padding-left: 1.2rem; color: var(--ink-sub); }
.card-wide { grid-column: 1 / -1; display: flex; gap: 1.4rem; align-items: flex-start; }
.card-wide .card-icon { flex: none; margin-bottom: 0; }
.card-wide strong { color: var(--ink); }
.card li { margin-bottom: 0.3rem; }

/* ── PLANS ── */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 2.2rem 1.9rem;
  box-shadow: var(--shadow);
}
.plan.featured { border: 2px solid var(--navy); box-shadow: var(--shadow-lg); }
.plan-badge {
  position: absolute; top: -0.85rem; left: 50%; transform: translateX(-50%);
  background: var(--sunset); color: var(--navy); font-family: var(--font-head); font-weight: 800;
  font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.35rem 0.9rem; border-radius: 999px;
  white-space: nowrap;
}
.plan h3 { font-size: 1.35rem; font-weight: 800; }
.plan-hours { font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; letter-spacing: -0.03em; margin: 0.6rem 0 0.1rem; }
.plan-hours small { font-size: 1rem; font-weight: 600; color: var(--ink-muted); letter-spacing: 0; }
.plan-for { color: var(--ink-sub); margin-bottom: 1.2rem; }
.plan ul { list-style: none; margin-bottom: 1.8rem; flex: 1; }
.plan li { padding: 0.45rem 0 0.45rem 1.8rem; position: relative; color: var(--ink-sub); border-top: 1px solid var(--line); }
.plan li::before {
  content: ""; position: absolute; left: 0.2rem; top: 0.95rem; width: 0.8rem; height: 0.45rem;
  border-left: 2.5px solid var(--sun-coral); border-bottom: 2.5px solid var(--sun-coral); transform: rotate(-45deg);
}
.plan .btn { width: 100%; }
.plans-note { text-align: center; color: var(--ink-sub); margin-top: 2rem; }

/* ── WORK ── */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
.work {
  display: block; text-decoration: none; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.work:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.work img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-bottom: 1px solid var(--line); }
.work-body { padding: 1.4rem 1.6rem 1.6rem; }
.work h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 0.35rem; }
.work p { color: var(--ink-sub); }
.work-link { display: inline-block; margin-top: 0.8rem; font-weight: 700; color: var(--sun-coral); }

/* ── STEPS ── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; }
.step { position: relative; padding-top: 3.6rem; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 800;
  background: var(--navy); color: var(--white);
}
.step h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 0.4rem; }
.step p { color: var(--ink-sub); }
/* the process on navy (the look of the old "How we work"): each step a card, its number in an orange disc */
.process .step { background: var(--navy-2); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: var(--radius); padding: 4.6rem 1.6rem 1.8rem; }
.process .step::before { top: 1.6rem; left: 1.6rem; background: rgba(255, 154, 60, 0.15); color: var(--sun-orange); }
.process .step h3 { font-size: 1.3rem; color: var(--white); }
.process .step p { color: #c4d0db; }

/* ── CONTACT ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; align-items: start; }
.contact-info h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: 1rem; }
.contact-info > p { color: var(--ink-sub); margin-bottom: 2rem; font-size: 1.08rem; }
.contact-list { list-style: none; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; gap: 0.9rem; align-items: flex-start; }
.contact-list .ci { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--sky-pale); }
.contact-list .ci svg { width: 22px; height: 22px; }
.contact-list strong { display: block; font-family: var(--font-head); font-size: 0.95rem; }
.contact-list a { color: var(--ink-sub); }
.contact-list span { color: var(--ink-sub); }

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 2.2rem; box-shadow: var(--shadow-lg); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.35rem; }
.field .opt { font-weight: 400; color: var(--ink-muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 0.8rem 0.95rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field textarea { min-height: 140px; resize: vertical; }
/* the "What can we help with?" dropdown: Backbone's own navy arrow, room for it, and a hover like the buttons */
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 2.8rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1.5 1.5l5.5 5.5 5.5-5.5' fill='none' stroke='%230f202f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
}
.field select:hover { border-color: var(--navy-3); }
.field select optgroup { font-weight: 700; color: var(--ink-sub); }
.field select option { font-weight: 400; color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(207, 228, 247, 0.8);
}
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--sun-coral); }
.field-error { display: none; color: var(--sun-coral); font-size: 0.85rem; margin-top: 0.3rem; }
.field.invalid .field-error { display: block; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 0.5rem; }
.form-privacy { font-size: 0.85rem; color: var(--ink-muted); max-width: 320px; }
.form-banner { display: none; padding: 0.9rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1.2rem; font-weight: 600; }
.form-banner.error { display: block; background: #fdecec; color: #9b2c2f; }
.form-success { text-align: center; padding: 2.5rem 1rem; }
.form-success h3 { font-size: 1.6rem; font-weight: 800; margin: 0.8rem 0 0.5rem; }
.form-success p { color: var(--ink-sub); }
.form-success .tick {
  width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center;
  background: var(--sunset); color: var(--navy);
}
.form-success .tick svg { width: 32px; height: 32px; }

/* ── CTA BAND ── */
.cta-band { background: var(--navy); color: var(--white); text-align: center; padding: 4.5rem 0; position: relative; }
.cta-band::after { content: ""; position: absolute; inset: auto 0 0; height: 5px; background: var(--sunset); }
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: 0.8rem; }
.cta-band p { color: #c4d0db; max-width: 600px; margin: 0 auto 2rem; font-size: 1.1rem; }

/* ── ABOUT PAGE ── */
.about-hero { padding: 4.5rem 0 4rem; background: linear-gradient(180deg, var(--sky) 0%, var(--sky-pale) 55%, var(--white) 100%); }
.about-grid { display: grid; grid-template-columns: 340px 1fr; gap: 3.5rem; align-items: center; }
.portrait {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 24px;
  box-shadow: var(--shadow-lg); background: var(--sky-pale);
}
.portrait-frame { position: relative; isolation: isolate; }
.portrait-frame::after {
  content: ""; position: absolute; inset: auto -12px -12px 24px; height: 100%; z-index: -1;
  border-radius: 24px; background: var(--sunset); opacity: 0.85;
}
.about-hero h1, .about-hero h2 { font-size: clamp(2.3rem, 5vw, 3.5rem); font-weight: 800; margin-bottom: 1rem; }
.about-hero .lead { font-size: 1.2rem; color: var(--ink-sub); margin-bottom: 1.5rem; }
.facts { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.fact {
  font-weight: 600; font-size: 0.92rem; padding: 0.45rem 0.9rem; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line);
}
.prose { max-width: 720px; }
.prose h2, .prose h3 { font-size: 1.8rem; font-weight: 800; margin: 2.5rem 0 0.8rem; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p { color: var(--ink-sub); margin-bottom: 1.1rem; font-size: 1.08rem; }
.prose strong { color: var(--ink); }

/* ── FOOTER ── */
.site-footer { background: var(--navy); color: #b9c6d2; padding: 3.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.footer-mark { display: block; width: 180px; height: auto; margin-bottom: 0.9rem; }   /* the logo in white, above the name */
.footer-word { font-family: var(--font-head); font-weight: 800; font-size: 2rem; color: var(--white); letter-spacing: -0.03em; line-height: 1; }
.footer-tag { margin-top: 0.6rem; }
.site-footer h4 { color: var(--white); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.9rem; }
.site-footer ul { list-style: none; display: grid; gap: 0.45rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 1.5rem; font-size: 0.9rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }

/* ── 404 ── */
.error-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 4rem 0; background: linear-gradient(180deg, var(--sky) 0%, var(--white) 100%); }
.error-code { font-family: var(--font-head); font-weight: 800; font-size: clamp(5rem, 16vw, 9rem); line-height: 1; letter-spacing: -0.05em; }
.error-page h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; margin: 0.5rem 0 0.8rem; }
.error-page p { color: var(--ink-sub); margin-bottom: 2rem; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .plans, .values-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .contact-grid, .about-grid { grid-template-columns: 1fr; }
  .about-grid .portrait-frame { max-width: 320px; }
  .plan.featured { order: -1; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .container { width: calc(100% - 2rem); }
  .section { padding: 4rem 0; }
  .cards, .work-grid, .steps, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .form-card { padding: 1.5rem; }
  .hero { padding: 2.5rem 0 4rem; }
}

/* a fact that links somewhere (LinkedIn) */
.fact-link { text-decoration: none; color: inherit; }
.fact-link:hover { text-decoration: underline; }

/* the portrait as it is: square and close to its own size (the photo is 200 × 200), so it isn't enlarged and blurred */
.about-grid .portrait-frame { width: 220px; justify-self: center; }
.about-grid .portrait { aspect-ratio: 1 / 1; }
/* the footer's Explore and Contact columns sit against the right edge (on phones, where the footer stacks, they stay left) */
@media (min-width: 681px) { .footer-grid > div:not(:first-child) { text-align: right; } }
