/* Direction C: the category standard, played straight at Goodwood Marine's finish.
   Photo hero, partner band, photo category cards, navy closing bands. */

:root {
  --aisl-red: #ec1b1e;
  --aisl-blue: #323795;
  --aisl-navy: #243673;
  --aisl-amber: #ffa800;

  --navy: #1b2757;
  --navy-deep: #121a3d;
  --red: #d71920;
  --red-hover: #b5141a;
  --canvas: #f4f6fa;
  --surface: #ffffff;
  --ink: #141b38;
  --ink-2: #4b5375;
  --on-navy-2: #c5cbe4;
  --line: #e1e5ef;

  --font-display: "Red Hat Display", "Segoe UI", sans-serif;
  --font-body: "Red Hat Text", "Segoe UI", sans-serif;

  --step--1: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1: clamp(1.1875rem, 1.1rem + 0.35vw, 1.375rem);
  --step-2: clamp(1.5rem, 1.3rem + 0.8vw, 2rem);
  --step-3: clamp(1.875rem, 1.5rem + 1.6vw, 2.75rem);
  --step-4: clamp(2.5rem, 1.8rem + 3vw, 4.25rem);

  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6.5rem;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(20, 27, 70, 0.06), 0 8px 24px -12px rgba(20, 27, 70, 0.18);
  --shadow-hover: 0 2px 4px rgba(20, 27, 70, 0.08), 0 18px 36px -14px rgba(20, 27, 70, 0.3);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font-body); font-size: var(--step-0); line-height: 1.6; color: var(--ink); background: var(--canvas); font-variant-numeric: tabular-nums; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
::selection { background: var(--aisl-navy); color: #fff; }
:focus-visible { outline: 3px solid var(--aisl-amber); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 50; background: var(--aisl-amber); color: var(--ink); padding: 0.75rem 1rem; font-weight: 600; border-radius: var(--radius-sm); }
.skip-link:focus { top: 1rem; }
.icon { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 48px; padding: 0 1.4rem; border-radius: var(--radius-sm); border: 0; cursor: pointer; font: 600 var(--step-0)/1 var(--font-body); text-decoration: none; transition: background-color 160ms, box-shadow 160ms, transform 160ms var(--ease-out); }
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-hover); }
.btn-outline-light { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.04); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); }
.btn-outline { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); background: var(--surface); }
.btn-outline:hover { box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.btn-small { min-height: 44px; font-size: var(--step--1); padding: 0 1rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, 0.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: var(--space-3); min-height: 76px; }
.brand img { height: 50px; width: auto; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 0.6rem 0.8rem; border-radius: var(--radius-sm); text-decoration: none; font-weight: 500; color: var(--ink-2); }
.site-nav a:hover { color: var(--ink); background: var(--canvas); }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.header-phone { display: inline-flex; gap: 0.4rem; align-items: center; font-weight: 600; text-decoration: none; white-space: nowrap; }
.menu-toggle { display: none; margin-left: auto; min-height: 44px; background: none; border: 1px solid var(--line); border-radius: var(--radius-sm); font: 600 var(--step--1) var(--font-body); color: var(--ink); padding: 0 0.85rem; cursor: pointer; align-items: center; gap: 0.4rem; }
@media (max-width: 1080px) { .header-phone span { display: none; } }
@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .site-nav { position: absolute; inset: 100% 0 auto 0; background: var(--surface); border-bottom: 1px solid var(--line); display: none; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; padding: 0.5rem 1rem 1rem; }
  .header-row .btn-red, .header-phone { display: none; }
  .brand img { height: 42px; }
  .header-row { min-height: 64px; }
}

/* Hero */
.hero { position: relative; isolation: isolate; color: #fff; background: var(--navy-deep); }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14, 20, 52, 0.92) 0%, rgba(14, 20, 52, 0.75) 42%, rgba(14, 20, 52, 0.2) 100%); }
.hero-inner { min-height: min(760px, calc(100dvh - 76px)); display: flex; flex-direction: column; justify-content: center; padding: var(--space-6) 0; }
.hero h1 { font-size: var(--step-4); font-weight: 700; max-width: 14ch; }
.hero .lead { font-size: var(--step-1); line-height: 1.5; color: #dfe3f3; max-width: 44ch; margin-top: var(--space-3); }
.pill { display: inline-flex; align-items: center; gap: 0.5rem; align-self: flex-start; margin-top: var(--space-3); padding: 0.55rem 0.9rem; border-radius: 999px; background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); font-size: var(--step--1); }
.pill strong { font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: var(--space-4); }

/* Partner band */
.partners { background: var(--surface); border-bottom: 1px solid var(--line); }
.partners ul { list-style: none; margin: 0; padding: var(--space-4) 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-4); align-items: center; }
.partners img { max-height: 52px; width: auto; margin-inline: auto; }

/* Sections */
.section { padding: var(--space-6) 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--space-4); align-items: end; margin-bottom: var(--space-5); }
.section-head h2 { font-size: var(--step-3); font-weight: 700; }
.section-head p { color: var(--ink-2); max-width: 52ch; }

