/* =================================
   AUREUS FITNESS - RESPONSIVE STYLES
================================= */

/* Large tablets and smaller laptops */
@media (max-width: 1050px) {
  .nav-menu {
    gap: 20px;
  }

  .nav-button {
    display: none;
  }

  .about-layout {
    gap: 55px;
  }

  .program-grid,
  .pricing-grid,
  .trainer-grid {
    gap: 18px;
  }

  .contact-layout {
    gap: 50px;
  }
}

/* Tablets and mobile navigation */
@media (max-width: 900px) {
  :root {
    --header-height: 76px;
  }

  .section {
    padding: 85px 0;
  }

  .menu-toggle {
    display: block;
    position: relative;
    z-index: 1100;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-menu {
    align-items: center;
    background-color: rgba(8, 8, 8, 0.98);
    border-top: 1px solid var(--color-border);
    flex-direction: column;
    gap: 0;
    height: calc(100vh - var(--header-height));
    justify-content: flex-start;
    left: 0;
    opacity: 0;
    overflow-y: auto;
    padding: 35px 24px;
    pointer-events: none;
    position: absolute;
    top: var(--header-height);
    transform: translateY(-20px);
    transition:
      opacity var(--transition),
      transform var(--transition),
      visibility var(--transition);
    visibility: hidden;
    width: 100%;
  }

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

  .nav-menu li {
    border-bottom: 1px solid var(--color-border);
    text-align: center;
    width: 100%;
  }

  .nav-link {
    display: block;
    font-size: 0.9rem;
    padding: 20px 0;
  }

  .nav-link::after {
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60px;
  }

  .nav-link:hover::after,
  .nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
  }

  .hero {
    min-height: 900px;
  }

  .hero-content {
    padding-bottom: 90px;
    padding-top: 90px;
  }

  .hero-content h1 {
    font-size: clamp(2.8rem, 9vw, 5.2rem);
  }

  .hero-stats {
    gap: 40px;
  }

  .scroll-indicator {
    display: none;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

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

  .about-image {
    margin-bottom: 30px;
    min-height: 520px;
  }

  .image-placeholder {
    min-height: 520px;
  }

  .experience-card {
    bottom: -25px;
    right: 20px;
  }

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

  .program-card:last-child {
    grid-column: 1 / -1;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    margin: 0 auto;
    max-width: 620px;
  }

  .pricing-card.featured {
    transform: none;
  }

  .pricing-card.featured:hover {
    transform: translateY(-8px);
  }

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

  .trainer-card:last-child {
    grid-column: 1 / -1;
    margin: 0 auto;
    max-width: 420px;
    width: 100%;
  }

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

  .footer-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-layout .logo {
    justify-self: center;
  }

  .footer-links {
    justify-content: center;
  }
}

/* Phones */
@media (max-width: 650px) {
  .container {
    width: min(92%, var(--container-width));
  }

  .section {
    padding: 70px 0;
  }

  .logo-mark {
    height: 38px;
    width: 38px;
  }

  .logo-text span {
    font-size: 0.9rem;
  }

  .hero {
    min-height: 820px;
  }

  .hero::before {
    height: 400px;
    right: -250px;
    width: 400px;
  }

  .hero-content {
    padding-bottom: 65px;
    padding-top: 65px;
  }

  .hero-content h1 {
    font-size: clamp(2.3rem, 12vw, 4rem);
  }

  .hero-description {
    font-size: 0.92rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .hero-stats {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 48px;
  }

  .stat strong {
    font-size: 1.35rem;
  }

  .stat span {
    font-size: 0.56rem;
  }

  .about-image,
  .image-placeholder {
    min-height: 420px;
  }

  .experience-card {
    bottom: -20px;
    padding: 22px;
    right: 10px;
    width: 165px;
  }

  .experience-card strong {
    font-size: 2.2rem;
  }

  .feature {
    gap: 16px;
  }

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

  .program-card:last-child {
    grid-column: auto;
  }

  .program-card {
    min-height: 360px;
  }

  .pricing-card {
    padding: 38px 24px;
  }

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

  .trainer-card:last-child {
    grid-column: auto;
    max-width: none;
  }

  .trainer-image {
    height: 420px;
  }

  .cta {
    min-height: 470px;
  }

  .contact-form {
    padding: 30px 22px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .modal {
    padding: 14px;
  }

  .modal-content {
    padding: 38px 22px 28px;
  }
}

/* Very small phones */
@media (max-width: 430px) {
  .hero-stats {
    gap: 14px;
  }

  .stat strong {
    font-size: 1.15rem;
  }

  .stat span {
    font-size: 0.5rem;
  }

  .section-heading h2,
  .about-content h2,
  .contact-content h2 {
    font-size: 2rem;
  }

  .price strong {
    font-size: 3.4rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 12px;
  }
}

/* Landscape phones */
@media (max-height: 600px) and (orientation: landscape) {
  .hero {
    min-height: 750px;
  }

  .nav-menu {
    padding-top: 15px;
  }

  .nav-link {
    padding: 13px 0;
  }
}
/* Class schedule responsive styles */

@media (max-width: 900px) {
  .class-card {
    grid-template-columns: 135px 1fr;
  }

  .class-availability {
    align-items: center;
    border-top: 1px solid var(--color-border);
    flex-direction: row;
    grid-column: 1 / -1;
    justify-content: space-between;
    padding-top: 20px;
  }
}

@media (max-width: 650px) {
  .schedule-filters {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .schedule-filter {
    width: 100%;
  }

  .class-card {
    gap: 18px;
    grid-template-columns: 1fr;
    padding: 28px 10px;
  }

  .class-time {
    border-bottom: 1px solid var(--color-border);
    border-right: 0;
    min-height: auto;
    padding-bottom: 18px;
  }

  .class-availability {
    align-items: stretch;
    flex-direction: column;
    grid-column: auto;
  }

  .class-availability .btn {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .schedule-filters {
    grid-template-columns: 1fr;
  }
}
/* Multi-page responsive layout */

@media (max-width: 900px) {
  .page-hero {
    min-height: 380px;
  }

  .page-hero-content {
    padding-bottom: 65px;
    padding-top: 65px;
  }

  .page-section {
    padding: 80px 0;
  }
}

@media (max-width: 650px) {
  .page-hero {
    min-height: 340px;
  }

  .page-hero h1 {
    font-size: clamp(2.2rem, 12vw, 3.5rem);
  }

  .page-hero-description {
    font-size: 0.87rem;
  }

  .page-section {
    padding: 65px 0;
  }

  .empty-page-message {
    padding: 32px 20px;
  }
}
/* About page responsive styles */

@media (max-width: 1000px) {
  .about-story-layout,
  .facility-layout {
    gap: 50px;
  }

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

@media (max-width: 800px) {
  .about-story-layout,
  .facility-layout {
    grid-template-columns: 1fr;
  }

  .about-story-image,
  .about-story-image img {
    min-height: 500px;
    height: 500px;
  }

  .facility-image {
    min-height: 500px;
  }

  .facility-image img {
    height: 500px;
  }

  .statistics-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 40px;
  }

  .about-stat:nth-child(2) {
    border-right: 0;
  }
}

@media (max-width: 550px) {
  .about-story-image,
  .about-story-image img {
    min-height: 400px;
    height: 400px;
  }

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

  .value-card {
    min-height: 260px;
  }

  .value-number {
    margin-bottom: 35px;
  }

  .facility-image {
    min-height: 420px;
  }

  .facility-image img {
    height: 420px;
  }

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

  .about-stat {
    border-bottom: 1px solid rgba(0, 0, 0, 0.25);
    border-right: 0;
    padding-bottom: 30px;
  }

  .about-stat:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .about-cta-buttons {
    flex-direction: column;
  }

  .about-cta-buttons .btn {
    width: 100%;
  }
}
/* Classes page responsive styles */

@media (max-width: 1000px) {
  .class-category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .class-information-layout {
    gap: 50px;
  }
}

@media (max-width: 800px) {
  .class-information-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 550px) {
  .class-category-grid {
    grid-template-columns: 1fr;
  }

  .class-category-card {
    min-height: 270px;
  }

  .class-category-number {
    margin-bottom: 40px;
  }

  .class-guidelines article {
    gap: 16px;
  }
}
/* Membership page responsive styles */

@media (max-width: 1000px) {
  .membership-benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .membership-faq-layout {
    gap: 50px;
  }
}

@media (max-width: 800px) {
  .membership-faq-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 550px) {
  .membership-benefits-grid {
    grid-template-columns: 1fr;
  }

  .membership-benefit-card {
    min-height: 250px;
  }

  .membership-benefit-card > span {
    margin-bottom: 38px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 16px 12px;
  }

  .faq-item summary {
    font-size: 0.92rem;
  }
}
/* Trainers page responsive styles */

@media (max-width: 1050px) {
  .trainer-profile-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trainer-profile-card:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 520px;
    width: 100%;
  }

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

@media (max-width: 800px) {
  .trainer-introduction-layout,
  .certifications-layout {
    grid-template-columns: 1fr;
    gap: 45px;
  }
}

@media (max-width: 650px) {
  .trainer-profile-grid {
    grid-template-columns: 1fr;
  }

  .trainer-profile-card:last-child {
    grid-column: auto;
    max-width: none;
  }

  .trainer-profile-image {
    height: 400px;
  }

  .trainer-profile-content {
    padding: 26px 22px;
  }

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

  .coaching-process-card {
    min-height: 250px;
  }

  .coaching-process-card > span {
    margin-bottom: 38px;
  }

  .trainer-cta-buttons {
    flex-direction: column;
  }

  .trainer-cta-buttons .btn {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .trainer-profile-image {
    height: 350px;
  }

  .trainer-details {
    grid-template-columns: 1fr;
  }
}
/* Booking page responsive styles */

@media (max-width: 1050px) {
  .booking-page-layout {
    gap: 50px;
  }

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

@media (max-width: 850px) {
  .booking-page-layout {
    grid-template-columns: 1fr;
  }

  .booking-page-content {
    position: static;
  }
}

@media (max-width: 650px) {
  .booking-page-form {
    padding: 30px 22px;
  }

  .appointment-options-grid,
  .booking-process-grid {
    grid-template-columns: 1fr;
  }

  .appointment-option-card,
  .booking-process-grid article {
    min-height: 260px;
  }

  .appointment-option-card > span,
  .booking-process-grid article > span {
    margin-bottom: 35px;
  }
}

@media (max-width: 430px) {
  .booking-contact-card a {
    font-size: 1.25rem;
  }

  .booking-form-heading h2 {
    font-size: 1.7rem;
  }
}
/* Contact page responsive styles */

@media (max-width: 1000px) {
  .contact-page-layout,
  .location-layout,
  .contact-faq-layout {
    gap: 50px;
  }
}

@media (max-width: 850px) {
  .contact-page-layout,
  .location-layout,
  .contact-faq-layout {
    grid-template-columns: 1fr;
  }

  .location-map,
  .map-placeholder {
    min-height: 480px;
    height: 480px;
  }
}

@media (max-width: 650px) {
  .contact-page-form {
    padding: 30px 22px;
  }

  .contact-form-heading h2 {
    font-size: 1.7rem;
  }

  .location-map,
  .map-placeholder {
    min-height: 400px;
    height: 400px;
  }

  .hours-list div {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .hours-list strong {
    text-align: left;
  }

  .contact-cta-buttons {
    flex-direction: column;
  }

  .contact-cta-buttons .btn {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .contact-method {
    gap: 15px;
  }

  .contact-method a,
  .contact-method address {
    font-size: 0.88rem;
  }

  .map-placeholder {
    padding: 25px 18px;
  }
}
/* Multi-page homepage responsive styles */

@media (max-width: 950px) {
  .home-about-layout,
  .home-contact-layout {
    gap: 50px;
  }
}

@media (max-width: 800px) {
  .home-about-layout,
  .home-contact-layout {
    grid-template-columns: 1fr;
  }

  .home-about-image,
  .home-about-image img {
    height: 500px;
    min-height: 500px;
  }
}

@media (max-width: 650px) {
  .home-about-image,
  .home-about-image img {
    height: 410px;
    min-height: 410px;
  }

  .home-class-card {
    align-items: stretch;
    flex-direction: column;
  }

  .home-class-card .btn {
    width: 100%;
  }

  .home-cta-buttons {
    flex-direction: column;
  }

  .home-cta-buttons .btn {
    width: 100%;
  }
}