/* ============================================
   EcoOffice - Responsive Styles
   ============================================ */

/* Mobile First - Base Styles (320px and up) */
@media (min-width: 320px) {
    .container {
        padding-left: 18px;
        padding-right: 15px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    padding-top: 200px;
}
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.38rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    section {
        padding: 2rem 0;
    }
}

/* Small devices (576px and up) */
@media (min-width: 576px) {
    .hero-section h1 {
        font-size: 2.63rem;
    padding-top: 200px;
}
    
    .hero-section p {
        font-size: 1.13rem;
    }
    
    .navbar-brand {
        font-size: 1.53rem;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .contact-info {
        padding: 1.5rem;
    }
}

/* Medium devices (768px and up) */
@media (min-width: 768px) {
    .hero-section h1 {
        font-size: 3rem;
    padding-top: 200px;
}
    
    .hero-section p {
        font-size: 1.28rem;
    }
    
    .navbar {
        padding: 1rem 0;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .contact-info {
        padding: 2rem;
    }
    
    .section-title h2 {
        font-size: 2.61rem;
    }
    
    .section-title p {
        font-size: 1.13rem;
    }
}

/* Large devices (992px and up) */
@media (min-width: 992px) {
    .hero-section h1 {
        font-size: 3.64rem;
    padding-top: 200px;
}
    
    .hero-section p {
        font-size: 1.44rem;
    }
    
    .navbar {
        padding: 1.5rem 0;
    }
    
    .navbar-brand {
        font-size: 1.78rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1.5rem;
        font-size: 1.18rem;
    }
    
    .card-body {
        padding: 2rem;
    }
    
    section {
        padding: 5rem 0;
    }
    
    .contact-info {
        padding: 2.5rem;
    }
    
    .section-title h2 {
        font-size: 3rem;
    }
    
    .section-title p {
        font-size: 1.35rem;
    }
    
    .btn {
        padding: 1rem 2rem;
        font-size: 1.21rem;
    }
}

/* Extra large devices (1200px and up) */
@media (min-width: 1200px) {
    .hero-section h1 {
        font-size: 4rem;
    padding-top: 200px;
}
    
    .hero-section p {
        font-size: 1.50rem;
    }
    
    .navbar {
        padding: 2rem 0;
    }
    
    .navbar-brand {
        font-size: 2rem;
    }
    
    .navbar-nav .nav-link {
        padding: 1rem 2rem;
        font-size: 1.24rem;
    }
    
    .card-body {
        padding: 2.5rem;
    }
    
    section {
        padding: 6rem 0;
    }
    
    .contact-info {
        padding: 3rem;
    }
    
    .section-title h2 {
        font-size: 3.63rem;
    }
    
    .section-title p {
        font-size: 1.33rem;
    }
    
    .btn {
        padding: 1.25rem 2.5rem;
        font-size: 1.30rem;
    }
}

/* Extra extra large devices (1400px and up) */
@media (min-width: 1400px) {
    .hero-section h1 {
        font-size: 4.65rem;
    padding-top: 200px;
}
    
    .hero-section p {
        font-size: 1.64rem;
    }
    
    .section-title h2 {
        font-size: 4rem;
    }
    
    .section-title p {
        font-size: 1.43rem;
    }
}

/* Tablet Portrait (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .hero-section {
        text-align: center;
    }
    
    .hero-section .col-md-6 {
        margin-bottom: 2rem;
    }
    
    .card-img-top {
        height: 180px;
    }
    
    .navbar-toggler {
        padding: 0.5rem 0.75rem;
    }
    
    .contact-info {
        margin-top: 2rem;
    }
}

/* Mobile Landscape (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .hero-section {
        text-align: center;
        padding: 3rem 0;
    }
    
    .hero-section .col-md-6 {
        margin-bottom: 2rem;
    }
    
    .card-img-top {
        height: 150px;
    }
    
    .navbar-collapse {
        text-align: center;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--gray-200);
    }
    
    .contact-info {
        margin-top: 2rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
}

/* Mobile Portrait (320px - 575px) */
@media (max-width: 575px) {
    .hero-section {
        text-align: center;
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.82rem;
        margin-bottom: 1rem;
    padding-top: 200px;
}
    
    .hero-section p {
        font-size: 1.00rem;
        margin-bottom: 1.75rem;
    }
    
    .hero-section .col-md-6 {
        margin-bottom: 1.62rem;
    }
    
    .card {
        margin-bottom: 1.58rem;
    }
    
    .card-img-top {
        height: 120px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-collapse {
        text-align: center;
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0;
        border-bottom: 1px solid var(--gray-200);
        font-size: 1rem;
    }
    
    .contact-info {
        margin-top: 1.63rem;
        padding: 1rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.68rem;
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 1.82rem;
    }
    
    .section-title p {
        font-size: 1.03rem;
    }
    
    footer {
        text-align: center;
    }
    
    footer .col-md-4 {
        margin-bottom: 2rem;
    }
    
    #space h1 {
        font-size: 3rem;
    }
    
    #space p {
        font-size: 1rem;
    }
}

/* Landscape Mode for Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        padding: 1rem 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    padding-top: 200px;
}
    
    .hero-section p {
        font-size: 1rem;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .contact-info {
        padding: 1rem;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .card-img-top {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
    
    .hero-section::before {
        background-size: cover;
        background-position: center;
    }
}

/* Touch Devices */
@media (hover: none) and (pointer: coarse) {
    .card:hover {
        transform: none;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    .card:hover .card-img-top {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
    
    .navbar-nav .nav-link:hover {
        background-color: var(--gray-100);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .hero-section::before {
        animation: none;
    }
    
    .card {
        transition: none;
    }
    
    .card-img-top {
        transition: none;
    }
    
    .btn {
        transition: none;
    }
    
    .navbar-nav .nav-link {
        transition: none;
    }
    
    .form-control {
        transition: none;
    }
    
    [data-sal] {
        transition: none;
    }
}

/* Print Styles */
@media print {
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        font-weight: bold;
    }
    
    h1 {
        font-size: 18pt;
    }
    
    h2 {
        font-size: 16pt;
    }
    
    h3 {
        font-size: 14pt;
    }
    
    h4, h5, h6 {
        font-size: 12pt;
    }
    
    .card {
        break-inside: avoid;
        border: 1px solid black;
        padding: 10pt;
        margin-bottom: 10pt;
    }
    
    .btn {
        border: 1px solid black;
        padding: 5pt;
        display: inline-block;
    }
    
    .navbar,
    .breadcrumb,
    footer {
        display: none;
    }
    
    .hero-section {
        padding: 20pt 0;
    }
    
    .hero-section::before {
        display: none;
    }
    
    .contact-info {
        border: 1px solid black;
        padding: 10pt;
    }
    
    a {
        text-decoration: underline;
    }
    
    a[href^="http"]:after {
        content: " (" attr(href) ")";
    }
    
    .container {
        width: 100% !important;
        max-width: none !important;
    }
    
    .row {
        margin: 0 !important;
    }
    
    .col-md-6,
    .col-md-4,
    .col-md-3 {
        width: 100% !important;
        float: none !important;
    }
} 