/* =========================================================
   WLMack Design LLC — site styles
   See STYLE-GUIDE.md for the rules behind these values.
   ========================================================= */

:root {
  /* Brand colors */
  --blue: #164f90;        /* Primary */
  --blue-dark: #0f3a6b;   /* Primary hover / pressed */
  --gray: #bcbebe;        /* Secondary: borders, rules, backgrounds only */
  --gray-tint: #f1f2f2;   /* Light band background (tint of secondary) */
  --black: #000000;       /* Accent */
  --white: #ffffff;       /* Background */
  --text: #111111;        /* Body text */
  --text-muted: #4d4f4f;  /* Secondary text on white */

  /* Type */
  --font-head: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Lato", "Helvetica Neue", Arial, sans-serif;

  /* Spacing scale (8px base) */
  --s1: 0.5rem;   /* 8  */
  --s2: 1rem;     /* 16 */
  --s3: 1.5rem;   /* 24 */
  --s4: 2rem;     /* 32 */
  --s5: 3rem;     /* 48 */
  --s6: 4rem;     /* 64 */
  --s7: 6rem;     /* 96 */
  --section-y: clamp(4rem, 9vw, 7.5rem);

  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --header-h: 84px;
  --border: 2px solid var(--black);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--black);
  margin: 0 0 var(--s3);
}
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); }
h3, .h3 { font-size: clamp(1.2rem, 1.8vw, 1.4rem); }
p { margin: 0 0 var(--s2); }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--s2); top: -100px; z-index: 200;
  background: var(--black); color: var(--white); padding: var(--s1) var(--s2);
  font-family: var(--font-head); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: var(--s2); color: var(--white); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section { padding: var(--section-y) 0; }
.section--tint { background: var(--gray-tint); }
.section--blue { background: var(--blue); color: var(--white); }
.section--black { background: var(--black); color: var(--white); }
.section--blue h2, .section--blue h3,
.section--black h2, .section--black h3 { color: var(--white); }

/* Short blue rule above section headings — echoes the logo's box lines */
.rule-heading::before {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  background: var(--blue);
  margin-bottom: var(--s3);
}
.section--black .lead { color: rgba(255,255,255,.85); }
.section--black a, .section--blue a:not(.btn) { color: var(--white); }
.section--black a:hover, .section--blue a:not(.btn):hover { color: var(--gray); }
.section--blue .rule-heading::before,
.section--black .rule-heading::before,
.page-hero .rule-heading::before { background: var(--white); }

.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--text-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
  padding: 0.95rem 1.75rem;
  border: 2px solid transparent;
  border-radius: 0;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: var(--white); }
.btn-light { background: var(--white); color: var(--blue); border-color: var(--white); }
.btn-light:hover { background: var(--black); color: var(--white); border-color: var(--black); }
.btn-outline-light { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--blue); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s2); }

.text-link {
  font-family: var(--font-head);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  gap: 0.4em;
  align-items: center;
}
.text-link:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--gray); box-shadow: 0 4px 20px rgba(0,0,0,.05); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: var(--s3);
}
.brand { display: block; flex-shrink: 0; }
.brand img { width: 64px; height: 64px; object-fit: contain; }

.site-nav { display: flex; align-items: center; gap: var(--s4); }
.nav-list { list-style: none; display: flex; align-items: center; gap: var(--s4); }
@media (max-width: 1180px) {
  .site-nav, .nav-list { gap: var(--s3); }
  .nav-cta { padding-left: 1.25rem; padding-right: 1.25rem; }
}
.nav-list a {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--black);
  text-decoration: none;
  padding: var(--s1) 0;
  position: relative;
}
.nav-list > li > a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 2px;
  background: var(--blue);
  transition: right .2s ease;
}
.nav-list > li > a:hover::after,
.nav-list > li > a[aria-current="page"]::after { right: 0; }
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--blue); }

