/* ============================================
   ReWireWorks - Brand Compliant Stylesheet
   Based on ReWireWorks Brand Identity Reference
   ============================================ */

:root {
  /* HERO COLOURS */
  --slate-purple: #504B6D;
  --burnished-gold: #C49A27;

  /* PURPLE FAMILY */
  --mist: #F2F0F7;
  --lavender: #DDD9EC;
  --muted-violet: #9E97BC;
  --deep-plum: #312D45;
  --near-black: #1A1828;

  /* GOLD FAMILY */
  --cream: #FBF5E4;
  --pale-gold: #EDD98A;
  --deep-gold: #8F6E15;
  --ochre-brown: #5C450C;

  /* NEUTRALS */
  --warm-white: #F7F6F3;
  --stone: #E2E0DA;
  --warm-grey: #888480;
  --charcoal: #2E2C2A;

  /* FUNCTIONAL */
  --sage: #6A9A52;
  --teal: #3D9E90;

  /* SEMANTIC MAPPING */
  --primary: var(--slate-purple);
  --accent: var(--burnished-gold);
  --dark: var(--near-black);
  --light: var(--warm-white);
  --text: var(--charcoal);
  --text-light: var(--warm-grey);
  --text-muted: var(--muted-violet);
  --white: #ffffff;

  --shadow: 0 2px 8px rgba(26,24,40,0.08);
  --shadow-lg: 0 8px 24px rgba(26,24,40,0.12);
  --radius: 8px;
  --max-width: 1140px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Shared hero gradients - was previously typed out identically in
     .hero and .page-hero, plus a shorter variant in .bottom-banner */
  --gradient-hero: linear-gradient(160deg, var(--near-black) 0%, var(--deep-plum) 60%, var(--slate-purple) 100%);
  --gradient-banner: linear-gradient(160deg, var(--near-black) 0%, var(--deep-plum) 100%);

  /* Fixed navbar is 72px tall (see .nav-container) - hero/page-hero
     top padding is calculated from this so they can never end up
     shorter than the navbar again */
  --nav-height: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: 'Century Gothic', 'Gill Sans Nova', 'Trebuchet MS', 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.65;
  background: var(--warm-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ============================================
   NAVIGATION - Light, clean
   ============================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(247,246,243,0.96);
  border-bottom: 1px solid var(--lavender);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.logo-nav {
  display: flex;
  align-items: center;
  text-decoration: none;
  min-width: 0;
}

/* Wordmark: 1.5x nav button height (~45px) */
.logo-nav img,
.logo-nav svg {
  height: 45px;
  width: auto;
  max-width: 100%;
  display: block;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0.3rem;
  align-items: center;
}

.nav-menu li { flex-shrink: 0; }

.nav-menu a {
  text-decoration: none;
  color: var(--charcoal);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  letter-spacing: 0.01em;
  white-space: nowrap;
  display: inline-block;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--slate-purple);
  background: var(--mist);
}

.nav-menu a.cta-nav {
  background: var(--slate-purple);
  color: var(--warm-white);
  font-weight: 600;
}

.nav-menu a.cta-nav:hover {
  background: var(--deep-plum);
  transform: translateY(-1px);
}

.dropdown { position: relative; }

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--white);
  min-width: 240px;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius);
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  border: 1px solid var(--lavender);
}

.dropdown-content a {
  display: block;
  padding: 0.65rem 1.1rem;
  font-size: 0.85rem;
  border-radius: 0;
  color: var(--charcoal);
}

.dropdown-content a:hover {
  background: var(--mist);
  color: var(--slate-purple);
}

.dropdown:hover .dropdown-content { display: block; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--slate-purple);
}

/* ============================================
   HERO SECTIONS - Dark, full-width
   ============================================ */
.hero {
  min-height: clamp(450px, 75vh, 650px);
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 20px) 2rem 60px;
  background: var(--gradient-hero);
  color: var(--warm-white);
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* Homepage hero logo: 3x CTA button height (~140px), centred */
.hero-logo {
  max-height: 140px;
  width: auto;
  max-width: 100%;
  margin: 0 auto 2rem;
  display: block;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  max-width: var(--max-width);
  color: var(--warm-white);
  letter-spacing: -0.02em;
}

.hero .subline {
  font-size: 1.25rem;
  color: var(--pale-gold);
  margin-bottom: 1.5rem;
  max-width: var(--max-width);
  font-weight: 400;
  line-height: 1.5;
}

/* Hero text runs full width across banner */
.hero p {
  font-size: 1.05rem;
  opacity: 0.88;
  max-width: var(--max-width);
  margin-bottom: 1.25rem;
  color: var(--warm-white);
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

.btn {
  display: inline-block;
  padding: 0.95rem 2rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--burnished-gold);
  color: var(--near-black);
}

