/* Amarrela — site styles
   Brand: Dark Blue #07264C, Light Stone #BCA377, White; greys Graphite #6E7180, Cloud #EDEFF7 (Brand Guidelines 2026)
   Content width 1440px for header, sections and footer (owner's large-screen rule, 30/11/2026)
   Contrast: Light Stone text only on Dark Blue (6.2:1). On White it is 2.4:1, so light sections use Dark Blue text. */

@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-variable-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #07264C;
  --deep: #041A35;
  --stone: #BCA377;
  --stone-hover: #CDB98F;
  --white: #FFFFFF;
  --cloud: #EDEFF7;
  --graphite: #6E7180;
  --steel: #BCBFCC;
  --on-navy: #C9CFDC;
  --line-on-navy: rgba(255, 255, 255, .14);
  --error: #B3261E;
  --content: 1440px;
  --gl: max(5vw, 16px, env(safe-area-inset-left, 0px));
  --gr: max(5vw, 16px, env(safe-area-inset-right, 0px));
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
* { min-width: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--navy); font: 400 17px/1.6 "Geist", Arial, sans-serif; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.03em; line-height: 1.08; margin: 0; }
p { margin: 0 0 1em; }
section[id] { scroll-margin-top: var(--header-h); }

.wrap { max-width: var(--content); margin-inline: auto; }
.band { padding-block: clamp(56px, 7vw, 104px); padding-left: var(--gl); padding-right: var(--gr); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Skip link */
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 20; background: var(--white); color: var(--navy); padding: 12px 18px; border-radius: 4px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* Focus: Dark Blue on light grounds, Light Stone on Dark Blue grounds */
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.on-navy :focus-visible { outline-color: var(--stone); }
.on-navy .form :focus-visible { outline-color: var(--navy); }

/* Labels: Dark Blue on light grounds, Light Stone on Dark Blue */
.label { font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--navy); margin: 0 0 18px; }
.on-navy .label { color: var(--stone); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 4px; font: 600 16px/1 "Geist", Arial, sans-serif; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.btn-stone { background: var(--stone); color: var(--navy); }
.btn-stone:hover { background: var(--stone-hover); }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: var(--white); }
.btn-ghost:hover { border-color: var(--stone); color: var(--stone); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--deep); }
.btn[disabled] { opacity: .7; cursor: progress; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: var(--navy); border-bottom: 1px solid var(--line-on-navy); padding-block: 12px; padding-left: var(--gl); padding-right: var(--gr); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo img { width: 170px; height: auto; }
.nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 36px); font-size: 16px; font-weight: 500; color: var(--white); }
.nav a { text-decoration: none; padding-block: 10px; }
.nav a:not(.btn):hover { color: var(--stone); }
.nav .btn { min-height: 44px; padding: 0 18px; }

/* Hero */
.hero { background: var(--navy); color: var(--white); padding-bottom: 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: center; min-height: min(62svh, 560px); }
.hero-copy { padding-bottom: clamp(40px, 5vw, 72px); }
.hero h1 { font-size: clamp(40px, 5.4vw, 72px); max-width: 12ch; margin-bottom: 24px; }
.hero .lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--on-navy); max-width: 34em; margin-bottom: 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.mark { position: relative; align-self: stretch; min-height: 340px; }
.mark img { position: absolute; right: 0; bottom: 0; width: min(100%, 520px); height: auto; }

/* Route: Source to Deliver on one gold line */
.route { border-top: 1px solid var(--stone); padding-block: 36px 44px; }
.route ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: relative; }
.route ol::before { content: ""; position: absolute; left: 10%; right: 10%; top: 31px; height: 2px; background: var(--stone); }
.route li { display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; position: relative; }
.node { width: 64px; height: 64px; border-radius: 50%; background: var(--navy); border: 2px solid var(--stone); display: grid; place-items: center; }
.node svg { width: 30px; height: 30px; }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 6vw, 96px); align-items: stretch; }
.about h2 { font-size: clamp(32px, 3.6vw, 48px); margin-bottom: 28px; max-width: 16ch; }
.about-text p { color: var(--graphite); max-width: 33em; }
.about-text .intro { color: var(--navy); font-size: 19px; }
.promise { background: var(--navy); color: var(--white); padding: clamp(28px, 3vw, 44px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.promise h3 { font-size: clamp(28px, 2.8vw, 38px); }
.promise h3 span { color: var(--stone); }
.promise p { font-size: 14px; color: var(--on-navy); margin: 0; }

/* Services: a ledger of hairline rules, no boxes (owner, 30/11/2026: no card grid, no accent bars) */
.services { background: var(--white); padding-top: 0; }
/* Graphite on Cloud is 4.2:1 (fails AA for body text); on White it is 4.8:1, so the ledger sits on White */
.services h2 { font-size: clamp(32px, 3.6vw, 48px); margin-bottom: 40px; }
.ledger { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--navy); }
.ledger li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 20px; align-items: start; padding: 32px 32px 36px; border-bottom: 1px solid var(--steel); }
.ledger li:nth-child(3n+1) { padding-left: 0; }
.ledger li:nth-child(3n) { padding-right: 0; }
.ledger li:not(:nth-child(3n+1)) { border-left: 1px solid var(--steel); }
.ledger svg { width: 56px; height: 56px; }
.ledger h3 { font-size: 21px; margin: 4px 0 10px; }
.ledger p { color: var(--graphite); font-size: 16px; margin: 0; }

