/* styles.css — Skyway Canva landing page
   Marine-inspired palette: subtle blues, whites, greys. Clean, minimal layout.
*/

:root {
  --bg: #f7fbff;
  --card: #ffffff;
  --muted: #6b7280;
  --accent: #2066a5;
  /* primary color updated */
  --accent-2: #df532f;
  /* secondary / accent 2 updated per request */
  --radius: 10px;
  --container: 1100px;
  --text: #0b1720;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family:
    "Outfit",
    Inter,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: var(--bg);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  z-index: 50;
}

body:not(.about-page):not(.contact-page) .site-header {
  background: transparent;
  border-bottom: 1px solid transparent;
  backdrop-filter: none;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

body:not(.about-page):not(.contact-page) .site-header.scrolled {
  background: rgba(247, 251, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

/* Ensure nav links remain visible after header background change */
.main-nav a {
  color: var(--text);
}

.main-nav a:hover {
  color: var(--accent);
}

.main-nav a.active {
  color: var(--accent);
  background: rgba(32, 102, 165, 0.12);
}

.header-inner {
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 20px;
  /* CHANGED: Increased navbar height by adding vertical padding (originally 0) */
  padding: 15px 0;
}

.logo {
  font-weight: 700;
  color: var(--accent);
  font-size: 1.1rem;
  display: inline-block;
  text-align: center;
  margin: 0 auto;
}

.logo img {
  /* CHANGED: Increased logo height (originally height: clamp(140px, 15vw, 300px)) */
  height: clamp(200px, 18vw, 350px);
  width: auto;
  max-width: 100%;
  display: block;
  margin: 0 auto;
}

/* Keep the mobile menu button aligned with the centered layout */
.menu-toggle {
  align-self: center;
}

.main-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
}

.main-nav a {
  color: #000;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  text-align: center;
}

.main-nav a {
  transition:
    color 220ms ease,
    background-color 220ms ease,
    transform 120ms ease;
}

.main-nav a:hover {
  color: var(--accent-2);
}

@media (min-width: 841px) {
  .main-nav a {
    position: relative;
    padding-bottom: 2px;
  }

  .main-nav a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-2);
    transform-origin: bottom right;
    transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1);
  }

  .main-nav a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
  }

  .main-nav a.active::after {
    display: none;
  }
}

/* Active: show primary color as the link text by inverting the pill to white background */
.main-nav a.active {
  color: var(--accent);
  background: #fff;
  padding: 6px 10px;
  border-radius: 8px;
}

.menu-toggle {
  color: #fff;
}

.menu-toggle {
  display: none;
}

/* Utility: screen-reader-only text */
.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;
}