.btn-primary:hover {
  background: var(--deep-gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(196,154,39,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--warm-white);
  border-color: rgba(196,154,39,0.5);
}

.btn-outline:hover {
  background: rgba(196,154,39,0.1);
  border-color: var(--burnished-gold);
}

/* Page hero (smaller) */
.page-hero {
  min-height: 45vh;
  padding: 130px 2rem 70px;
  background: var(--gradient-hero);
  color: var(--warm-white);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Page hero text runs full width across banner */
.page-hero h1 {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--warm-white);
  letter-spacing: -0.02em;
  line-height: 1.2;
  max-width: var(--max-width);
}

.page-hero .subline {
  font-size: 1.15rem;
  color: var(--pale-gold);
  margin-top: 0.75rem;
  opacity: 0.9;
  max-width: var(--max-width);
}

.page-hero p {
  font-size: 1rem;
  opacity: 0.85;
  max-width: var(--max-width);
  margin-top: 1rem;
  line-height: 1.7;
}

/* ============================================
   SECTIONS - Clean, spacious
   ============================================ */
.section {
  padding: 30px 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--slate-purple);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--warm-grey);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ============================================
   CARD SYSTEM - Expandable, image-integrated
   ============================================ */
/* Reduced gap between cards - tighter spacing.
   Gap value is being left as-is until the content-width fix (large-screen
   margins) is settled - revisit then. */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.30rem;
}

/* Add this class to any .cards-grid whose cards expand into a box-grid
   or process-path (they need the full row width for their own internal
   2-column layout - see .expanded-layout.no-image .box-grid below) */
.cards-grid.single-col {
  grid-template-columns: 1fr;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--lavender);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--muted-violet);
  transform: translateY(-2px);
}

.card-preview {
  padding: 2rem 2rem 1.5rem;
}

.card-preview h3 {
  font-size: 1.15rem;
  color: var(--slate-purple);
  margin-bottom: 0.5rem;
  font-weight: 700;
  line-height: 1.3;
}

.card-preview p {
  color: var(--warm-grey);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.read-more-btn {
  background: none;
  border: none;
  color: var(--slate-purple);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition);
}

.read-more-btn:hover {
  color: var(--burnished-gold);
}

.read-more-btn .icon {
  font-size: 1.1rem;
  transition: var(--transition);
  display: inline-block;
}

.card.expanded .read-more-btn .icon {
  transform: rotate(45deg);
}

.card-expanded {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 2rem;
}

.card.expanded .card-expanded {
  max-height: 2000px;
  padding: 0 2rem 2rem;
}

.card-expanded-content {
  color: var(--charcoal);
  font-size: 0.95rem;
  line-height: 1.7;
}

.card-expanded-content p {
  margin-bottom: 1rem;
}

.card-expanded-content ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
  color: var(--warm-grey);
}

.card-expanded-content li {
  margin-bottom: 0.6rem;
}

.card-expanded-content strong {
  color: var(--slate-purple);
  font-weight: 600;
}

/* Image within expanded card - 1/3 width, alternating positions */
.expanded-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-top: 0.375rem;
}

.expanded-layout.image-left { flex-direction: row; }
.expanded-layout.image-right { flex-direction: row-reverse; }
.expanded-layout.image-top { flex-direction: column; }
.expanded-layout.image-bottom { flex-direction: column-reverse; }

/* No-image expansion layout (for box-grid expansions) */
.expanded-layout.no-image {
  flex-direction: column;
  margin-top: 0;
}

.expanded-layout.no-image .text-content {
  width: 100%;
}

.expanded-layout .section-image {
  flex: 0 0 33.333%;
  max-width: 33.333%;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  align-self: stretch;
}

.expanded-layout.image-top .section-image,
.expanded-layout.image-bottom .section-image {
  flex: 0 0 auto;
  max-width: 100%;
  width: 100%;
  aspect-ratio: 21 / 9;
}

.expanded-layout .section-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.expanded-layout .section-image:hover img {
  transform: scale(1.05);
}

/* Crop-focus presets - assigned automatically by main.js based on each
   image's natural orientation vs. its slot orientation. Best-effort
   values for "adjusted" - flag anything that looks off and we'll tune
   the percentages together. */
.expanded-layout .section-image.crop-top img { object-position: 50% 0%; }
.expanded-layout .section-image.crop-top-adjusted img { object-position: 50% 25%; }
.expanded-layout .section-image.crop-middle img { object-position: 50% 50%; }
.expanded-layout .section-image.crop-bottom-adjusted img { object-position: 50% 75%; }
.expanded-layout .section-image.crop-bottom img { object-position: 50% 100%; }
.expanded-layout .section-image.crop-left img { object-position: 0% 50%; }
.expanded-layout .section-image.crop-right img { object-position: 100% 50%; }

