/* ==========================================================================
   ATX Equine Wellness — Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties (Brand Colors & Typography)
   -------------------------------------------------------------------------- */
:root {
  /* Brand colors */
  --color-mint: #E2ECE9;
  --color-dark: #545454;
  --color-white: #FFFFFF;

  /* Extended palette */
  --color-mint-dark: #C8D9D3;
  --color-bg-alt: #F5FAF8;
  --color-heading: #3A3A3A;
  --color-bg-warm: #FAFAFA;

  /* Typography */
  --font-display: 'Damion', cursive;
  --font-body: 'Raleway', sans-serif;

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  /* Layout */
  --max-width: 1200px;
  --border-radius: 8px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-dark);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-heading);
  line-height: 1.2;
}

/* --------------------------------------------------------------------------
   Accessibility
   -------------------------------------------------------------------------- */
.skip-nav {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-heading);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.875rem;
}

.skip-nav:focus {
  left: 0;
}

/* --------------------------------------------------------------------------
   Utility — Container
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-sm);
}

@media (min-width: 768px) {
  .container {
    padding-inline: var(--space-md);
  }
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 900;
  background-color: var(--color-mint);
  border-bottom: 1px solid var(--color-mint-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.header-logo img {
  height: 60px;
  width: auto;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav-list {
  display: flex;
  gap: var(--space-md);
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  color: var(--color-dark);
  padding: var(--space-xs) 0;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-heading);
  transition: width 0.25s ease;
}

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

.nav-link:hover::after,
.nav-link:focus-visible::after {
  width: 100%;
}

/* --------------------------------------------------------------------------
   Hamburger Toggle (mobile)
   -------------------------------------------------------------------------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-heading);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animate to X when open */
.nav-toggle.is-active .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Mobile Navigation (< 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 70px;
    right: 0;
    width: 260px;
    height: calc(100vh - 70px);
    height: calc(100dvh - 70px);
    background-color: var(--color-mint);
    border-left: 1px solid var(--color-mint-dark);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }

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

  .nav-list {
    flex-direction: column;
    gap: 0;
    padding: var(--space-sm) 0;
  }

  .nav-link {
    display: block;
    padding: 0.875rem var(--space-md);
    font-size: 1rem;
  }

  .nav-link::after {
    display: none;
  }

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

/* --------------------------------------------------------------------------
   Body offset for fixed header
   -------------------------------------------------------------------------- */
body {
  padding-top: 70px;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url('../assets/images/hero.webp') center / cover no-repeat;
  background-color: var(--color-mint);
  overflow: hidden;
}

.hero-content {
  position: relative;
  padding: var(--space-xl) var(--space-sm);
}

.hero-title {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--color-white);
  margin-bottom: var(--space-sm);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-white);
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--space-xs);
  line-height: 1.5;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-md);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 4rem;
  }

  .hero-tagline {
    font-size: 1.375rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 5rem;
  }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.025em;
  padding: 0.875rem 2rem;
  border-radius: var(--border-radius);
  transition: background-color 0.2s ease, transform 0.15s ease;
}

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

.btn:active {
  transform: translateY(0);
}

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

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--color-dark);
}

/* --------------------------------------------------------------------------
   Shared Section Styles
   -------------------------------------------------------------------------- */
.section-heading {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--color-heading);
  text-align: center;
  margin-bottom: var(--space-lg);
}

@media (min-width: 768px) {
  .section-heading {
    font-size: 3rem;
  }
}

/* --------------------------------------------------------------------------
   Services Section
   -------------------------------------------------------------------------- */
.services {
  padding: var(--space-xl) 0;
  background-color: var(--color-white);
}

.services-grid {
  display: grid;
  gap: var(--space-md);
}

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

/* Service Cards */
.service-card {
  background-color: var(--color-bg-alt);
  border-radius: var(--border-radius);
  padding: var(--space-md);
  border: 1px solid var(--color-mint-dark);
  transition: box-shadow 0.2s ease;
}

.service-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-mint);
  border-radius: 50%;
  margin-bottom: var(--space-sm);
  font-size: 1.25rem;
  color: var(--color-heading);
}

.service-card-title {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-heading);
  margin-bottom: 0.25rem;
}

.service-card-subtitle {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-dark);
  letter-spacing: 0.025em;
  margin-bottom: var(--space-sm);
}

.service-card p {
  margin-bottom: var(--space-sm);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.service-card p:last-child {
  margin-bottom: 0;
}

.service-conditions-heading {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-heading);
  margin-bottom: var(--space-xs);
}

.service-conditions-list {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 0;
}

.service-conditions-list li {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-dark);
}

/* --------------------------------------------------------------------------
   Benefits Callout
   -------------------------------------------------------------------------- */
