/* Elite Studio Massage — Task 02 public mobile responsiveness
   Loaded after page-specific styles. Desktop >= 1200px is intentionally untouched. */

@media (max-width: 1199px) {
    /* Prevent grid/flex min-content from widening the document at tablet widths. */
    .header-inner,
    .about-grid,
    .stats-list,
    .stat,
    .affiliate-program-page .affiliate-body-grid,
    .affiliate-program-page .affiliate-content-column,
    .affiliate-program-page .affiliate-application {
        min-width: 0;
    }

    .about-grid > *,
    .stats-list > * {
        min-width: 0;
        max-width: 100%;
    }

    .stat > div,
    .stat strong,
    .stat span {
        min-width: 0;
        max-width: 100%;
        overflow-wrap: break-word;
    }

    /* The desktop affiliate form is 760px wide. Make that a maximum, not a grid minimum. */
    .affiliate-program-page .affiliate-body-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .affiliate-program-page .affiliate-application {
        width: 100%;
        max-width: 760px;
        justify-self: center;
    }
}

@media (max-width: 1024px) {
    /* Home tablet: the textual stat values must be allowed to wrap inside the third column. */
    body:not(.about-page):not(.services-page):not(.packages-page):not(.booking-page):not(.affiliate-program-page):not(.legal-page) .stats-list {
        width: 100%;
        padding-left: 24px;
    }

    body:not(.about-page):not(.services-page):not(.packages-page):not(.booking-page):not(.affiliate-program-page):not(.legal-page) .stat {
        grid-template-columns: 34px minmax(0, 1fr);
        column-gap: 10px;
    }

    body:not(.about-page):not(.services-page):not(.packages-page):not(.booking-page):not(.affiliate-program-page):not(.legal-page) .stat strong {
        font-size: clamp(22px, 2.6vw, 29px);
        line-height: 1.05;
    }
}

