/*
Theme Name: RMS Medical Supplies
Theme URI: https://rmsmedical.co.uk
Author: RMS Medical Supplies
Author URI: https://rmsmedical.co.uk
Description: Official WordPress theme for RMS Medical Supplies — clean, professional medical imaging and radiation oncology.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rms-medical
Tags: business, medical, clean, minimal, teal
*/

/* =============================================
   BRAND PALETTE — PPT wave colours
   #B2E0E3  light teal
   #44BDC2  mid teal
   #1BA2A7  deep teal
   #1C2120  near-black (footer/text)
   ============================================= */
:root {
  --rms-teal-light:  #B2E0E3;
  --rms-teal-mid:    #44BDC2;
  --rms-teal-deep:   #1BA2A7;
  --rms-dark:        #1C2120;
  --rms-white:       #FFFFFF;
  --rms-off-white:   #F4FAFB;
  --rms-grey-light:  #DFF0F1;
  --rms-grey-mid:    #5E7172;
  --rms-grey-dark:   #2E3D3E;

  /* Gradients */
  --rms-gradient:       linear-gradient(135deg, #B2E0E3 0%, #44BDC2 50%, #1BA2A7 100%);
  --rms-gradient-hero:  linear-gradient(160deg, #1BA2A7 0%, #44BDC2 55%, #B2E0E3 100%);
  --rms-gradient-subtle:linear-gradient(135deg, #F4FAFB 0%, #DFF0F1 100%);

  --font-display: 'Barlow', 'Aptos Display', sans-serif;
  --font-body:    'DM Sans', 'Calibri', sans-serif;

  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;

  --container-max: 1200px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 3px rgba(27,162,167,.08), 0 1px 2px rgba(27,162,167,.06);
  --shadow-md: 0 4px 16px rgba(27,162,167,.12), 0 2px 6px rgba(27,162,167,.08);
  --shadow-lg: 0 12px 40px rgba(27,162,167,.16), 0 4px 12px rgba(27,162,167,.10);

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--rms-grey-dark);
  background: var(--rms-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rms-teal-deep); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--rms-teal-mid); }
ul, ol { list-style: none; }

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--rms-dark);
  line-height: 1.2;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p { font-size: 1rem; color: var(--rms-grey-mid); margin-bottom: var(--space-sm); }
p:last-child { margin-bottom: 0; }
.lead { font-size: 1.2rem; color: var(--rms-grey-dark); line-height: 1.7; }
.section-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rms-teal-deep);
  margin-bottom: var(--space-xs);
}

/* =============================================
   LAYOUT UTILITIES
   ============================================= */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}
.section { padding: var(--space-2xl) 0; }
.section--alt { background: var(--rms-off-white); }
.section--dark { background: var(--rms-dark); }
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--rms-white); }
.section--dark p { color: rgba(255,255,255,.72); }
.section-header { margin-bottom: var(--space-xl); }
.section-header--center { text-align: center; }

.grid { display: grid; gap: var(--space-lg); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--rms-gradient);
  color: var(--rms-white);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--rms-white);
}
.btn-outline {
  background: transparent;
  color: var(--rms-teal-deep);
  border-color: var(--rms-teal-deep);
}
.btn-outline:hover {
  background: var(--rms-teal-deep);
  color: var(--rms-white);
}
.btn-outline--white {
  color: var(--rms-white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline--white:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--rms-white);
  color: var(--rms-white);
}
.btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; }

/* =============================================
   SITE HEADER & NAVIGATION
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--rms-white);
  border-bottom: 1px solid var(--rms-grey-light);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: var(--space-lg);
}

/* Logo — PNG has black bg so we display on white header only */
.site-branding a {
  display: inline-flex;
  align-items: center;
}
.site-branding img,
.site-branding .custom-logo {
  height: 48px;
  width: auto;
  /* no background override needed — header is white */
}
/* If WP wraps logo in <a> with class custom-logo-link */
.custom-logo-link img { height: 48px; width: auto; }

/* Primary Nav */
.primary-nav { display: flex; align-items: center; }
.primary-nav ul { display: flex; align-items: center; gap: 0.25rem; }
.primary-nav > ul > li { position: relative; }
.primary-nav > ul > li > a {
  display: block;
  padding: 0.5rem 0.85rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--rms-dark);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.primary-nav > ul > li > a:hover,