.benefits-callout {
  margin-top: var(--space-lg);
  background-color: var(--color-mint);
  border-radius: var(--border-radius);
  padding: var(--space-md);
  text-align: center;
}

.benefits-heading {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-heading);
  margin-bottom: var(--space-sm);
}

.benefits-list {
  display: grid;
  gap: var(--space-xs) var(--space-md);
  max-width: 800px;
  margin-inline: auto;
  text-align: left;
}

@media (min-width: 768px) {
  .benefits-list {
    grid-template-columns: 1fr 1fr;
  }
}

.benefits-list li {
  display: flex;
  align-items: baseline;
  gap: 0.625rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-dark);
}

.benefits-list li i {
  color: var(--color-heading);
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   What to Expect Section
   -------------------------------------------------------------------------- */
.expect {
  padding: var(--space-xl) 0;
  background-color: var(--color-bg-alt);
}

.expect-timeline {
  max-width: 700px;
  margin-inline: auto;
  counter-reset: none;
}

.expect-step {
  display: flex;
  gap: var(--space-sm);
  position: relative;
  padding-bottom: var(--space-md);
}

/* Vertical connector line */
.expect-step::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 48px;
  bottom: 0;
  width: 2px;
  background-color: var(--color-mint-dark);
}

.expect-step:last-child {
  padding-bottom: 0;
}

.expect-step:last-child::before {
  display: none;
}

.expect-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-mint);
  border: 2px solid var(--color-mint-dark);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-heading);
}

.expect-body {
  padding-top: 0.5rem;
}

.expect-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-heading);
  margin-bottom: 0.25rem;
}

.expect-step p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-dark);
}


/* --------------------------------------------------------------------------
   About Section
   -------------------------------------------------------------------------- */
.about {
  padding: var(--space-xl) 0;
  background-color: var(--color-white);
}

.about-layout {
  display: grid;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

@media (min-width: 768px) {
  .about-layout {
    grid-template-columns: 280px 1fr;
    gap: var(--space-lg);
    align-items: start;
  }
}

.about-portrait {
  max-width: 280px;
  margin-inline: auto;
}

.about-portrait img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

@media (min-width: 768px) {
  .about-portrait {
    margin-inline: 0;
  }
}

.about-bio p {
  font-size: 0.9375rem;
  line-height: 1.8;
  margin-bottom: var(--space-sm);
}

.about-bio .about-lead {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.4;
  color: var(--color-heading);
  margin-bottom: var(--space-sm);
}

/* --------------------------------------------------------------------------
   Why Choose Sophie
   -------------------------------------------------------------------------- */
.why-choose {
  margin-bottom: var(--space-lg);
}

.why-choose-heading {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-heading);
  text-align: center;
  margin-bottom: var(--space-md);
}

.why-choose-list {
  display: grid;
  gap: var(--space-sm);
  max-width: 800px;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .why-choose-list {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }
}

.why-choose-list li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-dark);
  background-color: var(--color-bg-alt);
  border-radius: var(--border-radius);
  padding: var(--space-sm);
}

.why-choose-list li i {
  color: var(--color-heading);
  font-size: 1rem;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Certifications
   -------------------------------------------------------------------------- */
.certifications {
  text-align: center;
}

.certifications-heading {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-heading);
  margin-bottom: var(--space-xs);
}

.certifications-text {
  font-size: 0.9375rem;
  color: var(--color-dark);
  margin-bottom: var(--space-md);
}

