/* ============================================================
   Sandy Shoals Ltd — design tokens (Apple design language)
   ============================================================ */

:root {
  /* Color */
  --primary: #0066cc;
  --primary-focus: #0071e3;
  --primary-on-dark: #2997ff;
  --ink: #1d1d1f;
  --body-on-dark: #ffffff;
  --body-muted: #cccccc;
  --ink-muted-80: #333333;
  --ink-muted-48: #7a7a7a;
  --divider-soft: #f0f0f0;
  --hairline: #e0e0e0;
  --canvas: #ffffff;
  --canvas-parchment: #f5f5f7;
  --surface-pearl: #fafafc;
  --surface-tile-1: #272729;
  --surface-tile-2: #2a2a2c;
  --surface-tile-3: #252527;
  --surface-black: #000000;
  --on-primary: #ffffff;

  /* Radius */
  --rounded-sm: 8px;
  --rounded-md: 11px;
  --rounded-lg: 18px;
  --rounded-pill: 9999px;

  /* Spacing */
  --space-xxs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 17px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;
  --space-section: 80px;

  /* Type */
  --font-display: "SF Pro Display", system-ui, -apple-system, BlinkMacSystemFont,
    "Inter", sans-serif;
  --font-text: "SF Pro Text", system-ui, -apple-system, BlinkMacSystemFont,
    "Inter", sans-serif;

  /* The single shadow in the system — product/photography only */
  --product-shadow: rgba(0, 0, 0, 0.22) 3px 5px 30px 0;
}

/* ============================================================
   Base
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.47;
  letter-spacing: -0.374px;
  -webkit-font-smoothing: antialiased;
}

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

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary-focus);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
}

p {
  margin: 0;
}

/* ============================================================
   Navigation
   ============================================================ */

/* One frosted bar. The brand appears once; the persistent action is the
   phone number and the consultation CTA. */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 56px;
  background: rgba(245, 245, 247, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.site-nav__inner {
  max-width: 1024px;
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
}

.site-nav__brand {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.19;
  letter-spacing: 0.231px;
  color: var(--ink);
  white-space: nowrap;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.site-nav__links a {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.29;
  letter-spacing: -0.224px;
  color: var(--ink);
  white-space: nowrap;
}

.site-nav__links a[aria-current="page"] {
  font-weight: 600;
}

.site-nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.site-nav__phone {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.29;
  letter-spacing: -0.224px;
  color: var(--ink);
  white-space: nowrap;
}

/* Sticky nav would otherwise cover the target of an in-page anchor. */
[id] {
  scroll-margin-top: 72px;
}

/* ============================================================
   Buttons
   ============================================================ */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-text);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.47;
  letter-spacing: -0.374px;
  border-radius: var(--rounded-pill);
  border: 1px solid transparent;
  padding: 11px 22px;
  cursor: pointer;
  transition: transform 0.12s ease;
}

.button:active {
  transform: scale(0.95);
}

.button--primary {
  background: var(--primary);
  color: var(--on-primary);
}

.button--ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.button--ghost-on-dark {
  background: transparent;
  color: var(--primary-on-dark);
  border-color: var(--primary-on-dark);
}

.button--compact {
  font-size: 14px;
  line-height: 1.29;
  letter-spacing: -0.224px;
  padding: 8px 16px;
}

.button--large {
  font-size: 18px;
  font-weight: 300;
  line-height: 1;
  padding: 14px 28px;
}

.link-arrow::after {
  content: " \203A";
}

.link-on-dark {
  color: var(--primary-on-dark);
}

/* ============================================================
   Tiles / sections
   ============================================================ */

.tile {
  padding: var(--space-section) var(--space-lg);
}

.tile--light {
  background: var(--canvas);
  color: var(--ink);
}

.tile--parchment {
  background: var(--canvas-parchment);
  color: var(--ink);
}

.tile--dark {
  background: var(--surface-tile-1);
  color: var(--body-on-dark);
}

.tile--dark-2 {
  background: var(--surface-tile-2);
  color: var(--body-on-dark);
}

.tile--dark-3 {
  background: var(--surface-tile-3);
  color: var(--body-on-dark);
}

.tile__inner {
  max-width: 1024px;
  margin: 0 auto;
}

.tile__inner--narrow {
  max-width: 720px;
}

.tile--centered .tile__inner {
  text-align: center;
}

/* Hero */

.hero h1 {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 1.07;
  letter-spacing: -0.28px;
  margin-bottom: var(--space-lg);
}

.hero__lead {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: 0.196px;
  max-width: 720px;
  margin: 0 auto;
}

.hero__eyebrow {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.29;
  letter-spacing: -0.224px;
  color: var(--primary);
  margin-bottom: var(--space-sm);
}

.tile--dark .hero__eyebrow,
.tile--dark-2 .hero__eyebrow,
.tile--dark-3 .hero__eyebrow {
  color: var(--primary-on-dark);
}

/* Headings inside tiles */

.tile h2 {
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: 0;
  margin-bottom: var(--space-lg);
}

.tile h3 {
  font-family: var(--font-text);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.19;
  letter-spacing: 0.231px;
  margin-bottom: var(--space-xs);
}

.tile__lead {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: 0.196px;
}

.tile__lead-airy {
  font-size: 24px;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0;
}

.tile--dark p,
.tile--dark-2 p,
.tile--dark-3 p {
  color: var(--body-on-dark);
}