.expanded-layout .text-content {
  flex: 1;
}

/* When a box-grid or process-path is revealed inside a card expansion,
   show it as 2 columns (mobile still collapses to 1 - see media query) */
.expanded-layout.no-image .box-grid,
.expanded-layout.no-image .process-path {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.expanded-layout.no-image .process-step {
  margin-bottom: 0;
}

/* Image placeholder for missing images */
.image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 220px;
  background: linear-gradient(135deg, var(--slate-purple), var(--deep-plum));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--warm-white);
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  padding: 1rem;
}

/* ============================================
   BOX GRID (for 4-box layouts)
   ============================================ */
.box-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.box,
.process-step {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--lavender);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.box:hover,
.process-step:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--muted-violet);
}

.box {
  padding: 1.75rem;
}

.box h4 {
  font-size: 1.05rem;
  color: var(--slate-purple);
  margin-bottom: 0.6rem;
  font-weight: 700;
}

.box p {
  font-size: 0.9rem;
  color: var(--warm-grey);
  line-height: 1.6;
}

/* ============================================
   TWO COLUMN (side-by-side boxes)
   ============================================ */
.two-col-boxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 1.5rem 0;
}

/* ============================================
   PROCESS / PATH DIAGRAM
   ============================================ */
.process-path {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 1.5rem 0;
  position: relative;
}

.process-step {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  position: relative;
}

.process-step .step-number {
  width: 36px;
  height: 36px;
  background: var(--slate-purple);
  color: var(--warm-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.process-step .step-content h4 {
  font-size: 1rem;
  color: var(--slate-purple);
  margin-bottom: 0.35rem;
  font-weight: 700;
  display: inline;
}

/* Inline description for process steps */
.process-step .step-content .step-desc {
  font-size: 0.9rem;
  color: var(--warm-grey);
  line-height: 1.55;
  display: inline;
}

.process-step .step-content p {
  font-size: 0.9rem;
  color: var(--warm-grey);
  line-height: 1.55;
}

/* ============================================
   BOTTOM BANNER CTA - Halved height
   ============================================ */
.bottom-banner {
  padding: 40px 2rem;
  background: var(--gradient-banner);
  color: var(--warm-white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Banner content spans full card width */
.bottom-banner-content {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Reduced font sizes for compact banner */
.bottom-banner h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--warm-white);
}

.bottom-banner p {
  font-size: 0.95rem;
  opacity: 0.88;
  margin-bottom: 1rem;
  line-height: 1.6;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   FORMS
   ============================================ */
.form-container {
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--lavender);
}

.form-container h2 {
  font-size: 1.5rem;
  color: var(--slate-purple);
  margin-bottom: 0.5rem;
}

.form-container > p {
  color: var(--warm-grey);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: var(--form-group-gap, 1.5rem);
}

.form-group label {
  display: block;
  margin-bottom: var(--form-label-gap, 0.4rem);
  font-weight: 600;
  color: var(--charcoal);
  font-size: var(--form-label-size, 0.88rem);
}

.form-group label .optional {
  font-weight: 400;
  color: var(--warm-grey);
  font-size: 0.8rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: var(--form-input-padding, 0.8rem 1rem);
  border: 2px solid var(--lavender);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: var(--form-input-size, 0.95rem);
  transition: var(--transition);
  background: var(--warm-white);
  color: var(--charcoal);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--slate-purple);
  box-shadow: 0 0 0 3px rgba(80,75,109,0.1);
}

.form-group textarea {
  min-height: var(--form-textarea-height, 140px);
  resize: vertical;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.checkbox-group label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 400;
  cursor: pointer;
  font-size: var(--form-checkbox-size, 0.92rem);
  color: var(--charcoal);
  line-height: 1.4;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-top: 0.2rem;
  accent-color: var(--slate-purple);
}

.submit-btn {
  width: 100%;
  padding: var(--form-submit-padding, 1rem);
  background: var(--slate-purple);
  color: var(--warm-white);
  border: none;
  border-radius: var(--radius);
  font-size: var(--form-submit-size, 1rem);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.submit-btn:hover {
  background: var(--deep-plum);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.form-note {
  margin-top: var(--form-note-gap, 1.25rem);
  font-size: var(--form-note-size, 0.82rem);
  color: var(--warm-grey);
  text-align: center;
}

.contact-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}

.contact-col h3 {
  font-size: 1.15rem;
  color: var(--slate-purple);
  margin-bottom: 0.9rem;
}

.contact-col > p {
  color: var(--warm-grey);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.contact-col a {
  color: var(--slate-purple);
  font-weight: 600;
  text-decoration: none;
}

.contact-col a:hover { color: var(--deep-plum); }

/* Shrink the contact form's vertical footprint (~50% of the default
   form styling used on Advance Access / Ask a Question) by overriding
   the token defaults the base form rules read from - single place to
   edit instead of a chain of descendant selectors. The 2-column
   contact-grid layout (below) is untouched by this. */
.contact-col .form-container {
  max-width: none;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;

  --form-group-gap: 0.75rem;
  --form-label-gap: 0.25rem;
  --form-label-size: 0.82rem;
  --form-input-padding: 0.5rem 0.75rem;
  --form-input-size: 0.9rem;
  --form-textarea-height: 70px;
  --form-checkbox-size: 0.82rem;
  --form-submit-padding: 0.6rem;
  --form-submit-size: 0.92rem;
  --form-note-gap: 0.6rem;
  --form-note-size: 0.75rem;
}

.contact-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.contact-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--slate-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--warm-white);
  font-weight: 600;
  font-size: 0.85rem;
}

.contact-links a:hover { background: var(--deep-plum); }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--near-black);
  color: var(--warm-white);
  padding: 60px 2rem 30px;
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

/* Footer wordmark: same 1.5x nav button height */
.footer-brand img,
.footer-brand svg {
  height: 45px;
  width: auto;
  margin-bottom: 1rem;
  display: block;
}

.footer-brand p {
  opacity: 0.7;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--warm-grey);
}

