/*
 * ═══════════════════════════════════════════════════════════════
 *  Rogers Custom Millwork — global.css
 *  Covers: tokens, reset, typography, layout utilities,
 *          header/nav, footer, buttons, cards, page banners,
 *          photo helpers, animations, responsive breakpoints.
 *
 *  Pages pull in this file ONCE and add only page-specific rules
 *  in a small inline <style> block or a companion .css file.
 * ═══════════════════════════════════════════════════════════════
 */

/* ─── 1. DESIGN TOKENS ──────────────────────────────────────── */
:root {
  /* Brand palette */
  --navy:      #093f7c;
  --navy-dark: #062d58;
  --gold:      #c9a227;
  --gold-lt:   #ddb944;
  --gold-pale: #faf3dc;
  --white:     #ffffff;
  --off-white: #f4f5f7;
  --lt-gray:   #e8e8e8;
  --border:    #d8d8d8;
  --text:      #1e1e1e;
  --mid:       #4a4a4a;
  --muted:     #717171;

  /* Photo placeholder (used while real imgs load / during dev) */
  --ph-bg:     #c4d4e4;
  --ph-text:   #4a6a8a;

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Source Sans 3', 'Helvetica Neue', sans-serif;

  /* Layout */
  --header-h:  72px;
  --max-w:     1140px;
  --section-px: clamp(16px, 5vw, 40px);
  --section-py: clamp(40px, 8vw, 80px);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(9,63,124,0.10);
  --shadow-md: 0 4px 20px rgba(9,63,124,0.14);
  --shadow-lg: 0 8px 40px rgba(9,63,124,0.18);

  /* Transitions */
  --ease: 0.22s ease;
}

/* ─── 1b. LOGO FONT ─────────────────────────────────────────── */
/*  BlackChancery is not a system font — it must be self-hosted.
    Place BlackChancery.woff2 (and .woff as fallback) in
    /assets/fonts/ and this declaration will load it on all
    devices. Falls back to generic cursive if the file is absent. */
@font-face {
  font-family: 'BlackChancery';
  src: url('/assets/fonts/BlackChancery.woff2') format('woff2'),
       url('/assets/fonts/BlackChancery.woff')  format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ─── 2. RESET / BASE ───────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--white);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

img, video {
  display: block;
  max-width: 100%;
  height: auto;
  border: none; /* prevent legacy browser border on linked images */
}

a { color: inherit; }

ul, ol { list-style: none; }

/* ─── 3. TYPOGRAPHY ─────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  line-height: 1.15;
  color: var(--navy);
}

h1 { font-size: clamp(1.9rem, 7vw, 3rem);   font-weight: 900; }
h2 { font-size: clamp(1.55rem, 5.5vw, 2.3rem); font-weight: 700; }
h3 { font-size: clamp(1.4rem, 5vw, 2rem);   font-weight: 700; }
h4 { font-size: clamp(1.1rem, 3vw, 1.35rem); font-weight: 700; }

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

.eyebrow {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

/* ─── 4. LAYOUT HELPERS ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--section-px);
  padding-right: var(--section-px);
}

.section {
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
}

.tinted { background: var(--off-white); }

/* Two-column prose+photo layout used on About, Services, etc. */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 720px) {
  .split { grid-template-columns: 1fr 1fr; align-items: start; }
  .split.photo-first > *:first-child { order: 2; }
}

/* ─── 5. STICKY HEADER ──────────────────────────────────────── */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 300;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 4px solid var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  transform: translateY(-110%);
  transition: transform 0.32s ease;
  box-shadow: var(--shadow-md);
}
#site-header.visible { transform: translateY(0); }

/* Logo */
.hdr-logo {
  display: flex;
  align-items: center;
  padding: 10px 0;
  text-decoration: none;
  flex-shrink: 0;
}
.hdr-logo img {
  height: 52px;
  width: auto;
  border: none;
  outline: none;
  box-shadow: none;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}
/* Text wordmark — used when SVG font (Monotype Corsiva) doesn't
   render correctly. Apply .hdr-wordmark to a <span> inside
   .hdr-logo as a drop-in replacement for the <img>.            */
.hdr-wordmark {
  font-family: 'BlackChancery', cursive;
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--navy);
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
}

/* Desktop nav links */
.hdr-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.hdr-nav a {
  color: var(--navy);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 400;
  padding: 8px 11px;
  white-space: nowrap;
  transition: color var(--ease);
}
.hdr-nav a:hover { color: var(--gold); }
.hdr-nav a.active { font-weight: 700; }

