/* Katy Rouault portfolio: built from the Figma design "Seaside – original fonts" */

:root {
  --navy: #1f3557;
  --background: #f7f3ea;
  --surface: #fffdf8;
  --sky: #b8d2e6;
  --slate: #4e5b6e;
  --ink: #2a3b57;
  --muted: #4e5b6e;
  --line: #e6dfd0;
  --accent: #b5362b;
  --blue-light: #dce8f2;
  --menu: #092947;

  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  /* fluid: mobile size at 375px wide, desktop size at 1280px wide */
  --fluid: calc((100vw - 375px) / 905);
  --pad-x: clamp(24px, 9.375vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, p, figure, blockquote, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; min-width: 0; object-fit: cover; }
.col > img { align-self: center; }
.row:not([style*="align-items"]) > img { align-self: flex-start; }
main { display: block; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--surface); color: var(--navy); padding: 10px 16px; border-radius: 8px;
  font: 500 16px/1 var(--sans);
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- Type ---------- */
.t-display  { font: 400 clamp(44px, calc(44px + 28 * (100vw - 375px) / 905), 72px)/1.05 var(--serif); letter-spacing: -0.01em; }
.t-heading-1{ font: 400 clamp(34px, calc(34px + 18 * (100vw - 375px) / 905), 52px)/1.10 var(--serif); letter-spacing: -0.005em; }
.t-heading-2{ font: 400 clamp(26px, calc(26px + 10 * (100vw - 375px) / 905), 36px)/1.20 var(--serif); }
.t-heading-3{ font: 600 clamp(18px, calc(18px + 2 * (100vw - 375px) / 905), 20px)/1.30 var(--sans); }
.t-card-title{ font: 400 28px/1.2 var(--serif); }
.t-lead     { font: 400 clamp(19px, calc(19px + 3 * (100vw - 375px) / 905), 22px)/1.45 var(--sans); }
.t-body     { font: 400 clamp(16px, calc(16px + 1 * (100vw - 375px) / 905), 17px)/1.65 var(--sans); }
.t-caption  { font: italic 400 15px/1.5 var(--sans); }
.t-eyebrow  { font: 600 14px/1.3 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; }
.t-nav      { font: 500 16px/1.3 var(--sans); }

/* ---------- Layout (mirrors Figma auto layout) ---------- */
.col, .row, .hrow {
  /* spacing vars are per-element (from Figma); stop them inheriting into children */
  --g: 0px; --cg: initial; --pt: 0px; --pr: 0px; --pb: 0px; --pl: 0px;
}
.col, .row, .hrow {
  display: flex;
  gap: var(--g, 0px);
  padding: var(--pt, 0px) var(--pr, 0px) var(--pb, 0px) var(--pl, 0px);
}
.col { flex-direction: column; }
.row, .hrow { flex-direction: row; }
.wrap { flex-wrap: wrap; row-gap: var(--cg, var(--g, 0px)); }
.col > * { width: 100%; }
.col > .btn, .col > .hug, .col > .hrow, .col > .pill, .col > .back-link { width: auto; }
.col > .hrow.wrap, .col > .row { width: 100%; }
.row > *, .hrow > * { min-width: 0; }

.band {
  width: 100%;
  padding: var(--pt, 0px) var(--pad-x) var(--pb, 0px) var(--pad-x);
}
/* side-by-side sections (Home hero) stay in the same 1040px column as the rest of the site on wide screens */
.band.row { padding-left: max(var(--pad-x), calc((100% - 1040px) / 2)); padding-right: max(var(--pad-x), calc((100% - 1040px) / 2)); }

.hug { align-self: center; }
.dot { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.pill { align-self: flex-start; }
.back-link { align-self: flex-start; min-height: 44px; }
.back-link:hover .t-nav { color: var(--accent) !important; text-decoration: underline; text-underline-offset: 4px; }
figure { margin: 0; }
blockquote { margin: 0; }

/* Case study images: one consistent size (change --fig-w to resize them all) */
:root { --fig-w: 680px; }
.fig-img { max-width: var(--fig-w); }

/* sections whose content should stay in the 1040px column on wide screens */
.contained > * { max-width: 1040px; margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto; align-self: flex-start;
  min-height: 44px; padding: 14px 24px; border-radius: 999px;
  font: 500 16px/1 var(--sans); white-space: nowrap;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.hug + .btn, .col[style*="align-items:center"] > .btn { align-self: center; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--navy); }
.btn-outline { border: 1.5px solid var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.quote-card .btn-primary:hover { background: var(--sky); color: var(--navy); }

/* ---------- Cards ---------- */
.card, .featured, .contact-card { transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease; }
.card:hover { box-shadow: 0 14px 34px -6px rgba(9,41,71,0.20) !important; border-style: solid !important; }
.card:hover .card-link { color: var(--accent) !important; text-decoration: underline; text-underline-offset: 4px; }
.featured:hover { box-shadow: 0 14px 34px -6px rgba(9,41,71,0.22); }
.featured:hover .btn-primary { background: var(--navy); }
.contact-card:hover { border-color: var(--accent) !important; box-shadow: 0 14px 34px -6px rgba(9,41,71,0.16); }

/* ---------- Palette swatches (Folio) ---------- */
.swatch { width: auto !important; flex: 0 0 auto; }
.swatch .box { width: 64px; height: 64px; border-radius: 12px; border: 1px solid rgba(31,53,87,0.12); }

/* ---------- Placeholders (eBay) ---------- */
.placeholder { text-align: center; }

/* ---------- Awning ---------- */
.awning {
  width: 100%; height: 60px;
  background:
    radial-gradient(circle 32px at 32px 28px, var(--sky) 31.5px, transparent 32px) 0 0 / 128px 60px repeat-x,
    radial-gradient(circle 32px at 96px 28px, var(--surface) 31.5px, transparent 32px) 0 0 / 128px 60px repeat-x,
    linear-gradient(90deg, var(--sky) 0 64px, var(--surface) 64px 128px) 0 0 / 128px 28px repeat-x;
}

/* ---------- About band (home) ---------- */
.about-band {
  display: flex; justify-content: center;
  padding: 72px var(--pad-x);
  background: repeating-linear-gradient(90deg, var(--sky) 0 44px, var(--surface) 44px 88px);
}
.quote-card { margin-inline: auto; }

/* ---------- Header ---------- */
.site-header { background: var(--navy); color: var(--surface); position: relative; z-index: 50; }
.header-inner {
  height: 80px; padding: 0 var(--pad-x);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo { font: 400 32px/1 var(--serif); color: #fff; white-space: nowrap; }
.logo:hover { color: var(--sky); }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { font: 500 16px/1 var(--sans); color: #fff; padding: 14px 0; display: inline-block; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--sky); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }
.menu-btn {
  display: none; width: 44px; height: 44px; padding: 0; margin: 0;
  background: none; border: 0; color: #fff; cursor: pointer; border-radius: 8px;
  align-items: center; justify-content: center;
}
.menu-btn svg { width: 28px; height: 28px; }
.menu-btn .icon-close { display: none; }
.menu-btn[aria-expanded="true"] .icon-open { display: none; }
.menu-btn[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy); color: var(--surface);
  padding: 56px var(--pad-x);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap;
}
.footer-cta { display: flex; flex-direction: column; gap: 8px; }
.footer-cta .t-heading-2 { color: var(--accent); }
.footer-email { color: var(--sky); font: 400 17px/1.5 var(--sans); }
.footer-email:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-links { display: flex; gap: 32px; flex-wrap: wrap; }
.footer-links a { color: #fff; font: 500 16px/1 var(--sans); padding: 14px 0; display: inline-block; }
.footer-links a:hover { color: var(--sky); text-decoration: underline; text-underline-offset: 6px; }

/* ---------- Tablet and below: rows wrap ---------- */
@media (max-width: 1023px) {
  .row { flex-wrap: wrap; row-gap: var(--cg, var(--g, 0px)); }
}

/* ---------- Phone ---------- */
@media (max-width: 767px) {
  .site-header { position: sticky; top: 0; }
  .header-inner { height: 60px; padding: 0 24px; position: relative; }
  .logo { font-size: 28px; }
  .menu-btn { display: inline-flex; margin-right: -8px; }
  .site-nav {
    display: none;
    position: absolute; top: calc(100% - 4px); right: 16px;
    width: 200px; background: var(--menu); border-radius: 12px;
    box-shadow: 0 16px 36px -6px rgba(0,0,0,0.35); padding: 8px 0;
  }
  .site-nav.open { display: block; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links a { display: block; padding: 12px 20px; font-size: 16px; line-height: 1.25; }

  .band {
    padding-top: min(calc(var(--pt, 0px) * 0.6), 40px);
    padding-bottom: min(calc(var(--pb, 0px) * 0.6), 40px);
    padding-left: 24px; padding-right: 24px;
  }
  .band.row { padding-left: 24px; padding-right: 24px; }
  .col, .row, .hrow { gap: min(var(--g, 0px), 22px); }
  .wrap { row-gap: min(var(--cg, var(--g, 0px)), 22px); }

  .row:not(.imgrow) { flex-direction: column; flex-wrap: nowrap; }
  .row:not(.imgrow) > * { flex: 0 0 auto !important; width: 100% !important; min-width: 0 !important; }
  .row:not(.imgrow) > img { align-self: center; }

  .imgrow { flex-wrap: wrap; justify-content: center; }
  .imgrow > .phone { flex: 1 1 110px !important; max-width: 200px; }
  .imgrow > img:not(.phone) { flex: 1 1 100% !important; min-width: 0 !important; max-width: 100% !important; }
  .imgrow > .arrow { display: none; }
  .phones, .imgrow[style*="background"] { padding: 28px 16px !important; }
  .phones .imgrow { padding: 0 !important; }

  .pcard { padding: 20px !important; }
  .card .pcard { padding: 20px !important; }
  .featured { gap: 20px !important; }
  .quote-card { padding: 32px 24px !important; }
  .about-band { padding: 48px 24px; background: repeating-linear-gradient(90deg, var(--sky) 0 32px, var(--surface) 32px 64px); }

  .awning {
    height: 40px;
    background:
      radial-gradient(circle 20px at 20px 18px, var(--sky) 19.5px, transparent 20px) 0 0 / 80px 40px repeat-x,
      radial-gradient(circle 20px at 60px 18px, var(--surface) 19.5px, transparent 20px) 0 0 / 80px 40px repeat-x,
      linear-gradient(90deg, var(--sky) 0 40px, var(--surface) 40px 80px) 0 0 / 80px 18px repeat-x;
  }

  .hrow .btn { padding: 14px 20px; }
  .pill { max-width: 100%; }
  .pill > p { flex: 0 1 auto !important; }
  .swatch .box { width: 52px; height: 52px; }

  .site-footer { flex-direction: column; align-items: flex-start; padding: 48px 24px; gap: 28px; }
  .footer-links { flex-direction: column; gap: 0; }
  .footer-links a { padding: 12px 0; }
}

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