.primary-nav > ul > li.current-menu-item > a,
.primary-nav > ul > li.current-menu-ancestor > a {
  color: var(--rms-teal-deep);
  background: rgba(68,189,194,0.08);
}
.primary-nav > ul > li.menu-item-has-children > a::after {
  content: '▾'; margin-left: 6px; font-size: 1.1em; opacity: 1;
}

/* Dropdown */
.primary-nav .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: var(--rms-white);
  border: 1px solid var(--rms-grey-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  z-index: 100;
}
.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.primary-nav .sub-menu li a {
  display: block;
  padding: 0.6rem 1.1rem;
  font-size: 0.88rem;
  color: var(--rms-grey-dark);
  transition: all var(--transition);
}
.primary-nav .sub-menu li a:hover {
  background: var(--rms-off-white);
  color: var(--rms-teal-deep);
  padding-left: 1.4rem;
}

.header-cta { display: flex; align-items: center; gap: var(--space-sm); flex-shrink: 0; }
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--rms-dark);
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  background: var(--rms-gradient-hero);
  color: var(--rms-white);
  padding: var(--space-2xl) 0;
  position: relative;
  overflow: hidden;
  min-height: 580px;
  display: flex;
  align-items: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}
.hero-wave { position: absolute; bottom: -1px; left: 0; right: 0; line-height: 0; }
.hero-wave svg { width: 100%; height: auto; }
.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}
.hero-text .section-label { color: rgba(255,255,255,0.85); }
.hero-text h1 { color: var(--rms-white); margin-bottom: var(--space-md); }
.hero-text .lead { color: rgba(255,255,255,0.85); margin-bottom: var(--space-lg); }
.hero-actions { display: flex; gap: var(--space-sm); flex-wrap: wrap; }
.hero-stats { display: flex; gap: var(--space-md); margin-top: var(--space-lg); flex-wrap: wrap; }
.hero-stat {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  text-align: center;
}
.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--rms-white);
  line-height: 1;
}
.hero-stat span { font-size: .8rem; color: rgba(255,255,255,0.78); text-transform: uppercase; letter-spacing: .08em; }

/* =============================================
   SERVICE CARDS
   ============================================= */
.service-card {
  background: var(--rms-white);
  border: 1px solid var(--rms-grey-light);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--rms-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: rgba(68,189,194,0.25);
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, rgba(178,224,227,.35), rgba(68,189,194,.15));
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-md);
}
.service-icon svg { width: 26px; height: 26px; color: var(--rms-teal-deep); }
.service-card h3 { font-size: 1.15rem; margin-bottom: var(--space-xs); }
.service-card p { font-size: .92rem; margin-bottom: var(--space-md); }
.service-card .card-link {
  font-family: var(--font-display);
  font-size: .88rem; font-weight: 600;
  color: var(--rms-teal-deep);
  display: inline-flex; align-items: center; gap: .35rem;
  transition: gap var(--transition);
}
.service-card:hover .card-link { gap: .6rem; }
.service-card .sub-items { margin-top: var(--space-sm); border-top: 1px solid var(--rms-grey-light); padding-top: var(--space-sm); }
.service-card .sub-items li {
  font-size: .88rem; color: var(--rms-grey-mid);
  padding: .25rem 0 .25rem 1rem; position: relative; list-style: none;
}
.service-card .sub-items li::before { content: '›'; position: absolute; left: 0; color: var(--rms-teal-mid); }

/* =============================================
   ABOUT SPLIT
   ============================================= */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2xl); align-items: center; }
.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--rms-gradient-subtle);
  min-height: 360px;
  display: flex; align-items: center; justify-content: center;
}
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.about-features { margin-top: var(--space-lg); display: flex; flex-direction: column; gap: var(--space-sm); }
.about-feature { display: flex; align-items: flex-start; gap: var(--space-sm); }
.about-feature-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--rms-gradient);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}
.about-feature-icon svg { width: 16px; height: 16px; color: white; }
.about-feature-text strong { display: block; font-family: var(--font-display); font-size: .95rem; color: var(--rms-dark); margin-bottom: 2px; }
.about-feature-text p { font-size: .88rem; margin: 0; }

/* =============================================
   PARTNERS
   ============================================= */