.certifications-images {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

.certifications-images img {
  max-width: 280px;
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* --------------------------------------------------------------------------
   Testimonials Section
   -------------------------------------------------------------------------- */
.testimonials {
  padding: var(--space-xl) 0;
  background-color: var(--color-bg-alt);
}

.carousel {
  position: relative;
  max-width: 720px;
  margin-inline: auto;
}

.carousel-viewport {
  overflow: hidden;
  border-radius: var(--border-radius);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-slide {
  flex: 0 0 100%;
  min-width: 0;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-mint-dark);
  background-color: var(--color-white);
  color: var(--color-dark);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.carousel-arrow--prev {
  left: -1.5rem;
}

.carousel-arrow--next {
  right: -1.5rem;
}

.carousel-arrow:hover,
.carousel-arrow:focus-visible {
  background-color: var(--color-mint);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

@media (max-width: 767px) {
  .carousel-arrow {
    width: 36px;
    height: 36px;
    font-size: 0.875rem;
    opacity: 0.85;
  }

  .carousel-arrow--prev {
    left: 0.5rem;
  }

  .carousel-arrow--next {
    right: 0.5rem;
  }
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-xs);
  margin-top: var(--space-md);
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background-color: var(--color-mint-dark);
  cursor: pointer;
  padding: 0;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.carousel-dot:hover {
  transform: scale(1.2);
}

.carousel-dot.is-active {
  background-color: var(--color-dark);
}

.testimonial-card {
  position: relative;
  background-color: var(--color-white);
  border-radius: var(--border-radius);
  padding: var(--space-md);
  padding-top: 3.5rem;
  border: 1px solid var(--color-mint-dark);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.testimonial-quote {
  position: absolute;
  top: 0.5rem;
  left: var(--space-sm);
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--color-mint-dark);
}

.testimonial-card p {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--color-dark);
  margin-bottom: var(--space-sm);
}

.testimonial-card p:last-of-type {
  margin-bottom: var(--space-sm);
}

.testimonial-author {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-heading);
}

/* --------------------------------------------------------------------------
   Fade-in on Scroll Animation
   -------------------------------------------------------------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Gallery Section
   -------------------------------------------------------------------------- */
.gallery {
  padding: var(--space-xl) 0;
  background-color: var(--color-white);
}

.gallery-grid {
  display: grid;
  gap: var(--space-sm);
}

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

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

.gallery-item {
  display: block;
  border-radius: var(--border-radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-item:hover,
.gallery-item:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.gallery-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 2;
  background-color: var(--color-bg-warm);
  border: 2px dashed var(--color-mint-dark);
  border-radius: var(--border-radius);
  color: #8A9E96;
  font-size: 2rem;
}

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background-color: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
}

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

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
}

.lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  color: var(--color-white);
  font-size: 2rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.lightbox-close:hover {
  opacity: 0.7;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-white);
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 0.7;
}

.lightbox-prev {
  left: var(--space-sm);
}

.lightbox-next {
  right: var(--space-sm);
}

/* --------------------------------------------------------------------------
   Contact Section
   -------------------------------------------------------------------------- */
.contact {
  padding: var(--space-xl) 0;
  background-color: var(--color-bg-alt);
}

.contact-intro {
  text-align: center;
  font-size: 1.0625rem;
  color: var(--color-dark);
  max-width: 540px;
  margin-inline: auto;
  margin-top: calc(-1 * var(--space-md));
  margin-bottom: var(--space-lg);
}

.contact-methods {
  display: grid;
  gap: var(--space-md);
  max-width: 900px;
  margin-inline: auto;
}

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

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-xs);
  padding: var(--space-md);
  background-color: var(--color-white);
  border: 1px solid var(--color-mint-dark);
  border-radius: var(--border-radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-card:hover,
.contact-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.contact-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-mint);
  border-radius: 50%;
  font-size: 1.25rem;
  color: var(--color-heading);
}

.contact-label {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-dark);
}

.contact-value {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--color-heading);
  word-break: break-word;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--color-heading);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--space-lg) 0 var(--space-md);
}

.footer-inner {
  display: grid;
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr auto auto;
    align-items: start;
    gap: var(--space-lg);
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

@media (min-width: 768px) {
  .footer-brand {
    align-items: flex-start;
  }
}

.footer-logo {
  height: 80px;
  width: auto;
  opacity: 0.9;
}

.footer-copyright {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.75);
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 1.375rem;
  color: var(--color-white);
  margin-bottom: var(--space-sm);
  text-align: center;
}

@media (min-width: 768px) {
  .footer-heading {
    text-align: left;
  }
}

.footer-nav-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xs);
  text-align: center;
}

@media (min-width: 768px) {
  .footer-nav-list {
    text-align: left;
  }
}

.footer-nav-list a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s ease;
}

.footer-nav-list a:hover,
.footer-nav-list a:focus-visible {
  color: var(--color-white);
}

.footer-social-list {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
}

@media (min-width: 768px) {
  .footer-social-list {
    justify-content: flex-start;
  }
}

.footer-social-list a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.footer-social-list a:hover,
.footer-social-list a:focus-visible {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--color-white);
}

/* --------------------------------------------------------------------------
   Sticky Mobile Call Button
   -------------------------------------------------------------------------- */
.mobile-call-btn {
  display: none;
}

@media (max-width: 767px) {
  .mobile-call-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: var(--space-sm);
    right: var(--space-sm);
    z-index: 800;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--color-heading);
    color: var(--color-white);
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .mobile-call-btn:hover,
  .mobile-call-btn:active {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  }
}

/* --------------------------------------------------------------------------
   Global Focus Styles (Accessibility)
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--color-heading);
  outline-offset: 2px;
}

/* Remove outline for mouse clicks but keep for keyboard */
:focus:not(:focus-visible) {
  outline: none;
}

/* --------------------------------------------------------------------------
   Reduced Motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }
}
