/* ==========================================
   Responsive Design - Dikili Toy Dog House
========================================== */

/* ==========================================
   Tablet View (max-width: 1024px)
========================================== */
@media (max-width: 1024px) {
    /* Typography */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    /* Container */
    .container {
        max-width: 100%;
        padding: 0 30px;
    }
    
    /* Navigation */
    .nav-list {
        gap: 25px;
    }
    
    .nav-actions {
        gap: 20px;
    }
    
    .social-links {
        display: none;
    }
    
    /* Hero */
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        gap: 30px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    /* About */
    .about-grid {
        gap: 40px;
    }
    
    /* Breeds */
    .breeds-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    /* Gallery */
    .gallery-item.large {
        grid-column: span 1;
        height: 300px;
    }
    
    /* Products */
    .products-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    /* Contact */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    /* CTA */
    .cta-image img {
        width: 300px;
    }
}

/* ==========================================
   Small Tablet View (max-width: 768px)
========================================== */
@media (max-width: 768px) {
    /* Root Variables */
    :root {
        --section-padding: 60px 0;
    }
    
    /* Navigation */
    #header {
        padding: 0;
    }
    
    .navbar {
        padding: 15px 0;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        height: 100vh;
        background: var(--bg-white);
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
        transition: right var(--transition-base);
        z-index: 999;
        overflow-y: auto;
        padding: 80px 30px 30px;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
    }
    
    .nav-link {
        font-size: 1.1rem;
        display: block;
        width: 100%;
    }
    
    .dropdown-menu {
        position: relative;
        box-shadow: none;
        background: var(--bg-light);
        margin-top: 10px;
        margin-left: 20px;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .nav-actions {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
        z-index: 1000;
    }
    
    /* Hero */
    .hero {
        margin-top: 70px;
    }
    
    .hero-slide {
        min-height: calc(100vh - 70px);
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    /* Section Headers */
    .section-title {
        font-size: 2rem;
    }
    
    /* Features */
    .features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
    
    /* About */
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .experience-badge {
        bottom: 20px;
        right: 20px;
        padding: 15px;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    /* Breeds */
    .breeds-grid {
        grid-template-columns: 1fr;
    }
    
    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .gallery-item {
        height: 200px;
    }
    
    /* Products */
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    /* Testimonials */
    .testimonial-card {
        min-width: 100%;
    }
    
    /* CTA */
    .cta-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .cta-features {
        justify-content: center;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .cta-image {
        display: none;
    }
    
    /* Contact Form */
    #contactForm {
        grid-template-columns: 1fr;
    }
    
    .form-group.full {
        grid-column: auto;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-menu {
        flex-direction: column;
        gap: 10px;
    }
}

/* ==========================================
   Mobile View (max-width: 480px)
========================================== */
@media (max-width: 480px) {
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.1rem; }
    
    body {
        font-size: 14px;
    }
    
    /* Container */
    .container {
        padding: 0 20px;
    }
    
    /* Logo */
    .logo img {
        width: 40px;
        height: 40px;
    }
    
    .logo-main {
        font-size: 1rem;
    }
    
    .logo-sub {
        font-size: 0.75rem;
    }
    
    /* Hero */
    .hero-title {
        font-size: 1.75rem;
        margin-bottom: 15px;
    }
    
    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 15px;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 0.875rem;
    }
    
    .hero-stats {
        padding-top: 20px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    /* Section Headers */
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-description {
        font-size: 0.95rem;
    }
    
    /* Features */
    .features {
        padding: 60px 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 25px;
    }
    
    /* About */
    .about-text h3 {
        font-size: 1.5rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .experience-badge {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 20px;
        display: inline-block;
    }
    
    /* Breeds */
    .breed-image {
        height: 200px;
    }
    
    .breed-content {
        padding: 20px;
    }
    
    .breed-info {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    /* Gallery */
    .gallery-filters {
        gap: 5px;
    }
    
    .filter-btn {
        padding: 8px 15px;
        font-size: 0.875rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item {
        height: 250px;
    }
    
    /* Products */
    .product-image {
        height: 200px;
    }
    
    .product-content {
        padding: 20px;
    }
    
    .product-price {
        font-size: 1.25rem;
    }
    
    /* Testimonials */
    .testimonial-card {
        padding: 25px;
    }
    
    .testimonial-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .quote-icon {
        align-self: flex-end;
    }
    
    /* CTA */
    .cta-section {
        padding: 60px 0;
    }
    
    .cta-content h2 {
        font-size: 1.75rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .cta-features {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    /* Contact */
    .contact-form {
        padding: 25px;
    }
    
    .info-card {
        text-align: center;
        flex-direction: column;
        align-items: center;
    }
    
    /* WhatsApp Float */
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float:hover {
        width: 55px;
    }
    
    .whatsapp-float span {
        display: none;
    }
    
    /* Scroll to Top */
    .scroll-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        left: 20px;
    }
}

/* ==========================================
   Small Mobile View (max-width: 360px)
========================================== */
@media (max-width: 360px) {
    /* Container */
    .container {
        padding: 0 15px;
    }
    
    /* Typography */
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.3rem; }
    
    /* Hero */
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 0.875rem;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
    
    /* Features */
    .feature-card {
        padding: 25px 15px;
    }
    
    /* Gallery */
    .gallery-overlay {
        padding: 20px;
    }
    
    /* Products */
    .product-footer {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-whatsapp {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================
   Landscape Mode Adjustments
========================================== */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 60px 0;
    }
    
    .hero-slide {
        min-height: auto;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-stats {
        display: none;
    }
}

/* ==========================================
   Print Styles
========================================== */
@media print {
    /* Hide unnecessary elements */
    #header,
    .hero-overlay,
    .floating-elements,
    .gallery-filters,
    .testimonial-nav,
    .whatsapp-float,
    .scroll-top,
    .footer-social,
    .newsletter-form,
    .mobile-toggle {
        display: none !important;
    }
    
    /* Adjust layout for print */
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    /* Ensure content fits on page */
    section {
        page-break-inside: avoid;
        padding: 20px 0;
    }
    
    /* Make links visible */
    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        font-weight: normal;
    }
    
    /* Optimize images */
    img {
        max-width: 100%;
        page-break-inside: avoid;
    }
}