/* =============================================================================
   RRGC Enterprises — Global styles
   ============================================================================= */

:root {
  --color-primary: #163a84;
  --color-primary-rgb: 22, 58, 132;
  --color-primary-light: #4b6bc0;
  --color-primary-dark: #0f275a;
  --color-secondary: #54b34a;
  --color-secondary-rgb: 84, 179, 74;
  --color-white: #ffffff;
  --color-gray-50: #f8fafc;
  --color-gray-100: #f1f5f9;
  --color-gray-200: #e2e8f0;
  --color-gray-400: #94a3b8;
  --color-gray-500: #64748b;
  --color-gray-700: #334155;
  --color-gray-900: #0f172a;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-bg: #ffffff;
  --color-bg-alt: #f8fafc;
  --color-border: #e2e8f0;
  --font-family-heading: "Montserrat", system-ui, sans-serif;
  --font-family-body: "Open Sans", system-ui, sans-serif;
  --max-width-content: 1200px;
  --container-padding: 24px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-family-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
}

h1,
h2,
h3 {
  font-family: var(--font-family-heading);
  margin: 0 0 0.75rem;
  color: var(--color-gray-900);
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

p {
  margin: 0 0 1rem;
}

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

a {
  color: var(--color-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color var(--transition-base);
}

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

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

.muted {
  color: var(--color-text-muted);
}

.container {
  width: 100%;
  max-width: var(--max-width-content);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.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;
}

.sr-only:focus {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.75rem 1rem;
  clip: auto;
  overflow: visible;
  white-space: normal;
  z-index: 10000;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-md);
  font-weight: 600;
}

/* Focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.gradient-text {
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-primary-light)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* -----------------------------------------------------------------------------
   Header — white bar
   ----------------------------------------------------------------------------- */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 80px;
  display: flex;
  align-items: center;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  transition: height 0.3s ease, box-shadow 0.3s ease;
}

.header--scrolled {
  height: 64px;
  box-shadow: var(--shadow-md);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  gap: 1.5rem;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--color-gray-900);
}

.header__logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.header__nav-desktop {
  display: flex;
  align-items: center;
  gap: 2rem;
}

@media (max-width: 1023px) {
  .header__nav-desktop {
    display: none;
  }
}

.header__links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header__links a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.header__links a:hover {
  color: var(--color-primary);
}

.header__links a.is-active {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.header__links-item--dropdown {
  position: relative;
}

.header__links-item--dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.header__links-item--dropdown > a::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.65;
}

.header__dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  z-index: 1100;
  min-width: min(320px, calc(100vw - 48px));
  margin: 0;
  padding: 0.4rem 0;
  list-style: none;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 6px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.header__dropdown a {
  display: block;
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  white-space: normal;
  max-width: 22rem;
  line-height: 1.35;
}

.header__dropdown a:hover,
.header__dropdown a:focus-visible {
  color: var(--color-primary);
  background: var(--color-gray-50);
}

.header__dropdown a.is-active {
  color: var(--color-primary);
  background: rgba(var(--color-primary-rgb), 0.08);
  text-decoration: none;
}

.header__links-item--dropdown:focus-within .header__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

@media (hover: hover) and (pointer: fine) {
  .header__links-item--dropdown:hover .header__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  font-family: var(--font-family-heading);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition-base), color var(--transition-base),
    border-color var(--transition-base), transform var(--transition-base);
}

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

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

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

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

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

.btn--outline-dark:hover {
  background: rgba(var(--color-primary-rgb), 0.08);
  color: var(--color-primary-dark);
}

.btn--full {
  width: 100%;
}

.header__cta-phone {
  white-space: nowrap;
}

.header__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  background: var(--color-gray-50);
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--color-gray-900);
}

.header__toggle:hover {
  background: var(--color-gray-100);
  border-color: var(--color-gray-200);
}

@media (max-width: 1023px) {
  .header__toggle {
    display: flex;
  }
}

