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

/* ================================
   TABLET (max-width: 1023px)
   ================================ */

@media (max-width: 1023px) {
    .container {
        width: 90%;
        max-width: 1000px;
    }

    .spacer {
        margin: 6rem auto;
    }
}

/* ================================
   MOBILE (max-width: 768px)
   ================================ */

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

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1rem;
    }

    p {
        font-size: 0.95rem;
        line-height: 1.6rem;
    }

    .container {
        width: 100%;
        padding: 0 16px;
        box-sizing: border-box;
    }

    .spacer {
        margin: 4rem auto;
    }

    #hero-section {
        margin-top: 2rem;
        min-height: auto; /* Override desktop min-height */
    }

    /* ========================
       HEADER & NAVIGATION
       ======================== */

    header {
        position: relative;
        width: 100%;
        background-color: var(--color-bg-main);
        z-index: 1001;
        padding: 0;
        margin: 0;
        border-bottom: none;
    }

    header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px;
        width: 100%;
        margin: 0;
        box-sizing: border-box;
    }

    header img {
        height: 32px;
        width: auto;
    }

    /* Hamburger Menu Button */
    .hamburger-menu {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 28px;
        height: 22px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        margin: 0;
    }

    .hamburger-menu span {
        width: 100%;
        height: 2px;
        background-color: var(--color-text-primary);
        border-radius: 2px;
        transition: all 0.3s ease;
        display: block;
    }

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

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

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

    /* Mobile Navigation Menu */
    .nav-menu {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        background-color: var(--color-bg-main);
        flex-direction: column;
        gap: 0;
        padding: 0;
        border-bottom: none !important;
        max-height: 0;
        overflow: hidden;
        transition:
            max-height 0.3s ease,
            opacity 0.3s ease;
        z-index: 1000;
        opacity: 0;
        pointer-events: none;
        box-sizing: border-box;
    }

    .nav-menu.active {
        max-height: calc(100vh - 64px);
        overflow-y: auto;
        opacity: 1;
        pointer-events: auto;
        padding: 16px 0;
    }

    .nav-menu a {
        display: block;
        width: calc(100% - 32px);
        padding: 20px 16px;
        margin: 0 16px;
        border-bottom: 1px solid #f5f5f5;
        font-size: 0.9rem;
        text-decoration: none;
        color: #000;
        font-family: "Inter", sans-serif;
        font-weight: 500;
        text-transform: uppercase;
        box-sizing: border-box;
        text-align: center;
    }

    .nav-menu a:last-child {
        border-bottom: none;
    }

    .nav-menu .primary-button {
        width: calc(100% - 32px);
        margin: 16px 16px 0 16px !important;
        padding: 12px 0 !important;
        font-size: 1rem;
        color: #fff !important;
    }

    /* Remove body padding since header is not fixed */
    body {
        padding-top: 0;
    }

    /* ========================
       HERO SECTION
       ======================== */

    #hero-section {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
        align-items: center;
        justify-items: center;
        min-height: auto; /* Override desktop min-height */
    }

    #hero-section > div:first-child {
        text-align: center;
        order: 2;
    }

    #hero-section > div:last-child {
        order: 1;
        width: 100%;
    }

    #hero-section img {
        width: 100%;
        height: auto;
    }

    #hero-section h1 {
        margin: 1rem 0;
    }

    #hero-section p {
        margin: 1rem 0 2rem 0;
    }

    #hero-section .primary-button {
        width: 100%;
        max-width: 16rem;
        margin: 0 auto;
    }

    /* ========================
       PHILOSOPHY SECTION
       ======================== */

    #philosophy-section {
        text-align: center;
    }

    #philosophy-section h2 {
        font-size: 1.3rem;
        line-height: 1.6;
    }

    /* ========================
       CREATORS SECTION
       ======================== */

    #creators-section {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .creators-image {
        width: 100%;
        order: 1;
    }

    .creators-text {
        width: 100%;
        order: 2;
        text-align: center;
    }

    .creators-text .primary-button {
        width: 100%;
        max-width: 100%;
    }

    /* ========================
       GALLERY SECTION
       ======================== */

    #gallery-section h2 {
        font-size: 1.3rem;
    }

    #gallery-section h3 {
        margin-bottom: 2rem;
        font-size: 0.9rem;
    }

    .gallery-images {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        margin-top: 1rem;
    }

    .gallery-slot {
        aspect-ratio: 1 / 1;
    }

    .gallery-slot img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* ========================
       LIGHTBOX GALLERY
       ======================== */

    .lightbox-close {
        top: 1rem;
        right: 1rem;
        width: 2rem;
        height: 2rem;
        font-size: 2rem;
        padding: 0;
        opacity: 1 !important;
    }

    .lightbox-prev,
    .lightbox-next {
        display: none !important;
    }

    #lightbox-image {
        max-width: 95%;
        max-height: 85%;
    }

    .lightbox-counter {
        bottom: 1rem;
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }

    /* ========================
       SERVICES SECTION
       ======================== */

    .services-headings {
        width: 100%;
        margin: 0 auto 2rem auto;
        text-align: center;
    }

    .services-headings h2 {
        font-size: 1.3rem;
    }

    .services-headings p {
        font-size: 0.9rem;
    }

    #services-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        border: 1px solid #ddd;
        padding: 1.5rem;
    }

    .service-card h2 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .service-card h3 {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .service-card p {
        font-size: 0.9rem;
    }

    .service-card ul {
        padding-left: 20px;
        font-size: 0.9rem;
    }

    .service-card-button {
        padding: 0.8rem 0;
        font-size: 1rem;
    }

    /* ========================
       FINAL CTA SECTION
       ======================== */

    #final-cta-section {
        height: auto;
        padding: 3rem 0;
        min-height: auto;
    }

    .final-cta-section-content {
        padding: 0;
    }

    .final-cta-section-content h2 {
        width: 100%;
        font-size: 1.3rem;
        margin: 0 0 1rem 0;
    }

    .final-cta-section-content p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .final-cta-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .final-cta-buttons .primary-button {
        width: 100%;
        max-width: 100%;
    }

    /* ========================
       PLANNING SECTION
       ======================== */

    #planning-section {
        text-align: center;
    }

    #planning-section h2 {
        font-size: 1.3rem;
    }

    #planning-section p {
        font-size: 0.9rem;
    }

    /* Contact Form Responsive */
    .contact-form {
        padding: 0;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 0;
    }

    .form-group {
        margin-bottom: 1.25rem;
    }

    .form-group label {
        font-size: 0.85rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 0.95rem;
        padding: 0.75rem;
    }

    .form-submit .primary-button {
        width: 100%;
        font-size: 1rem;
    }

    .form-message {
        font-size: 0.85rem;
        padding: 0.75rem;
    }

    /* Booking Modal Responsive - Mobile */
    .booking-modal-content {
        margin: 0;
        max-width: 100%;
        width: 100%;
        height: 100vh;
        overflow-y: auto;
    }

    .booking-modal-body {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .booking-modal-package {
        padding: 1.5rem 1.5rem 1rem 1.5rem;
        border-right: none;
        border-bottom: 2px solid var(--color-border-light);
    }

    .booking-modal-package h2 {
        font-size: 1.5rem;
        padding-right: 3rem; /* Space for close button */
        margin-bottom: 0.5rem;
    }

    .modal-package-meta {
        font-size: 0.85rem;
        margin-bottom: 0;
    }

    .modal-package-details {
        display: none;
    }

    .booking-modal-form-section {
        padding: 1.5rem 1.5rem 2rem 1.5rem;
    }

    .booking-modal-form-section h3 {
        font-size: 1.5rem;
    }

    .modal-form-intro {
        font-size: 0.9rem;
    }

    .booking-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 0;
    }

    .booking-modal-close {
        top: 1.5rem;
        right: 1.5rem;
        font-size: 2.5rem;
        width: 2.5rem;
        height: 2.5rem;
    }

    /* Footer mobile styles */
    footer {
        padding: 3rem 0 1.5rem;
        margin-top: 4rem;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-brand {
        align-items: center;
        text-align: center;
    }

    .footer-nav {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-nav h4 {
        text-align: center;
    }

    .footer-nav nav {
        align-items: center;
        gap: 1rem;
    }

    .footer-nav nav a {
        width: auto;
        text-align: center;
    }

    .footer-nav nav a.primary-button {
        align-self: center;
    }

    .footer-social {
        text-align: center;
    }

    .footer-social h4 {
        margin-bottom: 1.25rem;
    }

    .social-links {
        justify-content: center;
        gap: 1.5rem;
    }
}

/* ================================
   TABLET (min-width: 769px and max-width: 1023px)
   ================================ */

@media (min-width: 769px) and (max-width: 1023px) {
    .container {
        width: 95%;
        max-width: 900px;
    }

    .spacer {
        margin: 8rem auto;
    }

    h1 {
        font-size: 2.3rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    /* Hide hamburger menu on tablet */
    .hamburger-menu {
        display: none !important;
    }

    /* Reset header to normal flow */
    header {
        position: static !important;
        background-color: var(--color-bg-main) !important;
        border-bottom: none !important;
    }

    header .container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 20px 0 !important;
        width: auto !important;
    }

    /* Navigation horizontal on tablet */
    .nav-menu {
        position: static !important;
        max-height: none !important;
        padding: 0 !important;
        border-bottom: none !important;
        flex-direction: row !important;
        background-color: transparent !important;
        top: auto !important;
        z-index: auto !important;
    }

    .nav-menu a {
        display: inline-block !important;
        border-bottom: none !important;
        padding: 0 !important;
        margin-left: 1.5rem !important;
        border: none !important;
    }

    body {
        padding-top: 0 !important;
    }

    /* Hero Section */
    #hero-section {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        min-height: 70vh; /* Reduced height for tablet */
    }

    /* Gallery */
    .gallery-images {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    /* Lightbox adjustments for tablet */
    .lightbox-close {
        top: 1.5rem;
        right: 1.5rem;
        width: 2.25rem;
        height: 2.25rem;
        font-size: 2.25rem;
    }

    .lightbox-prev,
    .lightbox-next {
        padding: 0.75rem;
        font-size: 2.75rem;
    }

    .lightbox-prev {
        left: 1rem;
    }

    .lightbox-next {
        right: 1rem;
    }

    /* Services Cards */
    #services-cards {
        grid-template-columns: 1fr 1fr;
    }

    /* Creators Section */
    #creators-section {
        display: flex;
        flex-direction: row;
        gap: 1.5rem;
    }

    .creators-image {
        flex: 0 0 40%;
    }

    .creators-text {
        padding: 0;
    }

    /* Contact Form Responsive - Tablet */
    .contact-form {
        max-width: 700px;
    }

    .form-row {
        gap: 1.25rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 0.95rem;
    }

    /* Booking Modal Responsive - Tablet */
    .booking-modal-content {
        max-width: 95%;
        margin: 1.5rem auto;
    }

    .booking-modal-package {
        padding: 3rem;
    }

    .booking-modal-form-section {
        padding: 3rem;
    }

    .booking-modal-package h2 {
        font-size: 2rem;
    }

    .booking-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 0;
    }

    /* Footer tablet styles */
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
        text-align: left;
        align-items: flex-start;
    }
}

