/* Responsive CSS for GreenGrind Website */

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .hero-section {
        min-height: 100vh;
    }
    
    .navbar-expand-lg .navbar-nav .nav-link {
        padding-right: 1rem;
        padding-left: 1rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (max-width: 991.98px) {
    /* Typography adjustments */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.88rem; }
    h3 { font-size: 1.59rem; }
    .display-4 { font-size: 2rem; }
    
    /* Hero section */
    .hero-section {
        padding-top: 120px;
        text-align: center;
    }
    
    /* Section padding */
    .py-5 {
        padding: 3rem 0;
    }
    
    /* Card adjustments */
    .card-img-top {
        height: 180px;
    }
    
    /* Team member layout */
    .team-section .col-xl-auto {
        width: 50%;
        margin-bottom: 2rem;
    }
    
    /* Services grid */
    .services-grid .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Gallery adjustments */
    #Gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    #Gallery img {
        height: 200px;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 767.98px) {
    /* Typography */
    h1 { font-size: 1.87rem; }
    h2 { font-size: 1.59rem; }
    h3 { font-size: 1.31rem; }
    .display-4 { font-size: 1.80rem; }
    .lead { font-size: 1rem; }
    
    /* Navbar brand */
    .navbar-brand {
        font-size: 1.32rem !important;
    }
    
    /* Hero section */
    .hero-section {
        padding-top: 100px;
        padding-bottom: 2rem;
    }
    
    /* Section spacing */
    .py-5 {
        padding: 2rem 0;
    }
    
    .mb-5 {
        margin-bottom: 2rem;
    }
    
    /* Card adjustments */
    .card {
        margin-bottom: 1.69rem;
    }
    
    .card-img-top {
        height: 160px;
    }
    
    /* Team members - single column */
    .team-section .col-xl-auto {
        width: 100%;
        margin-bottom: 1.69rem;
    }
    
    .card-img-top.rounded-circle {
        width: 100px;
        height: 100px;
    }
    
    /* Services layout */
    .services-item {
        margin-bottom: 2rem;
    }
    
    /* Process steps */
    .process-step::after {
        display: none;
    }
    
    /* Timeline adjustments */
    .timeline-item {
        margin-bottom: 1.68rem;
    }
    
    /* Contact form */
    .contact-form .col-md-6 {
        margin-bottom: 1rem;
    }
    
    /* Footer adjustments */
    footer .col-lg-4 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    /* Gallery grid */
    #Gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    #Gallery img {
        height: 180px;
    }
    
    /* FAQ cards */
    .faq-card {
        margin-bottom: 1rem;
    }
    
    /* Price plan cards */
    .price-card {
        margin-bottom: 2rem;
    }
    
    /* Features layout */
    .features-item {
        margin-bottom: 1.57rem;
    }
    
    /* About features grid */
    .about-feature {
        margin-bottom: 1.73rem;
    }
    
    /* Blog grid */
    .blog-item {
        margin-bottom: 2rem;
    }
    
    /* Case study cards */
    .case-study-card {
        margin-bottom: 1.61rem;
    }
    
    /* Career cards */
    .career-card {
        margin-bottom: 1.73rem;
    }
    
    /* Core info items */
    .core-info-item {
        margin-bottom: 1.55rem;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography */
    h1 { font-size: 1.53rem; }
    h2 { font-size: 1.34rem; }
    h3 { font-size: 1.22rem; }
    .display-4 { font-size: 1.52rem; }
    
    /* Container padding */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Navbar brand */
    .navbar-brand {
        font-size: 1.16rem !important;
    }
    
    /* Hero section */
    .hero-section {
        padding-top: 80px;
        padding-bottom: 1rem;
    }
    
    /* Section spacing */
    .py-5 {
        padding: 1.5rem 0;
    }
    
    .py-3 {
        padding: 1rem 0;
    }
    
    /* Card adjustments */
    .card-body {
        padding: 1rem;
    }
    
    .card-img-top {
        height: 140px;
    }
    
    /* Button adjustments */
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.97rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Form controls */
    .form-control {
        padding: 0.5rem 0.75rem;
    }
    
    /* Text adjustments */
    .lead {
        font-size: 1.05rem;
        margin-bottom: 1rem;
    }
    
    /* Icon sizing */
    .fa-3x {
        font-size: 2em !important;
    }
    
    .fa-2x {
        font-size: 1.5em !important;
    }
    
    /* Team member photos */
    .card-img-top.rounded-circle {
        width: 80px;
        height: 80px;
    }
    
    /* Contact info */
    .contact-info {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* Footer text */
    footer p {
        font-size: 0.94rem;
    }
    
    /* Breadcrumb */
    .breadcrumb-img {
        height: 16px;
    }
    
    /* Space page adjustments */
    #space .display-3 {
        font-size: 2rem;
    }
    
    /* Process step numbers */
    .process-step .rounded-circle {
        width: 60px !important;
        height: 60px !important;
    }
    
    .process-step .fs-4 {
        font-size: 1.16rem !important;
    }
    
    /* Price plan pricing */
    .price-plan .display-4 {
        font-size: 1.54rem;
    }
    
    /* Review cards */
    .review-card {
        margin-bottom: 1rem;
    }
    
    /* Gallery responsive */
    #Gallery img {
        height: 150px;
    }
    
    /* Utility spacing adjustments */
    .mb-4 { margin-bottom: 1rem; }
    .mb-5 { margin-bottom: 1.69rem; }
    .mt-5 { margin-top: 1.72rem; }
}

/* Landscape phone adjustments */
@media (max-width: 767.98px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding-top: 80px;
        padding-bottom: 2rem;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .py-5 {
        padding: 2rem 0;
    }
}

/* Print styles */
@media print {
    .navbar,
    .breadcrumb,
    .btn,
    footer {
        display: none !important;
    }
    
    .hero-section {
        padding-top: 0;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #d2c1c2;
    }
    
    .bg-light,
    .bg-primary,
    .bg-secondary {
        background: white !important;
        color: black !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid #3f3f3f;
    }
    
    .btn {
        border-width: 2px;
    }
    
    .hero-section::before {
        display: none;
    }
}

/* Dark mode preferences */

/* Focus styles for accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Hover effects for touch devices */
@media (hover: none) {
    .card:hover {
        transform: none;
    }
    
    #Gallery img:hover {
        transform: none;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .card,
    .btn,
    .nav-link,
    #Gallery img,
    .fa {
        transition: none !important;
    }
    
    .hero-section::before {
        animation: none !important;
    }
} 

.hero-section h1 {
    padding-top: 200px;
}