.header__toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  position: relative;
}

.header__toggle-bar::before,
.header__toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: currentColor;
}

.header__toggle-bar::before {
  top: -7px;
}

.header__toggle-bar::after {
  top: 7px;
}

.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 1100;
  pointer-events: none;
  visibility: hidden;
}

.nav-drawer.is-open {
  pointer-events: auto;
  visibility: visible;
}

.nav-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-drawer.is-open .nav-drawer__overlay {
  opacity: 1;
}

.nav-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(100%, 320px);
  height: 100%;
  background: var(--color-primary-dark);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 5rem 1.5rem 2rem;
  box-shadow: var(--shadow-lg);
}

.nav-drawer.is-open .nav-drawer__panel {
  transform: translateX(0);
}

.nav-drawer__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.nav-drawer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-drawer__list a {
  display: block;
  padding: 0.85rem 0;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-drawer__list a.is-active {
  color: var(--color-white);
}

.nav-drawer__item--sub > a {
  font-weight: 700;
}

.nav-drawer__sub {
  list-style: none;
  margin: 0.35rem 0 0.75rem;
  padding: 0 0 0 0.75rem;
  border-left: 2px solid rgba(255, 255, 255, 0.2);
}

.nav-drawer__sub li {
  margin: 0;
}

.nav-drawer__sub a {
  padding: 0.45rem 0;
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: none;
  color: rgba(255, 255, 255, 0.88);
}

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

.nav-drawer__sub a.is-active {
  color: var(--color-white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nav-drawer__cta {
  margin-top: auto;
  padding-top: 1.5rem;
}

/* -----------------------------------------------------------------------------
   Hero
   ----------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--color-secondary);
}

.hero--page {
  min-height: 45vh;
  padding-top: 80px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("Header%20images%201.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero--home .hero__bg {
  background-image: url("Header%20Image%202.png");
  background-attachment: scroll;
}

.hero--page.hero--pos-about .hero__bg {
  background-image: url("1.png");
  background-position: 20% 40%;
}

.hero--page.hero--pos-services .hero__bg {
  background-image: url("2.png");
  background-position: 60% 35%;
}

.hero--page.hero--pos-contact .hero__bg {
  background-image: url("3.png");
  background-position: 45% 55%;
}

.hero--page.hero--pos-privacy .hero__bg {
  background-image: url("4.png");
  background-position: 70% 30%;
}

.hero--page.hero--pos-service .hero__bg {
  background-image: url("5.png");
  background-position: 35% 45%;
}

.hero--page.hero--pos-service.hero--svc-autonomous .hero__bg {
  background-image: url("1.png");
}

.hero--page.hero--pos-service.hero--svc-islands .hero__bg {
  background-image: url("2.png");
}

.hero--page.hero--pos-service.hero--svc-cleaning .hero__bg {
  background-image: url("3.png");
}

.hero--page.hero--pos-service.hero--svc-franchise .hero__bg {
  background-image: url("4.png");
}

.hero--page.hero--pos-service.hero--svc-bespoke .hero__bg {
  background-image: url("5.png");
}

.hero--page.hero--pos-suburb .hero__bg {
  background-position: 50% 60%;
}

.hero--page.hero--pos-wa .hero__bg {
  background-image: url("Header%20images%201.png");
  background-position: 18% 48%;
}

.hero--page.hero--pos-nsw .hero__bg {
  background-image: url("Header%20Image%202.png");
  background-position: 62% 42%;
}

.hero--page.hero--pos-qld .hero__bg {
  background-image: url("1.png");
  background-position: 44% 58%;
}

.hero--page.hero--pos-tas .hero__bg {
  background-image: url("2.png");
  background-position: 55% 36%;
}

.hero--page.hero--pos-vic .hero__bg {
  background-image: url("3.png");
  background-position: 30% 52%;
}

.hero--page.hero--pos-nz .hero__bg {
  background-image: url("4.png");
  background-position: 68% 55%;
}

.hero--page.hero--pos-byford .hero__bg {
  background-image: url("5.png");
  background-position: 40% 44%;
}

@media (max-width: 768px) {
  .hero__bg {
    background-attachment: scroll;
  }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(var(--color-secondary-rgb), 0.92) 0%,
    rgba(var(--color-secondary-rgb), 0.72) 50%,
    rgba(var(--color-secondary-rgb), 0.5) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: 6rem var(--container-padding) 4rem;
}

.hero--page .hero__content {
  padding-top: 4rem;
  padding-bottom: 3rem;
}

.hero__inner {
  max-width: 720px;
}

.hero__badge,
.hero__headline,
.hero__subheadline,
.hero__cta-group,
.hero__trust-bar {
  opacity: 0;
  transform: translateY(24px);
  animation: heroReveal 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero__badge {
  animation-delay: 0.2s;
}

.hero__headline {
  animation-delay: 0.4s;
}

.hero__subheadline {
  animation-delay: 0.6s;
}

.hero__cta-group {
  animation-delay: 0.8s;
}

.hero__trust-bar {
  animation-delay: 1s;
}

@keyframes heroReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__badge,
  .hero__headline,
  .hero__subheadline,
  .hero__cta-group,
  .hero__trust-bar {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

.hero__badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.18);
  color: var(--color-white);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero__headline {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.hero__subheadline {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.05rem;
  max-width: 38rem;
  margin-bottom: 1.75rem;
}

.hero__cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero__trust-bar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero__trust-bar {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.hero__trust-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.85rem;
  font-weight: 600;
}

.hero__trust-item svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* -----------------------------------------------------------------------------
   Wave dividers
   ----------------------------------------------------------------------------- */

.wave-divider {
  position: relative;
  height: 80px;
  overflow: hidden;
  line-height: 0;
  margin-bottom: -2px;
}

.wave-divider svg {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
}

.wave-divider--top svg {
  top: 0;
  bottom: auto;
}

@media (max-width: 640px) {
  .wave-divider {
    height: 40px;
  }
}

.wave-divider--white {
  color: var(--color-white);
}

.wave-divider--light {
  color: var(--color-gray-50);
}

.wave-divider--dark {
  color: var(--color-secondary);
}

.wave-divider--primary {
  color: var(--color-primary);
}

/* -----------------------------------------------------------------------------
   Sections
   ----------------------------------------------------------------------------- */

.section {
  padding: 4rem 0;
}

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

.section--light {
  background: var(--color-gray-50);
}

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

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

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

.section--primary h2,
.section--primary h3 {
  color: var(--color-white);
}

.section--textured {
  position: relative;
}

.section--textured::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

.section--textured > * {
  position: relative;
  z-index: 1;
}

.section__intro {
  max-width: 42rem;
  margin-bottom: 2.5rem;
}

.section__heading {
  margin-bottom: 0.75rem;
}

.services-section .section__heading,
.services-section .section__intro,
.locations-section .section__heading,
.locations-section .section__intro {
  text-align: center;
}

.services-section .section__intro,
.locations-section .section__intro {
  margin-left: auto;
  margin-right: auto;
}

/* -----------------------------------------------------------------------------
   Scroll animations
   ----------------------------------------------------------------------------- */

.animate-on-scroll,
.animate-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.is-visible,
.animate-stagger > *.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll,
  .animate-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* -----------------------------------------------------------------------------
   Service cards
   ----------------------------------------------------------------------------- */

.service-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  overflow: hidden;
  background: var(--color-white);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s ease, transform 0.25s ease,
    box-shadow 0.25s ease;
}

.service-card__thumb {
  margin: -28px -28px 1rem -28px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-gray-200);
}

.service-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08), 0 0 0 1px var(--color-primary);
}