/* Contact */
.contact { background: var(--navy) url("../images/pattern-arcs.svg") no-repeat right -12% bottom -70% / min(900px, 90vw); color: var(--white); }
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); }
.contact h2 { font-size: clamp(40px, 4.6vw, 60px); margin-bottom: 24px; }
.contact .intro { color: var(--on-navy); max-width: 30em; margin-bottom: 36px; }
.mail { display: inline-flex; align-items: center; gap: 14px; font-size: 18px; font-weight: 500; text-decoration: none; padding-block: 8px; }
.mail svg { width: 28px; height: 28px; flex: none; }
.mail:hover { color: var(--stone); }

/* Form */
.form { background: var(--white); color: var(--navy); padding: clamp(24px, 3vw, 40px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; align-self: start; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full, .form .full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; }
.field label .opt { font-weight: 400; color: var(--graphite); }
.field input, .field textarea { font: 16px/1.4 "Geist", Arial, sans-serif; color: var(--navy); background: var(--white); border: 1px solid var(--graphite); border-radius: 4px; padding: 12px 14px; width: 100%; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--navy); }
.field [aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.field .err { font-size: 14px; color: var(--error); margin: 0; }
.field .err:empty { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; }
.form-note { font-size: 14px; color: var(--graphite); margin: 0; max-width: 32em; }
.form-note a { color: var(--navy); }
.form-status { font-size: 15px; margin: 0; }
.form-status:empty { display: none; }
.form-status.is-ok { color: var(--navy); font-weight: 600; }
.form-status.is-error { color: var(--error); font-weight: 600; }

/* Footer */
.footer { background: var(--deep); color: #AEB5C6; font-size: 14px; padding-block: 36px calc(36px + env(safe-area-inset-bottom, 0px)); padding-left: var(--gl); padding-right: var(--gr); }
.footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer .logo img { width: 150px; }
.footer p { margin: 0; max-width: 32em; }
.footer a { color: var(--white); }
.footer-links { display: flex; gap: 20px; margin-top: 8px; }
.ar { font-family: Arial, sans-serif; }

/* Text pages (privacy, 404) */
.page { padding-block: clamp(48px, 6vw, 88px); padding-left: var(--gl); padding-right: var(--gr); }
.page .wrap > * { max-width: 34em; }
.page h1 { font-size: clamp(36px, 4.4vw, 56px); margin-bottom: 24px; }
.page h2 { font-size: 24px; margin: 40px 0 12px; }
.page p, .page li { color: var(--graphite); }
.page ul { padding-left: 1.2em; margin: 0 0 1em; }
.page .updated { font-size: 14px; }

/* Tablet */
@media (max-width: 900px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { min-height: 0; padding-top: 8px; }
  .hero-copy { padding-bottom: 0; }
  .mark { min-height: 210px; }
  .mark img { right: auto; left: 50%; transform: translateX(-50%); width: min(70%, 300px); }
  .ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ledger li:nth-child(n) { padding: 28px 24px 32px; border-left: 0; }
  .ledger li:nth-child(odd) { padding-left: 0; }
  .ledger li:nth-child(even) { padding-right: 0; border-left: 1px solid var(--steel); }
}

/* Phone */
@media (max-width: 600px) {
  body { font-size: 16px; }
  :root { --header-h: 64px; }
  .nav a:not(.btn) { display: none; }
  .logo img { width: 150px; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .ledger { grid-template-columns: minmax(0, 1fr); }
  .ledger li:nth-child(n) { padding: 24px 0 28px; border-left: 0; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; }
  .ledger svg { width: 48px; height: 48px; }
  .route ol::before { top: 23px; }
  .node { width: 48px; height: 48px; }
  .node svg { width: 22px; height: 22px; }
  .route li { font-size: 13px; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
