/* ==========================================================================
   Ozi Construction - Responsive Styles
   Breakpoints: 1200px, 1024px, 768px, 480px
   ========================================================================== */

/* ---------- Large Desktop (max-width: 1200px) ---------- */
@media (max-width: 1200px) {
    :root {
        --section-padding: 80px;
    }

    .site-footer__grid {
        grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
        gap: 30px;
    }

    .process-steps {
        gap: 16px;
    }

    .location-intro-grid {
        grid-template-columns: 1fr 350px;
        gap: 40px;
    }
}

/* ---------- Tablet Landscape (max-width: 1024px) ---------- */
@media (max-width: 1024px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    .hero__title {
        font-size: 2.75rem;
    }

    /* Service Locations */
    .service-locations__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .service-locations__map iframe {
        height: 300px;
    }

    /* Service Hero with Form */
    .hero--service__grid {
        grid-template-columns: 1fr 360px;
        gap: 36px;
    }

    .hero--service .hero__title {
        font-size: 2.25rem;
    }

    .service-content-grid {
        grid-template-columns: 1fr 320px;
        gap: 36px;
    }

    /* Homepage Hero with Form */
    .hero--home {
        min-height: auto;
        padding: 60px 0 80px;
    }

    .hero--home__grid {
        grid-template-columns: 1fr 380px;
        gap: 40px;
        min-height: auto;
    }

    .hero--home .hero__title {
        font-size: 2.75rem;
    }

    /* Header - show mobile menu */
    .site-nav {
        position: fixed;
        top: 0;
        right: -320px;
        width: 320px;
        height: 100vh;
        background: var(--color-white);
        box-shadow: var(--shadow-xl);
        z-index: 999;
        padding: 80px 30px 40px;
        overflow-y: auto;
        transition: right var(--transition);
    }

    .site-nav--open {
        right: 0;
    }

    .site-nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .site-nav__link {
        display: flex;
        justify-content: space-between;
        padding: 14px 0;
        font-size: 1.0625rem;
        border-bottom: 1px solid var(--color-border);
    }

    .site-nav__dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0 0 0 16px;
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition);
    }

    .site-nav__item--dropdown.open .site-nav__dropdown {
        max-height: 500px;
    }

    .site-nav__item--dropdown.open .site-nav__arrow {
        transform: rotate(180deg);
    }

    .site-nav__dropdown li a {
        padding: 10px 0;
        font-size: 0.9375rem;
        border-bottom: 1px solid var(--color-bg-gray);
    }

    .site-nav__dropdown li a:hover {
        padding-left: 8px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .site-header__cta {
        margin-right: 12px;
    }

    .site-header__cta .btn span {
        display: none;
    }

    .site-header__cta .btn {
        padding: 10px;
        border-radius: 50%;
        width: 44px;
        height: 44px;
    }

    /* About section */
    .about-section__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Services */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Location Intro */
    .location-intro-grid {
        grid-template-columns: 1fr 300px;
        gap: 32px;
    }

    /* Location Services */
    .location-content .location-service {
        gap: 32px;
    }

    /* Blog */
    .blog-hero__title {
        font-size: 2.5rem;
    }

    .blog-featured__grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .blog-featured__content {
        padding: 32px 32px 32px 0;
    }

    .blog-featured__title {
        font-size: 1.5rem;
    }

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

    /* Footer */
    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    /* CTA Banner */
    .cta-banner__inner {
        flex-direction: column;
        text-align: center;
    }

    .cta-banner__actions {
        justify-content: center;
    }

    /* Process Steps */
    .process-steps {
        grid-template-columns: repeat(3, 1fr);
    }

    .process-step:nth-child(3)::after {
        display: none;
    }

    /* Features */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Post */
    .post-content__wrapper {
        grid-template-columns: 1fr;
    }

    .post-content__sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    /* Contact Hero */
    .contact-hero {
        padding: 70px 0 80px;
    }

    .contact-hero__title {
        font-size: 2.5rem;
    }

    /* Contact Page */
    .contact-page__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* FAQ with image */
    .faq-layout--with-image {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 32px;
    }
}

