:root {
  --color-bg: #f7f9fc;
  --color-surface: #ffffff;
  --color-surface-alt: #eef2fb;
  --color-text: #0f172a;
  --color-text-muted: #5b6783;
  --color-text-soft: #6f7a94;
  --color-border: #d7deea;
  --color-border-strong: #bac4d6;
  --color-accent: #e25825;
  --color-accent-hover: #f06b3a;
  --color-accent-soft: rgba(226, 88, 37, 0.14);
  --color-positive: #27ae85;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.08);
  --shadow-card: 0 14px 38px rgba(99, 113, 136, 0.18);
  --shadow-card-soft: 0 10px 30px rgba(15, 23, 42, 0.06);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
}

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

body {
  margin: 0;
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

.container {
  width: min(1160px, 100% - 3rem);
  margin: 0 auto;
}

@media (max-width: 900px) {
  .container {
    width: calc(100% - 2.4rem);
  }
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 1.6rem);
  }
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 220ms ease;
}

a:hover,
a:focus {
  color: var(--color-accent);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(226, 88, 37, 0.3);
}

p {
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-text);
  font-weight: 700;
  margin: 0;
}

.text-inverse {
  color: #fff;
}

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

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

.u-mb-sm {
  margin-bottom: 0.75rem;
}

.u-mt-md {
  margin-top: 1rem;
}

.hero-title {
  font-size: clamp(2.75rem, 6vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.section-title {
  font-size: clamp(2.1rem, 4.5vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.section-subtitle,
.lead {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.eyebrow {
  display: block; /* Change from inline-flex */
  padding-bottom: 0.75rem; /* Add space below */
  border-bottom: 2px solid var(--color-accent); /* Add the underline */
  color: var(--color-accent);
  font-size: 0.85rem;
  font-weight: 700; /* Make it a bit bolder */
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem; /* Space between underline and main title */
  max-width: max-content; /* Make the underline fit the text */
}

.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border-radius: var(--radius-pill);
  padding: 0.85rem 1.8rem;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.015em;
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 200ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--color-accent);
  color: #fff;
  /* box-shadow: 0 20px 38px rgba(226, 88, 37, 0.26); */ /* This line has been removed */
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--color-accent-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--color-surface);
  color: var(--color-text);
  border: 1.5px solid var(--color-border-strong);
  box-shadow: var(--shadow-card-soft);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-1px);
}

.btn-ghost {
  background-color: transparent;
  border: 1.5px solid transparent;
  color: var(--color-text-muted);
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  color: var(--color-accent);
}

.hidden {
  display: none !important;
}

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

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button-row.pad-top {
  padding-top: 0.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: transparent;
  transition: box-shadow 220ms ease, background-color 220ms ease;
}

.header-top {
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  font-size: 0.85rem;
  color: var(--color-text-soft);
}

.header-top .container {
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.header-note {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.header-note strong {
  font-weight: 600;
  color: var(--color-text);
}

.header-note span:last-child {
  color: var(--color-text-soft);
}

.header-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.header-link {
  font-weight: 600;
  color: var(--color-text);
}

.header-link:hover {
  color: var(--color-accent);
}

.header-main {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(215, 222, 234, 0.7);
}

.header-main .container {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
}

.brand img {
  height: 38px;
  width: auto;
  box-shadow: var(--shadow-card-soft);
  border-radius: var(--radius-sm); /* Re-add the rounded corners */
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.brand-title {
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.96rem;
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--color-text-soft);
}

.nav-link {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-soft);
  padding: 0.35rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: -0.6rem;
  height: 2px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, rgba(226, 88, 37, 0.8), rgba(226, 88, 37, 0.4));
  opacity: 0;
  transform: scaleX(0.4);
  transition: transform 200ms ease, opacity 200ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--color-text);
}

.nav-link.is-active {
  color: var(--color-accent);
  font-weight: 600;
}

.nav-link.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-strong);
  background-color: var(--color-surface);
  color: var(--color-text);
}

.mobile-menu-panel {
  position: fixed;
  top: 120px;
  left: 0;
  right: 0;
  z-index: 40;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(215, 222, 234, 0.85);
  transition: opacity 180ms ease, transform 180ms ease;
}

@media (min-width: 768px) {
  .mobile-menu-panel {
    display: none !important;
  }
}

.hero-background {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(226, 88, 37, 0.15), transparent 55%),
              linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(247, 249, 252, 0.4));
  pointer-events: none;
  z-index: 0;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 7vw, 5rem) 0;
}

.hero__grid {
  position: relative;
  display: grid;
  gap: clamp(2.2rem, 4vw, 3.5rem);
  align-items: center;
}

@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.hero__copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(1.6rem, 3vw, 2.2rem);
  max-width: 34rem;
}

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

