/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet & Small Desktop (max-width: 1024px) */
@media (max-width: 1024px) {
    :root {
        --container-padding: 1.5rem;
        --spacing-xl: 4rem;
        --spacing-lg: 3rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .risks-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .packages-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .package-card {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Tablet Portrait (max-width: 768px) */
@media (max-width: 768px) {
    :root {
        --font-size-base: 15px;
        --spacing-xl: 3rem;
        --spacing-lg: 2rem;
    }
    
    /* Navigation */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--color-bg-light);
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        gap: 1.5rem;
        box-shadow: var(--shadow-lg);
        transition: right var(--transition-base);
        z-index: 999;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-toggle {
        display: flex;
        z-index: 1000;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    body.nav-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 998;
    }
    
    .nav-link {
        width: 100%;
        padding: 0.75rem 0;
    }
    
    .nav-cta {
        width: 100%;
        text-align: center;
    }
    
    /* Hero Section */
    .hero {
        padding: 8rem 0 4rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-problems {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    /* Typography */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Process Steps */
    .process-step {
        flex-direction: column;
        gap: 1rem;
    }
    
    .process-number {
        width: 50px;
        height: 50px;
        font-size: 1.125rem;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-right {
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    /* Person Section */
    .person-text {
        padding: 2rem;
    }
    
    .person-name {
        font-size: 1.75rem;
    }
    
    /* Scroll to Top Button */
    .scroll-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
        font-size: 1.125rem;
    }
}

/* Mobile (max-width: 480px) */
@media (max-width: 480px) {
    :root {
        --container-padding: 1rem;
        --spacing-xl: 2.5rem;
        --spacing-lg: 1.5rem;
        --spacing-md: 1.5rem;
    }
    
    /* Navigation */
    .nav-content {
        padding: 0.75rem 0;
    }
    
    .nav-logo-name {
        font-size: 1.125rem;
    }
    
    .nav-logo-title {
        font-size: 0.6875rem;
    }
    
    .nav-links {
        width: 100%;
        right: -100%;
    }
    
    /* Hero Section */
    .hero {
        padding: 7rem 0 3rem;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-problem-item {
        font-size: 0.9375rem;
    }
    
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.375rem; }
    h4 { font-size: 1.125rem; }
    
    .section-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .section-intro {
        font-size: 1rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }
    
    .btn-large {
        padding: 1rem 1.75rem;
        font-size: 1rem;
    }
    
    /* Risk Cards */
    .risk-card {
        padding: 1.5rem;
    }
    
    .risk-icon {
        width: 50px;
        height: 50px;
    }
    
    .risk-icon i {
        font-size: 1.25rem;
    }
    
    .risk-title {
        font-size: 1.25rem;
    }
    
    .risk-description {
        font-size: 0.9375rem;
    }
    
    /* Conclusion Box */
    .conclusion-box {
        padding: 1.5rem;
    }
    
    .conclusion-title {
        font-size: 1.25rem;
    }
    
    .conclusion-text {
        font-size: 1rem;
    }
    
    /* Process Steps */
    .process-number {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .process-title {
        font-size: 1.25rem;
    }
    
    .process-description {
        font-size: 0.9375rem;
    }
    
    /* Solution Benefits */
    .solution-benefits {
        padding: 1.5rem;
    }
    
    .benefits-title {
        font-size: 1.25rem;
    }
    
    .benefit-item {
        font-size: 0.9375rem;
    }
    
    .benefit-item i {
        font-size: 1.25rem;
    }
    
    /* Packages */
    .package-badge {
        font-size: 0.75rem;
        padding: 0.375rem 2rem;
    }
    
    .package-header {
        padding: 1.5rem;
    }
    
    .package-name {
        font-size: 1.5rem;
    }
    
    .package-tagline {
        font-size: 0.875rem;
    }
    
    .package-body {
        padding: 1.5rem;
    }
    
    .package-description {
        font-size: 0.9375rem;
    }
    
    .package-features {
        font-size: 0.9375rem;
    }
    
    .package-footer {
        padding: 0 1.5rem 1.5rem;
    }
    
    .packages-note {
        padding: 1rem;
        font-size: 0.9375rem;
    }
    
    /* Person Section */
    .person-text {
        padding: 1.5rem;
    }
    
    .person-name {
        font-size: 1.5rem;
    }
    
    .person-roles {
        font-size: 0.9375rem;
    }
    
    .person-description p {
        font-size: 0.9375rem;
    }
    
    .qualifications-grid {
        gap: 1rem;
    }
    
    .qualification-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .qualification-item i {
        font-size: 1.25rem;
    }
    
    .trust-link {
        padding: 0.875rem;
        font-size: 0.9375rem;
    }
    
    .person-difference li {
        font-size: 0.9375rem;
    }
    
    /* Contact Section */
    .contact-info h3 {
        font-size: 1.5rem;
    }
    
    .contact-checklist li {
        font-size: 0.9375rem;
    }
    
    .contact-direct {
        padding: 1rem;
    }
    
    .contact-direct h4 {
        font-size: 1.125rem;
    }
    
    .contact-direct p {
        font-size: 0.9375rem;
    }
    
    /* Contact Form */
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    .form-group label {
        font-size: 0.9375rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.75rem;
        font-size: 1rem;
    }
    
    .form-checkbox span {
        font-size: 0.875rem;
    }
    
    .form-note {
        font-size: 0.8125rem;
    }
    
    .form-success {
        padding: 2rem;
    }
    
    .form-success i {
        font-size: 3rem;
    }
    
    .form-success h3 {
        font-size: 1.5rem;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0 1.5rem;
    }
    
    .footer-name {
        font-size: 1.125rem;
    }
    
    .footer-tagline {
        font-size: 0.9375rem;
    }
    
    .footer-tech {
        font-size: 0.8125rem;
    }
    
    .footer-links {
        gap: 1rem;
        font-size: 0.875rem;
    }
    
    .footer-copyright {
        font-size: 0.8125rem;
    }
    
    /* Scroll to Top Button */
    .scroll-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Extra Small Mobile (max-width: 360px) */
@media (max-width: 360px) {
    :root {
        --container-padding: 0.875rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .hero-cta .btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.9375rem;
    }
    
    .risk-card,
    .package-body,
    .person-text {
        padding: 1.25rem;
    }
    
    .contact-form {
        padding: 1.25rem;
    }
}

/* Landscape Mobile (max-height: 500px and orientation: landscape) */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 6rem 0 3rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .nav-links {
        padding: 4rem 2rem 2rem;
        overflow-y: auto;
    }
}

/* Print Styles */
@media print {
    .nav,
    .nav-toggle,
    .scroll-to-top,
    .hero-cta,
    .btn,
    .contact-form,
    .footer-links {
        display: none !important;
    }
    
    .section {
        padding: 2rem 0;
        page-break-inside: avoid;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .package-card,
    .risk-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #e2e8f0;
    }
    
    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 0.875rem;
        color: #718096;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
}

/* High Resolution / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .nav-logo-name,
    .hero-title,
    .section-title {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Reduced Motion for Accessibility */
@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;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    /* Uncomment to enable dark mode support
    :root {
        --color-bg-light: #1a202c;
        --color-bg-lightgray: #2d3748;
        --color-text-dark: #f7fafc;
        --color-text-medium: #e2e8f0;
        --color-border: #4a5568;
    }
    
    .nav {
        background-color: rgba(26, 32, 44, 0.95);
    }
    
    .hero {
        background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    }
    */
}

/* Focus Styles for Accessibility */
*:focus {
    outline: 2px solid var(--color-secondary);
    outline-offset: 2px;
}

button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--color-secondary);
    outline-offset: 2px;
}

/* Skip to Content Link for Accessibility */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background-color: var(--color-primary);
    color: var(--color-text-inverse);
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    z-index: 9999;
}

.skip-to-content:focus {
    top: 0;
}

/* Selection Colors */
::selection {
    background-color: var(--color-secondary);
    color: var(--color-text-inverse);
}

::-moz-selection {
    background-color: var(--color-secondary);
    color: var(--color-text-inverse);
}