.muted-on-dark {
  color: var(--body-muted) !important;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.tile--centered .actions {
  justify-content: center;
}

/* ============================================================
   Photography
   ============================================================ */

.photo-frame {
  margin: var(--space-xxl) auto 0;
  max-width: 389px;
}

.photo-frame img {
  width: 100%;
  height: auto;
  box-shadow: var(--product-shadow);
}

.photo-frame figcaption {
  margin-top: var(--space-sm);
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: -0.12px;
  color: var(--ink-muted-48);
  text-align: center;
}

.split {
  display: grid;
  grid-template-columns: 1fr 389px;
  gap: var(--space-section);
  align-items: center;
}

.split .photo-frame {
  margin: 0;
}

/* ============================================================
   Grids & cards
   ============================================================ */

.grid {
  display: grid;
  gap: var(--space-lg);
  margin-top: var(--space-xxl);
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: var(--space-lg);
  text-align: left;
}

.card h3 {
  margin-bottom: var(--space-xs);
}

.card p {
  font-size: 17px;
  line-height: 1.47;
  color: var(--ink-muted-80);
}

.card__link {
  display: inline-block;
  margin-top: var(--space-md);
}

/* Numbered process steps */

.steps {
  counter-reset: step;
  list-style: none;
  margin: var(--space-xxl) 0 0;
  padding: 0;
  display: grid;
  gap: var(--space-xl);
}

.steps li {
  counter-increment: step;
  padding-left: 56px;
  position: relative;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: var(--rounded-pill);
  background: var(--primary);
  color: var(--on-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.224px;
}

/* Stat / fact rows */

.facts {
  list-style: none;
  margin: var(--space-xl) 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.facts li {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--space-lg);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--hairline);
}

.facts dt,
.facts__label {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.29;
  letter-spacing: -0.224px;
  color: var(--ink-muted-48);
}

/* ============================================================
   Forms
   ============================================================ */

.form {
  margin-top: var(--space-xl);
  text-align: left;
}

.form__row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.field {
  display: block;
  margin-bottom: var(--space-lg);
}

.field__label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.29;
  letter-spacing: -0.224px;
  color: var(--ink-muted-80);
  margin-bottom: var(--space-xs);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.374px;
  color: var(--ink);
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-md);
  padding: 12px 16px;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field--pill input {
  border-radius: var(--rounded-pill);
  padding: 12px 20px;
  height: 44px;
}

.form__note {
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: -0.12px;
  color: var(--ink-muted-48);
  margin-top: var(--space-md);
}

.signup {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
  max-width: 520px;
}

.signup input {
  flex: 1;
  font-family: var(--font-text);
  font-size: 17px;
  letter-spacing: -0.374px;
  height: 44px;
  padding: 12px 20px;
  border-radius: var(--rounded-pill);
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--canvas);
  color: var(--ink);
}

.tile--centered .signup {
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
  background: var(--canvas-parchment);
  color: var(--ink-muted-80);
  padding: 64px var(--space-lg);
}

.footer__inner {
  max-width: 1024px;
  margin: 0 auto;
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.footer h4 {
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.29;
  letter-spacing: -0.224px;
  color: var(--ink);
  margin: 0 0 var(--space-xs);
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer li,
.footer p {
  font-size: 14px;
  line-height: 2.0;
  letter-spacing: -0.224px;
  color: var(--ink-muted-80);
}

.footer__legal {
  margin-top: var(--space-xxl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--hairline);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: -0.12px;
  color: var(--ink-muted-48);
}

.footer__legal p + p {
  margin-top: var(--space-xxs);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1023px) {
  .split {
    gap: var(--space-xxl);
  }
}

@media (max-width: 900px) {
  /* Phone drops first — the CTA pill still leads to it. */
  .site-nav__phone {
    display: none;
  }
}

@media (max-width: 833px) {
  .hero h1 {
    font-size: 40px;
  }

  .tile h2 {
    font-size: 34px;
    letter-spacing: -0.374px;
  }

  .grid--3,
  .grid--2 {
    grid-template-columns: 1fr;
  }

  .split {
    grid-template-columns: 1fr;
    gap: var(--space-xxl);
  }

  .split .photo-frame {
    margin: 0 auto;
  }

  .footer__cols {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .facts li {
    grid-template-columns: 1fr;
    gap: var(--space-xxs);
  }
}

@media (max-width: 734px) {
  .tile {
    padding: var(--space-xxl) var(--space-lg);
  }

  /* Below tablet the "Contact" link does the CTA's job — drop the pill
     rather than crowd the bar. */
  .site-nav__actions {
    display: none;
  }

  .site-nav__inner {
    gap: var(--space-md);
  }

  .site-nav__links {
    gap: var(--space-md);
  }

  .hero__lead,
  .tile__lead {
    font-size: 24px;
  }

  .form__row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .signup {
    flex-direction: column;
  }

  .signup .button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .site-nav__brand {
    font-size: 17px;
    letter-spacing: -0.374px;
  }

  .site-nav__links {
    gap: var(--space-sm);
  }

  /* Four links no longer fit beside the wordmark. Drop "Home" — the
     wordmark already goes there. */
  .site-nav__links a:first-child {
    display: none;
  }

  .hero h1 {
    font-size: 34px;
  }

  .tile h2 {
    font-size: 28px;
  }
}
