/* =============================================================
   Texas Iron Doors and Gates — styles.css
   One stylesheet for the whole site. Brand values live in :root.
   ============================================================= */

:root {
  /* Brand colors */
  --color-red: #8B1A1A;         /* iron red: buttons, accents */
  --color-red-dark: #6E1414;
  --color-black: #1A1A1A;       /* header, dark sections */
  --color-iron: #2B2B2B;
  --color-gold: #C8A45A;        /* bronze accent */
  --color-stone: #F5F0E8;       /* limestone: alternate sections */
  --color-gray: #F4F4F4;
  --color-line: #E2DCD2;
  --color-text: #222222;
  --color-muted: #5E5A55;
  --color-white: #FFFFFF;

  /* Type */
  --font-head: 'Raleway', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;

  /* Brand image sizes (change here, never in the HTML) */
  --logo-height: 60px;
  --logo-footer-width: 150px;

  /* Layout */
  --container: 1180px;
  --radius: 6px;
  --shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-white);
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--color-red); }
a:hover { color: var(--color-red-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-black);
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; font-weight: 700; }

p { margin: 0 0 1em; }

ul.clean { list-style: none; margin: 0; padding: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 22px;
}
.narrow { max-width: 820px; }

.section { padding: 72px 0; }
.section-alt { background: var(--color-stone); }
.section-dark { background: var(--color-black); color: #D9D9D9; }
.section-dark h2, .section-dark h3 { color: var(--color-white); }

.section-title { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.section-title p { color: var(--color-muted); font-size: 1.08rem; }
.section-dark .section-title p { color: #BDBDBD; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: 10px;
}
.section-dark .eyebrow, .hero .eyebrow { color: var(--color-gold); }

.lead { font-size: 1.15rem; color: var(--color-muted); }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--color-gold); color: var(--color-black);
  padding: 8px 14px; z-index: 200;
}
.skip-link:focus { left: 10px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  text-align: center;
}
.btn-primary { background: var(--color-red); color: var(--color-white); }
.btn-primary:hover { background: var(--color-red-dark); color: var(--color-white); }
.btn-outline { border-color: var(--color-white); color: var(--color-white); background: transparent; }
.btn-outline:hover { background: var(--color-white); color: var(--color-black); }
.btn-outline-dark { border-color: var(--color-black); color: var(--color-black); background: transparent; }
.btn-outline-dark:hover { background: var(--color-black); color: var(--color-white); }
.btn-gold { background: var(--color-gold); color: var(--color-black); }
.btn-gold:hover { background: #B8934A; color: var(--color-black); }
.btn-sm { padding: 9px 16px; font-size: 0.9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--color-black);
  border-bottom: 3px solid var(--color-red);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; min-height: 78px;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo img { height: var(--logo-height); width: auto; }
.logo-text {
  white-space: nowrap;
  font-family: var(--font-head); font-weight: 800; color: var(--color-white);
  font-size: 1rem; line-height: 1.15; letter-spacing: 0.02em; text-transform: uppercase;
}
.logo-text span { display: block; color: var(--color-gold); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.main-nav a {
  display: block; font-family: var(--font-head); font-weight: 700; font-size: 0.93rem;
  color: #E6E6E6; text-decoration: none; padding: 10px 11px; border-radius: 4px; white-space: nowrap;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--color-gold); }
.main-nav .nav-phone a { color: var(--color-gold); white-space: nowrap; }
.main-nav .nav-cta a { background: var(--color-red); color: var(--color-white); margin-left: 8px; padding: 10px 18px; }
.main-nav .nav-cta a:hover { background: var(--color-red-dark); color: var(--color-white); }

.site-header .container { max-width: 1300px; }
.header-call {
  display: none; margin-left: auto; font-family: var(--font-head); font-weight: 700; font-size: 0.95rem;
  color: var(--color-black); background: var(--color-gold); text-decoration: none; padding: 9px 14px; border-radius: 4px; white-space: nowrap;
}
.header-call:hover { color: var(--color-black); background: #B8934A; }
.menu-toggle {
  display: none; background: transparent; border: 2px solid #555; color: var(--color-white);
  font-family: var(--font-head); font-weight: 700; font-size: 0.95rem;
  padding: 8px 14px; border-radius: 4px; cursor: pointer;
}

/* ---------- Hero (home) ---------- */
.hero { background: var(--color-black); color: #DADADA; position: relative; overflow: hidden; }
.hero h1 { color: var(--color-white); }
.hero-home .container {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center;
  padding-top: 64px; padding-bottom: 64px;
}
.hero-text p { font-size: 1.15rem; max-width: 560px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; padding: 0; list-style: none; }
.hero-facts li { font-family: var(--font-head); font-weight: 700; font-size: 0.9rem; color: var(--color-white); }
.hero-facts li::before { content: "\2605"; color: var(--color-gold); margin-right: 8px; }

.hero-mosaic {
  display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); gap: 10px;
  height: 560px;
}
.hero-mosaic img { width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: var(--radius); }
.hero-mosaic img:first-child { grid-row: 1 / 3; }

/* Interior page hero: split text + photo */
.hero-sm .container { padding-top: 54px; padding-bottom: 54px; }
.hero-split .container { display: grid; grid-template-columns: 1.2fr 1fr; gap: 44px; align-items: center; }
.hero-split .hero-img img { width: 100%; height: 440px; object-fit: cover; border-radius: var(--radius); object-position: var(--hero-pos, 50% 50%); }
.hero-sm p { font-size: 1.12rem; max-width: 640px; }

.breadcrumb { font-size: 0.85rem; margin-bottom: 14px; color: #A9A9A9; }
.breadcrumb a { color: #CFCFCF; text-decoration: none; }
.breadcrumb a:hover { color: var(--color-gold); }
.breadcrumb span { margin: 0 6px; color: #777; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--color-white); border: 1px solid var(--color-line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 26px rgba(0, 0, 0, 0.12); }
.card-img { aspect-ratio: 4 / 5; overflow: hidden; background: var(--color-gray); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img.wide { aspect-ratio: 4 / 3; }
.card-icon { aspect-ratio: 4 / 5; display: flex; align-items: center; justify-content: center; background: var(--color-iron); }
.card-icon svg { width: 62%; height: auto; }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: 8px; }
.card-body h3 a { color: var(--color-black); text-decoration: none; }
.card-body h3 a:hover { color: var(--color-red); }
.card-body p { color: var(--color-muted); font-size: 0.97rem; }
.card-link {
  margin-top: auto; font-family: var(--font-head); font-weight: 700; text-decoration: none; font-size: 0.95rem;
}
.card-link::after { content: " \2192"; }

/* Style chips (door styles) */
.style-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.style-tile { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; text-decoration: none; }
.style-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.style-tile:hover img { transform: scale(1.04); }
.style-tile span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
  color: var(--color-white); font-family: var(--font-head); font-weight: 800; font-size: 1.05rem;
}

/* ---------- Process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.process-step { position: relative; padding: 26px 22px; background: var(--color-white); border-radius: var(--radius); border-top: 4px solid var(--color-red); box-shadow: var(--shadow); }
.process-step::before {
  counter-increment: step; content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%; margin-bottom: 14px;
  background: var(--color-black); color: var(--color-gold);
  font-family: var(--font-head); font-weight: 800; font-size: 1.2rem;
}
.process-step p { color: var(--color-muted); font-size: 0.97rem; margin: 0; }

/* Vertical timeline variant (how-it-works page) */
.timeline { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.timeline li { position: relative; padding: 0 0 36px 70px; }
.timeline li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-red); color: var(--color-white); font-family: var(--font-head); font-weight: 800; font-size: 1.2rem;
}
.timeline li::after { content: ""; position: absolute; left: 22px; top: 50px; bottom: 6px; width: 2px; background: var(--color-line); }
.timeline li:last-child::after { display: none; }
.timeline h3 { margin-bottom: 6px; padding-top: 8px; }

/* ---------- Feature list / checks ---------- */
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { position: relative; padding: 0 0 14px 34px; }
.check-list li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--color-red); font-weight: 800; font-size: 1.15rem; }
.section-dark .check-list li::before { color: var(--color-gold); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 34px; }
.feature h3 { font-size: 1.12rem; margin-bottom: 6px; }
.feature h3::before { content: ""; display: block; width: 34px; height: 3px; background: var(--color-gold); margin-bottom: 14px; }
.feature p { color: var(--color-muted); font-size: 0.97rem; margin: 0; }
.section-dark .feature p { color: #BDBDBD; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.split img { width: 100%; border-radius: var(--radius); }
.split-img-tall img { height: 520px; object-fit: cover; }

/* ---------- Specs / tables ---------- */
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.97rem; margin: 10px 0 24px; }
.spec-table th, .spec-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--color-line); vertical-align: top; }
.spec-table th { width: 38%; font-family: var(--font-head); font-weight: 700; background: var(--color-stone); }

.notice-box {
  background: var(--color-stone); border-left: 4px solid var(--color-gold);
  padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; color: var(--color-muted); font-size: 0.95rem;
}

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery-grid a { display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 4px; background: var(--color-gray); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.gallery-grid a:hover img { transform: scale(1.04); }

.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(0, 0, 0, 0.92);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 88vh; max-width: 92vw; width: auto; border-radius: 4px; }
.lightbox-close {
  position: absolute; top: 14px; right: 18px; background: none; border: 0; color: #fff;
  font-size: 2.4rem; line-height: 1; cursor: pointer;
}
.lightbox-caption { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #ddd; font-size: 0.95rem; }

/* ---------- Door catalog ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 30px; }
.filter-btn {
  font-family: var(--font-head); font-weight: 700; font-size: 0.9rem; cursor: pointer;
  border: 2px solid var(--color-line); background: var(--color-white); color: var(--color-black);
  padding: 8px 16px; border-radius: 30px;
}
.filter-btn:hover { border-color: var(--color-black); }
.filter-btn.is-active { background: var(--color-black); border-color: var(--color-black); color: var(--color-white); }
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 20px; }
.model-card { background: var(--color-white); border: 1px solid var(--color-line); border-radius: var(--radius); padding: 18px 14px 16px; text-align: center; display: flex; flex-direction: column; }
.model-card[hidden] { display: none; }
.model-card .model-img { height: 220px; display: flex; align-items: flex-end; justify-content: center; margin-bottom: 12px; }
.model-card .model-img img { max-height: 220px; width: auto; }
.model-card h3 { font-size: 1.08rem; margin: 0 0 2px; }
.model-card .model-meta { font-size: 0.82rem; color: var(--color-muted); margin-bottom: 12px; }
.model-card .btn { margin-top: auto; }
.catalog-note { text-align: center; font-size: 0.85rem; color: var(--color-muted); margin-top: 20px; }

.option-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.option { text-align: center; }
.option img { margin: 0 auto 8px; border-radius: 4px; }
.option strong { font-family: var(--font-head); display: block; }
.swatch { width: 100%; aspect-ratio: 1; border-radius: var(--radius); margin-bottom: 8px; border: 1px solid var(--color-line); }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--color-line); padding: 4px 0; }
.faq summary {
  cursor: pointer; list-style: none; position: relative; padding: 16px 40px 16px 0;
  font-family: var(--font-head); font-weight: 700; font-size: 1.08rem; color: var(--color-black);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 1.5rem; color: var(--color-red); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--color-muted); margin: 0 0 16px; }

/* ---------- Service area ---------- */
.city-list { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; list-style: none; padding: 0; margin: 0; }
.city-list li { background: rgba(255, 255, 255, 0.07); border: 1px solid #3A3A3A; padding: 8px 16px; border-radius: 30px; font-family: var(--font-head); font-weight: 600; font-size: 0.93rem; color: #E6E6E6; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--color-red); color: #F6E3E3; text-align: center; padding: 64px 0; }
.cta-band h2 { color: var(--color-white); }
.cta-band p { font-size: 1.1rem; max-width: 640px; margin: 0 auto 26px; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Forms ---------- */
.quote-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 44px; align-items: start; }
.form-card { background: var(--color-white); border: 1px solid var(--color-line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label, .field legend { display: block; font-family: var(--font-head); font-weight: 700; font-size: 0.92rem; margin-bottom: 6px; color: var(--color-black); }
.field .hint { font-weight: 400; color: var(--color-muted); font-family: var(--font-body); font-size: 0.85rem; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 12px 13px; border: 1px solid #CFC8BC; border-radius: 4px; background: #FFFDF9;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--color-gold); border-color: var(--color-gold); }
.field textarea { min-height: 130px; resize: vertical; }
.hp-field { position: absolute; left: -5000px; height: 0; overflow: hidden; }
.form-status { margin-top: 14px; padding: 14px 16px; border-radius: 4px; display: none; }
.form-status.is-success { display: block; background: #EAF5EA; color: #1F5A1F; }
.form-status.is-error { display: block; background: #FBECEC; color: #7A1E1E; }
.side-box { background: var(--color-stone); border-radius: var(--radius); padding: 26px; margin-bottom: 20px; }
.side-box h3 { font-size: 1.1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-black); color: #A9A9A9; padding: 60px 0 26px; font-size: 0.95rem; }
.site-footer a { color: #DADADA; text-decoration: none; }
.site-footer a:hover { color: var(--color-gold); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; }
.footer-logo img { width: var(--logo-footer-width); height: auto; margin-bottom: 16px; }
.site-footer h4 { color: var(--color-white); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid #333; margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 0.85rem; color: #8A8A8A; }
.footer-min { padding: 32px 0 26px; }
.footer-min .footer-bottom { margin-top: 0; border-top: 0; padding-top: 0; align-items: center; }
.footer-min .footer-logo img { width: 110px; margin: 0; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-30 { margin-top: 30px; }
.muted { color: var(--color-muted); }
.small { font-size: 0.88rem; }
[hidden] { display: none !important; }

/* Reveal on scroll (added by script.js) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s, transform 0.6s; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
/* Main menu collapses to the hamburger below 1240px (header has 8 items) */
@media (max-width: 1240px) {
  .menu-toggle { display: block; }
  .header-call { display: inline-block; }
  .header-inner { gap: 10px; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--color-black); border-bottom: 3px solid var(--color-red); padding: 10px 22px 22px;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a { padding: 14px 4px; font-size: 1.05rem; border-bottom: 1px solid #2E2E2E; }
  .main-nav .nav-cta a { margin: 14px 0 0; text-align: center; border-bottom: 0; }
}

@media (max-width: 1080px) {
  .card-grid-4, .style-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--color-black); border-bottom: 3px solid var(--color-red); padding: 10px 22px 22px;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a { padding: 14px 4px; font-size: 1.05rem; border-bottom: 1px solid #2E2E2E; }
  .main-nav .nav-cta a { margin: 14px 0 0; text-align: center; border-bottom: 0; }

  .hero-home .container, .hero-split .container { grid-template-columns: 1fr; gap: 32px; }
  .hero-mosaic { height: 420px; }
  .hero-split .hero-img img { height: 340px; }
  .card-grid, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .quote-layout { grid-template-columns: 1fr; gap: 32px; }
  .split-img-tall img { height: 420px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  :root { --logo-height: 50px; }
  .header-inner { min-height: 68px; }
  .logo-text { font-size: 0.85rem; }
  .section { padding: 52px 0; }
  .hero-home .container { padding-top: 40px; padding-bottom: 44px; }
  .hero-mosaic { height: 340px; gap: 6px; }
  .card-grid, .card-grid-2, .card-grid-4, .feature-grid, .process-grid { grid-template-columns: 1fr; }
  .style-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .model-card .model-img { height: 170px; }
  .model-card .model-img img { max-height: 170px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-card { padding: 22px 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn-row .btn { width: 100%; }
  .spec-table th { width: 44%; }
}

@media (max-width: 480px) {
  .logo img { height: 44px; }
  .logo { gap: 8px; }
  .logo-text { font-size: 0.72rem; }
  .logo-text span { font-size: 0.58rem; }
  .header-call { padding: 8px 12px; font-size: 1.05rem; }
  .header-call span { display: none; }
  .menu-toggle { padding: 8px 10px; white-space: nowrap; }
}

@media (max-width: 380px) {
  .logo-text span { display: none; }
}

@media (max-width: 340px) {
  .logo-text { display: none; }
}

@media print {
  .site-header, .site-footer, .cta-band, .wa-float { display: none !important; }
}

/* ---------- Gate drawings ---------- */
.card-img.drawing { background: var(--color-white); aspect-ratio: 4 / 3; border-bottom: 1px solid var(--color-line); }
.card-img.drawing img { object-fit: contain; padding: 16px; }
.drawing-box { background: var(--color-white); border: 1px solid var(--color-line); border-radius: var(--radius); padding: 18px; }
.drawing-box img { width: 100%; height: auto; }
.hero-split .hero-img.drawing-hero img { height: auto; object-fit: contain; background: var(--color-white); padding: 22px; }
.drawing-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.drawing-pair figure { margin: 0; }
.drawing-pair figcaption { text-align: center; font-family: var(--font-head); font-weight: 700; margin-top: 10px; }
.btn-stack { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 640px) { .drawing-pair { grid-template-columns: 1fr; } }

/* ---------- Render in a split hero ---------- */
.hero-split .hero-img.render-hero { margin: 0; }
.hero-split .hero-img.render-hero img { height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.render-hero figcaption { font-size: 0.78rem; color: #A9A9A9; text-align: right; margin-top: 6px; }
@media (min-width: 961px) { .hero-split .container:has(.render-hero) { grid-template-columns: 1fr 1.15fr; } }
