/* ============================================================
   GERLINGER STEEL & SUPPLY — Main Stylesheet
   Serving West Coast Industry Since 1929
   ============================================================ */

/* ------------------------------------------------------------
   1. CSS Custom Properties (Design Tokens)
   ------------------------------------------------------------ */
:root {
  /* Colors */
  --color-steel:       #1a1f2e;   /* Deep navy-steel — primary dark */
  --color-steel-mid:   #2c3347;   /* Mid steel — secondary dark */
  --color-steel-light: #3d4a63;   /* Light steel — accents */
  --color-rust:        #b5460f;   /* Rust orange — primary accent */
  --color-rust-hover:  #d4540f;   /* Hover state for rust */
  --color-gold:        #c49a2a;   /* Warm gold — secondary accent */
  --color-white:       #ffffff;
  --color-off-white:   #f5f4f1;   /* Warm off-white — page bg */
  --color-light-gray:  #e8e6e1;   /* Borders, dividers */
  --color-mid-gray:    #8a8a8a;   /* Secondary text */
  --color-text:        #222222;   /* Body text */

  /* Typography */
  --font-heading: 'Georgia', 'Times New Roman', serif;
  --font-body:    'Helvetica Neue', 'Arial', sans-serif;

  --text-xs:   0.75rem;    /* 12px */
  --text-sm:   0.875rem;   /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg:   1.125rem;   /* 18px */
  --text-xl:   1.375rem;   /* 22px */
  --text-2xl:  1.75rem;    /* 28px */
  --text-3xl:  2.25rem;    /* 36px */
  --text-4xl:  3rem;       /* 48px */
  --text-5xl:  3.75rem;    /* 60px */

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Layout */
  --max-width:        1200px;
  --max-width-narrow: 800px;
  --nav-height:       70px;

  /* Effects */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.12);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.15);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.2);
  --transition: 0.2s ease;
  --radius:     3px;
}

/* ------------------------------------------------------------
   2. Reset & Base
   ------------------------------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-off-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-rust);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-rust-hover);
}

ul, ol {
  list-style: none;
}

/* ------------------------------------------------------------
   3. Typography
   ------------------------------------------------------------ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.25;
  color: var(--color-steel);
  font-weight: normal;
}

h1 { font-size: var(--text-4xl); letter-spacing: -0.5px; }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); font-weight: 600; font-family: var(--font-body); }
h6 { font-size: var(--text-base); font-weight: 600; font-family: var(--font-body); }

p {
  margin-bottom: var(--space-4);
  color: var(--color-text);
}

p:last-child {
  margin-bottom: 0;
}

strong { font-weight: 700; }

.lead {
  font-size: var(--text-lg);
  line-height: 1.8;
  color: #444;
}

.section-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-rust);
  display: block;
  margin-bottom: var(--space-3);
}

.section-title {
  font-size: var(--text-3xl);
  color: var(--color-steel);
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: #555;
  max-width: 600px;
  line-height: 1.7;
}

/* ------------------------------------------------------------
   4. Layout Utilities
   ------------------------------------------------------------ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container--narrow {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section {
  padding: var(--space-20) 0;
}

.section--dark {
  background-color: var(--color-steel);
  color: var(--color-white);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--color-white);
}

.section--dark p,
.section--dark .lead {
  color: rgba(255,255,255,0.82);
}

.section--dark .section-title {
  color: var(--color-white);
}

.section--mid {
  background-color: var(--color-steel-mid);
  color: var(--color-white);
}

.section--gray {
  background-color: #eeece8;
}

.section--white {
  background-color: var(--color-white);
}

.text-center { text-align: center; }
.text-left   { text-align: left; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gap-4  { gap: var(--space-4); }
.gap-6  { gap: var(--space-6); }
.gap-8  { gap: var(--space-8); }

/* ------------------------------------------------------------
   5. Navigation
   ------------------------------------------------------------ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background-color: rgba(26, 31, 46, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: background-color var(--transition);
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

.site-logo img {
  height: 40px;
  width: auto;
}

/* Invert logo to white when on dark backgrounds (header + footer) */
.site-header .site-logo img,
.site-footer .site-logo img {
  filter: brightness(0) invert(1);
}

.site-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.site-logo-text .name {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  color: var(--color-white);
  letter-spacing: 0.02em;
}

.site-logo-text .tagline {
  font-size: var(--text-xs);
  color: var(--color-gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.site-nav a {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  letter-spacing: 0.03em;
  transition: color var(--transition), background-color var(--transition);
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--color-white);
  background-color: rgba(255,255,255,0.08);
}

.site-nav a.nav-cta {
  background-color: var(--color-rust);
  color: var(--color-white);
  padding: var(--space-2) var(--space-4);
  margin-left: var(--space-2);
}

.site-nav a.nav-cta:hover {
  background-color: var(--color-rust-hover);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: var(--space-2);
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-white);
  transition: transform var(--transition), opacity var(--transition);
}