.hero__visual {
  position: relative;
  z-index: 1;
}

.stack-md {
  display: grid;
  gap: clamp(1.2rem, 3vw, 1.8rem);
}

.hero-panel {
  position: relative;
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.hero-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-panel figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.4rem 1.6rem;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.82), transparent 65%);
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.5;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.9rem;
}

.stat-card {
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid rgba(215, 222, 234, 0.7);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-card-soft);
}

.stat-value {
  display: block;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--color-accent);
}

.stat-label {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.section {
  padding: clamp(3.2rem, 6vw, 5rem) 0;
}

.section-header {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 2.5rem;
}

.section--no-top {
  padding-top: 0;
}

.section--no-bottom {
  padding-bottom: 0;
}

.section--tight {
  padding: clamp(2.6rem, 5vw, 3.4rem) 0;
}

.section--pad-bottom-lg {
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.section-header.center {
  text-align: center;
  justify-items: center;
}

.section-subtitle {
  max-width: 48rem;
}

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

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

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.9rem;
  border-radius: var(--radius-lg);
  background-color: var(--color-surface);
  border: 1px solid rgba(221, 228, 242, 0.6);
  box-shadow: var(--shadow-card-soft);
  transition: transform 200ms ease, box-shadow 220ms ease;
}

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

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(226, 88, 37, 0.12);
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 600;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.feature-card p {
  color: var(--color-text-muted);
  line-height: 1.65;
}

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

@media (min-width: 960px) {
  .testimonial-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.testimonial-card {
  position: relative;
  padding: 2.2rem 2rem;
  border-radius: var(--radius-lg);
  background-color: var(--color-surface);
  border: 1px solid rgba(221, 228, 242, 0.7);
  box-shadow: var(--shadow-card-soft);
  display: flex; /* Add flex to help with structure */
  flex-direction: column; /* Stack items vertically */
  justify-content: space-between; /* Push author to the bottom */
}


.testimonial-text {
  color: var(--color-text);
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.banner {
  position: relative;
  isolation: isolate;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(226, 88, 37, 0.95), rgba(240, 107, 58, 0.8));
  color: #fff;
  padding: clamp(2.4rem, 3vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1.6rem, 3vw, 2.4rem);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.banner::after {
  content: '';
  position: absolute;
  inset: -20% 0 -40% 0;
  background: radial-gradient(circle at 15% 25%, rgba(255, 255, 255, 0.18), transparent 60%),
    radial-gradient(circle at 85% 30%, rgba(255, 255, 255, 0.14), transparent 65%);
  opacity: 0.85;
  pointer-events: none;
  z-index: 0;
}

.banner__content,
.banner__actions {
  position: relative;
  z-index: 1;
}

.banner__content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 38rem;
}

.banner__eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
}

.banner__title {
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  line-height: 1.15;
}

.banner__description {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
}

.banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.85rem, 2vw, 1.15rem);
  align-items: stretch;
}

.banner__actions {
  flex-shrink: 0;
  justify-content: center;
}

.banner .btn-secondary {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
  background: transparent;
  box-shadow: none;
}

.banner .btn-secondary:hover,
.banner .btn-secondary:focus-visible {
  border-color: #fff;
}

@media (min-width: 768px) {
  .banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: clamp(2.6rem, 4vw, 3.4rem);
  }

  .banner__actions {
    align-items: center;
    justify-content: flex-end;
    min-width: 16rem;
  }
}

.info-card {
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid rgba(221, 228, 242, 0.6);
  padding: 1.6rem;
  box-shadow: var(--shadow-card-soft);
}

.info-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.9rem;
}

.info-card ul,
.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.info-list li::before {
  content: '•';
  margin-right: 0.6rem;
  color: var(--color-accent);
}

.form-shell {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  border: 1px solid rgba(221, 228, 242, 0.7);
  box-shadow: var(--shadow-soft);
}

.form-grid {
  display: grid;
  gap: 1.3rem;
}

@media (min-width: 640px) {
  .form-grid.two-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.5rem;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-label {
  font-weight: 600;
  color: var(--color-text);
}

.form-label span {
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 0.85rem;
}

.form-input,
.form-textarea {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(189, 200, 218, 0.9);
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--color-text);
  background-color: rgba(255, 255, 255, 0.92);
  transition: border-color 160ms ease, box-shadow 180ms ease, background-color 160ms ease;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--color-accent);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(226, 88, 37, 0.12);
}

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

