/* ============================================================
   PALM COAST PHYSICAL THERAPY — STYLESHEET
   ============================================================ */

/* ------------------------------------------------------------
   1. DESIGN TOKENS
   ------------------------------------------------------------ */
:root {
  --color-primary:       #1a8fa0;   /* teal */
  --color-primary-dark:  #157a8a;   /* teal dark (hover) */
  --color-accent:        #f78f1e;   /* orange */
  --color-accent-dark:   #d97410;   /* orange dark (hover) */
  --color-text:          #1a1a1a;
  --color-text-light:    #ffffff;
  --color-bg:            #ffffff;
  --color-bg-light:      #f5f8fa;
  --color-bg-gray:       #eef2f5;
  --color-border:        #d0dde4;
  --color-footer-bg:     #ffffff;

  --font-heading:        'Lora', serif;
  --font-body:           'Inter', sans-serif;

  --radius:              8px;
  --radius-lg:           16px;
  --shadow-sm:           0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md:           0 4px 20px rgba(0, 0, 0, 0.12);

  --container-max:       1140px;
  --container-pad:       clamp(1rem, 4vw, 2rem);

  --header-h:            144px;
  --transition:          0.25s ease;
}

/* ------------------------------------------------------------
   2. RESET & BASE
   ------------------------------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

ul {
  list-style: none;
}

address {
  font-style: normal;
}

/* ------------------------------------------------------------
   3. TYPOGRAPHY
   ------------------------------------------------------------ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-style: italic;
  line-height: 1.25;
  color: var(--color-text);
  text-align: center;
}

h1, h2         { font-size: clamp(2rem, 5vw, 3.25rem); }
h3, h4, h5, h6 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }

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

/* ------------------------------------------------------------
   4. LAYOUT UTILITIES
   ------------------------------------------------------------ */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ------------------------------------------------------------
   5. BUTTONS
   ------------------------------------------------------------ */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

/* Primary (teal) */
.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  border-color: var(--color-primary);
}
.btn--primary:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

/* Accent (orange) */
.btn--accent {
  background-color: var(--color-accent);
  color: var(--color-text-light);
  border-color: var(--color-accent);
}
.btn--accent:hover {
  background-color: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
}

/* White (used on teal backgrounds) */
.btn--white {
  background-color: var(--color-text-light);
  color: var(--color-primary);
  border-color: var(--color-text-light);
}
.btn--white:hover {
  background-color: transparent;
  color: var(--color-text-light);
}

/* ------------------------------------------------------------
   6. SECTION SHARED STYLES
   ------------------------------------------------------------ */
.section {
  padding-block: clamp(4rem, 8vw, 6rem);
}

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

.section--teal {
  background-color: var(--color-primary);
  color: var(--color-text-light);
}
.section--teal h2,
.section--teal h3,
.section--teal p {
  color: var(--color-text-light);
}

.section__heading {
  text-align: center;
  margin-bottom: 0.5rem;
}

.section__heading + p,
.section__heading + .section__body {
  margin-top: 1.5rem;
}

.section__cta {
  margin-top: 3rem;
  text-align: center;
}

/* ------------------------------------------------------------
   7. HEADER
   ------------------------------------------------------------ */
.site-header {
  position: static;
  z-index: 100;
  height: var(--header-h);
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 100%;
}

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

.header__nav {
  flex: 1;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  justify-content: center;
}

.nav__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width var(--transition);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.header__cta {
  flex-shrink: 0;
  font-size: 0.875rem;
  padding: 0.6rem 1.25rem;
}

/* Hamburger toggle (hidden on desktop) */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.nav__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* Hamburger open state */
.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ------------------------------------------------------------
   8. HERO — ANIMATED BACKGROUND (Ken Burns)
   ------------------------------------------------------------ */
@keyframes kenBurns {
  from { transform: scale(1.0); }
  to   { transform: scale(1.08); }
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Background image layer — ONLY this element animates */
.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: kenBurns 12s ease-in-out infinite alternate;
  transform-origin: center;
  /* Fallback color if image not yet loaded */
  background-color: var(--color-primary);
}

/* Dark overlay for text contrast — no animation */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(21, 122, 138, 0.55) 0%,
    rgba(26, 143, 160, 0.35) 100%
  );
}

/* PT Tool drift keyframes */
@keyframes toolDriftV {
  from { transform: translateY(0)      rotate(0deg); }
  to   { transform: translateY(-20px)  rotate(3deg); }
}
@keyframes toolDriftH {
  from { transform: translateX(0)      rotate(0deg); }
  to   { transform: translateX(12px)   rotate(-4deg); }
}
@keyframes toolDriftD {
  from { transform: translate(0, 0)          rotate(0deg); }
  to   { transform: translate(-10px, -15px)  rotate(5deg); }
}