/* Mobile hamburger menu */
@media (max-width: 840px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    border-radius: 12px;
    transition: background 180ms ease;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
  }

  .menu-toggle:hover,
  .menu-toggle:focus-visible {
    background: rgba(32, 102, 165, 0.16);
    outline: none;
  }

  .menu-toggle .hamburger {
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
    width: 22px;
    height: 18px;
  }

  .menu-toggle .hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 1px;
    background: var(--accent);
    transition:
      transform 180ms ease,
      opacity 160ms ease;
  }

  .menu-toggle[aria-expanded="true"] .hamburger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] .hamburger span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] .hamburger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .main-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: var(--accent);
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
    padding: 14px 20px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition:
      transform 250ms ease,
      opacity 250ms ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .main-nav a {
    width: 100%;
    padding: 10px 0;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .main-nav a:last-child {
    border-bottom: none;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

/* Hero */
.hero {
  padding: 100px 0;
  margin-bottom: 24px;
  background: linear-gradient(135deg, rgba(247, 251, 255, 0) 0%, rgba(32, 102, 165, 0.08) 100%);
  color: var(--text);
  border-bottom: 1px solid rgba(32, 102, 165, 0.1);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 36px;
  align-items: center;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

.hero-copy h1 {
  font-size: 2.6rem;
  margin: 0 0 12px;
  line-height: 1.02;
  color: var(--accent);
  text-transform: capitalize;
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.15s forwards;
}

.hero-copy {
  max-width: 680px;
}

.lead {
  color: var(--text);
  margin: 0 0 18px;
  font-size: 1.05rem;
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.3s forwards;
}

.hero-cta {
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.45s forwards;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  box-shadow: 0 18px 50px rgba(11, 23, 32, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Subtle interactive movement: move the hero image container on hover so it composes
   with the img slide-in animation (the img keeps its slide-in keyframe). This also
   keeps transforms on separate elements so they don't override each other. */
.hero-image {
  transition: transform 360ms cubic-bezier(0.2, 0.9, 0.3, 1);
  transform-origin: center center;
  will-change: transform;
}

.hero:hover .hero-image,
.hero-image:hover {
  transform: translateX(-8px) scale(1.02) rotate(-0.6deg);
}

/* Slightly reduce motion on small screens to avoid layout shifts */
@media (max-width: 640px) {

  .hero:hover .hero-image,
  .hero-image:hover {
    transform: none;
  }
}

.hero-cta .btn {
  padding: 12px 18px;
  font-size: 1rem;
}

.hero-cta .btn.primary {
  box-shadow: 0 8px 24px rgba(32, 102, 165, 0.12);
  border-color: transparent;
}

.hero-cta .btn.ghost {
  background: transparent;
  border: 1px solid rgba(32, 102, 165, 0.12);
  color: var(--accent);
}

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-image {
    order: 2;
  }

  .hero-copy {
    order: 1;
    text-align: center;
  }

  .hero-cta {
    display: flex;
    justify-content: center;
    gap: 12px;
  }
}

/* Hero image slide-in from right (home page). Reduced-motion safe. */
@keyframes slideInRight {
  from {
    transform: translateX(80px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Only target the hero section with id 'hero' (the home page). */
#hero .hero-image img {
  opacity: 0;
  /* start hidden */
  transform: translateX(80px);
  animation: slideInRight 700ms cubic-bezier(0.2, 0.9, 0.3, 1) 220ms forwards;
}

/* Respect user's reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  #hero .hero-image img {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  /* Also disable container transform for reduced motion */
  .hero-image {
    transition: none !important;
    transform: none !important;
  }
}

.hero-cta .btn {
  margin-right: 12px;
}

.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(32, 102, 165, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(32, 102, 165, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(32, 102, 165, 0);
  }
}

.btn.primary {
  background: var(--accent);
  color: white;
  animation: pulseGlow 2s infinite;
}

.btn.primary:hover {
  animation: none;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(32, 102, 165, 0.25);
}

.btn.ghost {
  background: transparent;
  border: 1px solid rgba(32, 102, 165, 0.14);
  color: var(--accent);
}

.btn.ghost:hover {
  background: rgba(32, 102, 165, 0.05);
  transform: translateY(-2px);
}

/* Sections */
.section {
  padding: 80px 0;
}

.section h2 {
  margin: 0 0 10px;
}

.section-sub {
  color: var(--text);
  margin: 0 0 20px;
}

/* Style the story section with a bold blue border */
.story {
  /* No border here */
}

/* Border around the text content only */
.story-text {
  border: 4px solid var(--accent);
  border-radius: 8px;
  padding: 10px;
}

/* Service cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px 18px;
  box-shadow: 0 6px 18px rgba(32, 102, 165, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(32, 102, 165, 0.08);
}

/* Style service cards like reviews: left accent border and accent colored heading */
.cards .card {
  border-left: 6px solid var(--accent-2);
  padding-left: 14px;
  box-shadow: 0 6px 18px rgba(32, 102, 165, 0.03);
}

.cards .card h3 {
  color: var(--accent);
  font-weight: 700;
}

/* Make only the service-card icons use the primary color while keeping the SVG icon white */
.cards .card h3::before {
  background-color: var(--accent);
}

.card h3 {
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card h3::before {
  /* circular accent with a white plus icon (inline SVG via data URI) */
  content: "";
  display: inline-block;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 50%;
  background: var(--accent-2) url("data:image/svg+xml;utf8,<svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'><path%20fill='%23fff'%20d='M11%2011V6h2v5h5v2h-5v5h-2v-5H6v-2z'/></svg>") center/60% no-repeat;
}

/* Use primary color for card icons on the About page only */
.about-page .card h3::before {
  background: var(--accent) url("data:image/svg+xml;utf8,<svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'><path%20fill='%23fff'%20d='M11%2011V6h2v5h5v2h-5v5h-2v-5H6v-2z'/></svg>") center/60% no-repeat;
}

.about-page #about-gallery .grid img:last-child {
  grid-column: 2;
}

.card p {
  margin: 0;
  color: var(--muted);
}

/* Gallery grid */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 8px;
  /* use CSS vars so reveal + hover transforms compose */
  --reveal-y: 18px;
  /* vertical offset for reveal */
  --img-scale: 1;
  /* hover scale */
  --img-rotate: 0deg;
  /* hover rotate */
  --img-skew: 0deg;
  /* hover skew */
  transition:
    transform 360ms cubic-bezier(0.2, 0.9, 0.3, 1),
    box-shadow 260ms ease,
    opacity 360ms ease;
  transform-origin: center center;
  transform-style: preserve-3d;
  will-change: transform, opacity;
  transform: perspective(600px) translateY(var(--reveal-y)) scale(var(--img-scale)) rotate(var(--img-rotate)) skewX(var(--img-skew));
}

/* Hover alters CSS variables which combine with the reveal translate via the single transform above */
.grid img:hover {
  --img-scale: 1.035;
  --img-rotate: -0.6deg;
  --img-skew: -1.4deg;
  box-shadow: 0 12px 30px rgba(32, 102, 165, 0.12);
}

/* Reveal-from-bottom when JS enables animations (progressive enhancement)
   - If JS is disabled, no extra class is added and images remain visible by default.
*/
.grid.js-enabled img {
  opacity: 0;
  --reveal-y: 18px;
}

.grid.js-enabled img.in-view {
  opacity: 1;
  --reveal-y: 0px;
}

@media (prefers-reduced-motion: reduce) {
  .grid img {
    transition: none !important;
    transform: none !important;
  }

  .grid img:hover {
    box-shadow: none !important;
  }

  /* also disable reveal animations when reduced-motion is requested */
  .grid.js-enabled img {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* Process steps */
.steps {
  display: flex;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps li {
  background: var(--card);
  padding: 18px 18px 18px 72px;
  border-radius: 8px;
  flex: 1;
  box-shadow: 0 6px 18px rgba(32, 102, 165, 0.03);
  position: relative;
  min-height: 64px;
}

.steps li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent) center/60% no-repeat;
}

.steps li strong {
  display: block;
  font-size: 1.05rem;
}

.steps li span {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Unique icons for each step (inline SVG via data URI). Colors use accent / accent-2 variables */
.steps li.inspect::before {
  background-color: var(--accent);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23fff' d='M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79L20 21.5 21.5 20l-6-6zM9.5 14C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/></svg>");
}

.steps li.quote::before {
  background-color: var(--accent-2);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23fff' d='M6 2h7l5 5v13a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1zM13 3.5V9h5.5L13 3.5z'/></svg>");
}

.steps li.repair::before {
  background-color: var(--accent);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23fff' d='M22.7 19.3l-6-6c.4-1.2.2-2.6-.6-3.6-1-1-2.6-1.2-3.8-.6L6.7 2.7 2 7.4l6.4 4.6c1 .6 1.5 1.7 1.2 2.8-.3 1.1-1.3 1.9-2.4 2.1l-4.6 1.1 4.6 4.6 1.1-4.6c.2-1.1 1-2.1 2.1-2.4 1.1-.3 2.2.2 2.8 1.2l4.6 6.4 4.7-4.7-1.7-1.7z'/></svg>");
}

.steps li.pickup::before {
  background-color: var(--accent);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23fff' d='M3 3h13v4h4l3 4v7a1 1 0 0 1-1 1h-1a2 2 0 1 1-4 0H8a2 2 0 1 1-4 0H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1zm16 8h2.5L19 7v4z'/></svg>");
}

/* Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.review-card {
  background: var(--card);
  padding: 18px;
  border-radius: 8px;
  border-left: 6px solid var(--accent-2);
  padding-left: 14px;
  box-shadow: 0 6px 18px rgba(32, 102, 165, 0.03);
}

.review-card p {
  margin: 0 0 8px;
}

.review-card cite {
  color: var(--accent-2);
  font-style: normal;
  font-weight: 600;
}

/* FAQ / Accordion - modernized */
.accordion {
  display: grid;
  gap: 12px;
}

/* Each item is a card with left accent when active */
.accordion-item {
  background: var(--surface, #fff);
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(11, 22, 33, 0.04);
  overflow: hidden;
  border-left: 6px solid transparent;
  transition:
    border-color 240ms ease,
    box-shadow 240ms ease,
    transform 240ms ease;
  border: 2px solid #2066a5;
}

/* Active/open item accent + subtle lift */
.accordion-item.active {
  border-left-color: var(--accent);
  /* primary color */
  box-shadow: 0 10px 26px rgba(32, 102, 165, 0.08);
  transform: translateY(-2px);
}

/* The button that toggles the panel */
.accordion-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 20px;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-size: 1.05rem;
  color: var(--text, #0b0b0b);
  gap: 12px;
}

/* Title text gets primary color when item active */
.accordion-item.active .accordion-toggle {
  color: var(--accent);
  font-weight: 700;
}

/* Expand/collapse icon */
.accordion-toggle::after {
  content: "+";
  flex: 0 0 20px;
  height: 20px;
  width: 20px;
  display: inline-grid;
  place-items: center;
  font-weight: 700;
  color: var(--muted);
  transition:
    transform 220ms ease,
    color 220ms ease;
}

/* When open, show "-" and rotate slightly for niceness */
.accordion-item.active .accordion-toggle::after {
  content: "−";
  color: var(--accent);
  transform: rotate(0deg);
}

/* Panel area: animated height + fade */
.accordion-panel {
  padding: 0 20px;
  background: transparent;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition:
    max-height 320ms cubic-bezier(0.2, 0.9, 0.3, 1),
    opacity 260ms ease;
}

/* When active, allow panel to expand (JS sets exact max-height inline for smoothness) */
.accordion-item.active .accordion-panel {
  opacity: 1;
  padding-bottom: 18px;
}

/* Small typographic tweaks */
.accordion-panel p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.98rem;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {

  .accordion-panel,
  .accordion-toggle::after,
  .accordion-item,
  .accordion-item.active {
    transition: none !important;
  }

  .accordion-panel {
    max-height: none !important;
    opacity: 1 !important;
  }
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
}

.contact-info p {
  margin: 6px 0;
}

.quote-form {
  background: var(--card);
  padding: 16px;
  border-radius: 8px;
  border: 2px solid #2066a5;
}

.quote-form label {
  display: block;
  margin-top: 10px;
  font-weight: 600;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  padding: 8px;
  margin-top: 6px;
  border-radius: 6px;
  border: 2px solid #2066a5;
}

.form-message {
  margin-top: 12px;
  color: var(--accent);
  transition: color 0.3s ease;
}

.form-message.status-success {
  color: #2e7d32;
  font-weight: 600;
}

.form-message.status-error {
  color: #c62828;
  font-weight: 600;
}

.spinner {
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: 8px;
  vertical-align: text-bottom;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spinner-spin 0.75s linear infinite;
}

@keyframes spinner-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Footer */
.site-footer {
  border-top: 0;
  padding: 40px 0;
  margin-top: 60px;
  background: var(--accent);
  color: #fff;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
}

.footer-inner>div {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.15rem;
}

.footer-nav a {
  margin-left: 20px;
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.15rem;
}

.footer-nav a:hover {
  color: #fff;
  text-decoration: underline;
}

@media (max-width: 640px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 8px;
    padding: 0 12px;
  }

  .footer-nav a {
    margin-left: 0;
  }
}

/* Responsive */
@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

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

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

  /* Slightly reduce gallery image height on narrower screens */
  .grid img {
    height: 220px;
  }

  .about-page #about-gallery .grid img:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(100%, 340px);
  }

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

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

@media (max-width: 640px) {
  .cards {
    grid-template-columns: 1fr;
  }

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

  /* Single-column gallery — increase height for a more immersive image */
  .grid img {
    height: 320px;
  }

  .about-page #about-gallery .grid img:last-child {
    width: 100%;
  }

  .steps {
    flex-direction: column;
  }

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

/* small utilities */
.text-muted {
  color: var(--muted);
}

/* Scroll progress indicator */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: var(--accent-2);
  width: 0%;
  z-index: 100;
  transition: width 0.1s ease-out;
}