.form-hint {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.map-card iframe {
  width: 100%;
  border: none;
  border-radius: var(--radius-md);
  min-height: 260px;
}

.contact-meta {
  display: grid;
  gap: 1rem;
  margin-top: 1.6rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.contact-meta strong {
  color: var(--color-text);
}

/* ---------- Redesigned Footer Section (Alternative Light Theme) ---------- */

.footer {
  margin-top: 3rem;
  background-color: var(--color-surface-alt); /* Changed to the light blue-grey */
  color: var(--color-text-muted);
  padding: clamp(3rem, 6vw, 4rem) 0;
  border-top: 1px solid var(--color-border-strong); /* A slightly stronger top border */
  font-size: 0.95rem;
}

.footer .container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.footer-top {
  display: grid;
  gap: 2.5rem;
}

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

.footer-column--brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--color-text);
}

.footer-brand .brand-title {
  font-size: 1.05rem;
}

.footer-brand .brand-sub {
  color: var(--color-text-soft);
}

.footer-brand__mark {
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card-soft);
}

.footer-blurb {
  max-width: 30ch;
  line-height: 1.6;
}

.footer-title {
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

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

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

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-legal {
  font-size: 0.85rem;
  color: var(--color-text-soft);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

@media (min-width: 768px) {
  .footer-legal span {
    display: inline;
  }
  .footer-legal span::before {
    content: ' • ';
    margin: 0 0.25rem;
  }
}

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

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

.social-links a:hover {
  color: var(--color-accent);
}
/* ---------- Page layout ---------- */

.page {
  padding: clamp(3.4rem, 7vw, 5rem) 0;
}

.page__inner {
  display: grid;
  gap: clamp(2.2rem, 5vw, 3.4rem);
}

.tile-grid {
  display: grid;
  gap: 1.4rem;
}

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

  .tile-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.tile {
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid rgba(221, 228, 242, 0.7);
  padding: 1.9rem;
  box-shadow: var(--shadow-card-soft);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: transform 180ms ease, box-shadow 200ms ease;
}

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

.tile h3 {
  font-size: 1.2rem;
}

.tile p {
  color: var(--color-text-muted);
  line-height: 1.65;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.check-list li {
  position: relative;
  padding-left: 1.6rem;
}

.check-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  top: 0.05rem;
  color: var(--color-accent);
  font-weight: 700;
}

.notice {
  border-radius: var(--radius-md);
  background-color: rgba(226, 88, 37, 0.08);
  border: 1px dashed rgba(226, 88, 37, 0.3);
  padding: 1.4rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

details.faq-item {
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid rgba(221, 228, 242, 0.7);
  box-shadow: var(--shadow-card-soft);
  padding: 1.6rem 1.8rem;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

details.faq-item[open] {
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

summary.faq-question {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

summary.faq-question::-webkit-details-marker {
  display: none;
}

.faq-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(226, 88, 37, 0.12);
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: transform 180ms ease;
}

.faq-answer {
  margin-top: 1rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

details.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

.prose {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.prose h3 {
  color: var(--color-text);
  font-size: 1.35rem;
  margin-top: 2.4rem;
  margin-bottom: 1rem;
}

.prose p {
  margin-bottom: 1rem;
}

.prose ul {
  margin: 1rem 0;
  padding-left: 1.2rem;
}

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

.prose-card {
  background-color: var(--color-surface);
  border-radius: 20px;
  padding: clamp(2rem, 5vw, 2.6rem);
  border: 1px solid rgba(221, 228, 242, 0.7);
  box-shadow: var(--shadow-card-soft);
}

.aside-stack {
  display: grid;
  gap: 1.4rem;
}

.aside-card {
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid rgba(221, 228, 242, 0.7);
  padding: 1.8rem;
  box-shadow: var(--shadow-card-soft);
}

.aside-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.aside-card p {
  color: var(--color-text-muted);
  line-height: 1.6;
}

.aside-card .btn-primary,
.aside-card .btn-secondary {
  width: 100%;
}

.footer .brand-title {
  font-size: 1rem;
}

/* ---------- Header layout ---------- */

.header-top__inner {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

@media (min-width: 640px) {
  .header-top__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.header-main__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.main-nav {
  display: none;
  align-items: center;
  gap: 1.6rem;
}

@media (min-width: 768px) {
  .main-nav {
    display: flex;
  }

  .header-cta {
    display: flex;
  }
}

.header-cta {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

.mobile-trigger {
  display: inline-flex;
}

@media (min-width: 768px) {
  .mobile-trigger {
    display: none;
  }
}

.site-header.is-condensed .header-main {
  box-shadow: var(--shadow-card-soft);
  background-color: rgba(255, 255, 255, 0.98);
}

/* ---------- Reveal animation ---------- */

/* Reveal baseline */
[data-reveal] {
  --reveal-y: 28px;                /* tweakable offset */
  --reveal-dur: 560ms;             /* slightly shorter for snappier feel */
  --reveal-ease: cubic-bezier(0.22, 1, 0.36, 1); /* "standard" easing for UI */
  --reveal-delay: 0ms;             /* will be set via JS per element */

  opacity: 0;
  transform: translate3d(0, var(--reveal-y), 0);
  transition:
    opacity var(--reveal-dur) var(--reveal-ease) var(--reveal-delay),
    transform var(--reveal-dur) var(--reveal-ease) var(--reveal-delay);
  backface-visibility: hidden;     /* combats shimmer on some GPUs */
  filter: saturate(99%);           /* 1% trick nudges GPU compositing without visible change */
  contain: paint;                  /* isolate paint for smoother compositing */
}

/* Final state */
[data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: none;
}

/* Optional: direction variants */
[data-reveal][data-reveal-from="left"]  { transform: translate3d(-24px, 0, 0); }
[data-reveal][data-reveal-from="right"] { transform: translate3d(24px, 0, 0);  }
[data-reveal][data-reveal-from="up"]    { transform: translate3d(0, -24px, 0); }

/* Respect user preferences */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    filter: none !important;
  }
}


/* ---------- Utility layout helpers ---------- */

.stack-lg {
  display: grid;
  gap: clamp(1.4rem, 3vw, 2.2rem);
}

.grid-two {
  display: grid;
  gap: clamp(1.8rem, 4vw, 2.5rem);
}

@media (min-width: 960px) {
  .grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.grid-two-uneven {
  display: grid;
  gap: clamp(1.8rem, 4vw, 2.8rem);
}

@media (min-width: 960px) {
  .grid-two-uneven {
    grid-template-columns: minmax(0, 0.68fr) minmax(0, 0.32fr);
  }

  .grid-two-uneven.alt {
    grid-template-columns: minmax(0, 0.6fr) minmax(0, 0.4fr);
  }
}

.grid-balanced {
  display: grid;
  gap: clamp(1.8rem, 4vw, 2.5rem);
}

@media (min-width: 960px) {
  .grid-balanced {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.banner-actions {
  align-items: center;
}

.banner-actions.stacked {
  flex-direction: column;
  align-items: stretch;
}

@media (max-width: 600px) {
  .banner-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .banner__actions {
    width: 100%;
  }
}

.mobile-menu-panel {
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
}

.mobile-menu-panel[data-open="true"] {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-menu__inner {
  display: grid;
  gap: 0.9rem;
  padding: 1.8rem 0;
}

.mobile-menu__actions {
  display: grid;
  gap: 0.75rem;
  padding-top: 1.2rem;
}

.mobile-menu-panel .nav-link {
  display: block;
  padding: 0.35rem 0;
}

@media (max-width: 767px) {
  .header-top .container,
  .header-main .container {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }

  .header-links {
    gap: 0.9rem;
  }

  .header-cta {
    display: none;
  }

  .hero-panel figcaption {
    font-size: 0.88rem;
  }

  .form-shell {
    padding: 1.6rem;
  }
}

@media (max-width: 600px) {
  .header-links {
    display: none;
  }

  .hero-title {
    font-size: clamp(2.3rem, 8vw, 3rem);
  }

  .banner-actions {
    flex-direction: column;
  }
}

/* ---------- Alternating Features Section ---------- */

.alternating-features {
  display: grid;
  gap: clamp(3rem, 6vw, 5rem); /* Creates space between the two feature rows */
  padding: 2rem 0; /* Adds some vertical breathing room */
}

.alternating-feature {
  display: grid;
  gap: clamp(1.8rem, 4vw, 2.8rem);
  align-items: center;
}

/* On larger screens, create the 2-column layout */
@media (min-width: 768px) {
  .alternating-feature {
    grid-template-columns: repeat(2, 1fr);
  }

  /* This is the magic: it flips the order of the image on every second feature */
  .alternating-feature:nth-child(even) .alternating-feature__image {
    order: 2;
  }
}

/* Add this new rule for the container */
.alternating-feature__image {
  aspect-ratio: 1 / 1; /* This forces the container into a square */
  max-height: 450px; /* Optional: Prevents the image from getting too tall on large screens */
}

/* Replace your old rule with this updated one */
.alternating-feature__image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* This makes the image fill the square container, cropping the excess */
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.alternating-feature__text {
  display: grid;
  gap: 1rem;
}

.alternating-feature__text h3 {
  font-size: clamp(1.6rem, 3vw, 1.9rem);
  letter-spacing: -0.01em;
}

.alternating-feature__text p {
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 35rem; /* Keeps text readable */
}

.alternating-feature__text .btn-ghost {
  justify-self: start; /* Aligns the button to the left */
}

/* ---------- Star Rating ---------- */

/* ---------- Star Rating ---------- */

.star-rating {
  color: #f59e0b;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  text-align: center;
  letter-spacing: 0.5rem; /* Add this line to create space between stars */
}
