/* Bryan & Tailor, one-page site
   Editorial layout after the original B&T web blueprint:
   petrol header, thin left rail, serif titles, light Lato text,
   teal and petrol bands, thin rules, no boxes. */

/* Fonts are hosted with the site (no Google Fonts call, simpler for GDPR) */
@font-face { font-family: "Lato"; font-style: normal; font-weight: 300; font-display: swap; src: url("assets/fonts/lato-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/lato-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/lato-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/lora-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-style: italic; font-weight: 400; font-display: swap; src: url("assets/fonts/lora-latin-400-italic.woff2") format("woff2"); }

:root {
  --petrol: #224450;
  --teal: #76C9BF;
  --forest: #24615A;
  --sea: #419991;
  --ink: #2A3B40;
  --grey: #6B7A7E;
  --soft: #C9DCDF;
  --rule: #DCE5E6;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Lato", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font: 300 17px/1.7 var(--sans); overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 14px; }
strong { font-weight: 700; }

/* One title size for every section */
h2 { font: 400 clamp(30px, 3.2vw, 40px)/1.2 var(--serif); color: var(--petrol); margin: 0 0 40px; }
h3 { font: 400 clamp(24px, 2.4vw, 30px)/1.25 var(--serif); color: var(--sea); margin: 0; }

/* ---------- Header ---------- */
.hero { min-height: 100vh; background: var(--petrol); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 80px 24px 150px; position: relative; text-align: center; }
.hero-logo { width: min(440px, 78vw); margin-bottom: 80px; }
.hero-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 64px; }
.hero-nav a { color: #fff; text-decoration: none; font-size: 13px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; padding-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,.35); transition: border-color .2s, color .2s; }
.hero-nav a:hover, .hero-nav a:focus-visible { color: var(--teal); border-color: var(--teal); }
.scroll { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); color: #fff; text-decoration: none; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.scroll span { width: 1px; height: 40px; background: #fff; position: relative; }
.scroll span::after { content: ""; position: absolute; bottom: 0; left: -6px; width: 12px; height: 12px; border-right: 1px solid #fff; border-bottom: 1px solid #fff; transform: rotate(45deg); }

/* ---------- Page with left rail ---------- */
.page { display: grid; grid-template-columns: 76px minmax(0, 1fr); }
.rail { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; align-items: center; gap: 44px; padding-top: 32px; }
.rail-mark img { width: 30px; }
.rail a:not(.rail-mark) { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; text-decoration: none; color: var(--grey); }
.rail a:hover { color: var(--sea); }

main { border-left: 1px solid var(--rule); }
.sec { padding: 110px 8vw; max-width: 1240px; }

/* ---------- DNA ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.dna { list-style: none; padding: 0; margin: 0 0 36px; }
.dna li { font-size: 15px; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.dna li:first-child { border-top: 1px solid var(--rule); }
.c1 { color: var(--forest); } .c2 { color: var(--sea); } .c3 { color: #2E8A80; }
.aside { font: italic 400 16px/1.6 var(--serif); color: var(--grey); max-width: 460px; }
.venn { position: relative; width: 100%; max-width: 340px; aspect-ratio: 1 / 0.93; margin-left: auto; }
.v { position: absolute; width: 62%; aspect-ratio: 1; border-radius: 50%; }
.v1 { left: 19%; top: 0; background: #2F5F59; }
.v2 { left: 0; bottom: 0; background: rgba(65, 153, 145, .7); }
.v3 { right: 0; bottom: 0; background: rgba(118, 201, 191, .6); }

/* ---------- Teal statement band ---------- */
.band-teal { background: var(--teal); padding: 90px 8vw; }
.statement { font: italic 400 clamp(26px, 3vw, 38px)/1.35 var(--serif); color: var(--petrol); max-width: 820px; margin: 0; }

/* ---------- Expertise ---------- */
.offer { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 64px; padding: 56px 0; border-top: 1px solid var(--rule); scroll-margin-top: 24px; }
.offer:last-child { padding-bottom: 0; }
.sub { font-size: 19px; font-weight: 400; color: var(--petrol); margin: 6px 0 22px; }
.intro { font-size: 15px; color: var(--grey); margin-bottom: 14px; }
.plain { list-style: none; padding: 0; margin: 0; font-size: 15px; line-height: 1.9; }
#learning .plain { columns: 2; column-gap: 32px; }
.formats { font-size: 15px; color: var(--grey); margin-top: 18px; }
.formats em { font-family: var(--serif); color: var(--sea); }
.example { align-self: end; font-size: 15px; color: var(--grey); padding-bottom: 4px; }
.ex-label { font: italic 400 14px var(--serif); color: var(--sea); margin-bottom: 4px; }
.ex-title { font: 400 19px/1.35 var(--serif); color: var(--petrol); margin-bottom: 8px; }

/* ---------- Approach (petrol band) ---------- */
.band-petrol { position: relative; overflow: hidden; background: var(--petrol); color: #fff; padding: 110px 8vw; }
.band-petrol h2 { color: #fff; margin-bottom: 20px; }
.band-petrol .block { max-width: 640px; position: relative; }
.band-petrol .block + .block { margin-top: 56px; padding-top: 56px; border-top: 1px solid rgba(255,255,255,.18); }
.band-petrol p { color: var(--soft); }
.lede { font: 400 clamp(20px, 2vw, 24px)/1.5 var(--serif); }
.band-petrol .lede { color: #fff; }
.big-amp { position: absolute; right: -2%; bottom: -12%; width: min(36vw, 440px); opacity: .9; pointer-events: none; }

/* ---------- Credibility ---------- */
.lede.dark { color: var(--petrol); max-width: 720px; margin-bottom: 18px; }
.body { max-width: 640px; }
.sister { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 48px; align-items: center; margin-top: 64px; padding: 48px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.sister h3 { margin-bottom: 12px; }
.certs-title { margin: 56px 0 32px; }
.certs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
.certs figure { margin: 0; }
.certs img { height: 56px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; margin-bottom: 16px; }
.certs figcaption { font-size: 14px; line-height: 1.5; color: var(--grey); }
.certs strong { display: block; color: var(--petrol); font-weight: 700; }

/* ---------- Contact ---------- */
address { font-style: normal; font-size: 18px; font-weight: 400; line-height: 1.7; color: var(--petrol); margin-bottom: 40px; }
address a { text-decoration: none; }
address a:hover { color: var(--sea); }
.map { height: 360px; background: #EEF3F3; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(40%); }

/* ---------- Footer ---------- */
.footer { background: var(--petrol); color: #fff; padding: 64px 8vw 40px; }
.foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; }
.foot-nav { display: grid; grid-template-columns: repeat(2, auto); gap: 6px 72px; }
.foot-nav a { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; }
.foot-nav a:hover { color: var(--teal); }
.social { width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; display: grid; place-items: center; }
.social img { width: 16px; height: 16px; }
.foot-bottom { display: flex; align-items: flex-end; gap: 32px; margin-top: 56px; }
.foot-logo { width: 150px; }
.foot-bottom p { font-size: 12px; color: var(--soft); margin: 0 0 6px; }
.foot-bottom a { color: var(--soft); }

a:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

/* ---------- Tablet ---------- */
@media (max-width: 1000px) {
  .page { grid-template-columns: minmax(0, 1fr); }
  .rail { display: none; }
  main { border-left: 0; }
  .certs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  .sec, .band-petrol { padding: 72px 24px; }
  .band-teal { padding: 64px 24px; }
  .split, .offer, .sister { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .venn { margin: 0 auto; max-width: 260px; }
  #learning .plain { columns: 1; }
  .hero-nav { flex-direction: column; gap: 22px; }
  .hero-logo { margin-bottom: 56px; }
  .big-amp { width: 60vw; opacity: .25; }
  .map { height: 280px; }
  .foot { flex-direction: column; }
  .foot-bottom { flex-direction: column; align-items: flex-start; gap: 20px; }
}
@media (max-width: 480px) {
  .certs { grid-template-columns: minmax(0, 1fr); }
  .foot-nav { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
