/* ========================================
   RESPONSIVE DESIGN - MEDIA QUERIES
   ======================================== */

/* ========================================
   TABLET (768px - 1024px)
   ======================================== */

@media (max-width: 1024px) {
    .container {
        padding: 0 var(--spacing-md);
    }

    .section {
        padding: 4rem 0;
    }

    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .about-text {
        padding-right: 0;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Contact Section */
    .contact-content {
        grid-template-columns: 1fr;
    }

    /* Timeline */
    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        grid-template-columns: auto 1fr;
        gap: var(--spacing-md);
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        grid-column: 2;
        text-align: left;
    }

    .timeline-item:nth-child(odd) .timeline-number,
    .timeline-item:nth-child(even) .timeline-number {
        grid-column: 1;
    }

    .timeline-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

/* ========================================
   MOBILE (< 768px)
   ======================================== */

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

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.35rem;
    }

    .section {
        padding: 3rem 0;
    }

    /* Navigation */
    .navbar {
        padding: 1rem 0;
    }

    .nav-container {
        position: relative;
    }

    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .logo img {
        height: 55px;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        flex-direction: column;
        gap: 0;
        padding: var(--spacing-md) 0;
        transition: var(--transition-normal);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        border-left: 1px solid rgba(122, 21, 21, 0.2);
    }

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

    .nav-menu li {
        width: 100%;
        text-align: center;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(122, 21, 21, 0.3);
    }

    .nav-link {
        display: block;
        padding: 0.5rem 0;
        font-size: 1.125rem;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

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

    /* Hero Section */
    .hero-section {
        min-height: 100vh;
        padding: var(--spacing-lg) 0;
    }

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

    .hero-title {
        font-size: 2rem;
        margin-bottom: var(--spacing-md);
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: var(--spacing-md);
    }

    .cta-button {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    /* Services Section */
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .service-card {
        padding: var(--spacing-md);
    }

    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .about-paragraph {
        font-size: 1rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

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

    .image-placeholder {
        max-width: 300px;
    }

    .image-placeholder svg {
        width: 100px;
        height: 100px;
    }

    /* Process Section */
    .timeline {
        padding-left: 0;
    }

    .timeline::before {
        left: 25px;
    }

    .timeline-item {
        grid-template-columns: auto 1fr;
        gap: var(--spacing-sm);
        margin-bottom: var(--spacing-md);
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        grid-column: 2;
        text-align: left;
    }

    .timeline-item:nth-child(odd) .timeline-number,
    .timeline-item:nth-child(even) .timeline-number {
        grid-column: 1;
    }

    .timeline-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .timeline-content {
        padding: var(--spacing-sm);
    }

    .timeline-title {
        font-size: 1.125rem;
    }

    .timeline-description {
        font-size: 0.925rem;
    }

    /* Contact Section */
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .contact-form {
        padding: var(--spacing-md);
    }

    .form-group {
        margin-bottom: var(--spacing-sm);
    }

    .submit-button {
        font-size: 1rem;
        padding: 0.875rem;
    }

    .contact-item {
        padding: var(--spacing-sm);
    }

    .contact-icon {
        width: 45px;
        height: 45px;
    }

    .contact-icon svg {
        width: 22px;
        height: 22px;
    }

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

    .footer-links {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    /* Scroll to Top */
    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .scroll-top svg {
        width: 20px;
        height: 20px;
    }
}

/* ========================================
   SMALL MOBILE (< 480px)
   ======================================== */

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 2.5rem 0;
    }

    .logo img {
        height: 50px;
    }

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

    .section-subtitle {
        font-size: 0.925rem;
    }

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

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

    .cta-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.925rem;
    }

    .service-card {
        padding: 1.5rem;
    }

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

    .service-icon svg {
        width: 30px;
        height: 30px;
    }

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

    .stat-number {
        font-size: 2rem;
    }

    .timeline-number {
        width: 45px;
        height: 45px;
        font-size: 1.125rem;
    }

    .timeline::before {
        left: 22px;
    }

    .contact-form,
    .contact-info {
        padding: 1rem;
    }

    .social-links {
        gap: 0.75rem;
    }

    .social-link {
        width: 40px;
        height: 40px;
    }

    .social-link svg {
        width: 18px;
        height: 18px;
    }
}

/* ========================================
   LANDSCAPE MOBILE
   ======================================== */

@media (max-height: 600px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 8rem 0 4rem;
    }

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

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: var(--spacing-md);
    }

    .nav-menu {
        height: calc(100vh - 60px);
    }
}

/* ========================================
   LARGE DESKTOP (> 1440px)
   ======================================== */

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

    .section {
        padding: 8rem 0;
    }

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

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

    .service-card {
        padding: 3rem;
    }

    .timeline-content {
        padding: 2rem;
    }

    .about-stats {
        gap: var(--spacing-lg);
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .navbar,
    .hamburger,
    .scroll-top,
    .cta-button,
    .social-links {
        display: none !important;
    }

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

    body {
        background: white;
        color: black;
    }
}

/* ========================================
   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;
    }
}
/* Ensure splash scales on small screens */
@media (max-width: 768px) {
  .logo-splash__img { max-width: 80vmin; }
}