/* Adverta Limited - Responsive Styles */

/* Tablet Styles */
@media screen and (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* Content Grid */
    .content-grid {
        gap: 3rem;
    }
    
    /* Contact Grid */
    .contact-grid {
        gap: 3rem;
    }
    
    .contact-info-section {
        padding-left: 0;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    /* Service Content */
    .service-content {
        gap: 3rem;
    }
    
    /* Mission Vision Grid */
    .mv-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .mv-card {
        padding: 2rem;
    }
    
    /* Process Steps */
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Landscape */
@media screen and (max-width: 768px) {
    /* Typography */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.7rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    /* Header */
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        padding: 80px 20px 20px;
        transition: left 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 2rem;
    }
    
    .nav-menu a {
        font-size: 1.2rem;
        padding: 1rem 0;
        border-bottom: 1px solid #e1e8ed;
    }
    
    .hamburger {
        display: flex;
        z-index: 1001;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    /* Hero Section */
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        min-width: 200px;
    }
    
    /* Page Header */
    .page-header {
        padding: 100px 0 60px;
    }
    
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Content Grid */
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    /* Service Content */
    .service-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .service-content.reverse {
        direction: ltr;
    }
    
    /* Contact Grid */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Form Elements */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    /* Cookie Consent */
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .cookie-content p {
        min-width: auto;
    }
    
    .cookie-buttons {
        justify-content: center;
    }
    
    /* Sections Padding */
    .services-overview,
    .why-choose-us,
    .service-detail,
    .about-content,
    .mission-vision,
    .our-values,
    .company-info,
    .contact-content,
    .our-process,
    .cta-section {
        padding: 60px 0;
    }
    
    .footer {
        padding: 40px 0 20px;
    }
    
    /* Process Steps */
    .process-steps {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Values Grid */
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Info Grid */
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    /* Tables */
    .cookie-table {
        font-size: 14px;
    }
    
    .cookie-table th,
    .cookie-table td {
        padding: 0.5rem;
    }
}

/* Mobile Portrait */
@media screen and (max-width: 480px) {
    /* Container */
    .container {
        padding: 0 10px;
    }
    
    /* Typography */
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    /* Hero */
    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    /* Page Header */
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .hero-buttons .btn {
        min-width: 180px;
    }
    
    /* Cards */
    .service-card,
    .mv-card,
    .info-card,
    .contact-card {
        padding: 1.5rem;
    }
    
    /* Brand */
    .brand-name {
        font-size: 1.2rem;
    }
    
    .footer-brand-name {
        font-size: 1.1rem;
    }
    
    /* Logo */
    .logo {
        height: 35px;
    }
    
    .footer-logo {
        height: 25px;
    }
    
    /* Values Grid */
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    /* Contact Items */
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .contact-item svg {
        margin-top: 0;
    }
    
    /* Cookie Buttons */
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-accept,
    .btn-decline {
        width: 100%;
        text-align: center;
    }
    
    /* Legal Content */
    .legal-content {
        padding: 0 10px;
    }
    
    /* Step Numbers */
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    /* Service Icons */
    .service-icon svg,
    .mv-icon svg,
    .value-icon svg {
        width: 40px;
        height: 40px;
    }
    
    /* Contact Form */
    .checkbox-label {
        font-size: 12px;
    }
    
    /* Spacing Adjustments */
    .services-overview h2,
    .our-values h2,
    .company-info h2,
    .our-process h2 {
        font-size: 1.8rem;
    }
    
    /* Footer Links */
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Tables */
    .cookie-table {
        font-size: 12px;
    }
    
    .cookie-table th,
    .cookie-table td {
        padding: 0.3rem;
    }
}

/* Very Small Screens */
@media screen and (max-width: 320px) {
    /* Further reduce spacing and fonts for very small screens */
    .hero-content h1 {
        font-size: 1.6rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .service-card,
    .mv-card,
    .info-card,
    .contact-card {
        padding: 1rem;
    }
    
    .brand-name {
        font-size: 1rem;
    }
    
    .logo {
        height: 30px;
    }
}

/* Landscape Mobile Orientation */
@media screen and (max-width: 768px) and (orientation: landscape) {
    .hero {
        height: 70vh;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .page-header {
        padding: 80px 0 40px;
    }
    
    .services-overview,
    .why-choose-us,
    .service-detail,
    .about-content,
    .mission-vision,
    .our-values,
    .company-info,
    .contact-content,
    .our-process,
    .cta-section {
        padding: 40px 0;
    }
}

/* High DPI Displays */
@media screen and (-webkit-min-device-pixel-ratio: 2),
       screen and (min-resolution: 192dpi) {
    /* Ensure images and icons look crisp on high DPI screens */
    .logo,
    .footer-logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    /* This can be implemented if needed in the future */
    /* Currently keeping the design light for professional appearance */
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Optimize for touch devices */
    .btn {
        min-height: 44px; /* iOS recommended touch target size */
    }
    
    .nav-menu a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .checkbox-label {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    /* Remove hover effects on touch devices */
    .service-card:hover,
    .btn:hover,
    .contact-card:hover {
        transform: none;
        box-shadow: initial;
    }
}
