/* =============================================
   iBloomi — Main Stylesheet
   Colors: Navy #0D1B5E | Green #7DC51E | White #FFFFFF
   ============================================= */

:root {
  --navy: #0D1B5E;
  --navy-light: #1a2e8a;
  --navy-dark: #080f35;
  --green: #7DC51E;
  --green-dark: #5fa015;
  --green-light: #9edf36;
  --white: #ffffff;
  --off-white: #f8f9fc;
  --text: #1a1a2e;
  --text-muted: #5a6480;
  --border: #e2e6f0;
  --shadow-sm: 0 2px 8px rgba(13, 27, 94, 0.08);
  --shadow-md: 0 8px 32px rgba(13, 27, 94, 0.12);
  --shadow-lg: 0 24px 64px rgba(13, 27, 94, 0.16);
  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 24px;
}

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

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

body {
  font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3 {
  font-family: 'Noto Sans', sans-serif;
  line-height: 1.15;
  font-weight: 700;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: 1.25rem; font-weight: 600; }

em { color: var(--green); font-style: italic; }

/* ---- LAYOUT ---- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 110px 0;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--green);
  color: var(--navy-dark);
  border-color: var(--green);
}
.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(125, 197, 30, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
}

.btn-full { width: 100%; justify-content: center; }

/* ---- EYEBROWS ---- */
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}
.eyebrow--light { color: rgba(255,255,255,0.7); }

/* ---- SECTION HEADER ---- */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 70px;
}
.section-header h2 { margin-bottom: 16px; }
.section-desc { color: var(--text-muted); font-size: 1.05rem; }

/* =============================================
   NAVBAR
   ============================================= */
.nav-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s;
}
.nav-wrapper.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo img {
  height: 36px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover {
  background: var(--off-white);
  color: var(--navy);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.2s;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, #1a3a7a 100%);
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 90px 0;
}

/* Decorative background petals */
.hero-bg-petals {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.petal {
  position: absolute;
  border-radius: 50% 20% 50% 20%;
  opacity: 0.06;
  background: var(--green);
}
.p1 { width: 320px; height: 320px; top: -80px; right: -60px; transform: rotate(30deg); }
.p2 { width: 200px; height: 200px; bottom: -40px; right: 200px; transform: rotate(-20deg); opacity: 0.04; }
.p3 { width: 150px; height: 150px; top: 40%; left: -30px; transform: rotate(60deg); }
.p4 { width: 80px; height: 80px; top: 20%; right: 35%; transform: rotate(45deg); opacity: 0.08; }
.p5 { width: 260px; height: 260px; bottom: -100px; left: 40%; transform: rotate(-15deg); opacity: 0.03; }

.hero > .container {
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
  width: 100%;
}

.hero-content {
  min-width: 0;
}

.hero-headline {
  color: var(--white);
  margin-bottom: 28px;
}

.hero-headline--bold {
  font-weight: 800;
}

.text-accent {
  color: var(--green);
  font-style: normal;
}

.hero-sub {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 44px;
  max-width: 520px;
  font-style: italic;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

/* Hero product showcase frame */
.hero-video {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.showcase-frame {
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  box-shadow: var(--shadow-lg);
  min-width: 0;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.showcase-frame:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 30px 70px rgba(13, 27, 94, 0.22);
}

.showcase-frame img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* =============================================
   ABOUT US
   ============================================= */
.about {
  background: var(--off-white);
}

.about-container {
  max-width: 760px;
}

.about-content p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 20px;
}

.about-content .about-tagline {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--navy);
  margin-top: 32px;
  margin-bottom: 0;
}
.about-content .about-tagline em {
  font-style: normal;
}

/* =============================================
   FEATURES
   ============================================= */
.features {
  background: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.feature-card--accent {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.feature-card--accent h3 { color: var(--white); }
.feature-card--accent p { color: rgba(255,255,255,0.75); }

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(13, 27, 94, 0.06);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--navy);
}
.feature-card--accent .feature-icon {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}

.feature-card h3 {
  margin-bottom: 12px;
  color: var(--navy);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.925rem;
  line-height: 1.7;
}

/* =============================================
   HOW IT WORKS
   ============================================= */
.how-it-works {
  background: var(--off-white);
}

.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
  overflow: visible;
}

.step {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 16px;
  overflow: visible;
}

.step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--green), 0 0 0 8px rgba(125, 197, 30, 0.1);
}