.hero__tools {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero__tool {
  position: absolute;
  color: rgba(255, 255, 255, 0.20);
}

.hero__tool--ball {
  width: 90px;
  top: 8%;
  right: 6%;
  animation: toolDriftV 9s ease-in-out infinite alternate;
}
.hero__tool--roller {
  width: 110px;
  top: 48%;
  right: 3%;
  animation: toolDriftH 13s ease-in-out infinite alternate;
}
.hero__tool--band {
  width: 100px;
  top: 22%;
  right: 14%;
  animation: toolDriftD 11s ease-in-out infinite alternate;
}
.hero__tool--dumbbell {
  width: 100px;
  bottom: 18%;
  right: 7%;
  animation: toolDriftV 15s ease-in-out infinite alternate;
  animation-delay: -4s;
}
.hero__tool--board {
  width: 95px;
  top: 5%;
  left: 2%;
  animation: toolDriftH 10s ease-in-out infinite alternate;
  animation-delay: -7s;
}
.hero__tool--loop {
  width: 85px;
  top: 32%;
  left: 9%;
  animation: toolDriftD 14s ease-in-out infinite alternate;
  animation-delay: -3s;
}
.hero__tool--crutch {
  width: 45px;
  top: 55%;
  left: 1%;
  animation: toolDriftV 16s ease-in-out infinite alternate;
  animation-delay: -9s;
}
.hero__tool--pack {
  width: 90px;
  bottom: 10%;
  left: 8%;
  animation: toolDriftH 12s ease-in-out infinite alternate;
  animation-delay: -5s;
}

/* Hide tools that overlap text on mobile */
@media (max-width: 640px) {
  .hero__tool--loop,
  .hero__tool--crutch,
  .hero__tool--pack,
  .hero__tool--band,
  .hero__tool--roller {
    display: none;
  }
}

/* Content — fully static, no animation */
.hero__content {
  position: relative;
  z-index: 2;
  color: var(--color-text-light);
  max-width: 720px;
  padding-top: 1.5rem;
  padding-bottom: 4rem;
}

.hero__title {
  color: var(--color-text-light);
  margin-bottom: 1.25rem;
}

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

.hero__cta {
  display: block;
  width: fit-content;
  margin-inline: auto;
}

/* ------------------------------------------------------------
   9. THE PALM COAST DIFFERENCE
   ------------------------------------------------------------ */
.section__body {
  max-width: 780px;
  margin-inline: auto;
  text-align: left;
}

.difference__list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.difference__list li {
  padding-left: 1.75rem;
  position: relative;
  font-size: 1rem;
}

.difference__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 10px;
  height: 10px;
  background-color: var(--color-accent);
  border-radius: 50%;
}

.difference__pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
  text-align: center;
}

.difference__pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.difference__icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  padding: 16px;
  color: var(--color-text-light);
}

.difference__icon svg {
  width: 100%;
  height: 100%;
}

.difference__pillar h3 {
  color: var(--color-text-light);
  margin-bottom: 0;
}

.difference__text {
  max-width: 780px;
  margin-inline: auto;
  margin-top: 2rem;
  text-align: center;
  color: var(--color-text-light);
}

.difference__images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.difference__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

/* ------------------------------------------------------------
   10. SERVICES
   ------------------------------------------------------------ */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 3rem;
}

.service-card {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition);
}

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

.service-card__icon {
  width: 56px;
  height: 56px;
  margin-inline: auto;
  margin-bottom: 1.25rem;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(26, 143, 160, 0.1);
  border-radius: 50%;
  padding: 12px;
}

.service-card__icon svg {
  width: 100%;
  height: 100%;
}

.service-card__name {
  margin-bottom: 0.75rem;
  color: var(--color-primary);
}

.service-card__desc {
  font-size: 0.9375rem;
  color: #555;
  margin-bottom: 0;
}

/* ------------------------------------------------------------
   11. SERVICES LIST
   ------------------------------------------------------------ */
.services__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem 2.5rem;
  margin-top: 2.5rem;
  list-style: none;
}

.services__list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  color: var(--color-text-light);
  line-height: 1.4;
}

.services__list li::before {
  content: '';
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpolyline points='2.5,7 5.5,10 11.5,4' fill='none' stroke='%231a8fa0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 15px;
}