/* ---------- Tablet Portrait (max-width: 768px) ---------- */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
        --container-padding: 16px;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }

    body {
        font-size: 15px;
    }

    /* Top Bar */
    .top-bar__contact {
        gap: 16px;
    }

    .top-bar__link:last-child {
        display: none;
    }

    /* Header */
    .site-header__inner {
        height: 70px;
    }

    .site-logo-img {
        height: 45px;
    }

    .site-logo-img--footer {
        height: 40px;
    }

    /* Hero */
    .hero {
        min-height: auto;
    }

    .hero__title {
        font-size: 2.25rem;
    }

    .hero__subtitle {
        font-size: 1.0625rem;
    }

    .hero__content {
        padding: 60px 0;
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* Service Hero - Stack vertically */
    .hero--service {
        padding: 50px 0 60px;
    }

    .hero--service__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero--service .hero__content {
        text-align: center;
    }

    .hero--service .hero__features {
        display: inline-block;
        text-align: left;
    }

    .hero--service .hero__actions {
        justify-content: center;
    }

    .hero--service .hero__title {
        font-size: 2rem;
    }

    /* Homepage Hero - Stack vertically */
    .hero--home {
        min-height: auto;
        padding: 50px 0 60px;
    }

    .hero--home__grid {
        grid-template-columns: 1fr;
        gap: 32px;
        min-height: auto;
    }

    .hero--home .hero__content {
        text-align: center;
    }

    .hero--home .hero__features {
        display: inline-block;
        text-align: left;
    }

    .hero--home .hero__actions {
        justify-content: center;
    }

    .hero__form-card {
        padding: 28px 24px;
        max-width: 500px;
        margin: 0 auto;
    }

    /* Location Content */
    .location-intro-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .location-intro-grid--reverse {
        direction: ltr;
    }

    .location-intro-grid__image {
        position: static;
    }

    .location-content .location-service {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 36px 0;
    }

    .location-content .location-service--reverse {
        direction: ltr;
    }

    .location-content .location-service__image img {
        height: 250px;
    }

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

    /* Local Resources */
    .local-resources__inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .local-resources__image img {
        min-height: 200px;
    }

    .local-resources__grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    /* FAQ with image */
    .faq-layout--with-image {
        grid-template-columns: 1fr;
    }

    .faq-layout__image {
        position: static;
    }

    .faq-layout__image img {
        min-height: 250px;
    }

    /* Service Locations */
    .service-locations__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-locations__map iframe {
        height: 250px;
    }

    /* Service Content Grid */
    .service-content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .service-content-grid__images {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        position: static;
    }

    .service-content-grid__img img {
        height: 200px;
    }

    /* Contact Hero */
    .contact-hero {
        padding: 60px 0 70px;
    }

    .contact-hero__title {
        font-size: 2rem;
    }

    .contact-hero__subtitle {
        font-size: 1rem;
    }

    .contact-hero__quick {
        flex-direction: column;
    }

    .contact-hero__quick-item {
        width: 100%;
        justify-content: center;
    }

    /* Map */
    .homepage-map iframe {
        height: 300px;
    }

    /* Section Headers */
    .section-header {
        margin-bottom: 40px;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Locations Grid */
    .locations-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Testimonials */
    .testimonial-card__inner {
        padding: 32px 24px;
    }

    .testimonial-card__text {
        font-size: 1rem;
    }

    .testimonials-slider__track {
        min-height: 360px;
    }

    /* Contact Form */
    .contact-form-wrapper {
        padding: 32px 24px;
    }

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

    /* About Features */
    .about-section__features {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .feature-card {
        padding: 24px 16px;
    }

    /* Process Steps */
    .process-steps {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .process-step::after {
        display: none;
    }

    /* Blog */
    .blog-hero {
        padding: 60px 0 70px;
    }

    .blog-hero__title {
        font-size: 2rem;
    }

    .blog-hero__subtitle {
        font-size: 1rem;
    }

    .blog-featured__grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .blog-featured__content {
        padding: 28px;
    }

    .blog-featured__title {
        font-size: 1.35rem;
    }

    .blog-section {
        padding: 60px 0 80px;
    }

    .blog-section__divider {
        margin: 40px 0 36px;
    }

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

    /* Post */
    .post-hero__title {
        font-size: 1.75rem;
    }

    .post-content__sidebar {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .site-footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .site-footer__main {
        padding: 60px 0 32px;
    }

    /* CTA Banner */
    .cta-banner {
        padding: 60px 0;
    }

    .cta-banner__title {
        font-size: 1.5rem;
    }

    .cta-banner__actions {
        flex-direction: column;
        width: 100%;
    }

    .cta-banner__actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* 404 */
    .error-404__code {
        font-size: 5rem;
    }

    .error-404__title {
        font-size: 1.75rem;
    }

    .error-404__actions {
        flex-direction: column;
    }

    .error-404__actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* Pagination */
    .nav-links {
        flex-wrap: wrap;
    }
}

/* ---------- Mobile (max-width: 480px) ---------- */
@media (max-width: 480px) {
    :root {
        --section-padding: 48px;
    }

    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.375rem; }
    h3 { font-size: 1.125rem; }

    /* Top Bar */
    .top-bar {
        padding: 6px 0;
        font-size: 0.75rem;
    }

    .top-bar__social {
        display: none;
    }

    .top-bar__contact {
        justify-content: center;
        width: 100%;
    }

    .top-bar__link {
        font-size: 0.6875rem;
    }

    /* Header */
    .site-header__inner {
        height: 60px;
    }

    .custom-logo {
        max-height: 40px;
    }

    .site-logo-img {
        height: 36px;
    }

    .site-logo-img--footer {
        height: 32px;
    }

    .site-header__cta {
        margin-right: 8px;
    }

    .site-header__cta .btn {
        width: 38px;
        height: 38px;
        padding: 8px;
    }

    /* Hero */
    .hero__title {
        font-size: 1.5rem;
    }

    .hero__subtitle {
        font-size: 0.9375rem;
        margin-bottom: 24px;
    }

    .hero__feature {
        font-size: 0.875rem;
        gap: 8px;
        padding: 6px 0;
    }

    .hero__features {
        margin-bottom: 28px;
    }

    .hero__content {
        padding: 40px 0;
    }

    .hero--home .hero__title {
        font-size: 1.5rem;
    }

    .hero--service .hero__title {
        font-size: 1.375rem;
    }

    .hero__form-card {
        padding: 22px 16px;
    }

    .hero__form-header h2 {
        font-size: 1.125rem;
    }

    .hero__form-header p {
        font-size: 0.8125rem;
    }

    .hero__form .form-input,
    .hero__form .form-select {
        padding: 10px 14px;
        font-size: 0.875rem;
    }

    .hero__form .form-label {
        font-size: 0.8125rem;
    }

    .hero__form .form-group {
        margin-bottom: 12px;
    }

    /* Services */
    .service-card__content {
        padding: 20px;
    }

    .service-card__title {
        font-size: 1.125rem;
    }

    .service-card__desc {
        font-size: 0.875rem;
    }

    /* Locations Grid */
    .locations-grid {
        grid-template-columns: 1fr;
    }

    .location-card__content {
        padding: 16px 20px;
    }

    /* Location Intro */
    .location-intro-grid__text p {
        font-size: 0.9375rem;
    }

    /* Location Services */
    .location-services-list {
        grid-template-columns: 1fr;
    }

    .location-services-list__item {
        padding: 12px 16px;
        font-size: 0.875rem;
    }

    .location-content .location-service__image img {
        height: 200px;
    }

    .location-content .location-service__text .btn {
        width: 100%;
        justify-content: center;
    }

    /* Local Resources */
    .local-resources__grid {
        grid-template-columns: 1fr;
    }

    .local-resources__col {
        padding: 20px;
    }

    .local-resources__image img {
        min-height: 180px;
    }

    /* Service Locations */
    .service-locations__grid {
        grid-template-columns: 1fr;
    }

    .service-locations__map iframe {
        height: 200px;
    }

    /* Service Content Grid */
    .service-content-grid__images {
        grid-template-columns: 1fr;
    }

    .service-content-grid__img img {
        height: 220px;
    }

    /* Contact Hero */
    .contact-hero {
        padding: 48px 0 56px;
    }

    .contact-hero__tag {
        font-size: 0.6875rem;
        padding: 4px 12px;
    }

    .contact-hero__title {
        font-size: 1.5rem;
    }

    .contact-hero__subtitle {
        font-size: 0.9375rem;
    }

    .contact-hero__quick-item {
        font-size: 0.8125rem;
        padding: 10px 16px;
    }

    .contact-page__image img {
        height: 200px;
    }

    .contact-page__map--full iframe {
        height: 280px;
    }

    /* Contact Info Cards */
    .contact-info-card {
        padding: 14px;
        gap: 12px;
    }

    .contact-info-card__icon {
        width: 40px;
        height: 40px;
    }

    .contact-info-card__icon svg {
        width: 20px;
        height: 20px;
    }

    .contact-info-card__content h3 {
        font-size: 0.9375rem;
    }

    /* Map */
    .homepage-map iframe {
        height: 250px;
    }

    /* About Features */
    .about-section__features {
        grid-template-columns: 1fr;
    }

    /* Features Grid */
    .features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .feature-card--compact {
        padding: 16px 10px;
    }

    .feature-card--compact h3 {
        font-size: 0.875rem;
    }

    .feature-card--compact .feature-card__icon {
        width: 48px;
        height: 48px;
    }

    .feature-card--compact .feature-card__icon svg {
        width: 24px;
        height: 24px;
    }

    /* Process Steps */
    .process-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* FAQ */
    .faq-accordion__trigger {
        padding: 16px 18px;
        font-size: 0.875rem;
    }

    .faq-accordion__answer {
        padding: 0 18px 16px;
        font-size: 0.875rem;
    }

    .faq-layout__image img {
        min-height: 200px;
    }

    /* Contact Form */
    .contact-form-wrapper {
        padding: 24px 16px;
        border-radius: var(--radius-md);
    }

    .contact-form--page .form-group {
        margin-bottom: 16px;
    }

    /* Testimonials */
    .testimonials-slider__track {
        min-height: 420px;
    }

    .testimonial-card__inner {
        padding: 28px 20px;
    }

    .testimonial-card__quote {
        display: none;
    }

    .testimonial-card__text {
        font-size: 0.9375rem;
    }

    .testimonials-slider__btn {
        width: 36px;
        height: 36px;
    }

    .testimonials-slider__controls {
        gap: 12px;
    }

    /* Blog */
    .blog-hero {
        padding: 48px 0 56px;
    }

    .blog-hero__tag {
        font-size: 0.6875rem;
        padding: 4px 12px;
    }

    .blog-hero__title {
        font-size: 1.5rem;
    }

    .blog-featured__meta {
        flex-wrap: wrap;
        gap: 8px;
    }

    .blog-featured__title {
        font-size: 1.2rem;
    }

    .blog-featured__excerpt {
        font-size: 0.9375rem;
    }

    .blog-section {
        padding: 48px 0 64px;
    }

    .blog-section__divider {
        margin: 32px 0 28px;
    }

    .blog-card__content {
        padding: 20px;
    }

    .blog-card__title {
        font-size: 1.0625rem;
    }

    /* Breadcrumbs */
    .breadcrumbs {
        padding: 10px 0;
    }

    .breadcrumbs__list {
        font-size: 0.75rem;
    }

    /* Post */
    .post-hero {
        padding: 40px 0;
    }

    .post-hero__title {
        font-size: 1.375rem;
    }

    .post-featured-image {
        margin-top: -20px;
    }

    .post-featured-image__img {
        max-height: 300px;
    }

    /* CTA Banner */
    .cta-banner {
        padding: 48px 0;
    }

    .cta-banner__title {
        font-size: 1.25rem;
    }

    .cta-banner__text {
        font-size: 0.9375rem;
    }

    /* Footer */
    .site-footer__main {
        padding: 48px 0 28px;
    }

    .site-footer__heading {
        font-size: 1rem;
    }

    .site-footer__desc {
        font-size: 0.875rem;
    }

    .site-footer__bottom {
        padding: 16px 0;
    }

    .site-footer__bottom p {
        font-size: 0.75rem;
    }

    /* 404 */
    .error-404 {
        padding: 80px 0;
    }

    .error-404__code {
        font-size: 4rem;
    }

    .error-404__title {
        font-size: 1.5rem;
    }

    .error-404__text {
        font-size: 1rem;
    }

    /* Locations List */
    .locations-list {
        flex-direction: column;
    }

    .locations-list__item {
        width: 100%;
        justify-content: center;
    }

    /* Pagination */
    .page-numbers {
        min-width: 38px;
        height: 38px;
        font-size: 0.8125rem;
    }

    /* Section Header */
    .section-header {
        margin-bottom: 32px;
    }

    .section-header__subtitle {
        font-size: 0.9375rem;
    }

    .section-header__tag {
        font-size: 0.75rem;
        letter-spacing: 1.5px;
    }
}

/* ---------- Extra Small (max-width: 360px) ---------- */
@media (max-width: 360px) {
    :root {
        --container-padding: 14px;
        --section-padding: 40px;
    }

    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }

    .hero__title {
        font-size: 1.375rem;
    }

    .hero--home .hero__title {
        font-size: 1.375rem;
    }

    .hero__feature {
        font-size: 0.8125rem;
    }

    .hero__form-card {
        padding: 20px 14px;
    }

    .site-logo-img {
        height: 32px;
    }

    .top-bar {
        display: none;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .testimonials-slider__track {
        min-height: 460px;
    }

    .testimonial-card__inner {
        padding: 24px 16px;
    }

    .faq-accordion__trigger {
        padding: 14px 16px;
        font-size: 0.8125rem;
    }

    .contact-hero__quick-item {
        font-size: 0.75rem;
        padding: 8px 12px;
    }

    .blog-featured__content {
        padding: 20px;
    }

    .blog-featured__title {
        font-size: 1.0625rem;
    }
}