/* Category cards */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.card { position: relative; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: box-shadow 220ms var(--ease-out), transform 220ms var(--ease-out); }
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .card, .card:hover { transform: none; transition: none; } }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #fff; }
.card .contain { object-fit: contain; padding: 0.75rem; }
.card-body { padding: 1.25rem 1.4rem 1.4rem; display: flex; flex-direction: column; gap: 0.45rem; flex: 1; }
.card h3 { font-size: var(--step-1); font-weight: 700; }
.card p { color: var(--ink-2); font-size: var(--step--1); }
.card .brand-note { color: var(--red); font-weight: 600; font-size: 0.8125rem; }
.card a.link { margin-top: auto; padding-top: 0.6rem; font-weight: 600; font-size: var(--step--1); text-decoration: none; display: inline-flex; gap: 0.35rem; align-items: center; }
.card a.link::after { content: ""; position: absolute; inset: 0; }
.card a.link .icon { color: var(--red); transition: transform 200ms var(--ease-out); }
.card:hover a.link .icon { transform: translateX(3px); }
.card.dark { background: var(--navy); color: #fff; }
.card.dark p { color: var(--on-navy-2); }
.card.dark .card-body { justify-content: center; padding: 2rem 1.6rem; }

/* Durlon feature */
.feature { background: var(--surface); }
.feature-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-5); align-items: center; }
.feature-copy img { width: 230px; }
.feature-copy p { color: var(--ink-2); margin-top: var(--space-3); max-width: 46ch; }
.feature-copy .btn { margin-top: var(--space-3); }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.tile { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.tile img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.tile div { padding: 0.9rem 1rem 1rem; }
.tile h3 { font-size: var(--step-0); font-weight: 700; letter-spacing: -0.01em; }
.tile p { color: var(--ink-2); font-size: 0.8125rem; margin-top: 0.15rem; }

/* Service band */
.band { position: relative; isolation: isolate; color: #fff; background: var(--navy); overflow: hidden; }
.band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0.35; filter: grayscale(0.4); }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(27, 39, 87, 0.96) 30%, rgba(27, 39, 87, 0.55)); }
.band-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--space-5); padding: var(--space-6) 0; align-items: center; }
.band h2 { font-size: var(--step-3); font-weight: 700; }
.band p { color: var(--on-navy-2); margin-top: var(--space-2); max-width: 56ch; }
.band .lead { color: #fff; font-size: var(--step-1); line-height: 1.5; margin-top: var(--space-3); }
.stat { justify-self: end; text-align: left; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); border-radius: var(--radius); padding: 1.6rem 1.8rem; max-width: 22rem; backdrop-filter: blur(6px); }
.stat strong { font-family: var(--font-display); font-size: var(--step-4); line-height: 1; display: block; }
.stat span { color: var(--on-navy-2); font-size: var(--step--1); }

/* Solutions split */
.split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-5); align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow-hover); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.split h2 { font-size: var(--step-3); font-weight: 700; }
.split .lead { color: var(--ink-2); margin-top: var(--space-2); max-width: 52ch; }
.checks { list-style: none; padding: 0; margin: var(--space-3) 0 0; display: grid; gap: 0.9rem; }
.checks li { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; }
.checks .icon { color: var(--red); margin-top: 0.15rem; }
.checks strong { display: block; font-family: var(--font-display); }
.checks span { color: var(--ink-2); font-size: var(--step--1); }

/* Resources */
.resources { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.res-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem 1.6rem; }
.res-card h3 { font-size: var(--step-1); font-weight: 700; margin-bottom: 0.5rem; }
.res-list { list-style: none; margin: 0; padding: 0; }
.res-list li + li { border-top: 1px solid var(--line); }
.res-list a { display: grid; grid-template-columns: auto 1fr auto; gap: 0.9rem; align-items: center; padding: 0.9rem 0; text-decoration: none; }
.res-list .file { width: 40px; height: 40px; border-radius: var(--radius-sm); background: #fde8e8; color: var(--red); display: grid; place-items: center; }
.res-list strong { display: block; font-weight: 600; }
.res-list small { color: var(--ink-2); font-size: 0.8125rem; }
.res-list a:hover strong { text-decoration: underline; }
.res-list .icon.dl { color: var(--ink-2); }

/* Blog */
.posts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.post { position: relative; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem 1.6rem; transition: box-shadow 220ms var(--ease-out); }
.post:hover { box-shadow: var(--shadow-hover); }
.post time { color: var(--ink-2); font-size: var(--step--1); }
.post h3 { font-size: var(--step-1); font-weight: 700; margin-top: 0.4rem; line-height: 1.25; }
.post a { text-decoration: none; }
.post a::after { content: ""; position: absolute; inset: 0; }

/* Contact band */
.contact { background: var(--navy-deep); color: #fff; padding: var(--space-6) 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-5); }
.contact h2 { font-size: var(--step-3); font-weight: 700; }
.contact .intro { color: var(--on-navy-2); margin-top: var(--space-2); max-width: 36ch; }
.contact .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: var(--space-4); }
.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.person { background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); border-radius: var(--radius); padding: 1.25rem 1.4rem; }
.person .area { color: var(--on-navy-2); font-size: var(--step--1); }
.person .name { font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); }
.person .role { color: var(--on-navy-2); font-size: var(--step--1); }
.person ul { list-style: none; padding: 0; margin: 0.6rem 0 0; display: grid; gap: 0.2rem; font-size: var(--step--1); }
.person a { display: inline-flex; gap: 0.45rem; align-items: center; min-height: 32px; text-decoration: none; }
.person a:hover { text-decoration: underline; }

