/* Glass Direct site styles (redesign live 2026-11-28). One stylesheet for every page.
   Colours, fonts and the logo slash angle are the variables at the top. */
/* Fonts are self-hosted (assets/fonts, SIL Open Font License) */
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/barlow-400.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/barlow-500.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/barlow-600.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/barlow-condensed-600.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/barlow-condensed-700.woff2) format('woff2'); }

:root {
  --navy: #034078;
  --ink: #04192e;
  --deep: #021a33;
  --sky: #39b6e8;
  --sky-dark: #1d93c6;
  --paper: #f3f6f9;
  --line: #dbe3ea;
  --text: #1b2733;
  --muted: #5b6b7a;
  --wrap: 1180px;
  --gap-block: 72px;
  --pad-section: 112px;
  --slant: 18.4deg; /* the angle of the slashes in the GD logo, measured from vertical */
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 400 17px/1.6 Barlow, system-ui, sans-serif; color: var(--text); background: #fff; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: "Barlow Condensed", Barlow, sans-serif; font-weight: 700; line-height: 1.05; margin: 0; letter-spacing: .005em; }
p { margin: 0; }
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }

/* Slash mark taken from the logo: two leaning bars */
.slash { display: inline-flex; gap: 5px; margin-right: 14px; vertical-align: middle; }
.slash i { width: 5px; height: 18px; background: var(--sky); transform: skewX(var(--slant)); }
.slash i + i { opacity: .55; }
.eyebrow { font: 600 14px/1 Barlow, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--sky-dark); display: flex; align-items: center; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 28px; border-radius: 4px; font: 600 18px/1 Barlow, sans-serif; text-decoration: none; transition: background .15s, color .15s, border-color .15s; }
.btn-call { background: var(--sky); color: var(--ink); }
.btn-call:hover { background: #fff; }
.btn-line { border: 2px solid rgba(255,255,255,.55); color: #fff; }
.btn-line:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--ink); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* Header */
header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 32px; }
header .logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
header .logo img { height: 40px; width: auto; }
.wordmark { font: 700 26px/1 "Barlow Condensed", sans-serif; letter-spacing: .06em; color: var(--ink); text-transform: uppercase; }
nav.main-nav { display: flex; gap: 36px; margin-left: auto; }
nav.main-nav a { text-decoration: none; font-weight: 500; color: var(--muted); }
nav.main-nav a:hover, nav.main-nav a[aria-current] { color: var(--navy); }
header .btn { min-height: 48px; padding: 0 22px; font-size: 17px; }