.has-sub { position: relative; display: flex; align-items: center; gap: 2px; }
.sub-toggle {
  background: none; border: 0; padding: 6px; cursor: pointer; color: var(--black);
  display: inline-flex; align-items: center;
}
.sub-toggle svg { width: 14px; height: 14px; transition: transform .2s ease; }
.has-sub.is-open .sub-toggle svg { transform: rotate(180deg); }
.sub-menu {
  list-style: none;
  position: absolute;
  top: 100%;
  left: -1.25rem;
  min-width: 260px;
  background: var(--white);
  border: var(--border);
  padding: var(--s1) 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.has-sub:hover .sub-menu,
.has-sub:focus-within .sub-menu,
.has-sub.is-open .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.sub-menu a { display: block; padding: 0.6rem 1.25rem; font-size: 0.95rem; }
.sub-menu a:hover { background: var(--gray-tint); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px; height: 44px;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle .bar {
  display: block; height: 3px; background: var(--black); margin: 5px 0;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(4) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .brand img { width: 54px; height: 54px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0; bottom: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: var(--s3);
    padding: var(--s3) var(--gutter) var(--s5);
    overflow-y: auto;
    border-top: 1px solid var(--gray);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .3s ease, visibility .3s;
  }
  .site-nav.is-open { transform: translateX(0); visibility: visible; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--gray); }
  .nav-list > li > a { display: block; padding: var(--s2) 0; font-size: 1.15rem; }
  .nav-list > li > a::after { display: none; }
  .has-sub { flex-wrap: wrap; justify-content: space-between; }
  .sub-toggle { display: none; }
  .sub-menu {
    position: static; width: 100%; border: 0; padding: 0 0 var(--s2) var(--s2);
    opacity: 1; visibility: visible; transform: none; min-width: 0;
  }
  .sub-menu a { padding: 0.45rem 0; color: var(--text-muted); }
  .nav-cta { width: 100%; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Home hero (split) ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: min(720px, calc(100vh - var(--header-h)));
}
.hero-panel {
  background: var(--blue);
  color: var(--white);
  display: flex;
  align-items: center;
  padding: var(--s6) var(--gutter);
}
.hero-content {
  max-width: 600px;
  margin-left: auto;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 3.4vw, 3.15rem);
  line-height: 1.12;
  margin-bottom: var(--s3);
}
.hero-sub {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: rgba(255,255,255,.88);
  margin-bottom: var(--s5);
  max-width: 34em;
}
.hero-media { position: relative; background: var(--gray-tint); overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute;
  right: 0;
  bottom: var(--s6);
  background: var(--white);
  border-left: 6px solid var(--blue);
  padding: var(--s3) var(--s4);
  box-shadow: var(--shadow);
  display: grid;
  gap: var(--s2);
}
.hero-badge li { list-style: none; display: flex; align-items: center; gap: var(--s2); line-height: 1.25; }
.hero-badge strong {
  font-family: var(--font-head);
  font-size: 2.1rem;
  color: var(--blue);
  min-width: 3.2ch;
}
.hero-badge span { font-size: 0.92rem; max-width: 16ch; color: var(--text); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-content { margin-left: 0; }
  .hero-media { aspect-ratio: 4 / 3; }
  .hero-badge { bottom: var(--s3); right: var(--s3); padding: var(--s2) var(--s3); }
  .hero-badge strong { font-size: 1.6rem; }
}
@media (max-width: 480px) {
  .hero-badge { left: var(--s2); right: var(--s2); bottom: var(--s2); grid-template-columns: 1fr 1fr; }
  .hero-badge span { font-size: 0.8rem; }
}

/* ---------- Inner page hero ---------- */
.page-hero {
  background: var(--blue);
  color: var(--white);
  padding: clamp(4rem, 9vw, 7rem) 0 clamp(3.5rem, 7vw, 5.5rem);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  /* Outline box motif from the logo */
  content: "";
  position: absolute;
  right: -60px;
  top: 50%;
  width: 340px;
  height: 340px;
  border: 3px solid rgba(255,255,255,.18);
  transform: translateY(-50%);
  pointer-events: none;
}
@media (max-width: 760px) { .page-hero::after { display: none; } }
.page-hero a:not(.btn) { color: inherit; }
.page-hero a:not(.btn):hover { color: var(--white); }
.page-hero h1 { color: var(--white); max-width: 18em; }
.page-hero--tall { min-height: 60vh; display: flex; align-items: center; }
.page-hero--tall .container { width: 100%; }
.thanks-mark {
  width: 72px; height: 72px;
  display: grid; place-items: center;
  border: 3px solid var(--white);
  margin-bottom: var(--s4);
}
.thanks-mark svg { width: 40px; height: 40px; color: var(--white); }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
.page-hero p { color: rgba(255,255,255,.9); font-size: clamp(1.1rem, 1.6vw, 1.25rem); max-width: 40em; }
.page-hero .btn-row { margin-top: var(--s4); }
.page-hero .eyebrow-note {
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  letter-spacing: .14em; font-size: .8rem; color: rgba(255,255,255,.75); margin-bottom: var(--s2);
}

/* ---------- Layout helpers ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.split--even { grid-template-columns: 1fr 1fr; }
@media (max-width: 800px) { .split, .split--even { grid-template-columns: 1fr; } }

.grid { display: grid; gap: var(--s4); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.container--narrow { max-width: 900px; }
.mt-5 { margin-top: var(--s5); }
.section-head { max-width: 760px; margin-bottom: var(--s5); }
.stack > * + * { margin-top: var(--s3); }
.center { text-align: center; }
.center.section-head { margin-left: auto; margin-right: auto; }
.center .rule-heading::before { margin-left: auto; margin-right: auto; }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: var(--border);
  padding: var(--s4);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative;
}
.card:hover { transform: translateY(-6px); box-shadow: 10px 10px 0 var(--blue); }
.card h3 { margin-bottom: 0; }
.card p { color: var(--text-muted); }
.card .text-link { margin-top: auto; padding-top: var(--s2); }
.card-link { color: inherit; text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; }
.card-link:hover { color: inherit; }
.icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: var(--blue);
  color: var(--white);
  margin-bottom: var(--s1);
}
.icon svg { width: 28px; height: 28px; }

/* ---------- Trust stats ---------- */
.trust-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: var(--border);
}
.trust-list li {
  padding: var(--s4) var(--s3) var(--s3) 0;
  border-right: 1px solid var(--gray);
  padding-left: var(--s3);
  font-size: 1rem;
  line-height: 1.45;
}
.trust-list li:first-child { padding-left: 0; }
.trust-list li:last-child { border-right: 0; }
.trust-num {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1;
  color: var(--blue);
  margin-bottom: var(--s2);
}
.trust-mark {
  display: block;
  width: 36px; height: clamp(2.4rem, 4vw, 3.4rem);
  color: var(--blue);
  margin-bottom: var(--s2);
}
@media (max-width: 960px) {
  .trust-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-list li { border-right: 0; border-bottom: 1px solid var(--gray); padding-left: 0; }
}
@media (max-width: 520px) { .trust-list { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 20em; margin: 0 auto var(--s4); }

/* ---------- Lists ---------- */
.check-list { list-style: none; display: grid; gap: var(--s2); }
.check-list li {
  position: relative;
  padding-left: 2.1rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.35em;
  width: 1.15rem; height: 1.15rem;
  background: var(--blue);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.check-list--2col { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s5); }
@media (max-width: 620px) { .check-list--2col { grid-template-columns: 1fr; } }

.term-list { display: grid; gap: var(--s3); }
.term-list > div { border-left: 4px solid var(--blue); padding-left: var(--s3); }
.term-list dt { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--black); }
.term-list dd { margin: 0.25rem 0 0; color: var(--text-muted); }