.partners-grid { display: flex; flex-wrap: wrap; gap: var(--space-md); align-items: center; justify-content: center; }
.partner-logo {
  background: var(--rms-white);
  border: 1px solid var(--rms-grey-light);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); min-width: 160px;
}
.partner-logo:hover { box-shadow: var(--shadow-md); border-color: rgba(68,189,194,.35); transform: scale(1.03); }
.partner-logo img { max-height: 50px; width: auto; filter: grayscale(30%); transition: filter var(--transition); }
.partner-logo:hover img { filter: grayscale(0%); }

/* =============================================
   PAGE HERO (inner pages)
   ============================================= */
.page-hero {
  background: var(--rms-gradient-hero);
  padding: var(--space-xl) 0 var(--space-2xl);
  color: var(--rms-white);
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute; bottom: -1px; left: 0; right: 0;
  height: 60px; background: var(--rms-white);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.page-hero--alt::after { background: var(--rms-off-white); }
.page-hero h1 { color: var(--rms-white); margin-bottom: var(--space-sm); }
.page-hero p { color: rgba(255,255,255,.82); max-width: 600px; }

/* Breadcrumbs */
.breadcrumbs { padding: var(--space-sm) 0; border-bottom: 1px solid var(--rms-grey-light); background: var(--rms-off-white); }
.breadcrumbs ol { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; list-style: none; }
.breadcrumbs li { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--rms-grey-mid); }
.breadcrumbs li::after { content: '/'; opacity: .4; }
.breadcrumbs li:last-child::after { display: none; }
.breadcrumbs a { color: var(--rms-teal-deep); font-weight: 500; }

/* =============================================
   CONTACT
   ============================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--space-2xl); }
.contact-detail { display: flex; align-items: flex-start; gap: var(--space-sm); margin-bottom: var(--space-md); }
.contact-detail-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, rgba(178,224,227,.4), rgba(68,189,194,.15));
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-detail-icon svg { width: 18px; height: 18px; color: var(--rms-teal-deep); }
.contact-form {
  background: var(--rms-white); border: 1px solid var(--rms-grey-light);
  border-radius: var(--radius-lg); padding: var(--space-xl); box-shadow: var(--shadow-sm);
}
.form-group { display: flex; flex-direction: column; gap: .4rem; margin-bottom: var(--space-sm); }
.form-group label { font-family: var(--font-display); font-size: .85rem; font-weight: 600; color: var(--rms-dark); }
.form-group input,
.form-group select,
.form-group textarea,
.wpcf7-text, .wpcf7-email, .wpcf7-tel, .wpcf7-textarea, .wpcf7-select {
  width: 100%; padding: .75rem 1rem;
  border: 1px solid var(--rms-grey-light); border-radius: var(--radius-md);
  font-family: var(--font-body); font-size: .95rem; color: var(--rms-grey-dark);
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--rms-white);
}
.form-group input:focus, .form-group textarea:focus,
.wpcf7-text:focus, .wpcf7-email:focus, .wpcf7-textarea:focus {
  outline: none; border-color: var(--rms-teal-mid);
  box-shadow: 0 0 0 3px rgba(68,189,194,.14);
}
.form-group textarea, .wpcf7-textarea { min-height: 130px; resize: vertical; }

/* =============================================
   CTA BANNER
   ============================================= */
.cta-banner { background: var(--rms-gradient); padding: var(--space-xl) 0; text-align: center; }
.cta-banner h2 { color: var(--rms-white); margin-bottom: var(--space-sm); }
.cta-banner p { color: rgba(255,255,255,.85); max-width: 560px; margin: 0 auto var(--space-lg); }

/* =============================================
   ACCORDION
   ============================================= */
.accordion { border: 1px solid var(--rms-grey-light); border-radius: var(--radius-lg); overflow: hidden; }
.accordion-item { border-bottom: 1px solid var(--rms-grey-light); }
.accordion-item:last-child { border-bottom: none; }
.accordion-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-md) var(--space-lg); cursor: pointer;
  background: var(--rms-white); transition: background var(--transition);
  font-family: var(--font-display); font-weight: 600; color: var(--rms-dark);
}
.accordion-header:hover { background: var(--rms-off-white); }
.accordion-header.active { color: var(--rms-teal-deep); background: rgba(68,189,194,.05); }
.accordion-icon {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--rms-grey-light);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all var(--transition);
  font-size: .85rem; color: var(--rms-grey-mid);
}
.accordion-header.active .accordion-icon {
  background: var(--rms-teal-deep); border-color: var(--rms-teal-deep);
  color: white; transform: rotate(180deg);
}
.accordion-body { display: none; padding: 0 var(--space-lg) var(--space-md); background: rgba(68,189,194,.025); }
.accordion-body.active { display: block; }

