/* Highland Domes - Responsive CSS */

/* Mobile First Approach - Base styles are mobile */

/* Small Mobile Devices (320px - 479px) */
@media (max-width: 479px) {
    :root {
        --fs-5xl: 2rem;
        --fs-4xl: 1.75rem;
        --fs-3xl: 1.5rem;
        --fs-2xl: 1.25rem;
        --spacing-4xl: 3rem;
        --spacing-3xl: 2rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-title {
        font-size: var(--fs-4xl);
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: var(--fs-lg);
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-md);
    }
    
    .hero-cta .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .navbar-brand .logo {
        height: 40px;
    }
    
    .section-title {
        font-size: var(--fs-3xl);
    }
    
    .about-features {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .dome-amenities {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .contact-form-container {
        padding: var(--spacing-xl);
    }
    
    .footer-legal {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }
}

/* Mobile Devices (480px - 767px) */
@media (min-width: 480px) and (max-width: 767px) {
    .hero-title {
        font-size: var(--fs-5xl);
    }
    
    .hero-cta {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-cta .btn {
        width: auto;
        min-width: 200px;
    }
    
    .about-features {
        flex-direction: row;
        justify-content: space-around;
    }
    
    .dome-amenities {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-legal {
        flex-direction: row;
        justify-content: center;
    }
}

/* Tablet Devices (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero-section {
        height: 90vh;
    }
    
    .hero-title {
        font-size: var(--fs-5xl);
    }
    
    .hero-subtitle {
        font-size: var(--fs-xl);
    }
    
    .navbar-nav {
        gap: var(--spacing-sm);
    }
    
    .about-section,
    .domes-section,
    .growing-section,
    .story-section,
    .testimonials-section,
    .gallery-section,
    .regen-section,
    .faq-section,
    .location-section,
    .contact-section {
        padding: var(--spacing-3xl) 0;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .map {
        height: 350px;
    }
    
    .contact-form-container {
        padding: var(--spacing-2xl);
    }
}

/* Desktop Devices (1024px - 1439px) */
@media (min-width: 1024px) and (max-width: 1439px) {
    .hero-section {
        height: 100vh;
    }
    
    .hero-title {
        font-size: var(--fs-6xl);
    }
    
    .hero-subtitle {
        font-size: var(--fs-2xl);
    }
    
    .navbar {
        padding: var(--spacing-lg) 0;
    }
    
    .navbar-brand .logo {
        height: 60px;
    }
    
    .section-title {
        font-size: var(--fs-4xl);
    }
    
    .about-section,
    .domes-section,
    .growing-section,
    .story-section,
    .testimonials-section,
    .gallery-section,
    .regen-section,
    .faq-section,
    .location-section,
    .contact-section {
        padding: var(--spacing-4xl) 0;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .map {
        height: 400px;
    }
    
    .contact-form-container {
        padding: var(--spacing-3xl);
    }
    
    .footer {
        padding: var(--spacing-3xl) 0 var(--spacing-lg);
    }
}

/* Large Desktop Devices (1440px+) */
@media (min-width: 1440px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .about-section,
    .domes-section,
    .growing-section,
    .story-section,
    .testimonials-section,
    .gallery-section,
    .regen-section,
    .faq-section,
    .location-section,
    .contact-section {
        padding: 6rem 0;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .map {
        height: 450px;
    }
    
    .contact-form-container {
        padding: 4rem;
    }
}

/* Navigation Responsive */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(248, 245, 240, 0.98);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        border-radius: var(--radius-lg);
        margin-top: var(--spacing-md);
        padding: var(--spacing-lg);
        box-shadow: var(--shadow-lg);
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-item {
        margin: var(--spacing-sm) 0;
    }
    
    .navbar-nav .nav-link {
        padding: var(--spacing-md);
        font-size: var(--fs-lg);
    }
}

/* Hero Section Responsive - Mobile First */

/* Mobile (320px - 767px) - Base styles already mobile-first */
@media (max-width: 767px) {
    .hero-section {
        min-height: 100vh;
        height: auto;
        padding-bottom: var(--spacing-2xl);
    }
    
    .hero-content-wrapper {
        padding: calc(80px + var(--spacing-lg)) var(--spacing-md) var(--spacing-lg);
        min-height: 100vh;
    }
    
    .hero-content {
        gap: var(--spacing-lg);
    }
    
    .hero-logo {
        width: 90px;
    }
    
    .hero-logo-text {
        font-size: 10px;
        letter-spacing: 3px;
    }
    
    .hero-main-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
        line-height: 1.25;
        padding: 0 var(--spacing-sm);
    }
    
    .hero-cta-section {
        gap: var(--spacing-lg);
        padding: 0 var(--spacing-sm);
    }
    
    .hero-subtitle {
        font-size: clamp(0.9rem, 3vw, 1rem);
        line-height: 1.6;
    }
    
    .hero-button-group {
        max-width: 100%;
    }
    
    .btn-hero {
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: var(--fs-sm);
    }
    
    /* Hide video on mobile to save bandwidth */
    .hero-video {
        display: none;
    }
    
    .hero-video-fallback {
        display: block;
    }
    
    .scroll-indicator {
        bottom: var(--spacing-md);
    }
}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero-section {
        height: 100vh;
    }
    
    .hero-content-wrapper {
        padding: calc(80px + var(--spacing-2xl)) var(--spacing-lg) var(--spacing-2xl);
    }
    
    .hero-content {
        gap: var(--spacing-xl);
        max-width: 800px;
    }
    
    .hero-logo {
        width: 130px;
    }
    
    .hero-logo-text {
        font-size: var(--fs-xs);
        letter-spacing: 5px;
    }
    
    .hero-main-title {
        font-size: clamp(2.5rem, 5vw, 3.25rem);
    }
    
    .hero-subtitle {
        font-size: var(--fs-lg);
    }
    
    .hero-button-group {
        flex-direction: row;
        max-width: 500px;
        gap: var(--spacing-md);
    }
    
    .btn-hero {
        width: auto;
        flex: 1;
        min-width: 200px;
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    .hero-section {
        height: 100vh;
    }
    
    .hero-content-wrapper {
        padding: calc(80px + var(--spacing-3xl)) var(--spacing-xl) var(--spacing-3xl);
    }
    
    .hero-content {
        gap: var(--spacing-2xl);
        max-width: 900px;
    }
    
    .hero-logo {
        width: 150px;
    }
    
    .hero-logo-text {
        font-size: var(--fs-sm);
        letter-spacing: 6px;
    }
    
    .hero-main-title {
        font-size: clamp(3rem, 4vw, 3.75rem);
        line-height: 1.15;
    }
    
    .hero-cta-section {
        gap: var(--spacing-2xl);
        max-width: 700px;
    }
    
    .hero-subtitle {
        font-size: var(--fs-xl);
        line-height: 1.7;
    }
    
    .hero-button-group {
        flex-direction: row;
        max-width: 600px;
        gap: var(--spacing-lg);
    }
    
    .btn-hero {
        padding: var(--spacing-lg) var(--spacing-2xl);
        font-size: var(--fs-base);
        width: auto;
        flex: 1;
        min-width: 220px;
    }
}

/* Large Desktop (1440px+) */
@media (min-width: 1440px) {
    .hero-content {
        max-width: 1000px;
    }
    
    .hero-main-title {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

/* About Section Responsive */
@media (max-width: 991px) {
    .about-section .row {
        flex-direction: column-reverse;
    }
    
    .about-section .col-lg-6:first-child {
        margin-top: var(--spacing-xl);
    }
    
    .about-image {
        text-align: center;
    }
    
    .about-image img {
        max-width: 100%;
        height: auto;
    }
}

/* Domes Section Responsive - full square images on mobile */
@media (max-width: 991px) {
    .domes-section .container {
        padding-left: var(--spacing-md);
        padding-right: var(--spacing-md);
    }
    
    .dome-card {
        margin-bottom: var(--spacing-xl);
        display: flex;
        flex-direction: column;
    }
    
    .dome-image {
        width: 100%;
        aspect-ratio: 1 / 1;
        min-height: 0;
    }
    
    .dome-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .dome-content {
        padding: var(--spacing-lg);
    }
}

@media (max-width: 767px) {
    .dome-image {
        width: 100%;
        aspect-ratio: 1 / 1;
        min-height: 0;
    }
    
    .dome-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .dome-content {
        padding: var(--spacing-md);
    }
    
    .dome-content h3 {
        font-size: var(--fs-xl);
    }
    
    .dome-brochure-btn {
        min-height: 44px;
        padding: var(--spacing-sm) var(--spacing-lg);
    }
}

/* Growing Features Section Responsive */
@media (max-width: 991px) {
    .growing-section .row.align-items-center {
        flex-direction: column;
    }
    
    .growing-section .col-lg-6:last-child {
        margin-top: var(--spacing-xl);
    }
}

@media (max-width: 767px) {
    .feature-card {
        padding: var(--spacing-lg);
    }
    
    .feature-card .feature-icon {
        font-size: 2rem;
    }
}

/* Story Section Responsive */
@media (max-width: 991px) {
    .story-section .row.align-items-center {
        flex-direction: column-reverse;
    }
    
    .story-section .col-lg-6:first-child {
        margin-top: var(--spacing-xl);
    }
}

/* Testimonials Section Responsive */
@media (max-width: 767px) {
    .testimonial-card {
        padding: var(--spacing-lg);
    }
    
    .testimonial-text {
        font-size: var(--fs-sm);
    }
}

/* Highland Regen Section Responsive */
@media (max-width: 767px) {
    .pricing-card {
        padding: var(--spacing-lg);
    }
    
    .pricing-card .price {
        font-size: var(--fs-3xl);
    }
    
    .process-step {
        margin-bottom: var(--spacing-lg);
    }
}

/* FAQ Section Responsive */
@media (max-width: 767px) {
    .faq-section .accordion-button {
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: var(--fs-base);
    }
    
    .faq-section .accordion-body {
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: var(--fs-sm);
    }
}

/* Gallery Section Responsive */
@media (max-width: 767px) {
    .gallery-filter {
        margin-bottom: var(--spacing-lg);
    }
    
    .filter-btn {
        padding: var(--spacing-xs) var(--spacing-md);
        margin: var(--spacing-xs);
        font-size: var(--fs-sm);
    }
    
    .gallery-item img {
        height: 200px;
    }
    
    .gallery-overlay {
        padding: var(--spacing-md);
    }
    
    .gallery-overlay h4 {
        font-size: var(--fs-lg);
    }
    
    .gallery-overlay p {
        font-size: var(--fs-xs);
    }
}

/* Location Section Responsive */
@media (max-width: 991px) {
    .location-section .row {
        flex-direction: column;
    }
    
    .location-section .col-lg-6:last-child {
        margin-top: var(--spacing-xl);
    }
    
    .map-container {
        margin-top: var(--spacing-lg);
    }
}

@media (max-width: 767px) {
    .location-content h3 {
        font-size: var(--fs-2xl);
    }
    
    .location-item {
        padding: var(--spacing-md);
    }
    
    .location-item h4 {
        font-size: var(--fs-base);
    }
    
    .map {
        height: 300px;
    }
    
    .map-pin {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: var(--fs-sm);
    }
}

/* Contact Section Responsive */
@media (max-width: 767px) {
    .contact-section .col-lg-8 {
        padding: 0;
    }
    
    .contact-form-container {
        margin: 0 var(--spacing-sm);
        padding: var(--spacing-lg);
    }
    
    .form-control,
    .form-select {
        padding: var(--spacing-sm);
        font-size: var(--fs-sm);
    }
    
    .btn-lg {
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: var(--fs-sm);
    }
}

/* Footer Responsive */
@media (max-width: 991px) {
    .footer .row {
        text-align: center;
    }
    
    .footer-brand,
    .footer-links,
    .footer-contact {
        margin-bottom: var(--spacing-xl);
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .footer {
        padding: var(--spacing-2xl) 0 var(--spacing-md);
    }
    
    .footer-logo {
        max-width: 120px;
    }
    
    .footer-description {
        font-size: var(--fs-sm);
    }
    
    .footer-links h5,
    .footer-contact h5 {
        font-size: var(--fs-base);
    }
    
    .contact-item {
        font-size: var(--fs-sm);
    }
    
    .social-link {
        width: 35px;
        height: 35px;
    }
    
    .copyright {
        font-size: var(--fs-sm);
    }
    
    .legal-link {
        font-size: var(--fs-xs);
    }
}

/* Modal Responsive */
@media (max-width: 767px) {
    .modal-dialog {
        margin: var(--spacing-md);
    }
    
    .modal-content {
        border-radius: var(--radius-lg);
    }
    
    .modal-header {
        padding: var(--spacing-lg);
    }
    
    .modal-body {
        padding: var(--spacing-lg);
    }
    
    .modal-footer {
        padding: var(--spacing-lg);
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .dome-card:hover,
    .gallery-item:hover,
    .btn:hover {
        transform: none;
    }
    
    .dome-card:active {
        transform: scale(0.98);
    }
    
    .gallery-item:active {
        transform: scale(0.95);
    }
    
    .btn:active {
        transform: scale(0.95);
    }
    
    /* Increase touch targets */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .filter-btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .social-link {
        min-height: 44px;
        min-width: 44px;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-logo,
    .footer-logo,
    .navbar-brand .logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero-section,
    .footer,
    .btn,
    .scroll-indicator {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
        background: white;
    }
    
    .section-title {
        color: black;
        font-size: 18pt;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    .row {
        margin: 0;
    }
    
    .col-lg-6,
    .col-lg-4,
    .col-lg-8 {
        width: 100%;
        float: none;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
    
    .dome-card,
    .gallery-item {
        break-inside: avoid;
        margin-bottom: 20pt;
    }
}

/* Reduced Motion Preferences */
@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;
    }
    
    .parallax {
        background-attachment: scroll;
    }
    
    .hero-logo,
    .scroll-indicator,
    .map-pin {
        animation: none;
    }
}

/* Force light mode only - prevent device dark/night mode from affecting the site */