/* ------------------------------------------------------------
   13. TEAM CAROUSEL
   ------------------------------------------------------------ */
/* Carousel wrapper */
.team-carousel {
  margin-top: 3rem;
}

/* Slides — only .is-active shows */
.carousel__track {
  position: relative;
  flex: 1;
  min-width: 0;
}

.carousel__slide {
  display: none;
  align-items: stretch;
  background-color: var(--color-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.carousel__slide.is-active {
  display: flex;
}

/* Photo — left 40% */
.carousel__photo {
  width: 40%;
  flex-shrink: 0;
  object-fit: cover;
  object-position: top;
  background-color: var(--color-bg-light);
}

/* Info — right 60% */
.carousel__info {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
}

.carousel__name {
  color: var(--color-primary);
  margin-bottom: 0;
  text-align: left;
}

.carousel__credentials {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 600;
  color: #555;
  margin-bottom: 0;
  text-align: left;
  letter-spacing: 0.04em;
}

.carousel__title {
  font-size: clamp(1.25rem, 2.75vw, 1.75rem);
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 0;
  text-align: left;
}

.carousel__bio {
  color: #555;
  margin-bottom: 0;
  text-align: left;
}

/* Stage: arrows flank the card */
.carousel__stage {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}


/* Dots row below the stage */
.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.carousel__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--color-text-light);
  background: transparent;
  color: var(--color-text-light);
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition);
  flex-shrink: 0;
}

.carousel__btn:hover {
  background-color: var(--color-text-light);
  color: var(--color-accent);
}

.carousel__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--color-text-light);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background-color var(--transition);
}

.carousel__dot.is-active {
  background-color: var(--color-text-light);
}

/* Mobile: stack photo above info */
@media (max-width: 640px) {
  .carousel__slide {
    flex-direction: column;
  }
  .carousel__photo {
    width: 100%;
    aspect-ratio: 3 / 4;
  }
}

/* ------------------------------------------------------------
   12. TESTIMONIALS
   ------------------------------------------------------------ */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 3rem;
}

.testimonial-card {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.testimonial-card__quote {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  flex: 1;
}

.testimonial-card__attr {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
}

/* ------------------------------------------------------------
   13. FOOTER
   ------------------------------------------------------------ */
.site-footer {
  background-color: var(--color-footer-bg);
  color: #1a8fa0;
}

.footer__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  padding-top: 4rem;
  padding-bottom: 2rem;
  align-items: stretch;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.footer__logo {
  height: 100%;
  width: 100%;
  object-fit: contain;
}

.footer__tagline {
  font-size: 0.9375rem;
  line-height: 1.6;
}

.footer__heading {
  color: #1a8fa0;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.footer__contact address p {
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
}

.footer__contact a:hover,
.footer__links a:hover {
  color: var(--color-text-light);
}

.footer__hours {
  margin-top: 1.5rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__links a {
  font-size: 0.9375rem;
  transition: color var(--transition);
}

.social__icons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.social__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #1a8fa0;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color var(--transition);
}

.social__link svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background-color: rgba(26, 143, 160, 0.12);
  border-radius: 50%;
  padding: 4px;
  transition: background-color var(--transition), color var(--transition);
}

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

.social__link:hover svg {
  background-color: var(--color-primary);
  color: var(--color-text-light);
}

.footer__bottom {
  padding-block: 0.75rem;
  text-align: center;
  font-size: 0.875rem;
  color: #1a8fa0;
}

/* ------------------------------------------------------------
   14. ALTERNATING SECTION BACKGROUNDS & CTA COLORS
   ------------------------------------------------------------ */

/* --- Backgrounds (ID selectors override class-based rules) --- */
#difference {
  background-color: var(--color-accent);
  background-image:
    linear-gradient(rgba(247, 143, 30, 0.85), rgba(247, 143, 30, 0.85)),
    url("https://pbrlhyansxjdndccwtau.supabase.co/storage/v1/object/public/media-public/71072fb3-55dc-4eeb-8ea4-ce97fce9afdd/root/1776094569783_Background-1.png");
  background-size: cover;
  background-position: center;
}
#services {
  background-color: var(--color-primary);
  background-image:
    linear-gradient(rgba(26, 143, 160, 0.85), rgba(26, 143, 160, 0.85)),
    url("https://pbrlhyansxjdndccwtau.supabase.co/storage/v1/object/public/media-public/71072fb3-55dc-4eeb-8ea4-ce97fce9afdd/root/1776094952862_Background-2.png");
  background-size: cover;
  background-position: center;
}
#team {
  background-color: var(--color-accent);
  background-image:
    linear-gradient(rgba(247, 143, 30, 0.85), rgba(247, 143, 30, 0.85)),
    url("https://pbrlhyansxjdndccwtau.supabase.co/storage/v1/object/public/media-public/71072fb3-55dc-4eeb-8ea4-ce97fce9afdd/root/1776095428592_Background-3.png");
  background-size: cover;
  background-position: center;
}
#testimonials {
  background-color: var(--color-primary);
  background-image:
    linear-gradient(rgba(26, 143, 160, 0.85), rgba(26, 143, 160, 0.85)),
    url("https://pbrlhyansxjdndccwtau.supabase.co/storage/v1/object/public/media-public/71072fb3-55dc-4eeb-8ea4-ce97fce9afdd/root/1776095429490_Background-4.png");
  background-size: cover;
  background-position: center;
}