/* =============================================
   DOWNLOAD ITEMS
   ============================================= */
.download-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  background: var(--rms-white); border: 1px solid var(--rms-grey-light);
  border-radius: var(--radius-md); transition: all var(--transition);
  gap: var(--space-md); flex-wrap: wrap;
}
.download-item:hover { box-shadow: var(--shadow-sm); border-color: rgba(68,189,194,.28); }
.download-info { display: flex; align-items: center; gap: var(--space-sm); }
.download-icon { width: 40px; height: 40px; background: rgba(68,189,194,.12); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; }
.download-icon svg { width: 20px; height: 20px; color: var(--rms-teal-deep); }
.download-meta strong { display: block; font-family: var(--font-display); font-size: .95rem; color: var(--rms-dark); }
.download-meta span { font-size: .82rem; color: var(--rms-grey-mid); }

/* =============================================
   SITE FOOTER
   ============================================= */
.site-footer { background: var(--rms-dark); color: rgba(255,255,255,.7); }
.footer-top {
  padding: var(--space-2xl) 0 var(--space-xl);
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: var(--space-xl);
}

/* Footer logo — invert the PNG to show white on dark background */
.footer-brand .site-logo img,
.footer-brand .custom-logo-link img {
  height: 40px; width: auto; margin-bottom: var(--space-md);
  filter: brightness(0) invert(1);
}
.footer-brand p { font-size: .9rem; line-height: 1.7; color: rgba(255,255,255,.55); margin-bottom: var(--space-md); }
.footer-col h4 {
  font-family: var(--font-display); font-size: .85rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--rms-white); margin-bottom: var(--space-md);
}
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul li a { font-size: .9rem; color: rgba(255,255,255,.55); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--rms-teal-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: var(--space-md) 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-sm); flex-wrap: wrap;
}
.footer-bottom p { font-size: .85rem; color: rgba(255,255,255,.4); margin: 0; }
.footer-bottom-links { display: flex; gap: var(--space-md); }
.footer-bottom-links a { font-size: .82rem; color: rgba(255,255,255,.4); }
.footer-bottom-links a:hover { color: var(--rms-teal-light); }

/* =============================================
   WP PAGINATION
   ============================================= */
.pagination { display: flex; justify-content: center; gap: .5rem; margin: var(--space-xl) 0; }
.pagination .page-numbers {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); border: 1px solid var(--rms-grey-light);
  font-family: var(--font-display); font-weight: 600; font-size: .9rem;
  color: var(--rms-grey-dark); transition: all var(--transition);
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current { background: var(--rms-teal-deep); color: var(--rms-white); border-color: var(--rms-teal-deep); }

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.animate-fade-up { animation: fadeInUp 0.6s ease both; }
.animate-delay-1 { animation-delay: .1s; }
.animate-delay-2 { animation-delay: .2s; }
.animate-delay-3 { animation-delay: .3s; }

/* =============================================
   ACCESSIBILITY
   ============================================= */
:focus-visible { outline: 2px solid var(--rms-teal-mid); outline-offset: 3px; border-radius: var(--radius-sm); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-image { display: none; }
  .hero-stats { justify-content: center; }
  .about-split, .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  :root { --space-2xl: 4rem; --space-xl: 2.5rem; }
  .primary-nav { display: none; }
  .menu-toggle { display: block; }
  .primary-nav.is-open {
    display: flex; flex-direction: column;
    position: absolute; top: 80px; left: 0; right: 0;
    background: var(--rms-white); border-bottom: 1px solid var(--rms-grey-light);
    box-shadow: var(--shadow-lg); padding: var(--space-md); z-index: 999;
  }
  .primary-nav.is-open ul { flex-direction: column; width: 100%; }
  .primary-nav.is-open .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; background: var(--rms-off-white);
  }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: var(--space-lg); }
  .footer-bottom { flex-direction: column; text-align: center; }
  .container { padding: 0 var(--space-md); }
  .contact-form { padding: var(--space-lg); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
