/* ============================================
   Satyr — Responsive styles
   Load after style.css | 1rem scales with html
   ============================================ */

/* --------------------------------------------
   Root scale (small desktop → phone)
   -------------------------------------------- */

@media (max-width: 1439px) {
    html {
        font-size: 9px;
    }

    body {
        min-width: 0;
        overflow-x: hidden;
    }
}

@media (max-width: 1199px) {
    html {
        font-size: 8px;
    }
}

@media (max-width: 1023px) {
    html {
        font-size: 7.5px;
    }
}

/* @media (max-width: 767px) {
    html {
        font-size: 6.5px;
    }
} */

/* @media (max-width: 479px) {
    html {
        font-size: 6px;
    }
} */

/* --------------------------------------------
   Header — desktop menu layout
   -------------------------------------------- */

.site-header {
    position: relative;
    z-index: 1000;
}

.site-header__menu {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-left: auto;
}

.site-header__toggle {
    display: none;
}

.site-header__backdrop {
    display: none;
}

/* --------------------------------------------
   Header — tablet & phone (hamburger)
   -------------------------------------------- */

@media (max-width: 1023px) {
    .site-header {
        padding: 2rem 3.2rem;
    }

    .site-header__inner {
        gap: 2rem;
    }

    .site-header__logo img {
        height: 8rem;
    }

    .site-header__toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        order: 2;
        margin-left: auto;
        width: 4.8rem;
        height: 4.8rem;
        padding: 0;
        border: 1px solid var(--dark-blue);
        border-radius: 1.2rem;
        background-color: var(--white);
        cursor: pointer;
        flex-shrink: 0;
        transition: all var(--transition);
        z-index: 99999;
    }

    .site-header__toggle:hover {
        background-color: rgba(0, 150, 196, 0.08);
        box-shadow: 0 0.4rem 1.6rem rgba(0, 150, 196, 0.25);
    }

    .site-header__toggle-box {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.55rem;
        width: 2.4rem;
    }

    .site-header__toggle-bar {
        display: block;
        width: 2.2rem;
        height: 0.22rem;
        background-color: var(--light-blue);
        border-radius: 100px;
        transform-origin: center;
        transition: all var(--transition);
    }

    body.menu-open .site-header__toggle {
        background-color: var(--light-blue);
        border-color: var(--light-blue);
    }

    body.menu-open .site-header__toggle-bar {
        background-color: var(--white);
    }

    body.menu-open .site-header__toggle-bar:nth-child(1) {
        transform: translateY(0.77rem) rotate(45deg);
    }

    body.menu-open .site-header__toggle-bar:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    body.menu-open .site-header__toggle-bar:nth-child(3) {
        transform: translateY(-0.77rem) rotate(-45deg);
    }

    .site-header__menu {
        position: fixed;
        top: 0;
        right: 0;
        width: min(40rem, 90vw);
        height: 100dvh;
        margin-left: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 11rem 3.2rem 4rem;
        background-color: var(--white);
        border-left: 1px solid rgba(0, 150, 196, 0.2);
        box-shadow: -1.2rem 0 4rem rgba(10, 98, 125, 0.15);
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 0.4s ease, visibility 0.4s ease;
        z-index: 1001;
    }

    body.menu-open .site-header__menu {
        transform: translateX(0);
        visibility: visible;
    }

    .site-header__nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 2.8rem;
        padding-bottom: 3.2rem;
        border-bottom: 1px solid rgba(0, 150, 196, 0.15);
        margin-bottom: 3.2rem;
    }

    .site-header__nav a {
        font-size: 2.6rem;
        font-weight: 400;
        transition: all var(--transition);
    }

    .site-header__nav a.is-active {
        color: var(--light-blue);
        font-weight: 700;
    }

    .site-header__cta {
        align-self: stretch;
        text-align: center;
        margin-top: auto;
    }

    .site-header__backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1000;
        background: linear-gradient(135deg, rgba(0, 72, 94, 0.55), rgba(0, 150, 196, 0.4));
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.4s ease, visibility 0.4s ease;
    }

    body.menu-open .site-header__backdrop {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    body.menu-open {
        overflow: hidden;
    }
}