/* --- White text for all content sections --- */
#difference,
#services,
#team,
#testimonials {
  color: var(--color-text-light);
}

#difference h2, #difference h3, #difference p, #difference li,
#services h2, #services h3, #services p,
#team h2, #team h3, #team p,
#testimonials h2, #testimonials h3, #testimonials p {
  color: var(--color-text-light);
}


/* Restore card text colors — white-bg cards inside colored sections */
#team .carousel__name                        { color: var(--color-primary); }
#team .carousel__credentials,
#team .carousel__bio                         { color: #555; }
#team .carousel__title                       { color: var(--color-accent); }

#testimonials .testimonial-card__quote       { color: var(--color-text); }
#testimonials .testimonial-card__attr        { color: var(--color-primary); }

/* Bullet dots on orange bg: switch to white */
#difference .difference__list li::before {
  background-color: var(--color-text-light);
}

/* --- CTA button colors: opposite of section background --- */

/* Orange sections (#difference, #team) → teal CTA */
#difference .section__cta .btn,
#team .section__cta .btn {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-text-light);
}
#difference .section__cta .btn:hover,
#team .section__cta .btn:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

/* Teal sections (#services, #testimonials) → orange CTA */
#services .section__cta .btn,
#testimonials .section__cta .btn {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-text-light);
}
#services .section__cta .btn:hover,
#testimonials .section__cta .btn:hover {
  background-color: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
}

/* ------------------------------------------------------------
   16. RESPONSIVE — TABLET (max 900px)
   ------------------------------------------------------------ */
@media (max-width: 900px) {
  .services__list {
    grid-template-columns: repeat(2, 1fr);
  }

  /* auto-fill prevents orphaned last card with 9 items */
  .testimonials__grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }

  /* difference stays 3-col until 640px — 2-col always orphans the 3rd item */

  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  /* brand spans full width so contact+social share the second row evenly */
  .footer__brand { grid-column: 1 / -1; }
}

/* ------------------------------------------------------------
   17. RESPONSIVE — MOBILE (max 640px)
   ------------------------------------------------------------ */
@media (max-width: 640px) {
  /* Header */
  :root { --header-h: 80px; }
  .header__logo img { height: 60px; }

  /* Show hamburger, slide-down nav */
  .header__nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 1.5rem var(--container-pad);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
  }

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

  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .header__cta  { display: none; }
  .nav__toggle  { display: none; }
  .header__nav  { display: none !important; }

  /* Buttons */
  .btn { font-size: 1rem; padding: 0.875rem 1.5rem; }

  /* Sections — single column */
  .services__list,
  .team__grid,
  .testimonials__grid,
  .difference__pillars,
  .difference__images {
    grid-template-columns: 1fr;
  }

  /* Skip large background images — 85% overlay makes them nearly invisible anyway */
  #difference, #services, #team, #testimonials {
    background-image: none;
  }

  /* Footer */
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-block: 2.5rem;
  }

  /* Carousel */
  .carousel__btn  { display: none; }
  .carousel__info { padding: 1.25rem 1rem; }
  .carousel__dot  { width: 16px; height: 16px; }
  .carousel__dots { padding-block: 12px; }
}

/* ------------------------------------------------------------
   18. REVIEW MODAL
   ------------------------------------------------------------ */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.is-open {
  display: flex;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.modal__box {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  width: min(680px, 92vw);
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  z-index: 1;
}

.modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--color-bg-gray);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}

.modal__close:hover {
  background: var(--color-primary);
  color: #fff;
}

/* ------------------------------------------------------------
   19. REDUCED MOTION
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .hero__bg,
  .hero__tool { animation: none; }
}