/* Footer */
.site-footer { background: var(--navy-deep); border-top: 1px solid rgba(255, 255, 255, 0.08); color: var(--on-navy-2); padding: var(--space-5) 0 var(--space-3); font-size: var(--step--1); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: var(--space-4); }
.footer-logo { display: inline-block; background: #fff; padding: 0.55rem 0.7rem; border-radius: var(--radius-sm); }
.footer-logo img { height: 44px; width: auto; }
.site-footer h2 { font-family: var(--font-body); font-size: var(--step--1); color: #fff; font-weight: 600; margin-bottom: 0.75rem; letter-spacing: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, 0.08); margin-top: var(--space-4); padding-top: var(--space-3); padding-right: 5rem; }

.livechat-slot { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: var(--aisl-navy); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3); border: 2px solid #fff; }

/* Category page */
.page-hero { position: relative; isolation: isolate; color: #fff; background: var(--navy-deep); }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14, 20, 52, 0.94) 10%, rgba(14, 20, 52, 0.6)); }
.page-hero .wrap { padding: var(--space-5) 0; }
.crumbs { font-size: var(--step--1); color: var(--on-navy-2); }
.crumbs ol { list-style: none; display: flex; gap: 0.4rem; padding: 0; margin: 0 0 var(--space-3); flex-wrap: wrap; }
.crumbs li + li::before { content: "/"; margin-right: 0.4rem; opacity: 0.6; }
.page-hero h1 { font-size: var(--step-4); font-weight: 700; max-width: 16ch; }
.page-hero .lead { color: #dfe3f3; font-size: var(--step-1); line-height: 1.5; margin-top: var(--space-3); max-width: 52ch; }
.page-hero .hero-actions { margin-top: var(--space-3); }

.distributor { display: flex; align-items: center; gap: var(--space-4); background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem 1.6rem; margin-top: calc(var(--space-4) * -1); position: relative; }
.distributor img { width: 180px; flex: none; }
.distributor p { color: var(--ink-2); font-size: var(--step--1); }

.product-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.pcard { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.pcard img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.pcard-body { padding: 1.2rem 1.35rem 1.35rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.pcard h3 { font-size: var(--step-1); font-weight: 700; line-height: 1.2; }
.pcard p { color: var(--ink-2); font-size: var(--step--1); }
.specs { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.specs li { font-size: 0.8125rem; font-weight: 600; padding: 0.3rem 0.6rem; background: var(--canvas); border-radius: 999px; color: var(--ink); }
.pcard-actions { margin-top: auto; padding-top: 0.4rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.pcard-actions label { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 44px; padding: 0 0.9rem; border-radius: var(--radius-sm); box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 600; font-size: var(--step--1); cursor: pointer; }
.pcard-actions label:has(input:checked) { box-shadow: inset 0 0 0 1.5px var(--red); color: var(--red); background: #fff5f5; }
.pcard-actions input { accent-color: var(--red); width: 18px; height: 18px; }
.note-limits { margin-top: var(--space-4); padding: 1rem 1.25rem; background: var(--surface); border-radius: var(--radius-sm); font-size: var(--step--1); color: var(--ink-2); max-width: 80ch; box-shadow: inset 0 0 0 1px var(--line); }
.note-limits strong { color: var(--ink); }

.form-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-hover); padding: 2rem; }
.field { display: grid; gap: 0.3rem; margin-bottom: 0.9rem; }
.field label { font-weight: 600; font-size: var(--step--1); }
.field input, .field textarea { width: 100%; min-height: 48px; padding: 0.65rem 0.85rem; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1px solid #b9bfd3; border-radius: var(--radius-sm); }
.field textarea { min-height: 6rem; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #676e8c; }
.field input:hover, .field textarea:hover { border-color: var(--ink-2); }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--aisl-amber); outline-offset: 0; border-color: var(--ink); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--red); }
.field .error { color: #b3141a; font-size: var(--step--1); font-weight: 600; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 0.9rem; }
.selected { min-height: 2rem; display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.9rem; font-size: var(--step--1); color: var(--ink-2); }
.selected span { background: #fff5f5; color: var(--red); font-weight: 600; padding: 0.25rem 0.6rem; border-radius: 999px; }

@media (max-width: 960px) {
  .section-head, .feature-grid, .band-grid, .split, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .cards, .product-cards, .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partners ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { justify-self: start; }
}
@media (max-width: 640px) {
  .cards, .product-cards, .posts, .resources, .people, .tiles { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .section, .contact { padding: var(--space-5) 0; }
  .hero-inner { padding: var(--space-5) 0; min-height: 0; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .distributor { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .form-card { padding: 1.5rem 1.25rem; }
}