/* Numbered steps */
.steps { list-style: none; counter-reset: step; display: grid; gap: var(--s3); }
.steps.grid-4 { gap: var(--s4); }
.steps li {
  counter-increment: step;
  border-top: var(--border);
  padding-top: var(--s3);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.35;
  color: var(--black);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--blue);
  margin-bottom: var(--s2);
}
.steps--body li { font-family: var(--font-body); font-weight: 400; font-size: 1.05rem; }
.steps--body li::before { font-family: var(--font-head); font-weight: 700; }

/* Fact boxes (apparel) */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--s3); }
.fact { border: var(--border); padding: var(--s4); }
.fact-label { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; color: var(--blue); margin-bottom: var(--s1); }
.fact-value { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: var(--black); line-height: 1.35; }
@media (max-width: 620px) { .facts { grid-template-columns: 1fr; } }

.callout {
  border-left: 6px solid var(--blue);
  background: var(--gray-tint);
  padding: var(--s4);
  font-size: 1.1rem;
}

/* Small uppercase label above a heading (on white backgrounds) */
.eyebrow-label {
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  letter-spacing: .14em; font-size: .8rem; color: var(--blue); margin-bottom: var(--s2);
}

/* Bordered feature box with blue offset shadow */
.feature-box {
  border: var(--border);
  box-shadow: 12px 12px 0 var(--blue);
  padding: clamp(1.75rem, 5vw, 3.5rem);
  max-width: 900px;
}
.feature-box .lead { margin-bottom: var(--s3); }