@media (max-width: 767px) {
    :root { --header-height: 72px; }

    html {
        scroll-padding-top: var(--header-height);
        max-width: 100%;
    }

    body {
        min-width: 0;
        max-width: 100%;
    }

    main,
    .hero,
    .site-footer,
    .about-main,
    .services-main,
    .packages-main,
    .booking-page main,
    .affiliate-main,
    .legal-main {
        min-width: 0;
        max-width: 100%;
    }

    /* Shared containers */
    .container,
    .shell,
    .header-inner,
    .hero-inner,
    .footer-top,
    .footer-bottom,
    .about-page .about-container,
    .services-page .services-container,
    .packages-page .packages-container,
    .booking-shell,
    .affiliate-program-page .affiliate-container,
    .legal-page .legal-container {
        width: auto;
        max-width: none;
        margin-left: 20px;
        margin-right: 20px;
    }

    /* Shared mobile header */
    .site-header,
    .header-inner {
        height: var(--header-height);
    }

    .header-inner {
        grid-template-columns: minmax(0, 1fr) auto;
        column-gap: 8px;
    }

    .brand-link {
        width: min(170px, calc(100vw - 138px));
        max-width: 170px;
        min-width: 0;
        height: 54px;
        gap: 8px;
        overflow: visible;
    }

    .brand-link img {
        width: 48px;
        height: 48px;
        flex: 0 0 48px;
    }

    .brand-copy {
        min-width: 0;
        justify-items: start;
        text-align: left;
    }

    .brand-copy strong {
        max-width: 112px;
        font-size: 9.5px;
        line-height: 1.2;
        white-space: normal;
    }

    .brand-copy small {
        display: block;
        max-width: 112px;
        font-size: 7.5px;
        line-height: 1.2;
        white-space: normal;
    }

    .mobile-header-actions {
        min-width: 0;
        gap: 6px;
    }

    .mobile-language-switcher {
        min-height: 44px;
        padding-inline: 5px;
        font-size: 10px;
    }

    .mobile-language-switcher a {
        min-width: 22px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-menu-toggle,
    .mobile-navigation-close {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }

    /* Mobile navigation overlay: safe on short phones and modern dynamic viewports. */
    .mobile-navigation:not([hidden]) {
        inset: 8px;
        width: auto;
        max-width: none;
        height: calc(100vh - 16px);
        height: calc(100dvh - 16px);
        max-height: calc(100vh - 16px);
        max-height: calc(100dvh - 16px);
        padding: 16px 18px 22px;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .mobile-navigation-header {
        gap: 12px;
    }

    .mobile-navigation-brand {
        width: min(180px, calc(100% - 56px));
    }

    .mobile-navigation-links {
        margin-top: 18px;
    }

    .mobile-navigation-links a {
        min-height: 52px;
        grid-template-columns: 24px minmax(0, 1fr);
        column-gap: 14px;
        font-size: 14px;
        line-height: 1.25;
        white-space: normal;
    }

    .mobile-navigation-divider {
        margin: 14px 0 16px;
    }

    .mobile-navigation-booking {
        min-height: 52px;
        height: auto;
        padding-block: 12px;
        white-space: normal;
        text-align: center;
    }

    .mobile-navigation-language {
        margin-top: 18px;
        padding-bottom: 4px;
    }

    .mobile-navigation-language a {
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Shared touch/typography safeguards */
    .button {
        min-height: 48px;
        height: auto;
        padding: 12px 18px;
        line-height: 1.25;
        white-space: normal;
        text-align: center;
    }

    input,
    select,
    textarea {
        max-width: 100%;
    }

    .contact-column a,
    .legal-page .legal-section a,
    .legal-page .legal-notice,
    .affiliate-program-page .affiliate-field,
    .affiliate-program-page .affiliate-consent,
    .booking-page .booking-form,
    .booking-page .booking-form-note {
        overflow-wrap: anywhere;
    }

    /* ---------- Homepage ---------- */
    body:not(.about-page):not(.services-page):not(.packages-page):not(.booking-page):not(.affiliate-program-page):not(.legal-page) .hero {
        min-height: 650px;
    }

    body:not(.about-page):not(.services-page):not(.packages-page):not(.booking-page):not(.affiliate-program-page):not(.legal-page) .hero-inner {
        min-height: 650px;
    }

    body:not(.about-page):not(.services-page):not(.packages-page):not(.booking-page):not(.affiliate-program-page):not(.legal-page) .hero-copy {
        padding-top: 38px;
        padding-bottom: 30px;
    }

    body:not(.about-page):not(.services-page):not(.packages-page):not(.booking-page):not(.affiliate-program-page):not(.legal-page) .hero h1 {
        font-size: clamp(42px, 12.5vw, 52px);
        line-height: .92;
    }

    body:not(.about-page):not(.services-page):not(.packages-page):not(.booking-page):not(.affiliate-program-page):not(.legal-page) .hero-intro {
        max-width: 360px;
        font-size: 14px;
        line-height: 1.65;
    }

    body:not(.about-page):not(.services-page):not(.packages-page):not(.booking-page):not(.affiliate-program-page):not(.legal-page) .service-grid,
    body:not(.about-page):not(.services-page):not(.packages-page):not(.booking-page):not(.affiliate-program-page):not(.legal-page) .services-section > .shell > .split-intro + .service-grid {
        width: 100%;
        max-width: 100%;
        gap: 14px;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-inline: contain;
        scroll-snap-type: x mandatory;
    }

    body:not(.about-page):not(.services-page):not(.packages-page):not(.booking-page):not(.affiliate-program-page):not(.legal-page) .service-card {
        width: min(76vw, 280px);
        min-width: min(76vw, 280px);
        flex-basis: min(76vw, 280px);
        height: auto;
        min-height: 350px;
    }

    body:not(.about-page):not(.services-page):not(.packages-page):not(.booking-page):not(.affiliate-program-page):not(.legal-page) .service-card > img {
        height: 155px;
    }

    body:not(.about-page):not(.services-page):not(.packages-page):not(.booking-page):not(.affiliate-program-page):not(.legal-page) .service-card-body {
        height: auto;
        min-height: 195px;
        padding: 34px 18px 18px;
    }

    body:not(.about-page):not(.services-page):not(.packages-page):not(.booking-page):not(.affiliate-program-page):not(.legal-page) .service-card h3 {
        font-size: 23px;
        line-height: 1.05;
    }

    body:not(.about-page):not(.services-page):not(.packages-page):not(.booking-page):not(.affiliate-program-page):not(.legal-page) .service-card p {
        display: block;
        margin-top: 10px;
        font-size: 12.5px;
        line-height: 1.55;
    }

    body:not(.about-page):not(.services-page):not(.packages-page):not(.booking-page):not(.affiliate-program-page):not(.legal-page) .service-meta {
        margin-top: 14px;
        font-size: 11px;
    }

    /* Stop squeezing Why Choose and booking preview into two narrow phone columns. */
    .experience-booking-group {
        display: block;
        padding: 42px 20px 48px;
    }

    .experience-booking-group .why-section,
    .experience-booking-group .booking-section {
        width: 100%;
    }

    .experience-booking-group .booking-section {
        margin-top: 34px;
    }

    .experience-booking-group .why-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 20px;
    }

    .experience-booking-group .why-heading {
        margin-bottom: 8px;
    }

    .experience-booking-group .why-heading h2,
    .about-copy h2,
    .testimonials-header h2 {
        font-size: clamp(32px, 9.5vw, 40px);
        line-height: 1;
        white-space: normal;
        overflow-wrap: normal;
    }

    .why-section .benefit,
    .why-section .benefit:last-child {
        display: grid;
        grid-template-columns: 40px minmax(0, 1fr);
        grid-template-rows: auto auto;
        column-gap: 12px;
        min-height: 0;
        padding: 16px 0;
        border-top: 1px solid rgba(201, 161, 91, .14);
        text-align: left;
    }

    .why-section .benefit > svg {
        grid-row: 1 / 3;
        width: 32px;
        height: 32px;
        margin: 0;
    }

    .why-section .benefit h3 {
        margin: 0;
        font-size: 13px;
        line-height: 1.3;
    }

    .why-section .benefit p {
        margin: 6px 0 0;
        font-size: 12.5px;
        line-height: 1.55;
    }

    .experience-booking-group .booking-panel {
        width: 100%;
        margin: 0;
    }

    .experience-booking-group .booking-copy {
        display: block;
        padding: 24px 20px;
    }

    .experience-booking-group .booking-copy h2 {
        font-size: 34px;
    }

    .experience-booking-group .booking-copy p {
        font-size: 13.5px;
    }

    .experience-booking-group .booking-quick-form,
    .experience-booking-group .booking-actions {
        padding: 20px;
    }

    .experience-booking-group .booking-quick-form {
        gap: 14px;
    }

    .experience-booking-group .booking-quick-form label > span {
        font-size: 11.5px;
        line-height: 1.3;
    }

    .experience-booking-group .booking-quick-form select,
    .experience-booking-group .booking-quick-form input {
        min-height: 50px;
        height: 50px;
        font-size: 16px;
    }

    .experience-booking-group .booking-actions .button-gold,
    .experience-booking-group .booking-actions .button-outline {
        min-height: 50px;
        height: auto;
        font-size: 11px;
    }

    /* Home About preview becomes a readable vertical editorial block. */
    body:not(.about-page):not(.services-page):not(.packages-page):not(.booking-page):not(.affiliate-program-page):not(.legal-page) .about-grid {
        margin-inline: 20px;
        grid-template-columns: 1fr;
        gap: 24px;
    }

    body:not(.about-page):not(.services-page):not(.packages-page):not(.booking-page):not(.affiliate-program-page):not(.legal-page) .about-photo {
        height: 240px;
    }

    body:not(.about-page):not(.services-page):not(.packages-page):not(.booking-page):not(.affiliate-program-page):not(.legal-page) .about-copy p {
        font-size: 14px;
        line-height: 1.68;
    }

    body:not(.about-page):not(.services-page):not(.packages-page):not(.booking-page):not(.affiliate-program-page):not(.legal-page) .about-copy .button {
        width: 100%;
        min-height: 50px;
        font-size: 11px;
    }

    body:not(.about-page):not(.services-page):not(.packages-page):not(.booking-page):not(.affiliate-program-page):not(.legal-page) .stats-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 0;
        border-left: 0;
        border-top: 1px solid rgba(201, 161, 91, .22);
    }

    body:not(.about-page):not(.services-page):not(.packages-page):not(.booking-page):not(.affiliate-program-page):not(.legal-page) .stat {
        min-height: 94px;
        padding: 14px 8px;
        grid-template-columns: 34px minmax(0, 1fr);
        text-align: left;
    }

    body:not(.about-page):not(.services-page):not(.packages-page):not(.booking-page):not(.affiliate-program-page):not(.legal-page) .stat strong {
        font-size: clamp(20px, 6vw, 27px);
        line-height: 1.02;
    }

    body:not(.about-page):not(.services-page):not(.packages-page):not(.booking-page):not(.affiliate-program-page):not(.legal-page) .stat span {
        font-size: 11px;
        line-height: 1.35;
    }

    .testimonials-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .testimonials-header > div,
    .testimonials-header h2 {
        min-width: 0;
        max-width: 100%;
    }

    .testimonials-header .text-link {
        display: inline-flex;
        margin: 0;
        font-size: 10.5px;
        line-height: 1.35;
        white-space: normal;
    }

    .testimonial-track {
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-inline: contain;
    }

    .testimonial-card {
        width: min(84vw, 300px);
        min-width: min(84vw, 300px);
        flex-basis: min(84vw, 300px);
        min-height: 190px;
        padding: 22px;
    }

    .testimonial-card h3 {
        font-size: 21px;
        line-height: 1.1;
    }

    .testimonial-card p {
        font-size: 13px;
        line-height: 1.6;
    }

    /* ---------- About ---------- */
    .about-page .about-hero h1 span {
        white-space: normal;
    }

    .about-page .about-story__copy p,
    .about-page .about-value p,
    .about-page .about-environment__copy p,
    .about-page .about-checklist li,
    .about-page .about-timeline p {
        font-size: 14px;
    }

    /* ---------- Services ---------- */
    .services-page .category-navigation {
        max-width: calc(100% - 40px);
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-inline: contain;
        -webkit-overflow-scrolling: touch;
    }

    .services-page .category-navigation a {
        min-height: 66px;
    }

    .services-page .service-category__heading,
    .services-page .services-detail-card,
    .services-page .service-flip-card__face,
    .services-page .prenatal-panel__content,
    .services-page .offers-panel__content,
    .services-page .service-guidance__panel {
        min-width: 0;
    }

    .services-page .service-category__heading h2,
    .services-page .services-detail-card h3,
    .services-page .service-card__title,
    .services-page .prenatal-panel h2,
    .services-page .offers-panel h2,
    .services-page .service-guidance__content h2 {
        overflow-wrap: break-word;
    }

    .services-page .services-benefits p,
    .services-page .service-guidance__content p,
    .services-page .pricing-section__heading p {
        font-size: 13.5px;
        line-height: 1.6;
    }

    /* ---------- Packages ---------- */
    .packages-page .membership-card,
    .packages-page .comparison-card,
    .packages-page .member-benefit,
    .packages-page .membership-cta__content {
        min-width: 0;
    }

    .packages-page .membership-card__benefits li,
    .packages-page .member-benefit p,
    .packages-page .membership-terms__list li,
    .packages-page .comparison-card dt,
    .packages-page .comparison-card dd {
        font-size: 13.5px;
        line-height: 1.6;
    }

    .packages-page .comparison-card dl div {
        grid-template-columns: minmax(0, 1fr) minmax(0, auto);
    }

    /* ---------- Booking ---------- */
    .booking-page .booking-shell {
        margin-inline: 20px;
    }

    .booking-page .booking-hero {
        min-height: 350px;
        padding: 62px 0 42px;
    }

    .booking-page .booking-hero h1 {
        font-size: clamp(42px, 12vw, 50px);
        line-height: .94;
    }

    .booking-page .booking-form section,
    .booking-page .booking-sidebar > div,
    .booking-page .booking-confirmation {
        padding: 20px;
    }

    .booking-page .booking-form section header {
        align-items: flex-start;
    }

    .booking-page .booking-form h2,
    .booking-page .booking-sidebar h2,
    .booking-page .booking-confirmation h2 {
        font-size: 30px;
        line-height: 1.05;
    }

    .booking-page .booking-form label,
    .booking-page .booking-form legend {
        font-size: 12px;
        line-height: 1.4;
    }

    .booking-page .booking-form input,
    .booking-page .booking-form select,
    .booking-page .booking-form textarea {
        min-height: 50px;
        font-size: 16px;
    }

    .booking-page .booking-type-options span {
        min-height: 88px;
        padding: 16px;
    }

    .booking-page .booking-consent {
        align-items: flex-start;
    }

    .booking-page .booking-consent input {
        width: 22px;
        height: 22px;
        min-width: 22px;
        min-height: 22px;
    }

    .booking-page .booking-calendar {
        min-width: 0;
        padding: 12px;
    }

    .booking-page .booking-calendar__toolbar {
        grid-template-columns: 44px minmax(0, 1fr) 44px;
    }

    .booking-page .booking-calendar__nav {
        width: 44px;
        height: 44px;
    }

    .booking-page .booking-calendar__weekdays,
    .booking-page .booking-calendar__days {
        min-width: 0;
        gap: 4px;
    }

    .booking-page .booking-calendar__day {
        min-width: 0;
        min-height: 40px;
    }

    .booking-page .booking-submit {
        min-height: 52px;
        font-size: 11px;
    }

    /* ---------- Affiliate ---------- */
    .affiliate-program-page .affiliate-body-grid {
        width: auto;
        max-width: none;
        margin-left: 20px;
        margin-right: 20px;
        grid-template-columns: minmax(0, 1fr);
    }

    .affiliate-program-page .affiliate-content-column,
    .affiliate-program-page .affiliate-commission,
    .affiliate-program-page .affiliate-commission__grid,
    .affiliate-program-page .affiliate-audience-benefits,
    .affiliate-program-page .affiliate-audience,
    .affiliate-program-page .affiliate-benefits,
    .affiliate-program-page .affiliate-examples,
    .affiliate-program-page .affiliate-application {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .affiliate-program-page .affiliate-application {
        justify-self: stretch;
        margin-left: 0;
        margin-right: 0;
    }

    .affiliate-program-page .commission-card,
    .affiliate-program-page .qualified-card,
    .affiliate-program-page .affiliate-benefits__grid article,
    .affiliate-program-page .affiliate-examples__grid article {
        min-width: 0;
        max-width: 100%;
    }

    .affiliate-program-page .commission-card > strong {
        font-size: clamp(58px, 18vw, 76px);
        line-height: .95;
    }

    .affiliate-program-page .commission-card p,
    .affiliate-program-page .qualified-card,
    .affiliate-program-page .affiliate-audience li,
    .affiliate-program-page .affiliate-benefits__grid p,
    .affiliate-program-page .affiliate-examples p,
    .affiliate-program-page .affiliate-rules p,
    .affiliate-program-page .affiliate-application > p,
    .affiliate-program-page .affiliate-submit-note,
    .affiliate-program-page .affiliate-privacy-note {
        font-size: 13px;
        line-height: 1.6;
    }

    .affiliate-program-page .affiliate-field label,
    .affiliate-program-page .affiliate-consent label {
        font-size: 12px;
        line-height: 1.5;
    }

    .affiliate-program-page .affiliate-field input,
    .affiliate-program-page .affiliate-field select,
    .affiliate-program-page .affiliate-field textarea {
        width: 100%;
        max-width: 100%;
        min-height: 50px;
        font-size: 16px;
    }

    .affiliate-program-page .affiliate-consent {
        display: grid;
        grid-template-columns: 24px minmax(0, 1fr);
        gap: 12px;
        align-items: start;
    }

    .affiliate-program-page .affiliate-consent input {
        width: 22px;
        height: 22px;
        min-width: 22px;
        min-height: 22px;
        margin-top: 1px;
    }

    .affiliate-program-page .affiliate-submit {
        width: 100%;
        min-height: 52px;
    }

    /* ---------- Legal ---------- */
    .legal-page .legal-main {
        padding: 46px 0 62px;
    }

    .legal-page .legal-container {
        width: auto;
    }

    .legal-page .legal-header h1 {
        font-size: clamp(38px, 11vw, 48px);
        line-height: 1;
    }

    .legal-page .legal-section h2 {
        font-size: 27px;
        line-height: 1.12;
    }

    .legal-page .legal-header p,
    .legal-page .legal-notice,
    .legal-page .legal-section p,
    .legal-page .legal-section li {
        font-size: 14px;
        line-height: 1.72;
    }

    .legal-page .legal-section ul {
        padding-left: 18px;
    }

    /* ---------- Shared footer ---------- */
    .footer-top {
        width: auto;
        max-width: none;
        margin-inline: 20px;
        padding: 38px 0 30px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 24px;
        align-items: start;
    }

    .footer-brand {
        grid-column: 1 / -1;
        grid-row: auto;
        padding: 0;
    }

    .quick-links-column,
    .contact-column,
    .hours-column,
    .location-column {
        grid-column: auto;
        grid-row: auto;
    }

    .location-column {
        grid-column: 1 / -1;
    }

    .footer-brand-lockup {
        width: min(220px, 100%);
        min-height: 60px;
        gap: 10px;
    }

    .footer-brand .footer-brand-lockup img {
        width: 58px;
        height: 58px;
        flex: 0 0 58px;
    }

    .footer-brand-lockup strong {
        font-size: 9.5px;
        line-height: 1.2;
    }

    .footer-brand-lockup span {
        font-size: 8.5px;
        line-height: 1.25;
        white-space: normal;
    }

    .footer-brand p {
        max-width: 360px;
        margin-top: 12px;
        font-size: 12.5px;
        line-height: 1.6;
    }

    .social-links a {
        width: 44px;
        height: 44px;
    }

    .footer-column {
        min-width: 0;
        padding: 0;
        border: 0;
    }

    .footer-column h2 {
        margin-bottom: 12px;
        font-size: 10.5px;
    }

    .footer-column li,
    .footer-column a,
    .footer-column span,
    .footer-column strong {
        font-size: 12px;
        line-height: 1.7;
    }

    .contact-column li {
        grid-template-columns: 20px minmax(0, 1fr);
        gap: 9px;
        margin-bottom: 10px;
    }

    .hours-column li {
        margin-bottom: 7px;
    }

    .map-card {
        width: 100%;
        height: 150px;
        min-height: 150px;
        padding: 16px;
        font-size: 12px;
    }

    .footer-bottom {
        width: auto;
        max-width: none;
        margin-inline: 20px;
        min-height: 80px;
        padding: 20px 0;
        gap: 14px;
        font-size: 10.5px;
        line-height: 1.5;
    }

    .footer-bottom div {
        gap: 10px 18px;
    }
}

@media (max-width: 479px) {
    .container,
    .shell,
    .header-inner,
    .hero-inner,
    .footer-top,
    .footer-bottom,
    .about-page .about-container,
    .services-page .services-container,
    .packages-page .packages-container,
    .booking-shell,
    .affiliate-program-page .affiliate-container,
    .legal-page .legal-container {
        margin-left: 16px;
        margin-right: 16px;
    }

    .brand-link {
        width: min(155px, calc(100vw - 126px));
        max-width: 155px;
    }

    .brand-link img {
        width: 45px;
        height: 45px;
        flex-basis: 45px;
    }

    .brand-copy strong {
        max-width: 100px;
        font-size: 9px;
    }

    .brand-copy small {
        max-width: 100px;
        font-size: 7px;
    }

    .mobile-navigation:not([hidden]) {
        padding-inline: 16px;
        border-radius: 18px;
    }

    .mobile-navigation-links a {
        font-size: 13.5px;
    }

    /* Homepage */
    body:not(.about-page):not(.services-page):not(.packages-page):not(.booking-page):not(.affiliate-program-page):not(.legal-page) .hero,
    body:not(.about-page):not(.services-page):not(.packages-page):not(.booking-page):not(.affiliate-program-page):not(.legal-page) .hero-inner {
        min-height: 630px;
    }

    body:not(.about-page):not(.services-page):not(.packages-page):not(.booking-page):not(.affiliate-program-page):not(.legal-page) .hero h1 {
        font-size: clamp(39px, 12vw, 48px);
    }

    .experience-booking-group {
        padding-inline: 16px;
    }

    .experience-booking-group .why-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    body:not(.about-page):not(.services-page):not(.packages-page):not(.booking-page):not(.affiliate-program-page):not(.legal-page) .about-grid {
        margin-inline: 16px;
    }

    body:not(.about-page):not(.services-page):not(.packages-page):not(.booking-page):not(.affiliate-program-page):not(.legal-page) .stats-list {
        grid-template-columns: 1fr;
    }

    body:not(.about-page):not(.services-page):not(.packages-page):not(.booking-page):not(.affiliate-program-page):not(.legal-page) .stat {
        border-right: 0;
    }

    /* About values become single-column before they feel squeezed. */
    .about-page .about-values__grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .about-page .about-value,
    .about-page .about-value:last-child {
        width: 100%;
        min-height: 0;
        padding: 24px 14px;
        border-right: 0 !important;
        border-bottom: 1px solid rgba(201, 161, 91, .18);
    }

    .about-page .about-value:last-child {
        border-bottom: 0;
    }

    /* Services */
    .services-page .category-navigation {
        max-width: calc(100% - 32px);
        margin-left: 16px;
        margin-right: 16px;
    }

    .services-page .category-navigation a {
        flex-basis: min(178px, 76vw);
    }

    .services-page .service-category__heading {
        grid-template-columns: 42px minmax(0, 1fr);
        padding-inline: 16px;
    }

    .services-page .service-category__heading h2 {
        font-size: 30px;
    }

    .services-page .services-benefits {
        grid-template-columns: 1fr;
    }

    .services-page .services-benefits article:last-child {
        grid-column: auto;
    }

    /* Booking */
    .booking-page .booking-shell {
        margin-inline: 16px;
    }

    .booking-page .booking-form section,
    .booking-page .booking-sidebar > div,
    .booking-page .booking-confirmation {
        padding: 18px 16px;
    }

    .booking-page .booking-calendar {
        padding: 10px 8px;
    }

    .booking-page .booking-calendar__toolbar {
        grid-template-columns: 42px minmax(0, 1fr) 42px;
        gap: 6px;
    }

    .booking-page .booking-calendar__toolbar strong {
        font-size: 20px;
    }

    .booking-page .booking-calendar__nav {
        width: 42px;
        height: 42px;
    }

    .booking-page .booking-calendar__weekdays,
    .booking-page .booking-calendar__days {
        gap: 3px;
    }

    .booking-page .booking-calendar__day {
        min-height: 38px;
        font-size: 11px;
    }

    /* Affiliate */
    .affiliate-program-page .affiliate-body-grid {
        margin-left: 16px;
        margin-right: 16px;
    }

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

    .affiliate-program-page .affiliate-application {
        padding: 22px 16px;
    }

    /* Footer: one readable column on small phones. */
    .footer-top {
        margin-inline: 16px;
        grid-template-columns: 1fr;
        gap: 0;
    }

    .footer-brand,
    .quick-links-column,
    .contact-column,
    .hours-column,
    .location-column {
        grid-column: 1;
        grid-row: auto;
    }

    .footer-brand {
        padding-bottom: 26px;
    }

    .footer-column {
        padding: 24px 0;
        border-top: 1px solid rgba(201, 161, 91, .15);
    }

    .footer-column h2 {
        font-size: 11px;
    }

    .footer-column li,
    .footer-column a,
    .footer-column span,
    .footer-column strong {
        font-size: 12.5px;
    }

    .footer-bottom {
        margin-inline: 16px;
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-bottom div {
        justify-content: flex-start;
    }
}

@media (max-width: 359px) {
    .brand-link {
        width: 142px;
        max-width: 142px;
    }

    .brand-copy strong { font-size: 8.5px; }
    .brand-copy small { font-size: 6.7px; }
    .mobile-language-switcher { padding-inline: 2px; }

    .mobile-navigation-links a {
        min-height: 48px;
        font-size: 13px;
    }

    .hero h1,
    .about-page .about-hero h1,
    .services-page .services-hero h1,
    .packages-page .packages-hero h1,
    .booking-page .booking-hero h1,
    .affiliate-program-page .affiliate-hero h1,
    .legal-page .legal-header h1 {
        overflow-wrap: normal;
        word-break: normal;
    }

    .services-page .pricing-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) and (orientation: landscape) {
    .mobile-navigation:not([hidden]) {
        padding-top: 12px;
        padding-bottom: 16px;
    }

    .mobile-navigation-links {
        margin-top: 10px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 18px;
    }

    .mobile-navigation-links a {
        min-height: 46px;
    }

    .mobile-navigation-divider {
        margin-block: 8px 10px;
    }

    .mobile-navigation-language {
        margin-top: 10px;
    }
}

/* Final Task 02 touch/readability refinements after rendered phone QA. */
@media (max-width: 767px) {
    body:not(.about-page):not(.services-page):not(.packages-page):not(.booking-page):not(.affiliate-program-page):not(.legal-page) .service-card p,
    .why-section .benefit p {
        font-size: 13.5px;
    }

    body:not(.about-page):not(.services-page):not(.packages-page):not(.booking-page):not(.affiliate-program-page):not(.legal-page) .service-meta {
        font-size: 11.5px;
    }

    .carousel-arrow {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }

    .booking-page .booking-calendar__day {
        min-height: 44px;
        touch-action: manipulation;
    }
}
