/* Avenue Barbers - Main Stylesheet */

/* CSS Variables */
:root {
  /* Brand Colors */
  --navy: #0f1a2b;
  --primary-red: #c41e3a;
  --warm-gray: #e9ecef;
  --white: #ffffff;
  --charcoal: #222222;
  --accent-red: #a01729;
  --coral: #ff6f61;

  /* Semantic Colors */
  --background: var(--white);
  --foreground: var(--charcoal);
  --card: var(--white);
  --card-foreground: var(--charcoal);
  --primary: var(--primary-red);
  --primary-foreground: var(--white);
  --secondary: var(--navy);
  --secondary-foreground: var(--white);
  --muted: #f8f9fa;
  --muted-foreground: #6c757d;
  --accent: var(--accent-red);
  --accent-foreground: var(--white);
  --border: #dee2e6;
  --input: var(--white);
  --ring: rgba(196, 30, 58, 0.3);

  /* Typography */
  --font-heading: "Poppins", sans-serif;
  --font-body: "Inter", sans-serif;

  /* Spacing */
  --container-max-width: 1200px;
  --container-padding: 1rem;
  --section-padding: 4rem 0;
  --border-radius: 0.5rem;
  --border-radius-lg: 1rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

  /* Transitions */
  --transition: all 0.3s ease;
  --transition-fast: all 0.15s ease;
}

/* Reset and Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--foreground);
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 1rem 0;
  color: var(--navy);
}

h1 {
  font-size: 3rem;
}
h2 {
  font-size: 2.5rem;
}
h3 {
  font-size: 2rem;
}
h4 {
  font-size: 1.5rem;
}
h5 {
  font-size: 1.25rem;
}
h6 {
  font-size: 1rem;
}

p {
  margin: 0 0 1rem 0;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover,
a:focus {
  color: var(--accent);
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

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

/* Layout Components */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section__title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section__title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--primary);
  margin: 1rem auto 0;
}

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

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  min-height: 44px; /* Accessibility: minimum touch target */
}

.btn--primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

.btn--primary:hover,
.btn--primary:focus {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--accent-foreground);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  border-color: #fff;
}

.btn--secondary:hover,
.btn--secondary:focus {
  background-color: var(--navy);
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn--outline:hover,
.btn--outline:focus {
  background-color: var(--primary);
  color: var(--primary-foreground);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: var(--transition);
}

.header--scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
}

.nav__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--container-padding);
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.nav__logo img {
  object-fit: contain;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  gap: 4px;
}

.nav__toggle-line {
  width: 25px;
  height: 3px;
  background-color: var(--navy);
  transition: var(--transition);
}

.nav__menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.nav__link {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--navy);
  padding: 0.5rem 0;
  position: relative;
}

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

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

.nav__item--cta {
  margin-left: 1rem;
}

/* Hero Section */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(15, 26, 43, 0.7), rgba(15, 26, 43, 0.7)), url("../img/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  position: relative;
}

.hero__content {
  max-width: 800px;
  padding: 0 var(--container-padding);
}