/* Dropdown */
.nav-item {
  position: relative;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background-color: var(--color-steel);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: var(--space-2) 0;
  box-shadow: var(--shadow-lg);
}

.nav-item:hover .nav-dropdown {
  display: block;
}

.nav-dropdown a {
  display: block;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.82);
  border-radius: 0;
}

.nav-dropdown a:hover {
  background-color: rgba(255,255,255,0.08);
  color: var(--color-white);
}

/* ------------------------------------------------------------
   6. Hero Section
   ------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--color-steel);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.35;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26,31,46,0.85) 0%,
    rgba(26,31,46,0.5) 60%,
    rgba(26,31,46,0.3) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 750px;
  padding-top: var(--nav-height);
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-4);
  display: block;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, var(--text-5xl));
  color: var(--color-white);
  margin-bottom: var(--space-6);
  line-height: 1.15;
}

.hero h1 em {
  font-style: normal;
  color: var(--color-gold);
}

.hero-body {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.82);
  max-width: 560px;
  margin-bottom: var(--space-8);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ------------------------------------------------------------
   7. Buttons
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--color-rust);
  color: var(--color-white);
  border-color: var(--color-rust);
}

.btn-primary:hover {
  background-color: var(--color-rust-hover);
  border-color: var(--color-rust-hover);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(181,70,15,0.35);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.5);
}

.btn-outline:hover {
  background-color: rgba(255,255,255,0.1);
  border-color: var(--color-white);
  color: var(--color-white);
}

.btn-outline-dark {
  background-color: transparent;
  color: var(--color-steel);
  border-color: var(--color-steel);
}

.btn-outline-dark:hover {
  background-color: var(--color-steel);
  color: var(--color-white);
}

.btn-gold {
  background-color: var(--color-gold);
  color: var(--color-steel);
  border-color: var(--color-gold);
}

.btn-gold:hover {
  background-color: #d4aa30;
  color: var(--color-steel);
}

/* ------------------------------------------------------------
   8. Page Hero (inner pages)
   ------------------------------------------------------------ */
.page-hero {
  background-color: var(--color-steel);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: calc(var(--nav-height) + var(--space-16)) 0 var(--space-16);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.15;
}

.page-hero-content {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  color: var(--color-white);
  font-size: var(--text-4xl);
  margin-bottom: var(--space-3);
}

.page-hero .lead {
  color: rgba(255,255,255,0.75);
  max-width: 560px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--space-4);
}

.breadcrumb a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--color-white);
}

.breadcrumb span {
  color: rgba(255,255,255,0.3);
}

/* ------------------------------------------------------------
   9. Cards
   ------------------------------------------------------------ */
.card {
  background-color: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.card-body {
  padding: var(--space-6);
}

.card-body h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.card-body p {
  color: #555;
  font-size: var(--text-sm);
  line-height: 1.7;
}

/* Service card */
.service-card {
  padding: var(--space-8);
  background-color: var(--color-white);
  border-radius: var(--radius);
  border-left: 4px solid var(--color-rust);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-card .icon {
  font-size: 2rem;
  margin-bottom: var(--space-4);
  display: block;
}

.service-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
  color: var(--color-steel);
}

.service-card p {
  color: #555;
  font-size: var(--text-sm);
  line-height: 1.7;
}

/* Stat card */
.stat-card {
  text-align: center;
  padding: var(--space-8) var(--space-6);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat-label {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ------------------------------------------------------------
   10. Gallery Grid
   ------------------------------------------------------------ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.gallery-grid--masonry {
  grid-template-rows: masonry;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  background-color: var(--color-steel-mid);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,31,46,0.7) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  padding: var(--space-4);
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-overlay span {
  color: var(--color-white);
  font-size: var(--text-sm);
  font-weight: 600;
}

/* Gallery feature (large item) */
.gallery-item--large {
  grid-column: span 2;
  aspect-ratio: 16/9;
}

/* ------------------------------------------------------------
   11. Dividers & Decorative
   ------------------------------------------------------------ */
.divider {
  width: 60px;
  height: 3px;
  background-color: var(--color-rust);
  margin: var(--space-6) 0;
}

.divider--center {
  margin: var(--space-6) auto;
}

.divider--gold {
  background-color: var(--color-gold);
}

/* ------------------------------------------------------------
   11a. History Timeline
   ------------------------------------------------------------ */
.timeline {
  position: relative;
  padding-left: var(--space-10);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--color-rust), var(--color-gold));
  border-radius: 3px;
}

.timeline-entry {
  position: relative;
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--color-light-gray);
}