/* ---------- Pricing / retainer plans ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); align-items: stretch; }
@media (max-width: 1000px) { .plans { grid-template-columns: 1fr; max-width: 640px; } }
.plan {
  border: var(--border);
  background: var(--white);
  padding: var(--s4);
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}
.plan--featured { border-color: var(--blue); border-width: 3px; box-shadow: 12px 12px 0 var(--blue); }
.plan-head { display: flex; align-items: center; gap: var(--s2); }
.plan-num {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--blue); color: var(--white);
  font-family: var(--font-head); font-weight: 700; font-size: 1.1rem;
}
.plan h3 { margin: 0; }
.plan-intro { color: var(--text-muted); }
.plan-label { font-family: var(--font-head); font-weight: 700; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--black); margin-bottom: var(--s2); }
.plan .check-list { gap: 0.6rem; font-size: 0.98rem; }
.plan-fit { font-size: 0.95rem; color: var(--text-muted); border-top: 1px solid var(--gray); padding-top: var(--s3); }
.plan-fit strong { font-family: var(--font-head); color: var(--black); }
.plan-price { margin-top: auto; border-top: var(--border); padding-top: var(--s3); }
.plan-price small { display: block; font-size: 0.9rem; color: var(--text-muted); }
.plan-price strong { display: block; font-family: var(--font-head); font-size: clamp(1.6rem, 2.6vw, 2.1rem); color: var(--blue); line-height: 1.2; }
.plan .btn { width: 100%; }

.platforms { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; margin-top: var(--s4); }
.platforms span { color: var(--blue); }

/* ---------- Portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; gap: var(--s1); margin-bottom: var(--s4); }
.filter-btn {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.65rem 1.2rem;
  background: var(--white);
  color: var(--black);
  border: 2px solid var(--black);
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.filter-btn:hover { border-color: var(--blue); color: var(--blue); }
.filter-btn[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: var(--white); }

.gallery {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s3);
}
@media (max-width: 960px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; } }
.gallery-item[hidden] { display: none; }
.gallery-item figure { margin: 0; }
.gallery-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--gray-tint);
  border: 1px solid var(--gray);
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover .gallery-thumb img { transform: scale(1.04); }
.gallery-item figcaption { padding-top: var(--s2); }
.gallery-cat { display: block; font-family: var(--font-head); font-weight: 700; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.gallery-title { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--black); }

/* ---------- Contact form ---------- */
.form-wrap { border: var(--border); padding: clamp(1.5rem, 4vw, 3rem); background: var(--white); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  color: var(--black);
}
.field .req { color: var(--blue); }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  border: 2px solid var(--gray);
  border-radius: 0;
  padding: 0.8rem 0.9rem;
  transition: border-color .2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23164f90' stroke-width='3'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 16px;
  padding-right: 2.5rem;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); }
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid { border-color: #b3261e; }
.form-actions { margin-top: var(--s4); }
.hidden-field { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: rgba(255,255,255,.8); padding: var(--s6) 0 var(--s4); font-size: 0.95rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--s5);
  padding-bottom: var(--s5);
  border-bottom: 1px solid rgba(255,255,255,.2);
}
.footer-logo img { width: 120px; height: 120px; filter: invert(1); }
.footer-heading {
  font-family: var(--font-head);
  font-size: 0.85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: var(--s2);
}
.footer-links { list-style: none; display: grid; gap: 0.55rem; }
.footer-links a { color: rgba(255,255,255,.8); text-decoration: none; }
.footer-links a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom { padding-top: var(--s3); font-size: 0.85rem; color: rgba(255,255,255,.6); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