/* ================================
   MOBILE EXTRA SMALL (max-width: 480px)
   ================================ */

@media (max-width: 480px) {
    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 0.85rem;
    }

    p {
        font-size: 0.9rem;
    }

    .primary-button {
        width: 100%;
        padding: 0.8rem 0;
        font-size: 1rem;
    }

    .container {
        padding: 0 12px;
    }

    header .container {
        padding: 12px !important;
        box-sizing: border-box;
    }

    header img {
        height: 28px;
    }

    body {
        padding-top: 0 !important;
    }

    .nav-menu {
        top: 52px;
    }

    .nav-menu.active {
        max-height: calc(100vh - 52px);
    }

    #hero-section h1 {
        margin: 0.8rem 0;
    }

    #hero-section p {
        margin-bottom: 1.5rem;
    }

    .gallery-images {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }

    .gallery-slot {
        aspect-ratio: 1 / 1;
    }

    /* Lightbox for small mobile */
    .lightbox-close {
        top: 0.5rem;
        right: 0.5rem;
        width: 1.75rem;
        height: 1.75rem;
        font-size: 1.75rem;
        opacity: 1 !important;
    }

    .lightbox-prev,
    .lightbox-next {
        display: none !important;
    }

    .lightbox-counter {
        bottom: 0.5rem;
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }

    #lightbox-image {
        max-width: 98%;
        max-height: 80%;
    }

    .service-card {
        padding: 1rem;
    }

    .service-card h2 {
        font-size: 1.1rem;
    }

    #final-cta-section {
        padding: 2rem 0;
    }

    .final-cta-section-content h2 {
        font-size: 1.75rem;
    }

    /* Footer small mobile styles */
    footer {
        padding: 2.5rem 0 1.5rem;
        margin-top: 3rem;
    }

    .footer-top {
        gap: 2.5rem;
    }

    .footer-brand img {
        height: 32px;
    }

    .footer-tagline {
        font-size: 0.875rem;
    }

    .footer-nav h4,
    .footer-social h4 {
        font-size: 0.8rem;
    }

    .footer-nav nav {
        gap: 1rem;
    }

    .social-links {
        gap: 1.5rem;
    }

    .social-links a {
        width: 44px;
        height: 44px;
    }

    .social-links a svg {
        width: 20px;
        height: 20px;
    }

    .footer-bottom p {
        font-size: 0.8rem;
    }
}