/* Dropdown wrapper */
.hdr-nav .dropdown { position: relative; }
.hdr-nav .dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 180px;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--navy);
  box-shadow: var(--shadow-md);
  z-index: 300;
  flex-direction: column;
}
.hdr-nav .dropdown:hover .dropdown-menu,
.hdr-nav .dropdown:focus-within .dropdown-menu {
  display: flex;
}
.hdr-nav .dropdown-menu a {
  display: block;
  padding: 11px 16px;
  border-bottom: 1px solid var(--lt-gray);
  font-size: 0.88rem;
}
.hdr-nav .dropdown-menu a:last-child { border-bottom: none; }
.hdr-nav .dropdown-menu a:hover { background: var(--off-white); color: var(--navy); }

/* CTA phone (shown only on desktop) */
.hdr-call {
  display: none;
  align-items: center;
  gap: 7px;
  color: var(--navy);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  margin-left: 8px;
}
.hdr-call svg {
  width: 15px; height: 15px;
  stroke: var(--gold); fill: none;
}
@media (min-width: 640px) { .hdr-call { display: flex; } }

/* Hamburger button (mobile) */
.hdr-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 36px; height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hdr-burger span {
  display: block;
  width: 100%; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
  transform-origin: center;
}
.hdr-burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hdr-burger.open span:nth-child(2) { opacity: 0; }
.hdr-burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  z-index: 199;
  background: var(--white);
  border-bottom: 3px solid var(--navy);
  box-shadow: var(--shadow-md);
  flex-direction: column;
  padding: 8px 0 16px;
  transform: translateY(-8px);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
}
.mobile-nav.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-nav a {
  display: block;
  color: var(--navy);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  padding: 13px 24px;
  border-bottom: 1px solid var(--lt-gray);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { background: var(--off-white); }
.mobile-nav a.active {
  font-weight: 700;
  color: var(--navy);
  border-left: 3px solid var(--gold);
  padding-left: 21px;
}
/* Sub-items indented in mobile nav */
.mobile-nav a.sub-link {
  padding-left: 40px;
  font-size: 0.93rem;
  color: var(--mid);
}

@media (max-width: 540px) {
  .hdr-nav { display: none; }
  .hdr-burger { display: flex; }
  .mobile-nav { display: flex; }
}

/* ─── 6. PAGE CHROME ────────────────────────────────────────── */
/* Offset page content so it starts below the fixed header */
.page-wrap { padding-top: var(--header-h); }

/* Navy banner with page title — used on interior pages */
.page-banner {
  background: var(--navy);
  padding: 36px var(--section-px) 28px;
  text-align: center;
}
.page-banner h1 {
  color: var(--white);
  margin-bottom: 10px;
}
.page-banner p {
  color: rgba(255,255,255,0.72);
  font-size: 0.97rem;
  max-width: 520px;
  margin: 0 auto;
}

/* Decorative rules */
.gold-rule {
  width: 56px; height: 3px;
  background: var(--gold);
  border: none;
  margin: 0 auto;
}
.navy-rule {
  width: 60px; height: 3px;
  background: var(--navy);
  border: none;
  margin: 0 auto;
}
.gold-rule.left,
.navy-rule.left {
  margin-left: 0;
}

/* ─── 7. FOOTER ─────────────────────────────────────────────── */
#site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  padding: 48px var(--section-px) 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: var(--max-w);
  margin: 0 auto 32px;
}
@media (min-width: 600px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.footer-logo img { height: 48px; margin-bottom: 12px; }
.footer-logo p { font-size: 0.82rem; line-height: 1.7; }
.footer-col h5 {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  font-size: 0.88rem;
  padding: 3px 0;
  transition: color var(--ease);
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}

/* ─── 8. BUTTONS ────────────────────────────────────────────── */
/* Base shared style */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 24px;
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background var(--ease), box-shadow var(--ease);
  white-space: nowrap;
}
.btn svg {
  width: 16px; height: 16px;
  stroke: currentColor; fill: none;
  flex-shrink: 0;
}