.service-card__icon {
  width: 52px;
  height: 52px;
  background: rgba(var(--color-primary-rgb), 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--color-primary);
  transition: background 0.25s ease, color 0.25s ease;
}

.service-card:hover .service-card__icon {
  background: var(--color-primary);
  color: var(--color-white);
}

.service-card__title {
  font-family: var(--font-family-heading);
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.service-card__excerpt {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  flex-grow: 1;
  margin-bottom: 1rem;
}

.service-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-primary);
}

.service-card__arrow {
  transition: transform 0.25s ease;
}

.service-card:hover .service-card__arrow {
  transform: translateX(4px);
}

.grid-services {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .grid-services {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .grid-services--home > .service-card:nth-child(5):last-child,
  .grid-services--page > .service-card:nth-child(5):last-child {
    grid-column: 1 / -1;
    max-width: calc((100% - 1.5rem) / 2);
    justify-self: center;
  }
}

@media (min-width: 1024px) {
  .grid-services--home {
    grid-template-columns: repeat(6, 1fr);
  }

  .grid-services--home > .service-card:nth-child(-n + 3) {
    grid-column: span 2;
  }

  .grid-services--home > .service-card:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .grid-services--home > .service-card:nth-child(5) {
    grid-column: 4 / span 2;
  }

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

  .grid-services--page > .service-card:nth-child(5):last-child {
    grid-column: 1 / -1;
    max-width: calc((100% - 1.5rem) / 2);
    justify-self: center;
  }
}

/* -----------------------------------------------------------------------------
   About split
   ----------------------------------------------------------------------------- */

.about-split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .about-split {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.about-split__media .about-photo {
  border-radius: var(--radius-lg);
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-lg);
}

/* -----------------------------------------------------------------------------
   Media gallery & page banner images
   ----------------------------------------------------------------------------- */

.media-gallery-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (min-width: 700px) {
  .media-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .media-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.media-gallery__item {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--color-white);
}

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

.media-gallery__item figcaption {
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.page-video-banner {
  margin-top: 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--color-gray-900);
}

.page-video-banner img {
  width: 100%;
  display: block;
  max-height: 280px;
  object-fit: contain;
}

.page-video-banner figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  background: var(--color-white);
}

