/* ===========================
   Responsive Design
   Mobile-First Approach
   =========================== */

/* ===========================
   Mobile Devices (< 768px)
   =========================== */

@media (max-width: 767px) {
    /* Typography */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.35rem;
    }

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

    .section-intro {
        font-size: 1rem;
    }

    /* Header */
    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--white);
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        transition: left 0.3s ease;
        z-index: 999;
        padding-top: 80px;
    }

    .main-nav.active {
        left: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav li {
        border-bottom: 1px solid var(--border-color);
    }

    .main-nav a {
        display: block;
        padding: 1.25rem 2rem;
        border-radius: 0;
    }

    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .logo img {
        height: 45px;
    }

    /* Hero */
    .hero {
        padding: 80px 0;
    }

    .hero-content h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    /* Sections */
    section {
        padding: 60px 0;
    }

    .page-header {
        padding: 60px 0;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    /* Value Grid */
    .value-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .value-number {
        font-size: 2.5rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-logo {
        height: 40px;
    }

    /* O Nama Page */
    .mv-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cert-list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Services Page */
    .service-header {
        flex-direction: column;
        gap: 1rem;
    }

    .service-icon-large {
        width: 60px;
        height: 60px;
    }

    .service-title-block h2 {
        font-size: 1.75rem;
    }

    .service-tagline {
        font-size: 1rem;
    }

    .service-intro {
        font-size: 1rem;
    }

    .service-item {
        padding: 1.5rem;
    }

    .service-benefits {
        padding: 2rem 1.5rem;
    }

    .service-benefits h3 {
        font-size: 1.5rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

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

    .map-placeholder {
        padding: 60px 20px;
    }

    .faq-list {
        margin-top: 2rem;
        gap: 1.5rem;
    }

    .faq-item {
        padding: 1.5rem;
    }

    /* Buttons */
    .btn {
        display: block;
        width: 100%;
        padding: 14px 20px;
    }

    /* Container */
    .container {
        padding: 0 15px;
    }
}

/* ===========================
   Tablet Devices (768px - 1024px)
   =========================== */

@media (min-width: 768px) and (max-width: 1024px) {
    /* Typography */
    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.85rem;
    }

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

    /* Header */
    .logo img {
        height: 55px;
    }

    .main-nav ul {
        gap: 1.5rem;
    }

    /* Hero */
    .hero {
        padding: 100px 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    /* Sections */
    section {
        padding: 70px 0;
    }

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

    /* Value Grid */
    .value-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Team Grid */
    .team-grid {
        grid-template-columns: 1fr;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    /* Benefits Grid */
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===========================
   Desktop Devices (> 1024px)
   =========================== */

@media (min-width: 1025px) {
    /* Container */
    .container {
        max-width: 1200px;
    }

    /* Services Grid - 3 columns on large screens */
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Value Grid - 4 columns on large screens */
    .value-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Team Grid - 2 columns on large screens */
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Benefits Grid - 3 columns on large screens */
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Contact Grid - 2 columns */
    .contact-grid {
        grid-template-columns: 1.5fr 1fr;
    }
}

/* ===========================
   Extra Large Screens (> 1440px)
   =========================== */

@media (min-width: 1441px) {
    .container {
        max-width: 1400px;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .section-title {
        font-size: 2.5rem;
    }
}

/* ===========================
   Print Styles
   =========================== */

@media print {
    .site-header,
    .mobile-menu-toggle,
    .cta-section,
    .site-footer,
    .contact-form-wrapper {
        display: none;
    }

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

    h1, h2, h3, h4 {
        page-break-after: avoid;
    }

    img {
        max-width: 100%;
        page-break-inside: avoid;
    }
}

/* ===========================
   Accessibility
   =========================== */

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@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;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn {
        border-width: 3px;
    }

    .service-card,
    .value-card {
        border: 2px solid var(--dark-gray);
    }
}