.timeline-entry:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.timeline-entry::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-10) - 1px);
  top: 8px;
  width: 11px;
  height: 11px;
  background-color: var(--color-rust);
  border: 2px solid var(--color-off-white);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--color-rust);
}

.timeline-year {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--color-rust);
  font-weight: normal;
  line-height: 1;
  margin-bottom: var(--space-2);
}

.timeline-entry p {
  color: #444;
  font-size: var(--text-base);
  line-height: 1.7;
  margin-bottom: 0;
}

/* Steel texture band */
.band {
  height: 6px;
  background: linear-gradient(90deg,
    var(--color-steel) 0%,
    var(--color-rust) 40%,
    var(--color-gold) 70%,
    var(--color-steel-light) 100%
  );
}

/* ------------------------------------------------------------
   12. Contact / Info Blocks
   ------------------------------------------------------------ */
.info-block {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  margin-bottom: var(--space-6);
}

.info-block-icon {
  width: 24px;
  flex-shrink: 0;
  font-size: 1.1rem;
  line-height: 1.7;
  text-align: center;
  color: var(--color-rust);
}

.info-block-content h4 {
  font-size: var(--text-base);
  font-weight: 700;
  font-family: var(--font-body);
  color: var(--color-steel);
  margin-bottom: var(--space-1);
}

.info-block-content p,
.info-block-content a {
  font-size: var(--text-sm);
  color: #555;
  line-height: 1.6;
}

.info-block-content a:hover {
  color: var(--color-rust);
}

/* Location card */
.location-card {
  background-color: var(--color-white);
  border-radius: var(--radius);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--color-rust);
}

.location-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
  color: var(--color-steel);
}

/* ------------------------------------------------------------
   13. Tables (for legal/policy pages)
   ------------------------------------------------------------ */
.content-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-6) 0;
  font-size: var(--text-sm);
}

.content-table th {
  background-color: var(--color-steel);
  color: var(--color-white);
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-weight: 600;
  font-family: var(--font-body);
}

.content-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-light-gray);
}

.content-table tr:last-child td {
  border-bottom: none;
}

.content-table tr:nth-child(even) td {
  background-color: #f8f7f4;
}

/* ------------------------------------------------------------
   14. Prose (long-form content)
   ------------------------------------------------------------ */
.prose {
  max-width: 760px;
  font-size: var(--text-base);
  line-height: 1.8;
  color: #333;
}

.prose h2 {
  font-size: var(--text-2xl);
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--color-light-gray);
}

.prose h3 {
  font-size: var(--text-xl);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

.prose p {
  margin-bottom: var(--space-5);
}

.prose ul, .prose ol {
  margin: var(--space-4) 0 var(--space-6) var(--space-6);
}

.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }

.prose li {
  margin-bottom: var(--space-2);
  line-height: 1.7;
}

.prose strong {
  color: var(--color-steel);
}

/* ------------------------------------------------------------
   15. Footer
   ------------------------------------------------------------ */
.site-footer {
  background-color: var(--color-steel);
  color: rgba(255,255,255,0.75);
  padding: var(--space-16) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-10);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .site-logo {
  margin-bottom: var(--space-4);
}

.footer-brand p {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: var(--space-4);
}

.footer-col h5 {
  color: var(--color-white);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-col ul li a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--color-white);
}

.footer-bottom {
  padding: var(--space-6) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: var(--space-3);
}

.footer-bottom a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: rgba(255,255,255,0.7);
}

.footer-legal-links {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Social icons */
.social-links {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: var(--text-sm);
  text-decoration: none;
  transition: all var(--transition);
}

.social-link:hover {
  border-color: var(--color-rust);
  color: var(--color-white);
  background-color: var(--color-rust);
}

/* ------------------------------------------------------------
   16. Utility Classes
   ------------------------------------------------------------ */
.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }

.pt-nav { padding-top: var(--nav-height); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Background image utility */
[data-bg] {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ------------------------------------------------------------
   17. Responsive
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  :root {
    --space-20: 3.5rem;
    --space-16: 3rem;
  }

  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item--large {
    grid-column: span 2;
  }

  .site-nav {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background-color: var(--color-steel);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-4);
    border-top: 1px solid rgba(255,255,255,0.1);
    gap: var(--space-1);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: var(--space-3) var(--space-4);
  }

  .site-nav a.nav-cta {
    margin-left: 0;
    text-align: center;
    justify-content: center;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-dropdown {
    position: static;
    box-shadow: none;
    border: none;
    background-color: rgba(255,255,255,0.05);
    border-radius: var(--radius);
    display: block;
    padding: var(--space-2) 0;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-4);
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item--large {
    grid-column: span 1;
  }
}