.footer h4 {
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  color: var(--warm-white);
  font-weight: 600;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  color: var(--warm-grey);
  text-decoration: none;
  font-size: 0.88rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--burnished-gold);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(80,75,109,0.25);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--warm-grey);
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-links a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(80,75,109,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--warm-white);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.85rem;
}

.social-links a:hover {
  background: var(--burnished-gold);
  color: var(--near-black);
}

/* ============================================
   UTILITIES
   ============================================ */
.bg-light { background: var(--mist); }
.bg-white { background: var(--white); }
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* ============================================
   RESPONSIVE
   ============================================ */
/* Nav switches to hamburger earlier than the general mobile
   breakpoint below, so the full-width menu never has a squeezed
   in-between zone where it's too narrow to fit on one line. */
@media (max-width: 900px) {
  .hamburger { display: flex; }

  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0; right: 0;
    background: var(--warm-white);
    flex-direction: column;
    padding: 2rem;
    gap: 0.5rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(-150%);
    transition: var(--transition);
    border-bottom: 1px solid var(--lavender);
    align-items: stretch;
  }

  .nav-menu.active { transform: translateY(0); }

  .nav-menu a {
    display: block;
    width: 100%;
    text-align: left;
    font-size: 0.95rem;
    padding: 0.7rem 0.9rem;
  }
}

@media (max-width: 768px) {
  .dropdown-content {
    position: static;
    box-shadow: none;
    display: none;
    padding-left: 1rem;
    border: none;
    margin-top: 0;
  }

  .dropdown.active .dropdown-content { display: block; }

  .hero { min-height: auto; padding: calc(var(--nav-height) + 20px) 1.5rem 40px; }
  .hero h1 { font-size: 2rem; }
  .hero .subline { font-size: 1.05rem; }
  .hero-logo { max-height: 100px; }

  .page-hero { min-height: auto; padding: 110px 1.5rem 50px; }
  .page-hero h1 { font-size: 1.9rem; }

  .section { padding: 20px 1.5rem; }
  .section-header h2 { font-size: 1.5rem; }

  .expanded-layout,
  .expanded-layout.image-left,
  .expanded-layout.image-right,
  .expanded-layout.image-top,
  .expanded-layout.image-bottom {
    flex-direction: column;
  }

  .expanded-layout.no-image {
    flex-direction: column;
  }

  .expanded-layout .section-image {
    flex: 0 0 auto;
    max-width: 100%;
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .two-col-boxes { grid-template-columns: 1fr; }
  .box-grid { grid-template-columns: 1fr; }
  .expanded-layout.no-image .box-grid,
  .expanded-layout.no-image .process-path { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; gap: 0.30rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .form-container { padding: 1.75rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.7rem; }
  .hero-logo { max-height: 80px; }
  .page-hero h1 { font-size: 1.6rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn { padding: 0.85rem 1.5rem; font-size: 0.9rem; }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeInUp 0.6s ease forwards;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
::selection {
  background: var(--pale-gold);
  color: var(--near-black);
}

:focus-visible {
  outline: 2px solid var(--slate-purple);
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