.hero__title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero__subtitle {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Value Props Section */
.value-props {
  padding: var(--section-padding);
  background-color: var(--muted);
}

.value-props__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.value-prop {
  text-align: center;
  padding: 2rem;
  background-color: var(--card);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.value-prop:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.value-prop__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.value-prop__title {
  color: var(--navy);
  margin-bottom: 1rem;
}

.value-prop__description {
  color: var(--muted-foreground);
}

/* Featured Services */
.featured-services {
  padding: var(--section-padding);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background-color: var(--card);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.service-card__image {
  width: 100%;
  height: 700px;
  object-fit: cover;
}

.service-card__content {
  padding: 1.5rem;
}

.service-card__title {
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.service-card__description {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.service-card__price {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--primary);
  font-size: 1.125rem;
}

/* Testimonials */
.testimonials {
  padding: var(--section-padding);
  background-color: var(--muted);
}

.testimonials__slider {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.testimonial {
  display: none;
  text-align: center;
  padding: 2rem;
  background-color: var(--card);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
}

.testimonial--active {
  display: block;
}

.testimonial__quote {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--navy);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.testimonial__quote::before {
  content: '"';
  font-size: 2rem;
  color: var(--primary);
  vertical-align: top;
}

.testimonial__quote::after {
  content: '"';
  font-size: 2rem;
  color: var(--primary);
  vertical-align: bottom;
}

.testimonial__author {
  display: block;
  font-style: normal;
}

.testimonial__author strong {
  display: block;
  font-family: var(--font-heading);
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.testimonial__rating {
  color: var(--primary-red);
  font-size: 1.125rem;
}

.testimonials__controls {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.testimonials__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background-color: var(--border);
  cursor: pointer;
  transition: var(--transition);
}

.testimonials__dot--active,
.testimonials__dot:hover {
  background-color: var(--primary);
}

/* Gallery Preview */
.gallery-preview {
  padding: var(--section-padding);
}

.gallery-preview__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}

.gallery-preview__image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--border-radius);
  transition: var(--transition);
  cursor: pointer;
}

.gallery-preview__image:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

/* Gallery Styles */
.gallery-main {
  padding: var(--section-padding);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.gallery-item__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 2rem;
  transform: translateY(100%);
  transition: var(--transition);
}

.gallery-item:hover .gallery-item__overlay {
  transform: translateY(0);
}

.gallery-item__overlay h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  color: white;
}

.gallery-item__overlay p {
  opacity: 0.9;
}

/* Location Snippet */
.location-snippet {
  padding: var(--section-padding);
  background-color: var(--muted);
}

.location-snippet__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.location-snippet__address {
  font-style: normal;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.location-snippet__address a {
  font-weight: 600;
}

.location-snippet__hours h3 {
  color: var(--navy);
  margin-bottom: 1rem;
}

.location-snippet__hours dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1rem;
  margin-bottom: 2rem;
}

.location-snippet__hours dt {
  font-weight: 600;
  color: var(--navy);
}

.location-snippet__hours dd {
  margin: 0;
  color: var(--muted-foreground);
}

.location-snippet__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.location-snippet__map {
  background-color: var(--warm-gray);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  min-height: 300px;
}

.map-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--muted-foreground);
  background: linear-gradient(45deg, #f8f9fa 25%, transparent 25%),
    linear-gradient(-45deg, #f8f9fa 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #f8f9fa 75%),
    linear-gradient(-45deg, transparent 75%, #f8f9fa 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

/* Reviews Styles */
.reviews-stats {
  padding: 2rem 0;
  background-color: var(--muted);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.stat-card {
  text-align: center;
  background-color: var(--card);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
}

.stat-card__number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-card__label {
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}

.stat-card__stars {
  color: var(--primary);
  font-size: 1.25rem;
}

.reviews-main {
  padding: var(--section-padding);
}

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.review-card {
  background-color: var(--card);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.review-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.review-card__header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.review-card__avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-right: 1rem;
}

.review-card__name {
  color: var(--navy);
  margin-bottom: 0.25rem;
  font-size: 1.125rem;
}

.review-card__rating {
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.review-card__date {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.review-card__text {
  color: var(--foreground);
  line-height: 1.6;
  margin-bottom: 1rem;
  font-style: italic;
}

.review-card__service {
  color: var(--primary);
  font-weight: 500;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Footer */
.footer {
  background-color: var(--navy);
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer__logo {
  width: 50px;
  height: 50px;
  margin-bottom: 1rem;
}

.footer__description {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
}

.footer__social {
  display: flex;
  gap: 1rem;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
  transition: var(--transition);
}

.footer__social-link:hover,
.footer__social-link:focus {
  background-color: var(--primary);
  transform: translateY(-2px);
}

.footer__title {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__links li {
  margin-bottom: 0.5rem;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.footer__links a:hover,
.footer__links a:focus {
  color: var(--primary);
}

.footer__contact {
  font-style: normal;
  line-height: 1.8;
}

.footer__contact a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.footer__contact a:hover,
.footer__contact a:focus {
  color: var(--primary);
}

.footer__hours {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1rem;
}

.footer__hours dt {
  font-weight: 600;
  color: var(--white);
}

.footer__hours dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__legal {
  display: flex;
  gap: 2rem;
}

.footer__legal a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  transition: var(--transition);
}

.footer__legal a:hover,
.footer__legal a:focus {
  color: var(--primary);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background-color: var(--primary);
  color: var(--primary-foreground);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  z-index: 1000;
}

.back-to-top:hover,
.back-to-top:focus {
  background-color: var(--accent);
  transform: translateY(-2px);
}

.back-to-top.visible {
  display: flex;
}

/* Page Header Styles */
.page-header {
  padding: 8rem 0 4rem;
  background-color: var(--muted);
  text-align: center;
}

.page-header__title {
  color: var(--navy);
  margin-bottom: 1rem;
}

.page-header__subtitle {
  color: var(--muted-foreground);
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto;
  color: #fff;
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 6rem 0 1rem;
  background-color: var(--muted);
}

.breadcrumbs__list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.5rem;
}

.breadcrumbs__item {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.breadcrumbs__item:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  color: var(--border);
}

.breadcrumbs__item a {
  color: var(--primary);
  text-decoration: none;
}

.breadcrumbs__item a:hover {
  text-decoration: underline;
}

/* CTA Section */
.cta-section {
  padding: var(--section-padding);
  background-color: var(--navy);
  color: var(--white);
  text-align: center;
}

.cta-section__content {
  max-width: 600px;
  margin: 0 auto;
}

.cta-section__title {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-section__description {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.cta-section__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
  :root {
    --container-padding: 1rem;
    --section-padding: 3rem 0;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    position: fixed;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    flex-direction: column;
    padding: 2rem var(--container-padding);
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }

  .nav__menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav__item--cta {
    margin-left: 0;
    margin-top: 1rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

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

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

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

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer__legal {
    justify-content: center;
  }

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

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

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

  .cta-section__actions {
    flex-direction: column;
    align-items: center;
  }

  .page-header {
    padding: 6rem 0 3rem;
  }

  .breadcrumbs {
    padding: 5rem 0 1rem;
  }

  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 2rem;
  }
  h3 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero__actions {
    gap: 0.5rem;
  }

  .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
  }

  .btn--large {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }

  .testimonial {
    padding: 1.5rem;
  }

  .testimonial__quote {
    font-size: 1.125rem;
  }
}

/* Print Styles */
@media print {
  .header,
  .nav__toggle,
  .back-to-top,
  .footer__social {
    display: none;
  }

  .hero {
    height: auto;
    padding: 2rem 0;
    background: none;
    color: var(--charcoal);
  }

  .hero__title {
    color: var(--navy);
    text-shadow: none;
  }

  a {
    color: var(--charcoal);
    text-decoration: underline;
  }

  .btn {
    border: 1px solid var(--charcoal);
    background: none;
    color: var(--charcoal);
  }
}

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

  .hero {
    background-attachment: scroll;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --primary: #000000;
    --secondary: #000000;
    --accent: #000000;
    --border: #000000;
  }

  .btn--outline {
    border-width: 3px;
  }

  .nav__link::after {
    height: 3px;
  }
}

/* Focus Styles */
*:focus {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.btn:focus {
  outline-color: var(--accent);
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--navy);
  color: var(--white);
  padding: 8px;
  text-decoration: none;
  z-index: 1001;
  border-radius: var(--border-radius);
}

.skip-link:focus {
  top: 6px;
}


/* Mobile fix: iOS/Android don't support fixed background well */
@media (max-width: 768px) {
  .hero {
    background-attachment: scroll !important;
    background-position: center top; /* optional tweak */
  }
}

/* Or: only enable fixed on larger screens */
@media (min-width: 769px) {
  .hero {
    background-attachment: fixed;
  }
}