/* ================================
   LANDSCAPE MODE ADJUSTMENTS
   ================================ */

@media (max-height: 600px) and (orientation: landscape) {
    #hero-section {
        margin: 2rem auto;
    }

    .spacer {
        margin: 3rem auto;
    }

    #final-cta-section {
        padding: 2rem 0;
        min-height: auto;
    }

    /* Lightbox in landscape - maximize image viewing */
    #lightbox-image {
        max-width: 85%;
        max-height: 90%;
    }

    .lightbox-counter {
        bottom: 0.5rem;
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }

    .lightbox-close {
        top: 0.5rem;
        right: 0.5rem;
        width: 1.75rem;
        height: 1.75rem;
        font-size: 1.75rem;
    }

    .lightbox-prev,
    .lightbox-next {
        padding: 0.4rem;
        font-size: 2rem;
        opacity: 1 !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    .lightbox-prev {
        left: 0.5rem;
    }

    .lightbox-next {
        right: 0.5rem;
    }
}

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

/* ================================
   DESKTOP (1024px+)
   ================================ */

@media (min-width: 1024px) {
    /* Hide hamburger menu on desktop */
    .hamburger-menu {
        display: none !important;
    }

    /* Reset header to static and original styles */
    header {
        position: static !important;
        background-color: var(--color-bg-main) !important;
        border-bottom: none !important;
        width: auto !important;
        padding: 20px 0 !important;
        z-index: auto !important;
        margin: 0 !important;
    }

    header .container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 20px 0 !important;
        width: 1200px !important;
        max-width: 1200px !important;
        margin: 0 auto !important;
    }

    /* Reset body padding */
    body {
        padding-top: 0 !important;
    }

    /* Navigation back to horizontal */
    .nav-menu {
        position: static !important;
        display: flex !important;
        flex-direction: row !important;
        max-height: none !important;
        padding: 0 !important;
        border-bottom: none !important;
        background-color: transparent !important;
        gap: 2rem !important;
        z-index: auto !important;
        top: auto !important;
    }

    .nav-menu a {
        display: inline-block !important;
        padding: 0 !important;
        margin-left: 2rem !important;
        border-bottom: none !important;
        border: none !important;
        font-family: "Inter", sans-serif !important;
        font-weight: 500 !important;
        font-size: 1rem !important;
        text-transform: uppercase !important;
    }

    .nav-menu a:not(.primary-button) {
        background-color: transparent !important;
        color: #000 !important;
    }

    .nav-menu a:first-child {
        margin-left: 0 !important;
    }

    .nav-menu .primary-button {
        width: 16rem !important;
        /*margin: 0 !important;*/
        padding: 1rem 0 !important;
        display: block !important;
        background-color: var(--color-button-primary) !important;
        color: var(--color-button-text) !important;
        transition: background-color 0.3s ease !important;
    }

    .nav-menu .primary-button:hover {
        background-color: var(--color-button-primary-hover) !important;
    }

    /* Hero Section - Properly centered on desktop */
    #hero-section {
        min-height: calc(100vh - 110px); /* Full viewport height minus header */
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: 4rem;
    }

    #hero-section > div:first-child {
        justify-self: end;
    }

    #hero-section > div:last-child {
        justify-self: start;
    }

    /* Philosophy Section - Reset margin on desktop */
    #philosophy-section {
        margin-top: 0 !important;
    }
}

@media print {
    .nav-menu {
        display: none;
    }

    .hamburger-menu {
        display: none;
    }

    header {
        position: static;
    }

    body {
        padding-top: 0;
    }

    .primary-button {
        page-break-inside: avoid;
    }
}