/* Gold filled — primary CTA */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1rem;
  padding: 15px 24px;
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  background: linear-gradient(135deg, rgba(212,162,28,0.82) 0%, rgba(160,112,8,0.82) 100%);
  color: var(--white);
  border: 1px solid rgba(232,180,40,0.5);
  backdrop-filter: blur(2px);
  transition: background 0.18s, box-shadow 0.18s;
}
.btn-gold svg {
  width: 16px; height: 16px;
  stroke: var(--white); fill: none;
  flex-shrink: 0;
}
.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-lt) 0%, var(--gold) 100%);
  box-shadow: 0 4px 14px rgba(201,162,39,0.35);
}
.btn-gold:active {
  background: linear-gradient(135deg, rgba(180,130,10,0.9) 0%, rgba(130,90,4,0.9) 100%);
}

/* btn-outline — gold style used on hero overlays (alias of btn-gold visually) */
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1rem;
  padding: 15px 24px;
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  background: linear-gradient(135deg, rgba(212,162,28,0.82) 0%, rgba(160,112,8,0.82) 100%);
  color: var(--white);
  border: 1px solid rgba(232,180,40,0.5);
  backdrop-filter: blur(2px);
  transition: background 0.18s;
}
.btn-outline svg {
  width: 16px; height: 16px;
  stroke: var(--white); fill: none;
  flex-shrink: 0;
}
.btn-outline:active {
  background: linear-gradient(135deg, rgba(180,130,10,0.9) 0%, rgba(130,90,4,0.9) 100%);
}

/* CTA gold — used in navy CTA sections (portfolio, about, process, etc.) */
.btn-cta-gold {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: linear-gradient(135deg, rgba(212,162,28,0.9) 0%, rgba(160,112,8,0.9) 100%);
  color: white;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 24px;
  border-radius: 2px;
  text-decoration: none;
  border: 1px solid rgba(232,180,40,0.5);
  min-width: 200px;
  text-align: center;
  transition: opacity 0.18s;
}
.btn-cta-gold:hover { opacity: 0.9; }
.btn-cta-gold svg { width: 15px; height: 15px; stroke: white; fill: none; flex-shrink: 0; }

/* CTA outline — secondary button in navy CTA sections */
.btn-cta-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: linear-gradient(135deg, rgba(212,162,28,0.9) 0%, rgba(160,112,8,0.9) 100%);
  color: white;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 24px;
  border-radius: 2px;
  text-decoration: none;
  border: 1px solid rgba(232,180,40,0.5);
  min-width: 200px;
  text-align: center;
  transition: opacity 0.18s;
}
.btn-cta-outline:hover { opacity: 0.9; }
.btn-cta-outline svg { width: 15px; height: 15px; stroke: white; fill: none; flex-shrink: 0; }

/* Navy filled */
.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover {
  background: var(--navy-dark);
  box-shadow: var(--shadow-sm);
}

/* Navy outline */
.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline-navy:hover {
  background: var(--navy);
  color: var(--white);
}

/* White outline (on dark backgrounds) */
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.55);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}

/* Small size modifier */
.btn-sm {
  font-size: 0.88rem;
  padding: 10px 18px;
}

/* Text link with gold underline */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--navy);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
  transition: color var(--ease);
}
.link-arrow svg {
  width: 14px; height: 14px;
  stroke: currentColor; fill: none;
  transition: transform var(--ease);
}
.link-arrow:hover { color: var(--gold); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ─── 9. CARDS ──────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--navy);
  border-radius: 2px;
  overflow: hidden;
}
.card-img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
}
.card-body {
  padding: 16px 18px 20px;
}
.card-body h4 { margin-bottom: 6px; }
.card-body p {
  font-size: 0.88rem;
  color: var(--mid);
  line-height: 1.62;
}

/* Card grid — responsive */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 560px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ─── 10. PHOTO PLACEHOLDER ──────────────────────────────────── */
/*  Used during development or if an image fails to load.
    Replace <div class="ph"> with <img> when assets are ready. */