.step-connector {
  flex: 0 0 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--navy), var(--green));
  margin-top: 26px;
  opacity: 0.3;
}

.step h3 {
  margin-bottom: 16px;
  color: var(--navy);
}

/* ---- Step image base ---- */
.step-image {
  margin-top: 20px;
  width: 130%;
  margin-left: -15%;
  box-sizing: border-box;
}

/* All step images: shadow + smooth hover scale */
.step-image img,
.overlap-card img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(13, 27, 94, 0.10), 0 1px 4px rgba(13, 27, 94, 0.06);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.step-image img:hover,
.overlap-card img:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 28px rgba(13, 27, 94, 0.16), 0 2px 8px rgba(13, 27, 94, 0.08);
}

/* ---- Step 2 image: 10% smaller than base ---- */
.step-image--sm {
  width: 117%;
  margin-left: -8.5%;
}

/* ---- Step 3 image: narrow portrait ---- */
.step-image--narrow {
  width: 100%;
  max-width: 240px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Step 1 overlapping two cards ---- */
.step-image--overlap {
  position: relative;
  width: 143%;
  margin-left: -21.5%;
  margin-top: 24px;
  /* Use explicit aspect-ratio instead of padding-bottom hack —
     more reliable across CDN/caching environments */
  aspect-ratio: 143/100;
}

.overlap-card {
  position: absolute;
  width: 72%;
}

.overlap-card img {
  width: 100%;
  max-width: 100%;
}

/* Back card: top-left */
.overlap-card--back {
  top: 0;
  left: 0;
  z-index: 1;
}

/* Front card: offset down-right, overlapping */
.overlap-card--front {
  top: 28%;
  left: 28%;
  z-index: 2;
}

/* Step 1 cards: 10% narrower, 10% taller, +4% overall size, +5% height */
.overlap-card img {
  transform-origin: center center;
  transform: scaleX(0.936) scaleY(1.201);
}

.overlap-card img:hover {
  transform: scaleX(0.936) scaleY(1.201) scale(1.04);
}

/* =============================================
   TESTIMONIALS
   ============================================= */
/* =============================================
   BENEFITS (Why Florists Choose iBloomi)
   ============================================= */
.benefits {
  background: var(--white);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.benefit-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.benefit-check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green);
  color: var(--navy-dark);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-card p {
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.5;
  font-weight: 500;
  margin: 0;
}

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

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
}