.page-video-banner + .section__heading {
  margin-top: 2.5rem;
}

.contact-aside-media {
  margin-top: 1.25rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.contact-aside-media > img,
.contact-aside-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.contact-aside-media + .contact-aside-media {
  margin-top: 1.25rem;
}

.contact-aside-media figcaption {
  margin-top: 0.5rem;
  font-size: 0.88rem;
}

.footer__brand {
  margin-top: 1.25rem;
}

.footer__brand img {
  height: 44px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  opacity: 0.95;
}

/* -----------------------------------------------------------------------------
   Stats
   ----------------------------------------------------------------------------- */

.stats-grid {
  display: grid;
  gap: 2rem;
  text-align: center;
}

@media (min-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  padding: 1rem;
}

.stat-number {
  font-family: var(--font-family-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 900;
  color: var(--color-white);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 0.35rem;
}

.stats-section .stats-grid {
  margin-top: 2rem;
}

.stats-section .section-lead-muted {
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner .cta-lead {
  color: rgba(255, 255, 255, 0.92);
}

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

.btn--light-solid:hover {
  background: var(--color-gray-100);
  color: var(--color-primary-dark);
  border-color: var(--color-gray-100);
}

/* -----------------------------------------------------------------------------
   Why us cards
   ----------------------------------------------------------------------------- */

.why-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .why-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.why-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.why-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(var(--color-primary-rgb), 0.1);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

/* -----------------------------------------------------------------------------
   CTA banner
   ----------------------------------------------------------------------------- */

.cta-banner__inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .cta-banner__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cta-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* -----------------------------------------------------------------------------
   Location cards
   ----------------------------------------------------------------------------- */

.locations-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .locations-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .locations-grid > .location-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: calc((100% - 1.25rem) / 2);
    justify-self: center;
  }
}

@media (min-width: 1024px) {
  .locations-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .locations-grid > .location-card:last-child:nth-child(3n + 1) {
    grid-column: 2;
  }
}

.location-card {
  display: block;
  padding: 1.5rem;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  text-decoration: none;
  color: inherit;
  font-weight: 700;
  font-family: var(--font-family-heading);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.location-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.location-card span {
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: 600;
  display: block;
  margin-top: 0.35rem;
}

/* -----------------------------------------------------------------------------
   Footer
   ----------------------------------------------------------------------------- */

.footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.88);
  padding: 3rem 0 0;
}