/* Hero */
.hero { background: var(--deep); color: #fff; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 640px; }
.hero-copy { padding: 104px 88px 112px 0; display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 2; }
.hero .eyebrow { color: var(--sky); }
.hero h1 { font-size: clamp(46px, 5vw, 72px); margin-top: 28px; text-transform: uppercase; }
.hero h1 span { color: var(--sky); white-space: nowrap; }
.hero-lead { font-size: 20px; color: #c9d6e3; max-width: 30em; margin-top: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 48px; }
.hero-note { margin-top: 32px; font-size: 15px; color: #93a7ba; }
/* The photo box leans at the logo angle; the photo inside is leaned back so it stays upright.
   The box runs 480px past the right edge so the lean never shows a gap. */
.hero-photo { position: absolute; top: 0; bottom: 0; left: 50%; right: -480px; overflow: hidden; transform: skewX(var(--slant)); transform-origin: 0 0; }
.hero-photo img { position: absolute; top: 0; left: 0; width: calc(100% - 480px); height: 100%; object-fit: cover; object-position: 40% 50%; transform: skewX(calc(-1 * var(--slant))); transform-origin: 0 0; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2,26,51,.35), rgba(2,26,51,0) 40%); }
/* stripes follow the photo edge: from 50% at the top to 59% at the bottom */
.hero-stripe { position: absolute; top: 0; bottom: 0; left: calc(50% - 34px); width: 24px; z-index: 1; background: var(--sky); transform: skewX(var(--slant)); transform-origin: 0 0; }
.hero-stripe + .hero-stripe { left: calc(50% - 58px); width: 10px; opacity: .45; }

/* Proof strip */
.proof { background: var(--navy); color: #fff; }
.proof ul { list-style: none; margin: 0; padding: 36px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.proof li { font-size: 16px; line-height: 1.4; color: #d5e2ee; padding-left: 20px; border-left: 3px solid var(--sky); }
.proof strong { display: block; font: 700 22px/1.1 "Barlow Condensed", sans-serif; color: #fff; margin-bottom: 6px; letter-spacing: .01em; }

/* Sections */
section { padding: var(--pad-section) 0; }
.head { max-width: 640px; margin-bottom: var(--gap-block); }
.head h2 { font-size: clamp(38px, 4.4vw, 56px); margin-top: 20px; color: var(--ink); text-transform: uppercase; }
.head p { margin-top: 20px; font-size: 19px; color: var(--muted); }

/* Services */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.card { text-decoration: none; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(4,25,46,.12); }
.card-img { aspect-ratio: 4 / 3; overflow: hidden; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 86%); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 24px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 28px; color: var(--ink); text-transform: uppercase; }
.card p { margin-top: 12px; color: var(--muted); font-size: 16px; flex: 1; }
.card .more { margin-top: 22px; font-weight: 600; color: var(--navy); display: inline-flex; gap: 8px; align-items: center; }
.card:hover .more { color: var(--sky-dark); }

/* Local team split */
.team { background: var(--paper); }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 88px; align-items: center; }
.split-photo { position: relative; }
.split-photo img { border-radius: 6px; width: 100%; aspect-ratio: 4 / 3.1; object-fit: cover; clip-path: polygon(0 0, 100% 0, 100% 100%, 9% 100%); }
.split-photo::before { content: ""; position: absolute; left: -18px; bottom: -18px; width: 42%; height: 46%; background: var(--sky); z-index: -1; clip-path: polygon(0 0, 78% 0, 100% 100%, 0 100%); }
.split h2 { font-size: clamp(38px, 4.4vw, 56px); margin-top: 20px; color: var(--ink); text-transform: uppercase; }
.split-text > p { margin-top: 24px; font-size: 18px; color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 16px; }
.ticks li { display: flex; gap: 14px; align-items: baseline; font-weight: 500; }
.ticks li::before { content: ""; flex: none; width: 12px; height: 12px; background: var(--sky); transform: skewX(var(--slant)) translateY(1px); }
.split .btn { margin-top: 48px; }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.review { border-top: 4px solid var(--navy); padding: 32px 4px 0; display: flex; flex-direction: column; }
.stars { color: #f2b01e; letter-spacing: 3px; font-size: 18px; }
.review blockquote { margin: 18px 0 0; font-size: 18px; line-height: 1.55; flex: 1; }
.review cite { display: block; margin-top: 24px; font-style: normal; font-weight: 600; color: var(--ink); }
.review cite span { display: block; font-weight: 400; font-size: 14px; color: var(--muted); }

/* Team band */
.band { position: relative; padding: 0; }
.band img { width: 100%; height: 420px; object-fit: cover; object-position: 50% 60%; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(2,26,51,.75), rgba(2,26,51,0) 55%); }
.band .wrap { position: absolute; left: 0; right: 0; bottom: 40px; z-index: 2; }
.band p { color: #fff; font: 700 clamp(26px, 3vw, 36px)/1.1 "Barlow Condensed", sans-serif; text-transform: uppercase; }

/* Closing call */
.cta { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; top: 0; bottom: 0; right: 14%; width: 220px; background: rgba(255,255,255,.05); transform: skewX(var(--slant)); }
.cta::after { content: ""; position: absolute; top: 0; bottom: 0; right: calc(14% + 250px); width: 36px; background: var(--sky); opacity: .85; transform: skewX(var(--slant)); }
.cta .wrap { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(38px, 4.6vw, 60px); text-transform: uppercase; max-width: 12em; }
.cta p { margin-top: 18px; font-size: 19px; color: #c9d6e3; }
.cta-actions { display: flex; flex-direction: column; gap: 16px; min-width: 280px; }

footer { background: var(--deep); color: #93a7ba; font-size: 15px; padding: 64px 0 48px; }
footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.foot-logo { display: flex; align-items: center; gap: 12px; }
.foot-logo img { height: 32px; width: auto; filter: brightness(0) invert(1); }
.foot-logo span { font: 700 22px/1 "Barlow Condensed", sans-serif; letter-spacing: .06em; color: #fff; text-transform: uppercase; }
footer p + p { margin-top: 10px; }
footer h4 { margin: 0 0 16px; font: 600 14px/1 Barlow, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
footer a { text-decoration: none; }
footer a:hover { color: #fff; }
footer .copy { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.1); padding-top: 28px; margin-top: 8px; font-size: 14px; }

.callbar { display: none; }

/* Tablet */
@media (max-width: 1040px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .proof ul { grid-template-columns: repeat(2, 1fr); }
  .split { gap: 56px; }
}

/* Phone */
@media (max-width: 760px) {
  :root { --gap-block: 48px; --pad-section: 72px; }
  body { font-size: 16px; padding-bottom: 76px; }
  .wrap { width: calc(100% - 40px); }
  header .wrap { height: 68px; }
  header .logo img { height: 32px; }
  .wordmark { font-size: 22px; }
  header .btn { display: none; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-photo { position: relative; inset: auto; height: 260px; transform: none; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 82%); order: -1; }
  .hero-photo img { position: static; width: 100%; transform: none; }
  .hero-photo::after { background: linear-gradient(0deg, rgba(2,26,51,.35), rgba(2,26,51,0) 50%); }
  .hero-stripe { display: none; }
  .hero-copy { padding: 40px 0 64px; }
  .hero h1 { margin-top: 20px; }
  .hero-lead { font-size: 18px; margin-top: 20px; }
  .hero-actions { flex-direction: column; margin-top: 36px; gap: 12px; }
  .hero-actions .btn { width: 100%; }
  .hero-note { margin-top: 24px; }
  .proof ul { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding: 36px 0; }
  .proof li { font-size: 14px; padding-left: 14px; }
  .proof strong { font-size: 19px; }
  .services { grid-template-columns: 1fr; gap: 24px; }
  .split { grid-template-columns: 1fr; gap: 48px; }
  .split-photo::before { left: -10px; bottom: -10px; }
  .split .btn { width: 100%; margin-top: 40px; }
  .reviews { grid-template-columns: 1fr; gap: 40px; }
  .band img { height: 260px; }
  .band .wrap { bottom: 24px; }
  .cta::before, .cta::after { display: none; }
  .cta-actions { width: 100%; min-width: 0; }
  footer .wrap { grid-template-columns: 1fr; gap: 36px; }
  .callbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--deep); box-shadow: 0 -6px 20px rgba(0,0,0,.25); }
  .callbar .btn { flex: 1; min-height: 52px; padding: 0 12px; font-size: 17px; }
  .callbar .btn-line { flex: .7; }
  }

/* ---------- Inner pages ---------- */

/* Shorter top section for inner pages (same slanted photo and stripes) */
.hero-page .hero-grid { min-height: 460px; }
.hero-page .hero-copy { padding: 88px 88px 96px 0; }
.hero-page h1 { font-size: clamp(42px, 4.6vw, 66px); }
.hero-page .hero-lead { font-size: 19px; }

/* Services: alternating photo and text rows */
.svc-list { display: grid; gap: 120px; }
.svc { display: grid; grid-template-columns: 1fr 1fr; gap: 88px; align-items: center; scroll-margin-top: 120px; }
.svc:nth-child(even) .svc-photo { order: 2; }
.svc-photo { position: relative; }
.svc-photo img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 6px; clip-path: polygon(0 0, 100% 0, 100% 100%, 9% 100%); }
.svc:nth-child(even) .svc-photo img { clip-path: polygon(0 0, 91% 0, 100% 100%, 0 100%); }
.svc h2 { font-size: clamp(36px, 3.8vw, 50px); margin-top: 20px; color: var(--ink); text-transform: uppercase; }
.svc-text > p { margin-top: 22px; font-size: 18px; color: var(--muted); }
.svc .ticks { margin-top: 32px; }
.svc .btn { margin-top: 44px; }

/* Numbered steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 32px 28px 34px; counter-increment: step; }
.steps li::before { content: "0" counter(step); display: block; font: 700 44px/1 "Barlow Condensed", sans-serif; color: var(--sky); margin-bottom: 20px; }
.steps h3 { font-size: 26px; color: var(--ink); text-transform: uppercase; }
.steps p { margin-top: 10px; color: var(--muted); font-size: 16px; }

/* Fact tiles (about page) */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.fact { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--sky); border-radius: 6px; padding: 32px 34px; }
.fact h3 { font-size: 28px; color: var(--ink); text-transform: uppercase; }
.fact p { margin-top: 12px; color: var(--muted); }

/* Master Glaziers badge panel */
.badge-panel { display: grid; grid-template-columns: 1fr 1.3fr; gap: 72px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 56px 64px; }
.badge-panel h2 { font-size: clamp(32px, 3.4vw, 44px); margin-top: 18px; color: var(--ink); text-transform: uppercase; }
.badge-panel p { margin-top: 18px; color: var(--muted); font-size: 18px; }

/* Locations */
.places { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.place { border-top: 4px solid var(--navy); padding-top: 28px; }
.place h3 { font-size: 28px; color: var(--ink); text-transform: uppercase; }
.place p { margin-top: 10px; color: var(--muted); font-size: 18px; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 88px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 48px; box-shadow: 0 18px 40px rgba(4,25,46,.06); }
.form-card h2 { font-size: 40px; color: var(--ink); text-transform: uppercase; }
.form-card > p { margin-top: 12px; color: var(--muted); }
.form-card form { margin-top: 36px; display: grid; gap: 22px; }
.field { display: grid; gap: 10px; }
.field label { font-weight: 600; font-size: 16px; color: var(--ink); }
.field input, .field textarea { font: inherit; font-size: 16px; color: var(--text); width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid #c4d0dc; border-radius: 12px; background: #fff; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--sky); outline-offset: 1px; border-color: var(--sky-dark); }
.form-card .btn { margin-top: 10px; width: 100%; border: 0; cursor: pointer; }
.form-note { font-size: 14px; color: var(--muted); }
.info { display: grid; gap: 48px; }
.info h3 { font: 600 14px/1 Barlow, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--sky-dark); margin-bottom: 18px; }
.big-phone { font: 700 clamp(40px, 4.4vw, 56px)/1 "Barlow Condensed", sans-serif; color: var(--ink); text-decoration: none; }
.big-phone:hover { color: var(--navy); }
.info .sub { margin-top: 8px; color: var(--muted); }
.numbers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; }
.numbers li { border-top: 1px solid var(--line); padding-top: 12px; }
.numbers a { font-weight: 600; color: var(--ink); text-decoration: none; display: block; }
.numbers span { font-size: 15px; color: var(--muted); }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 8px 28px; }
.hours dt { font-weight: 600; color: var(--ink); }
.hours dd { margin: 0; color: var(--muted); }

/* Thank-you */
.thanks { text-align: center; max-width: 680px; margin-inline: auto; }
.thanks .eyebrow { justify-content: center; }
.thanks h1 { font-size: clamp(44px, 5vw, 68px); color: var(--ink); text-transform: uppercase; margin-top: 24px; }
.thanks p { margin-top: 24px; font-size: 19px; color: var(--muted); }
.thanks .btn { margin-top: 44px; }

/* Blog list */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 28px; }
.post-card { text-decoration: none; display: flex; flex-direction: column; }
.post-card .card-img { border-radius: 6px; aspect-ratio: 3 / 2; }
.post-card time { margin-top: 22px; font-size: 14px; color: var(--muted); letter-spacing: .04em; }
.post-card h3 { margin-top: 10px; font-size: 28px; color: var(--ink); }
.post-card p { margin-top: 12px; color: var(--muted); font-size: 16px; }
.post-card:hover h3 { color: var(--navy); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.pager { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 88px; }
.pager a { min-width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 4px; text-decoration: none; font-weight: 600; padding: 0 16px; }
.pager a[aria-current] { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Blog post */
.post-head { background: var(--deep); color: #fff; padding: 88px 0 200px; }
.crumbs { font-size: 15px; color: #93a7ba; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: #fff; }
.post-head h1 { font-size: clamp(40px, 4.6vw, 64px); margin-top: 24px; max-width: 15em; text-transform: uppercase; }
.post-head time { display: block; margin-top: 24px; color: #93a7ba; }
.post-img { margin-top: -152px; }
.post-img img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: 8px; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 88px; align-items: start; padding-top: 72px; }
.article { font-size: 19px; line-height: 1.7; max-width: 40em; }
.article p { margin: 0 0 24px; }
.article h2 { font-size: 36px; color: var(--ink); text-transform: uppercase; margin: 56px 0 18px; }
.article h3 { font-size: 26px; color: var(--ink); margin: 40px 0 14px; }
.article ul, .article ol { margin: 0 0 24px; padding-left: 24px; }
.article li { margin-bottom: 10px; }
.article a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.aside { position: sticky; top: 116px; display: grid; gap: 40px; }
.aside-call { background: var(--navy); color: #fff; border-radius: 8px; padding: 36px 32px; }
.aside-call h2 { font-size: 34px; text-transform: uppercase; }
.aside-call p { margin-top: 12px; color: #c9d6e3; }
.aside-call .btn { margin-top: 28px; width: 100%; }
.aside h3 { font: 600 14px/1 Barlow, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--sky-dark); margin-bottom: 16px; }
.aside ul { list-style: none; margin: 0; padding: 0; }
.aside li { border-top: 1px solid var(--line); }
.aside li a { display: block; padding: 14px 0; text-decoration: none; font-weight: 500; color: var(--ink); line-height: 1.35; }
.aside li a:hover { color: var(--navy); text-decoration: underline; }

@media (max-width: 1040px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .svc, .contact-grid { gap: 56px; }
  .posts { grid-template-columns: repeat(2, 1fr); }
  .post-layout { grid-template-columns: 1fr; gap: 72px; }
  .aside { position: static; }
  .badge-panel { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 760px) {
  .hero-page .hero-copy { padding: 36px 0 56px; }
  .hero-page .hero-photo { height: 210px; }
  .svc-list { gap: 72px; }
  .svc { grid-template-columns: 1fr; gap: 32px; }
  .svc:nth-child(even) .svc-photo { order: 0; }
  .svc .btn { width: 100%; margin-top: 36px; }
  .steps { grid-template-columns: 1fr; gap: 16px; }
  .steps li { padding: 26px 24px; }
  .facts, .places { grid-template-columns: 1fr; gap: 20px; }
  .fact { padding: 26px 24px; }
  .badge-panel { padding: 32px 24px; }
  .contact-grid { grid-template-columns: 1fr; gap: 64px; }
  .form-card { padding: 32px 22px; }
  .field input, .field textarea { min-height: 40px; padding: 6px 10px; border-radius: 10px; }
  .numbers { grid-template-columns: 1fr; }
  .posts { grid-template-columns: 1fr; gap: 48px; }
  .post-head { padding: 48px 0 120px; }
  .post-img { margin-top: -88px; }
  .post-img img { aspect-ratio: 3 / 2; }
  .post-layout { padding-top: 48px; gap: 56px; }
  .article { font-size: 17px; }
  .article h2 { font-size: 30px; margin-top: 44px; }
}

/* Photo upload on the contact form */
.upload { position: relative; display: flex; align-items: center; gap: 16px; padding: 18px 20px; border: 2px dashed #b9c7d4; border-radius: 12px; background: var(--paper); cursor: pointer; transition: border-color .15s, background .15s; }
.upload:hover, .upload:focus-within { border-color: var(--sky-dark); background: #eaf5fb; }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload .upload-icon { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; }
.upload .upload-icon svg { width: 22px; height: 22px; }
.upload strong { display: block; color: var(--ink); }
.upload-text { font-size: 14px; color: var(--muted); }
.upload-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 15px; color: var(--ink); }
.upload-list li::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 10px; background: var(--sky); transform: skewX(var(--slant)); }
.field .optional { font-weight: 400; color: var(--muted); }
@media (max-width: 760px) { .upload { padding: 14px 16px; } }

/* Posts without a featured image */
.card-img.no-img { background: var(--paper) url(/assets/img/2021/11/GD-Logo-1-480x271.webp) center / 34% no-repeat; }
.post-head.no-img { padding-bottom: 88px; }
@media (max-width: 760px) { .post-head.no-img { padding-bottom: 56px; } }

/* ---------- Live-site additions ---------- */
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--sky); color: var(--ink); padding: 12px 18px; font-weight: 600; }
.skip:focus { left: 12px; top: 12px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; }

/* Menu button: tablets and phones */
.menu-btn { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 4px; background: #fff; font: 600 16px/1 Barlow, sans-serif; color: var(--ink); cursor: pointer; }
.menu-btn i { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.menu-btn i::before, .menu-btn i::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; }
.menu-btn i::before { top: -6px; } .menu-btn i::after { top: 6px; }
@media (max-width: 1040px) {
  .menu-btn { display: inline-flex; margin-left: auto; }
  nav.main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(4,25,46,.1); flex-direction: column; gap: 0; padding: 8px 0 16px; margin: 0; }
  header.open nav.main-nav { display: flex; }
  nav.main-nav a { padding: 14px 24px; font-size: 18px; }
  header .wrap { position: static; }
  header { position: sticky; }
}

/* Form messages and photo previews */
.form-msg { display: none; padding: 14px 16px; border-radius: 10px; background: #fdecec; color: #8a1c1c; font-size: 16px; }
.form-msg.show { display: block; }
.field.bad input, .field.bad textarea { border-color: #c0392b; }
.upload-list li { display: flex; align-items: center; gap: 12px; }
.upload-list li::before { display: none; }
.upload-list img { width: 52px; height: 52px; object-fit: cover; border-radius: 6px; flex: none; }
.form-card .btn[disabled] { opacity: .6; cursor: wait; }

/* Blog search */
.search-row { display: flex; gap: 10px; max-width: 560px; margin-bottom: 56px; }
.search-row input { flex: 1; font: inherit; font-size: 16px; min-height: 44px; padding: 8px 12px; border: 1px solid #c4d0dc; border-radius: 12px; }
.search-row .btn { min-height: 44px; border: 0; cursor: pointer; padding: 0 22px; font-size: 16px; }
.search-empty { color: var(--muted); font-size: 18px; }
.aside .search-row { margin: 0; }

/* Page not found */
.notfound { text-align: center; max-width: 640px; margin-inline: auto; }
.notfound .eyebrow { justify-content: center; }
.notfound h1 { font-size: clamp(44px, 5vw, 68px); color: var(--ink); text-transform: uppercase; margin-top: 24px; }
.notfound p { margin-top: 24px; font-size: 19px; color: var(--muted); }
.notfound .hero-actions { justify-content: center; }
.notfound .btn-line { color: var(--navy); border-color: var(--navy); }
@media (max-width: 760px) {
  .search-row { margin-bottom: 40px; }
  .notfound .hero-actions .btn { width: 100%; }
}
