/**
 * Responsive Styles - Crooked Creek Counseling
 * Mobile-first responsive design
 */

/* ==================================================
   Tablet (768px and below)
   ================================================== */
@media (max-width: 768px) {
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.35rem; }

    .hero-title {
        font-size: 2rem;
    }

    /* Header & Navigation */
    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-white);
        box-shadow: var(--shadow-md);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .main-nav.active {
        max-height: 500px;
    }

    .main-nav ul {
        flex-direction: column;
        padding: var(--spacing-md);
        gap: 0;
    }

    .nav-item {
        width: 100%;
        border-bottom: 1px solid var(--color-off-white);
    }

    .nav-item:last-child {
        border-bottom: none;
    }

    .nav-link {
        display: block;
        padding: var(--spacing-sm);
    }

    /* Hero sections */
    .hero {
        min-height: 400px;
    }

    .hero-home {
        min-height: 500px;
    }

    .hero-content {
        padding: var(--spacing-md);
    }

    /* Sections */
    .section {
        padding: var(--spacing-md) 0;
    }

    /* Introduction */
    .intro-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .profile-image {
        margin: 0 auto;
    }

    /* Services */
    .services-highlights {
        grid-template-columns: 1fr;
    }

    /* About Page */
    .content-block.with-image,
    .content-block.reverse {
        grid-template-columns: 1fr;
    }

    .content-block.reverse .content-image {
        order: 0;
    }

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

    .gallery-item img {
        height: 300px;
    }

    /* Services Page */
    .approach-grid {
        grid-template-columns: 1fr;
    }

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

    /* Contact Page */
    .contact-layout {
        grid-template-columns: 1fr;
    }

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

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* Back to top button */
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }
}

/* ==================================================
   Mobile (480px and below)
   ================================================== */
@media (max-width: 480px) {
    /* Typography */
    html {
        font-size: 14px;
    }

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

    .hero-title {
        font-size: 1.75rem;
    }

    .section-heading {
        font-size: 1.5rem;
    }

    /* Container padding */
    .container {
        padding: 0 var(--spacing-sm);
    }

    /* Buttons */
    .btn {
        padding: 10px 24px;
        font-size: 0.9rem;
    }

    .btn-large {
        padding: 12px 32px;
        font-size: 1rem;
    }

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

    .hero-home {
        min-height: 400px;
    }

    /* Sections */
    .section {
        padding: var(--spacing-md) 0;
    }

    /* Contact form */
    .contact-form-box {
        padding: var(--spacing-md);
    }

    /* Footer */
    .site-footer {
        padding: var(--spacing-md) 0;
    }

    /* Gallery */
    .gallery-item img {
        height: 250px;
    }
}

/* ==================================================
   Landscape mobile
   ================================================== */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 350px;
    }

    .hero-home {
        min-height: 450px;
    }
}

/* ==================================================
   Large Tablets and Small Desktops (769px - 1024px)
   ================================================== */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 var(--spacing-md);
    }

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

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

/* ==================================================
   Print Styles
   ================================================== */
@media print {
    .site-header,
    .mobile-menu-toggle,
    .back-to-top,
    .nav-link-cta,
    .btn,
    .flash-message {
        display: none;
    }

    body {
        font-size: 12pt;
        color: #000;
    }

    a {
        text-decoration: underline;
    }

    .hero-overlay,
    .cta-overlay {
        display: none;
    }

    .section {
        page-break-inside: avoid;
    }
}

/* ==================================================
   Reduced Motion
   ================================================== */
@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,
    .section-cta {
        background-attachment: scroll;
    }
}