.testimonial-card--featured {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.testimonial-card--featured .stars { color: var(--green); }
.testimonial-card--featured p { color: rgba(255,255,255,0.85); }

.stars {
  color: #f59e0b;
  font-size: 0.95rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-avatar {
  width: 40px;
  height: 40px;
  background: var(--green);
  color: var(--navy-dark);
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.testimonial-author strong { display: block; font-size: 0.9rem; color: inherit; }
.testimonial-card--featured .testimonial-author strong { color: var(--white); }
.testimonial-author span { font-size: 0.8rem; color: var(--text-muted); }
.testimonial-card--featured .testimonial-author span { color: rgba(255,255,255,0.5); }

/* =============================================
   TEAM
   ============================================= */
.team {
  background: var(--off-white);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.team-avatar {
  width: 72px;
  height: 72px;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: 1.2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  letter-spacing: 0.03em;
}

.team-card h3 {
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 6px;
}

.team-role {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-dark);
  background: rgba(125, 197, 30, 0.1);
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.team-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.75;
}

/* =============================================
   FAQ
   ============================================= */
.faq {
  background: var(--white);
}

.faq-container {
  max-width: 720px;
}
.faq-container .section-header {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: none; }

.faq-item summary {
  padding: 22px 24px;
  font-weight: 600;
  font-size: 0.975rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  list-style: none;
  user-select: none;
  transition: background 0.15s;
  color: var(--navy);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--green);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item summary:hover { background: var(--off-white); }

.faq-item p {
  padding: 0 24px 22px;
  color: var(--text-muted);
  font-size: 0.925rem;
  line-height: 1.75;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 64px;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
  height: 32px;
  width: auto;
  margin-bottom: 16px;
  display: block;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 300px;
  margin-bottom: 24px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}
.footer-socials a {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.footer-socials a:hover {
  border-color: var(--green);
  color: var(--green);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--green); }

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-page {
  background: var(--white);
  padding-top: 80px;
  padding-bottom: 80px;
}

.contact-page-inner {
  max-width: 680px;
  margin: 0 auto;
}

/* Header: left-aligned, tighter, no eyebrow */
.contact-page-header {
  text-align: left;
  margin: 0 0 36px;
  max-width: 100%;
}

.contact-page-header h2 {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.15;
}

.contact-description {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 0;
}

/* Form card */
.contact-form-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.contact-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.contact-field input,
.contact-field textarea {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.925rem;
  font-family: 'Noto Sans', sans-serif;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  -webkit-appearance: none;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(13, 27, 94, 0.08);
}

.contact-field input.input-error,
.contact-field textarea.input-error {
  border-color: #e0443a;
  box-shadow: 0 0 0 3px rgba(224, 68, 58, 0.08);
}

.contact-field .field-error {
  font-size: 0.78rem;
  color: #e0443a;
  margin-top: 2px;
  display: none;
}

.contact-field .field-error.visible {
  display: block;
}

.contact-field textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

.contact-submit {
  margin-top: 8px;
}

/* Success state */
.contact-success {
  display: none;
  text-align: center;
  padding: 40px 24px;
}

.contact-success-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.contact-success h3 {
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 10px;
}

.contact-success p {
  color: var(--text-muted);
  font-size: 0.925rem;
}

/* Info block — below form, navy left border accent, two-column rows */
.contact-info {
  margin-top: 24px;
  border-left: 3px solid var(--green);
  padding: 20px 24px;
  background: var(--off-white);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-info-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: baseline;
  gap: 0;
}

.contact-info-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-top: 2px;
}

.contact-info-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
}

a.contact-info-value {
  transition: color 0.15s;
}

a.contact-info-value:hover {
  color: var(--green-dark);
}

@media (max-width: 600px) {
  .contact-form-card {
    padding: 28px 20px;
  }
  .contact-info {
    padding: 16px 20px;
  }
  .contact-info-item {
    grid-template-columns: 80px 1fr;
  }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }

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

@media (max-width: 768px) {
  .section { padding: 80px 0; }

  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    display: none;
    align-items: flex-start;
  }
  .nav-links.open { display: flex; }
  .nav-wrapper { position: relative; }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

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

  .gallery-card--tall {
    grid-row: span 1;
    min-height: 200px;
  }

  .steps {
    flex-direction: column;
    gap: 32px;
    align-items: flex-start;
  }

  .step {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    gap: 20px;
    padding: 0;
    width: 100%;
  }

  .step-body {
    flex: 1;
    min-width: 0;
  }

  .step-image,
  .step-image--sm {
    width: 100%;
    margin-left: 0;
  }

  .step-image--overlap {
    width: 100%;
    margin-left: 0;
    aspect-ratio: 143/100;
    /* Fallback for older mobile browsers */
    min-height: 160px;
  }

  .step-connector {
    width: 2px;
    height: 32px;
    margin: 0 25px;
    background: linear-gradient(180deg, var(--navy), var(--green));
    flex: none;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-links {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .footer-links {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
}
/* =============================================
   GALLERY IMAGE FIX
   ============================================= */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 900px;
  margin: 0 auto 40px;
}

.gallery-card {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--off-white);
}

.gallery-card--tall {
  grid-row: span 1;
  min-height: auto;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Mobile */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
  }
}
/* =============================================
   GALLERY HOVER + LIGHTBOX
   ============================================= */

.gallery-card {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-card:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(13, 27, 94, 0.18);
  z-index: 2;
}

/* Lightbox background */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 16px;
  object-fit: contain;
}

/* Close button */
.lightbox-close {
  position: absolute;
  top: 25px;
  right: 35px;
  font-size: 40px;
  color: white;
  cursor: pointer;
  font-weight: 300;
}
