/* 
* Deaflfucoga Public Speaking Courses Website
* Responsive Stylesheet
* Copyright 2025
*/

/* === Responsive Breakpoints === */
/* 
 * Small: 576px
 * Medium: 768px 
 * Large: 992px
 * Extra Large: 1200px
 */

/* === Mobile Styles (up to 768px) === */
@media screen and (max-width: 768px) {
    /* Typography */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    /* Header and Navigation */
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: var(--box-shadow-light);
        z-index: 99;
    }
    
    nav ul.active {
        display: flex;
    }
    
    nav ul li {
        width: 100%;
        text-align: center;
        padding: 0.5rem 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Banner Section */
    .banner {
        min-height: 400px;
        padding: var(--spacing-lg) 0;
    }
    
    .banner-content {
        text-align: center;
        margin: 0 auto;
    }
    
    .banner-content h1 {
        font-size: 2rem;
    }
    
    .banner-content p {
        font-size: 1rem;
    }
    
    /* Page Banner */
    .page-banner {
        min-height: 200px;
    }
    
    .page-banner-content h1 {
        font-size: 2rem;
    }
    
    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
        margin-bottom: var(--spacing-md);
    }
    
    /* Services Section */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    /* Testimonials Section */
    .testimonial-card {
        padding: var(--spacing-sm);
    }
    
    /* Blog Section */
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    /* CTA Section */
    .cta-buttons {
        flex-direction: column;
    }
    
    /* Newsletter Section */
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form button {
        width: 100%;
        margin-top: var(--spacing-xs);
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    /* Contact Section */
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    /* Locations Section */
    .locations-grid {
        grid-template-columns: 1fr;
    }
    
    /* Team Section */
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    /* Cookie Consent */
    .cookie-content {
        flex-direction: column;
    }
    
    .cookie-buttons {
        justify-content: center;
    }
    
    /* Modal */
    .modal-content {
        width: 95%;
        max-width: 95%;
        padding: var(--spacing-sm);
    }
}

/* === Tablet Styles (768px - 992px) === */
@media screen and (min-width: 769px) and (max-width: 992px) {
    /* About Section */
    .about-content {
        gap: var(--spacing-md);
    }
    
    /* Services Section */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Blog Section */
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-lg) var(--spacing-md);
    }
    
    /* Team Section */
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Credentials Section */
    .credentials-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* === Small Desktop Styles (993px - 1200px) === */
@media screen and (min-width: 993px) and (max-width: 1200px) {
    /* Services Section */
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Blog Section */
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
        gap: var(--spacing-md);
    }
}

/* === Large Desktop Styles (1201px and up) === */
@media screen and (min-width: 1201px) {
    .container {
        max-width: 1180px;
    }
}

/* === Specific Device Adjustments === */

/* iPhone SE, small phones */
@media screen and (max-width: 375px) {
    /* Typography */
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.4rem;
    }
    
    /* Banner */
    .banner-content h1 {
        font-size: 1.75rem;
    }
    
    /* CTA Buttons */
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* === Print Styles === */
@media print {
    * {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    a,
    a:visited {
        text-decoration: underline;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
    
    abbr[title]:after {
        content: " (" attr(title) ")";
    }
    
    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }
    
    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }
    
    thead {
        display: table-header-group;
    }
    
    tr,
    img {
        page-break-inside: avoid;
    }
    
    img {
        max-width: 100% !important;
    }
    
    @page {
        margin: 0.5cm;
    }
    
    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }
    
    h2,
    h3 {
        page-break-after: avoid;
    }
    
    /* Hide unnecessary elements */
    header,
    footer,
    nav,
    .banner,
    .cta-section,
    .newsletter-section,
    .cookie-consent,
    .modal,
    .btn,
    .testimonial-controls {
        display: none;
    }
}