.ph {
  background: linear-gradient(145deg, var(--ph-bg) 0%, #aec3d6 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  color: var(--ph-text);
  text-align: center;
  width: 100%;
  height: 100%;
  min-height: 160px;
}
.ph svg { width: 36px; height: 36px; stroke: var(--ph-text); fill: none; opacity: 0.6; }
.ph-label { font-size: 0.78rem; font-family: var(--font-sans); line-height: 1.4; }

/* ─── 11. PHOTO UTILITIES ────────────────────────────────────── */
/* Cover-fit wrappers — set height on the wrapper, not the img */
.photo-wrap {
  overflow: hidden;
  border-radius: 2px;
  border: 1px solid var(--border);
  background: var(--ph-bg);
}
.photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.photo-wrap:hover img { transform: scale(1.03); }

/* Common fixed heights */
.ph-hero   { height: 480px; }
.ph-banner { height: 320px; }
.ph-card   { height: 230px; }
.ph-thumb  { height: 160px; }

/* ─── 12. CTA SECTION ────────────────────────────────────────── */
.cta-section {
  background: var(--navy);
  padding: 3rem var(--section-px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 40px,
    rgba(201,162,39,0.04) 40px,
    rgba(201,162,39,0.04) 41px
  );
}
.cta-section > * { position: relative; }
.cta-section .eyebrow { color: var(--gold); }
.cta-section h2 { color: var(--white); margin-bottom: 0.7rem; }
.cta-section p {
  color: rgba(255,255,255,0.6);
  font-size: 0.93rem;
  line-height: 1.65;
  margin-bottom: 1.75rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}
@media (min-width: 480px) {
  .cta-actions {
    flex-direction: row;
    justify-content: center;
  }
}

/* ─── 13. CALLOUT / BLOCKQUOTE ───────────────────────────────── */
.callout {
  border-left: 3px solid var(--gold);
  padding: 12px 16px;
  background: var(--gold-pale);
  border-radius: 0 2px 2px 0;
}
.callout p {
  font-size: 0.93rem;
  color: var(--text);
  font-style: italic;
  margin-bottom: 0;
  line-height: 1.65;
}

/* ─── 14. ICON LIST ──────────────────────────────────────────── */
.icon-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.icon-list li { display: flex; align-items: flex-start; gap: 12px; }
.icon-wrap {
  flex-shrink: 0;
  width: 32px; height: 32px;
  background: var(--navy);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.icon-wrap svg {
  width: 15px; height: 15px;
  stroke: var(--white); fill: none;
  stroke-width: 2.2;
}
.item-text { font-size: 0.93rem; color: var(--mid); line-height: 1.65; }
.item-title { font-weight: 700; color: var(--text); display: block; }

/* ─── 15. PROCESS STEPS ──────────────────────────────────────── */
.proc-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--navy);
  border-radius: 2px;
  overflow: hidden;
}
.proc-card .card-img { height: 220px; }
.proc-card .proc-body { padding: 14px 16px 18px; }
.proc-label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 6px;
}
.proc-num {
  width: 26px; height: 26px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
}
.proc-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
}

/* ─── 16. PORTFOLIO / GALLERY GRID ──────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
@media (min-width: 600px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}
@media (min-width: 960px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}
.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--ph-bg);
}
.gallery-item::after {
  content: '';
  display: block;
  padding-bottom: 100%; /* square */
}
.gallery-item img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

/* ─── 17. FORM ELEMENTS ──────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-group label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--mid);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 0.97rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--ease), box-shadow var(--ease);
  outline: none;
  appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(9,63,124,0.12);
}
.form-group textarea { min-height: 120px; resize: vertical; }

/* ─── 18. BADGE / TAG ────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
}
.badge-gold {
  background: var(--gold);
  color: var(--white);
}

/* ─── 19. ANIMATIONS ─────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* JS adds .is-visible when element enters viewport */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger children */
.fade-in-group > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in-group.is-visible > * { opacity: 1; transform: translateY(0); }
.fade-in-group.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.fade-in-group.is-visible > *:nth-child(2) { transition-delay: 0.15s; }
.fade-in-group.is-visible > *:nth-child(3) { transition-delay: 0.25s; }
.fade-in-group.is-visible > *:nth-child(4) { transition-delay: 0.35s; }
.fade-in-group.is-visible > *:nth-child(5) { transition-delay: 0.45s; }
.fade-in-group.is-visible > *:nth-child(6) { transition-delay: 0.55s; }

/* Hero-specific keyframe animations (used in rogers-landing.html) */
@keyframes heroFade {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── 20. ACCESSIBILITY ──────────────────────────────────────── */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
.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;
}

/* ─── 21. PRINT ──────────────────────────────────────────────── */
@media print {
  #site-header, .mobile-nav, .hdr-burger { display: none !important; }
  .page-wrap { padding-top: 0 !important; }
  .btn, .link-arrow { display: none; }
  a::after { content: " (" attr(href) ")"; font-size: 0.8em; }
}