@media (max-width: 767px) {
    .site-header {
        padding: 1.6rem 2rem;
    }

    .site-header__logo img {
        height: 7rem;
    }

    .site-header__toggle {
        width: 4.4rem;
        height: 4.4rem;
    }

    .site-header__menu {
        width: 100%;
        padding-top: 10rem;
    }

    .site-header__nav a {
        font-size: 2.4rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    :is(
        .btn,
        .btn--invert,
        .site-header__logo,
        .site-header__nav a,
        .site-header__toggle,
        .site-header__toggle-bar,
        .site-footer__nav a,
        .site-footer__contact-item,
        .site-footer__legal a,
        .site-footer__social a,
        .testimonials__arrow,
        .testimonial-card,
        .contact-info__item,
        .contact-info__icon,
        .tax-services__card--small,
        .audit-services__card,
        .audit-services__main,
        .about__card,
        .bookkeeping__inner-card
    ) {
        transition-duration: 0.01ms;
    }

    :is(
        .btn:hover,
        .btn--invert:hover,
        .testimonial-card:hover,
        .testimonials__arrow:hover,
        .tax-services__card--small:hover,
        .audit-services__card:hover,
        .hero__badge:hover,
        .hero__rating:hover
    ) {
        transform: none;
    }
}

/* --------------------------------------------
   Shared section spacing
   -------------------------------------------- */

@media (max-width: 1199px) {
    .hero,
    .about,
    .contact-banner,
    .contact-info,
    .schedule,
    .tax-services,
    .audit-services,
    .bookkeeping {
        padding-left: 4rem;
        padding-right: 4rem;
    }

    .testimonials {
        padding-left: 4rem;
        padding-right: 4rem;
    }

    .cta {
        padding-left: 6rem;
        padding-right: 6rem;
    }

    .site-footer {
        padding-left: 4rem;
        padding-right: 4rem;
    }
}

@media (max-width: 1023px) {
    .hero,
    .about,
    .contact-banner,
    .contact-info,
    .schedule,
    .tax-services,
    .audit-services,
    .bookkeeping {
        padding-left: 3.2rem;
        padding-right: 3.2rem;
    }

    .testimonials {
        padding: 6rem 3.2rem;
    }

    .cta {
        padding-left: 3.2rem;
        padding-right: 3.2rem;
        margin-bottom: -8rem;
    }

    .site-footer-wrap {
        padding-left: 1.6rem;
        padding-right: 1.6rem;
    }

    .site-footer {
        padding: 12rem 3.2rem 4rem;
    }
}

@media (max-width: 767px) {
    .hero,
    .about,
    .contact-banner,
    .contact-info,
    .schedule,
    .tax-services,
    .audit-services,
    .bookkeeping {
        padding-left: 2rem;
        padding-right: 2rem;
        padding-bottom: 4rem;
    }

    .testimonials {
        padding: 5rem 2rem;
    }

    .cta {
        padding-left: 2rem;
        padding-right: 2rem;
        margin-bottom: -6rem;
    }

    .site-footer {
        padding: 10rem 2.4rem 3.2rem;
    }
}

/* --------------------------------------------
   Hero
   -------------------------------------------- */

@media (max-width: 1199px) {
    .hero__box {
        padding: 5rem 5rem 0;
        min-height: auto;
    }

    .hero__visual img {
        width: 48rem;
        max-width: 100%;
    }
}

@media (max-width: 1023px) {
    .hero__box {
        flex-direction: column;
        align-items: center;
        padding: 4rem 4rem 0;
        gap: 3.2rem;
    }

    .hero__content {
        align-items: center;
        text-align: center;
        padding-bottom: 0;
        width: 100%;
    }

    .hero__rating {
        transform-origin: center;
    }

    .hero p {
        max-width: none;
    }

    .hero__visual {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .hero__visual img {
        width: 100%;
        max-width: 52rem;
    }

    .hero__badge--savings {
        bottom: 12rem;
        right: 8%;
    }

    .hero__badge--compliance {
        left: 8%;
        bottom: 3rem;
    }
}

@media (max-width: 767px) {
    .hero__box {
        padding: 3.2rem 2.4rem 0;
        border-radius: 2.4rem;
    }

    .hero__badge {
        /* position: static; */
        margin-top: 1.6rem;
    }

    .hero__visual {
        flex-direction: column;
        align-items: center;
        gap: 1.6rem;
        padding-bottom: 0;
    }

    .hero__badge--savings,
    .hero__badge--compliance {
        width: 100%;
        max-width: 32rem;
        justify-content: center;
    }
    .hero h1 {
        font-size: 6rem;
    }
    .tax-services__media-title {
        font-size: 5rem;
        left: 4rem;
    }
}

/* --------------------------------------------
   About
   -------------------------------------------- */

@media (max-width: 1023px) {
    .about__inner {
        flex-direction: column;
    }

    .about__media img {
        min-height: 32rem;
    }

    .about__card {
        padding: 4rem;
    }
}

@media (max-width: 767px) {
    .about__card {
        padding: 3.2rem 2.4rem;
    }
}

/* --------------------------------------------
   Testimonials
   -------------------------------------------- */

@media (max-width: 1199px) {
    .testimonials__header {
        flex-wrap: wrap;
    }
}

@media (max-width: 1023px) {
    .testimonials__header {
        flex-direction: column;
        align-items: stretch;
        gap: 2.4rem;
        margin-bottom: 4rem;
    }

    .testimonials__header .btn {
        align-self: flex-start;
    }

    .testimonial-card {
        padding: 3.2rem;
    }
}

@media (max-width: 767px) {
    .testimonials__header .btn {
        align-self: stretch;
        text-align: center;
    }
}

/* --------------------------------------------
   CTA + Footer
   -------------------------------------------- */

@media (max-width: 1199px) {
    .cta__box {
        padding: 6rem 4rem;
    }
}

@media (max-width: 1023px) {
    .cta__box {
        border-radius: 3.2rem;
        padding: 5rem 3.2rem;
    }

    .cta__form {
        flex-direction: column;
        align-items: stretch;
        border-radius: 2.4rem;
        padding: 2rem;
        gap: 1.6rem;
    }

    .cta__input {
        text-align: center;
    }

    .cta__submit {
        width: 100%;
        text-align: center;
    }

    .site-footer__main {
        flex-direction: column;
        gap: 4rem;
    }

    .site-footer__brand {
        flex: none;
        max-width: none;
    }
}

@media (max-width: 767px) {
    .cta__box {
        padding: 4rem 2.4rem;
        border-radius: 2.4rem;
    }

    .site-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

    .site-footer__legal {
        flex-wrap: wrap;
        gap: 2rem;
    }
}

/* --------------------------------------------
   Contact page
   -------------------------------------------- */

@media (max-width: 1199px) {
    .contact-banner__box h1 {
        font-size: 8rem;
    }
}

@media (max-width: 1023px) {
    .contact-banner__box {
        padding: 5rem 3.2rem;
    }

    .contact-banner__box h1 {
        font-size: 7rem;
    }

    .contact-info__box {
        flex-direction: column;
        padding: 4rem;
    }

    .contact-info__content {
        max-width: none;
    }

    .contact-info__media img {
        min-height: 28rem;
    }

    .schedule__box {
        padding: 4rem;
    }

    .schedule__panels {
        flex-direction: column;
    }

    .schedule__calendar {
        flex-direction: column;
        gap: 2.4rem;
    }

    .schedule__months {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        padding-top: 0;
    }
}

@media (max-width: 767px) {
    .contact-banner__box {
        padding: 4rem 2.4rem;
    }

    .contact-banner__box h1 {
        font-size: 5.5rem;
        line-height: 1.05;
    }

    .contact-info__box,
    .schedule__box {
        padding: 3.2rem 2.4rem;
        border-radius: 2.4rem;
    }

    .schedule__form-row {
        flex-direction: column;
    }

    .schedule__form-card,
    .schedule__calendar-card {
        padding: 2.4rem;
    }
}

/* --------------------------------------------
   Tax services (Pricing)
   -------------------------------------------- */

@media (max-width: 1023px) {
    .tax-services__top {
        flex-direction: column;
    }

    .tax-services__cards {
        order: 2;
    }

    .tax-services__visual {
        order: 1;
    }

    .tax-services__media,
    .tax-services__fees {
        min-height: 32rem;
    }

    .tax-services__media img {
        min-height: 32rem;
    }

    .tax-services__fees {
        padding: 3.2rem;
    }

    .tax-services__banner {
        padding: 3.2rem;
    }
}

@media (max-width: 767px) {
    .tax-services__card--small {
        padding: 3.2rem 2.4rem;
    }

    .tax-services__price {
        font-size: 3.8rem;
    }

    .tax-services__note,
    .tax-services__label {
        font-size: 2rem;
    }

    .tax-services__banner {
        padding: 2.4rem;
    }

    .tax-services__fees {
        padding: 2.4rem;
        gap: 2rem;
    }

    .tax-services__fees-box {
        padding: 2rem;
    }
}

@media (hover: hover) {
    .tax-services__visual:hover {
        box-shadow: 0 0.8rem 2.4rem rgba(0, 150, 196, 0.12);
    }
}

/* --------------------------------------------
   Audit services (Pricing)
   -------------------------------------------- */

@media (max-width: 1023px) {
    .audit-services__top {
        flex-direction: column;
    }

    .audit-services__media img {
        min-height: 28rem;
    }

    .audit-services__main {
        padding: 4rem;
    }

    .audit-services__cards {
        flex-direction: column;
    }
}

@media (max-width: 767px) {
    .audit-services__main {
        padding: 3.2rem 2.4rem;
    }

    .audit-services__card {
        padding: 3.2rem 2.4rem;
    }
}

/* --------------------------------------------
   Bookkeeping (Pricing)
   -------------------------------------------- */

@media (max-width: 1023px) {
    .bookkeeping__box {
        flex-direction: column;
    }

    .bookkeeping__media img {
        min-height: 28rem;
    }

    .bookkeeping__inner-row {
        flex-direction: column;
    }

    .bookkeeping__inner-row .bookkeeping__inner-card,
    .bookkeeping__inner-card.bookkeeping__inner-card--wide {
        height: auto;
        min-height: 0;
    }
}

@media (max-width: 767px) {
    .bookkeeping {
        padding-bottom: 4rem;
    }

    .bookkeeping__box {
        padding: 2.4rem;
        border-radius: 2.4rem;
    }

    .bookkeeping__inner-card {
        padding: 2rem 2.4rem;
    }
}

/* --------------------------------------------
   Small desktop tweaks (1280–1439)
   -------------------------------------------- */

@media (max-width: 1439px) and (min-width: 1024px) {
    .site-header {
        padding: 2rem 4rem;
    }

    .site-header__inner {
        gap: 2.4rem;
    }

    .site-header__nav {
        gap: 3.2rem;
    }

    .site-header__logo img {
        height: 7rem;
    }

    .hero__box {
        padding: 5rem 5rem 0;
    }

    .hero__visual img {
        width: 50rem;
    }

    .cta {
        padding-left: 8rem;
        padding-right: 8rem;
    }
}