.footer a {
  color: rgba(255, 255, 255, 0.92);
}

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

.footer__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer__col h3 {
  color: var(--color-white);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer__tagline {
  margin-top: 1rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

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

.footer__list li {
  margin-bottom: 0.5rem;
}

.footer__list a {
  text-decoration: none;
}

.footer__contact-block {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer__contact-block {
    grid-template-columns: repeat(2, 1fr);
  }
}

.footer__bottom {
  margin-top: 2rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
}

/* -----------------------------------------------------------------------------
   Page content blocks
   ----------------------------------------------------------------------------- */

.page-block {
  padding: 3rem 0;
}

.values-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.value-card {
  background: var(--color-gray-50);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--color-border);
}

.contact-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  background: var(--color-white);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-error {
  color: var(--color-primary-dark);
  font-size: 0.85rem;
  margin-top: 0.25rem;
  display: none;
}

.form-group.is-invalid .form-error {
  display: block;
}

.form-group.is-invalid input,
.form-group.is-invalid select,
.form-group.is-invalid textarea {
  border-color: var(--color-primary);
}

.form-success {
  display: none;
  padding: 1rem 1.25rem;
  background: rgba(var(--color-secondary-rgb), 0.15);
  border: 1px solid var(--color-secondary);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  font-weight: 600;
}

.form-success.is-visible {
  display: block;
}

/* -----------------------------------------------------------------------------
   FAQ
   ----------------------------------------------------------------------------- */

.faq {
  max-width: 720px;
}

.faq__item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: var(--color-white);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.faq__item[open] .faq__icon {
  transform: rotate(180deg);
}

.faq__answer {
  padding: 0 1.25rem 1rem;
  overflow: hidden;
}

.faq__answer p {
  color: var(--color-text-muted);
}

/* -----------------------------------------------------------------------------
   Prose / lists
   ----------------------------------------------------------------------------- */

.prose ul {
  margin: 0 0 1rem 1.25rem;
  padding: 0;
}

.prose li {
  margin-bottom: 0.35rem;
}

/* -----------------------------------------------------------------------------
   Call bar (mobile)
   ----------------------------------------------------------------------------- */

.call-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 998;
  display: flex;
  align-items: center;
  background: var(--color-secondary);
  border-top: 2px solid var(--color-primary);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0.65rem var(--container-padding);
  gap: 0.75rem;
}

.call-bar.is-visible {
  transform: translateY(0);
}

@media (min-width: 1024px) {
  .call-bar {
    display: none;
  }
}

.call-bar__icon-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.call-bar__pulse {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  animation: callPulse 2s ease-out infinite;
}

@keyframes callPulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }

  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.call-bar__icon {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
}

.call-bar__text {
  flex: 1;
  min-width: 0;
}

.call-bar__text a {
  color: var(--color-white);
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
}

.call-bar__dismiss {
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: var(--color-white);
  font-weight: 700;
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.8rem;
}

body.has-call-bar {
  padding-bottom: 72px;
}

@media (min-width: 1024px) {
  body.has-call-bar {
    padding-bottom: 0;
  }
}

/* -----------------------------------------------------------------------------
   Utilities
   ----------------------------------------------------------------------------- */

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

.mt-0 {
  margin-top: 0;
}

.mb-lg {
  margin-bottom: 2rem;
}

/* Main offset for fixed header */
#main {
  padding-top: 0;
}
