/* Offcanvas */
.offcanvas-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 999;
}

.offcanvas-backdrop.active { opacity: 1; pointer-events: auto; }

.offcanvas {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 360px;
    height: 100vh;
    background: var(--white);
    box-shadow: -12px 0 24px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.offcanvas.active { right: 0; }

@media (max-width: 768px) {
    .offcanvas {
        width: 100%;
        max-width: none;
    }
}

.offcanvas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}

.offcanvas-close {
    background: transparent;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: var(--dark-gray);
}

.offcanvas-nav {
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 16px;
}

.offcanvas-nav a {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-gray);
    text-decoration: none;
}
/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevent horizontal scrolling on mobile */
html, body {
    overflow-x: hidden;
    width: 100%;
}

/* Reserve space for fixed header (updated via JS on load/resize) */
body { padding-top: var(--header-offset, 96px); }

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Gallery Modal */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

/* Center the modal vertically & horizontally when open */
.gallery-modal.open {
    display: grid;
    place-items: center;
    padding: 24px 0; /* keep some breathing room on very small screens */
}

.gallery-modal-content {
    position: relative;
    margin: 0 auto; /* center within grid */
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    background-color: white;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.gallery-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    font-weight: bold;
    color: var(--dark-gray);
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
}

.gallery-close:hover {
    color: var(--primary-orange);
}

.gallery-header {
    padding: 30px 40px 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.gallery-header h3 {
    font-family: 'Config Condensed', sans-serif;
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 8px;
    color: var(--dark-gray);
}

.gallery-subtitle {
    font-family: 'Config Condensed', sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: var(--primary-orange);
    margin: 0 0 8px 0;
}

.gallery-header p:not(.gallery-subtitle) {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: var(--text-gray);
    margin: 0;
}

.gallery-container {
    display: flex;
    flex-direction: column;
}

.gallery-main-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f8f8;
    overflow: hidden;
    position: relative;
}

/* Case page gallery specific height */
.gallery-section .gallery-main-image {
    flex: none;
    min-height: 50vh; /* Minimum height for consistent display */
    max-height: 80vh; /* Maximum height to prevent overflow */
    height: auto; /* Allow height to scale with image */
    margin-bottom: 30px;
    display: block; /* Change to block to ensure proper height calculation */
    position: relative; /* Ensure proper positioning context for nav buttons */
    width: 100%;
}

.gallery-main-image {
    position: relative;
}

.gallery-main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    width: auto;
    height: auto;
    opacity: 0;
    transition: opacity 220ms ease;
}

.gallery-section .gallery-main-image img {
    max-height: 80vh; /* Match container max-height */
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.gallery-main-image img.is-loaded { opacity: 1; }

.gallery-main-image img.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
}

.gallery-main-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #f0f0f0;
    border-top: 3px solid var(--primary-orange);
    border-radius: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.gallery-main-image.loading::before {
    opacity: 1;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes loading-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.gallery-nav-overlay {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 48px;
    width: 80px;
    height: 80px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    /* Ensure buttons stay within image bounds */
    max-height: calc(100% - 40px);
    /* Position buttons relative to the image container */
    left: 20px;
    right: auto;
}

.gallery-next-overlay {
    left: auto;
    right: 20px;
}

.gallery-nav-overlay:hover {
    background-color: rgba(247, 161, 28, 0.8);
}


/* Auto-hide controls on desktop */
@media (hover: hover) and (pointer: fine) {
    .gallery-nav-overlay { opacity: 0; }
    .gallery-main-image:hover .gallery-nav-overlay { opacity: 1; }
}

.gallery-thumbnails {
    display: flex;
    align-items: center;
    padding: 20px;
    background-color: white;
    border-top: 1px solid #eee;
    gap: 15px;
    visibility: visible;
}

.gallery-nav {
    background: none;
    border: 2px solid var(--primary-orange);
    color: var(--primary-orange);
    font-size: 18px;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 0;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.gallery-nav:hover {
    background-color: var(--primary-orange);
    color: white;
}

.gallery-thumbs-container {
    display: flex;
    gap: clamp(6px, 1.2vw, 12px);
    overflow-x: auto;
    scroll-behavior: smooth;
    flex: 1;
    padding: 6px 0;
    justify-content: center;
}
.gallery-thumbs-container::-webkit-scrollbar { height: 8px; }
.gallery-thumbs-container::-webkit-scrollbar-thumb { background: #ddd; }
.gallery-thumbs-container { scrollbar-color: #ddd transparent; scrollbar-width: thin; }

.gallery-thumb-container {
    display: inline-block;
}

.gallery-thumb {
    width: 80px; /* Fixed width for consistent display */
    height: 60px; /* Fixed height for consistent display regardless of image format */
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 0;
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, opacity 0.3s ease;
    flex-shrink: 0;
    opacity: 0;
}

.gallery-thumb.loading-thumb {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: thumb-loading-shimmer 1.5s infinite;
}

.gallery-thumb.loaded-thumb {
    opacity: 1;
}

.gallery-thumb:hover,
.gallery-thumb.active {
    border-color: var(--primary-orange);
    transform: scale(1.05);
}

@keyframes thumb-loading-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #1d1d1b;
    overflow-x: hidden;
}

/* Color Variables */
:root {
    --primary-orange: #f7a81c;
    --dark-gray: #1d1d1b;
    --light-gray: #d9d9d9;
    --white: #ffffff;
    --black: #000000;
    --text-light: rgba(255, 255, 255, 0.6);
    --overlay-dark: rgba(0, 0, 0, 0.4);
    --overlay-light: rgba(0, 0, 0, 0.1);
    --overlay-medium: rgba(0, 0, 0, 0.3);
    --header-height: 88px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: normal;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Button Styles */
.btn {
    padding: 16px 40px;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-orange);
    color: var(--dark-gray);
}

.btn-primary:hover {
    background-color: #e6950a;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid white;
    color: white;
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-outline-black {
    background-color: transparent;
    border: 1px solid var(--black);
    color: var(--black);
}

.btn-outline-black:hover {
    background-color: var(--black);
    color: var(--white);
}

.btn-outline-dark {
    background-color: transparent;
    border: 1px solid var(--dark-gray);
    color: var(--dark-gray);
}

.btn-outline-dark:hover {
    background-color: var(--dark-gray);
    color: var(--white);
    transform: translateY(-2px);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    padding: 16px 80px;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    transition: box-shadow 220ms ease, background-color 220ms ease, transform 220ms ease;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    height: 80px;
    padding: 0 80px;
}

/* subtle shadow after scrolling */
.header.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo a {
    display: block;
    text-decoration: none;
}

.logo img {
    height: 32px;
    width: auto;
}

.nav {
    display: flex;
    gap: 25px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--dark-gray);
    cursor: pointer;
}

.nav a {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: var(--dark-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: var(--primary-orange);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.account-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

.account-icon:hover {
    opacity: 0.7;
}

/* Hero Section */
.hero {
    position: relative;
    margin-top: 0; /* header is sticky, no manual offset */
    height: 70vh;
    width: 100%;
    overflow: hidden;
    background: url('assets/Media-Ocquet-scaled.webp') no-repeat center center;
    background-size: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: var(--overlay-dark);
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 80px;
    right: 80px;
    padding-bottom: 88px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    color: var(--white);
    gap: 16px;
}

.hero-text h1 {
    font-family: 'Config Condensed', sans-serif;
    font-size: clamp(36px, 6vw, 80px);
    font-weight: 400;
    line-height: clamp(40px, 6.2vw, 78px);
    margin-bottom: 26px;
    max-width: 676px;
    color: var(--white);
}

.hero-text p {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(16px, 2.2vw, 24px);
    color: var(--white);
    max-width: 676px;
}

.hero-buttons {
    display: flex;
    gap: 24px;
    align-items: center;
}


/* Services Section */
.services {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 50px 80px !important;
}

.services-content {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-family: 'Config Condensed', sans-serif;
    font-size: 36px;
    font-weight: 400;
    margin-bottom: 6px;
}

.section-subtitle {
    font-family: 'Config Condensed', sans-serif;
    font-size: 56px;
    font-weight: 400;
    margin-bottom: 16px;
}

.section-header p {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    color: var(--text-light);
    max-width: 553px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: clamp(20px, 5vw, 86px);
    margin-bottom: 40px;
    justify-content: center;
    justify-items: center;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.service-card {
    position: relative;
    width: 640px;
    height: 410px;
    border: 1px solid var(--white);
    overflow: hidden;
}

.service-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.3);
}

.service-content {
    position: absolute;
    bottom: 32px;
    left: 32px;
    right: 32px;
}

.service-content h4 {
    font-family: 'Config Condensed', sans-serif;
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 17px;
    margin-top: 20px;
    color: var(--white);
}

.service-tags {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tag {
    background-color: rgba(255, 255, 255, 0.12);
    padding: 5px 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: var(--white);
    display: inline-block;
    width: fit-content;
}

.services-buttons {
    display: flex;
    gap: 24px;
    justify-content: center;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: fit-content;
}

/* Logo Marquee */
.logo-marquee {
    min-height: 120px;
    overflow: hidden;
    position: relative;
}

.marquee-container {
    position: relative;
    top: auto;
    left: 0;
    width: 200%;
    height: auto;
    animation: scroll 30s linear infinite;
}

.marquee-content {
    display: flex;
    gap: 0px;
    width: 200%;
    align-items: center;
}

.logo-item {
    width: 300px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 25px;
}

.logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Cases Section */
.cases {
    background-color: var(--white);
    padding: 50px 80px !important;
    color: var(--dark-gray);
    position: relative;
}

.cases-content {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    position: relative;
    z-index: 10;
    background-color: var(--white);
    border: 1px solid #e0e0e0;
}

.section-title-dark {
    color: var(--dark-gray);
}

.cases-content p {
    color: var(--dark-gray) !important;
}

.cases iframe {
    width: 100%;
    border: none;
    overflow: hidden;
    position: relative;
    z-index: 1;
    margin-bottom: 77px;
}

.case-item {
    display: flex;
    flex-direction: column;
    gap: 33px;
}

.case-image {
    height: 388px;
    background-color: var(--light-gray);
    position: relative;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-view-btn {
    position: absolute;
    top: 60px;
    left: 32px;
    background-color: var(--primary-orange);
    padding: 10px;
    font-family: 'Config Condensed', sans-serif;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 1.8px;
    color: var(--dark-gray);
    text-transform: uppercase;
}

.case-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.company-name {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: var(--dark-gray);
}

.case-type {
    padding: 10px;
    font-family: 'Config Condensed', sans-serif;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--dark-gray);
}

.case-type.immo {
    background-color: var(--primary-orange);
}

.case-type.social {
    background-color: var(--primary-orange);
}

.cases-buttons {
    display: flex;
    gap: 24px;
    justify-content: center;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: fit-content;
}

/* New cases design */
.cases-header {
    text-align: center;
    margin-bottom: 77px;
}

.cases-title {
    font-family: 'Config Condensed', sans-serif;
    font-size: 36px;
    font-weight: 400;
    line-height: 56px;
    margin-bottom: 6px;
}

.cases-subtitle {
    font-family: 'Config Condensed', sans-serif;
    font-size: 56px;
    font-weight: 400;
    line-height: normal;
    margin-bottom: 16px;
}

.cases-description {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    line-height: normal;
    max-width: 553px;
    margin: 0 auto;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(28px, 5vw, 86px);
    margin-bottom: clamp(48px, 6vw, 88px);
    max-width: 1326px;
    margin-left: auto;
    margin-right: auto;
}

.case-card {
    display: flex;
    flex-direction: column;
    gap: 33px;
}

.case-image {
    width: 100%;
    height: 388px;
    background-color: #d9d9d9;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.case-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.case-image:hover img {
    transform: scale(1.05);
}

.case-overlay {
    position: absolute;
    top: 32px;
    left: 32px;
    background-color: var(--primary-orange);
    padding: 40px 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-view-text {
    font-family: 'Config Condensed', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: var(--dark-gray);
    letter-spacing: 1.8px;
}

.case-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.case-company {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 400;
    margin: 0;
}

.case-tag {
    padding: 10px 10px 10px 10px;
    font-family: 'Config Condensed', sans-serif;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 1.8px;
    color: white;
}

.case-tag-immo,
.case-tag-social {
    background-color: #333333;
}

/* Drone Section */
.drone {
    position: relative;
    height: 886px;
    background: url('assets/drone-bg.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 88px 80px;
}

.drone-content {
    color: var(--white);
}

.drone-play {
    position: absolute;
    top: 409px;
    left: 722px;
    width: 68px;
    height: 68px;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.drone-play:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.drone-play svg {
    width: 24px;
    height: 24px;
    color: var(--white);
}

.drone-buttons {
    display: flex;
    gap: 24px;
    justify-content: center;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: fit-content;
}

/* Reviews Section */
.reviews {
    background-color: var(--white);
    padding: 50px 80px !important;
    color: var(--dark-gray);
}

.reviews-content {
    text-align: center;
    margin-bottom: 40px;
}

.reviews .section-header p {
    color: var(--dark-gray);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(16px, 4vw, 65px);
    margin-bottom: 77px;
    align-items: stretch;
}

.review-card {
    background-color: var(--light-gray);
    padding: 24px;
    width: 100%;
    display: grid;
    grid-template-rows: auto auto 1fr;
    row-gap: 12px;
    align-items: start;
    text-align: left;
    transition: transform 0.3s ease;
    position: relative;
    height: 100%;
}

.review-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    z-index: 1;
}

.review-card > * { position: relative; z-index: 2; }

.review-card:hover {
    transform: translateY(-8px);
}

.reviewer-avatar {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 0;
    transition: transform 0.3s ease;
}

.review-card:hover .reviewer-avatar {
    transform: scale(1.05);
}

.reviewer-avatar.large {
    width: 90px;
    height: 90px;
}

.review-text {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    color: var(--dark-gray);
    line-height: 1.5;
    margin: 0;
    font-weight: 400;
}

.review-text strong {
    font-weight: 600;
    color: var(--black);
    font-size: 16px;
    display: block;
    margin-bottom: 8px;
    align-self: start;
}

.reviews-buttons {
    display: flex;
    gap: 24px;
    justify-content: center;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: fit-content;
}

/* Contact Section */
.contact {
    background-color: var(--dark-gray);
    padding: 142px 0;
    color: var(--white);
    margin-top: 50px;
    position: relative;
    z-index: 2;
}

.contact-content {
    max-width: 1512px;
    margin: 0 auto;
    padding: 0 80px;
}

.contact-header {
    margin-bottom: 49px;
}

.contact-header h2 {
    font-family: 'Config Condensed', sans-serif;
    font-size: 56px;
    font-weight: 400;
    margin-bottom: 8px;
}

.contact-header p {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    color: var(--text-light);
}

.contact-form {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 60px 80px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-orange);
}

.form-row {
    display: flex;
    gap: 65px;
    margin-bottom: 64px;
}

.form-section {
    flex: 1;
}

.form-section h3 {
    font-family: 'Config Condensed', sans-serif;
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 32px;
    color: var(--white);
    position: relative;
    padding-bottom: 12px;
}

.form-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-orange);
}

.form-group {
    margin-bottom: 32px;
    position: relative;
}

.form-group label {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.required {
    color: #ff4757;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: #2c3e50;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(247, 161, 28, 0.2);
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
}

.form-group input::placeholder,
.form-group select::placeholder,
.form-group textarea::placeholder {
    color: #95a5a6;
    font-style: italic;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 48px;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

.form-group textarea:focus {
    min-height: 140px;
}

.form-submit {
    text-align: center;
    margin-top: 20px;
}

/* FAQ Section */
.faq {
    padding: 80px 20px;
    background-color: var(--white);
}

.faq-content {
    max-width: 1512px;
    margin: 0 auto 60px;
    text-align: center;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    margin-bottom: 8px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    padding: 20px 30px;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--black);
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.08);
}

.faq-question span {
    flex: 1;
}

.faq-icon {
    color: var(--primary-orange);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-gray);
    margin: 0;
    padding: 0 30px 25px 30px;
}

/* Footer */
.footer {
    background-color: var(--white);
    padding: 90px 80px 0;
}


.footer-main {
    display: flex;
    justify-content: space-between;
    margin-bottom: 90px;
    overflow: hidden;
    max-width: 1512px;
    margin-left: auto;
    margin-right: auto;
}

.footer-logo img {
    height: 48px;
    width: auto;
    max-width: 100%;
    margin-bottom: 10px;
}

.social-links {
    display: flex;
    gap: 8px;
}

.social-link {
    color: var(--dark-gray);
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--primary-orange);
}

.footer-contact h4,
.footer-address h4 {
    background-color: var(--primary-orange);
    padding: 10px;
    font-family: 'Config Condensed', sans-serif;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--dark-gray);
    margin-bottom: 24px;
    display: inline-block;
}

.footer-contact .contact-info,
.footer-address .address-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-contact a {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: var(--dark-gray);
    text-decoration: underline;
    cursor: pointer;
}

.footer-address p {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: var(--dark-gray);
    text-decoration: none;
}

.footer-bottom {
    display: flex;
    gap: 32px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: var(--dark-gray);
    padding-bottom: 90px;
    flex-wrap: wrap;
    max-width: 1512px;
    margin-left: auto;
    margin-right: auto;
}

.footer-bottom a {
    color: var(--dark-gray);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--primary-orange);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .header {
        width: 100%;
        left: 0;
        transform: none;
        --header-height: calc(16px * 2 + 32px); /* vertical padding * 2 + logo height */
    }
    .header-content {
        padding: 16px 20px;
        height: auto;
    }

    .breadcrumbs {
        padding: 15px 20px;
    }

    .hero-content,
    .services,
    .cases,
    .contact-content,
    .footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .cases iframe {
        height: 500px !important;
        border-radius: 0;
    }

    .service-card,
    .case-item {
        width: 100%;
        max-width: 680px;
    }

    .form-row {
        flex-direction: column;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 24px;
    }

    .review-card {
        margin-bottom: 20px;
        width: 100%;
        max-width: 320px;
        padding: 20px;
    }

    .review-text {
        font-size: 14px;
    }

    .review-text strong {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        padding: 16px 20px; /* Add padding back to header for full width */
    }
    .header-content {
        padding: 0; /* Remove padding from content, let header handle it */
        height: 70px;
        justify-content: space-between; /* Ensure logo and menu button are properly spaced */
    }
    .nav,
    .header-actions { display: none; }
    .mobile-menu-btn { display: inline-flex; }
    .hero {
        height: auto;
        min-height: 50vh;
        padding: 20px 20px 40px;
        margin-top: 0;
    }

    .hero-content {
        position: relative;
        inset: auto;
        padding: 20px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .hero-text {
        max-width: 90vw;
        margin: 0 auto 12px auto;
    }

    .hero-text p {
        max-width: 90vw;
        margin: 0 auto;
    }
    .services {
        padding: 50px 20px !important;
    }

    .services-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .cases {
        padding: 50px 20px !important;
    }

    .reviews {
        padding: 50px 15px !important;
    }

    .cases-grid {
        grid-template-columns: 1fr;
        gap: clamp(16px, 5vw, 36px);
        margin-bottom: clamp(40px, 8vw, 80px);
    }

    .case-card {
        gap: clamp(12px, 2vw, 20px);
    }

    .case-image {
        height: clamp(220px, 28vw, 360px);
    }

    .case-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .case-overlay {
        padding: 20px 16px;
    }

    .case-view-text {
        font-size: 14px;
    }

    .cases-subtitle {
        font-size: 36px;
        line-height: 1.1;
    }

    .cases-description {
        font-size: 16px;
        max-width: 90vw;
    }

    /* Gallery mobile styles */
    .gallery-modal-content {
        width: 95%;
        margin: 0 auto; /* still centered in grid */
        max-height: 95vh;
    }

    .gallery-header {
        padding: 20px 20px 15px;
    }

    .gallery-header h3 {
        font-size: 24px;
    }


    .gallery-thumbnails {
        padding: 15px;
        gap: 10px;
    }

    .gallery-nav {
        padding: 8px 12px;
        font-size: 16px;
    }

    .gallery-thumb {
        width: 60px; /* Consistent width for mobile */
        height: 45px; /* Consistent height for mobile regardless of image format */
    }

    .gallery-nav-overlay {
        width: 60px;
        height: 60px;
        font-size: 36px;
    }

    .contact {
        padding: 100px 0;
    }

    .contact-header h2 {
        font-size: 36px;
        line-height: 1.1;
    }

    .logo-marquee {
        height: auto;
    }

    .marquee-container {
        min-height: 120px;
        height: auto;
        left: 0;
        width: 240%;
    }

    .logo-item {
        width: 320px;
        height: 120px;
    }

    .hero-text h1 {
        font-size: clamp(38px, 10vw, 52px);
        line-height: 1.1;
    }

    .hero-text p {
        font-size: 18px;
    }

    .section-subtitle {
        font-size: 36px;
    }

    .hero-buttons,
    .services-buttons,
    .cases-buttons,
    .drone-buttons,
    .reviews-buttons {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .btn {
        width: 100%;
        max-width: 320px;
        padding: 14px 24px;
        font-size: 14px;
    }

    .nav {
        display: none;
    }


    .footer-main {
        flex-direction: column;
        gap: 40px;
        overflow: hidden;
    }

    .footer {
        padding: 60px 20px 40px;
    }

    .contact-form {
        padding: 24px 16px;
    }

    .form-row {
        flex-direction: column;
        gap: 24px;
        margin-bottom: 24px;
    }

    .form-section h3 {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .form-group {
        margin-bottom: 24px;
    }

    .faq {
        padding: 40px 15px;
    }

    .faq-accordion {
        max-width: 100%;
        padding: 0 5px;
    }

    .faq-question {
        padding: 14px 16px;
        font-size: 14px;
    }

    .faq-answer p {
        padding: 0 16px 16px 16px;
        font-size: 13px;
    }

    .faq-icon {
        width: 18px;
        height: 18px;
    }
}

/* Policy Pages */
.policy-content {
    padding: 80px 20px;
    background-color: var(--white);
    min-height: calc(100vh - 360px); /* Account for header and footer */
}

.policy-container {
    max-width: 800px;
    margin: 0 auto;
}

.policy-container h1 {
    font-family: 'Config Condensed', sans-serif;
    font-size: 48px;
    font-weight: 400;
    color: var(--dark-gray);
    margin-bottom: 40px;
    text-align: center;
}

.policy-section {
    margin-bottom: 40px;
}

.policy-section h2 {
    font-family: 'Config Condensed', sans-serif;
    font-size: 32px;
    font-weight: 400;
    color: var(--dark-gray);
    margin-bottom: 20px;
}

.policy-section h3 {
    font-family: 'Config Condensed', sans-serif;
    font-size: 24px;
    font-weight: 400;
    color: var(--dark-gray);
    margin: 30px 0 15px 0;
}

.policy-section p {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-gray);
    margin-bottom: 15px;
}

.policy-section ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.policy-section li {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-gray);
    margin-bottom: 8px;
}

.policy-section a {
    color: var(--primary-orange);
    text-decoration: underline;
}

.policy-section a:hover {
    text-decoration: none;
}

.policy-footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.policy-footer p {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.policy-footer a {
    color: var(--primary-orange);
    text-decoration: none;
}

.policy-footer a:hover {
    text-decoration: underline;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    position: relative;
    background-color: var(--white);
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease-out;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: var(--dark-gray);
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--primary-orange);
}

.modal-body {
    display: none;
    padding: 40px;
}

.modal-body.active {
    display: block;
}

.modal-image {
    width: 100%;
    height: 250px;
    margin-bottom: 30px;
    padding-top: 20px;
    overflow: hidden;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-text {
    line-height: 1.6;
}

.modal-text h3 {
    color: var(--dark-gray);
    margin: 30px 0 15px 0;
    font-size: 20px;
}

.modal-text ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.modal-text li {
    margin-bottom: 10px;
    color: var(--dark-gray);
}

.modal-actions {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Service cards clickable */
.service-card {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    border-top: 2px solid var(--primary-orange);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 99999;
    display: block;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    padding: 20px 0;
}

.cookie-banner.show {
    display: block !important;
    transform: translateY(0) !important;
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-banner-text h3 {
    font-family: 'Config Condensed', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: var(--dark-gray);
    margin: 0 0 8px 0;
}

.cookie-banner-text p {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: var(--text-gray);
    margin: 0;
    line-height: 1.4;
}

.cookie-banner-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-policy-link {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.cookie-policy-link:hover {
    color: var(--dark-gray);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .cookie-banner-buttons {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }

    .cookie-banner-buttons .btn {
        width: 100%;
        max-width: 200px;
    }

    .cookie-policy-link {
        margin-top: 8px;
    }
}

/* Breadcrumbs */
.breadcrumbs {
    background-color: var(--white);
    padding: 20px 80px;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumbs-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: var(--text-gray);
}

.breadcrumbs a {
    color: var(--primary-orange);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: var(--dark-gray);
    text-decoration: underline;
}

.breadcrumb-separator {
    color: var(--text-gray);
    font-weight: 300;
}

.breadcrumb-current {
    color: var(--dark-gray);
    font-weight: 500;
}

/* Custom font faces for Config Condensed - Fallback to system fonts if local fonts fail */
@font-face {
    font-family: 'Config Condensed';
    src: url('fonts/config-condensed/ConfigCondensedRegular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Config Condensed';
    src: url('fonts/config-condensed/ConfigCondensedExtraLight.otf') format('opentype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Config Condensed';
    src: url('fonts/config-condensed/ConfigCondensedLight.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Config Condensed';
    src: url('fonts/config-condensed/ConfigCondensedMedium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Config Condensed';
    src: url('fonts/config-condensed/ConfigCondensedSemiBold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Config Condensed';
    src: url('fonts/config-condensed/ConfigCondensedBold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Fallback font stack if Config Condensed fails to load */
body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Config Condensed', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.gallery-description {
    padding: 24px 24px 24px 0;
    background-color: white;
}

/* Case page gallery section */
.gallery-section {
    background-color: var(--white);
    padding: clamp(40px, 6vw, 72px) 0 clamp(60px, 10vw, 120px);
    color: var(--dark-gray);
    position: relative;
    z-index: 1;
    min-height: auto;
    overflow: hidden;
    /* Ensure section expands for tall images */
    display: block;
    /* Force section to contain all content */
    height: auto;
    /* Ensure proper stacking context */
    contain: none;
}

.gallery-section .gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    display: grid; /* Use CSS Grid for better column control */
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    gap: 50px;
    align-items: start;
}

.gallery-section .gallery-header {
    text-align: left; /* Change from center to left for right column */
    margin-bottom: 12px;
    border: none;
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align to left */
    justify-content: flex-start;
    flex: 1; /* Take available space in right column */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.gallery-section .gallery-header h2 {
    font-family: 'Config Condensed', sans-serif;
    font-size: clamp(28px, 4.2vw, 48px);
    font-weight: 400;
    margin-bottom: 16px;
    color: var(--dark-gray);
    text-align: left; /* Align to left for right column */
}

.gallery-section .gallery-description {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(14px, 2.2vw, 18px);
    color: var(--dark-gray);
    max-width: none; /* Remove max-width for left alignment */
    margin: 0 0 12px 0; /* Create space before the button */
    line-height: 1.6;
    text-align: left; /* Align to left for right column */
}

/* Two-column layout: Gallery on left, content on right */
.gallery-section .gallery-grid {
    grid-column: 1;
    grid-row: 1 / span 2;
    display: flex;
    flex-direction: column;
}

.gallery-section .gallery-header {
    grid-column: 2;
    grid-row: 1;
}

.gallery-section .gallery-actions {
    grid-column: 2;
    grid-row: 2;
}

.gallery-section .gallery-thumbnails {
    justify-content: center;
    padding: 20px 0 0 0; /* Clean, tight spacing under main image */
    border-top: none; /* Clean look under main image */
    background: transparent; /* Blend with page */
}

.gallery-actions {
    text-align: left; /* Align to left for right column */
    padding: 0; /* Tighten spacing under text */
    margin-top: 0;
    margin-bottom: 0;
    position: relative;
}

.gallery-actions .btn {
    display: inline-block;
}

/* Hide mobile CTA button on desktop */
.gallery-actions-mobile {
    display: none;
}

@media (max-width: 768px) {
    .gallery-section .gallery-container {
        display: flex; /* Switch back to flexbox for mobile */
        flex-direction: column; /* Stack vertically on mobile */
        gap: 30px;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    /* Reset grid properties on mobile */
    .gallery-section .gallery-grid,
    .gallery-section .gallery-main-image,
    .gallery-section .gallery-thumbnails,
    .gallery-section .gallery-header,
    .gallery-section .gallery-actions {
        grid-column: unset;
        grid-row: unset;
    }

    /* Ensure gallery-grid scales to fit content */
    .gallery-section .gallery-grid {
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
    }

    /* Hide gallery-actions in header on mobile */
    .gallery-section .gallery-header .gallery-actions {
        display: none;
    }

    /* Center align content on mobile */
    .gallery-section .gallery-header {
        text-align: center;
        align-items: center;
        padding: 16px;
        margin-bottom: 0;
        border-radius: 12px;
    }

    .gallery-section .gallery-header h2 {
        text-align: center;
        margin-bottom: 12px;
    }

    .gallery-section .gallery-description {
        text-align: center;
        max-width: 100%;
        margin: 0 0 16px 0;
    }

    /* Show mobile CTA button centered on page */
    .gallery-actions-mobile {
        display: block !important;
        text-align: center;
        margin: 30px auto;
    }

    .gallery-section {
        padding-bottom: 20px; /* Reduce bottom padding since CTA is now inline */
        overflow-x: hidden; /* Prevent horizontal scroll */
    }

    .gallery-section .gallery-main-image {
        height: auto; /* Allow flexible height on mobile to prevent layout issues */
        max-height: 50vh; /* Still constrain maximum height */
        min-height: 200px; /* Ensure minimum height for proper display */
        width: 100%; /* Ensure full width */
        overflow: hidden; /* Prevent image overflow */
    }

    .gallery-section .gallery-main-image img {
        width: 100%; /* Force full width on mobile */
        height: auto; /* Maintain aspect ratio */
        max-width: 100%; /* Ensure no overflow */
        object-fit: contain; /* Contain within bounds */
    }

    .gallery-section .gallery-thumbnails {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
        padding: 15px;
        visibility: visible;
        overflow: visible;
    }

    .gallery-thumbs-container {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
        width: 100%;
        overflow: visible;
    }

    /* Ensure navigation buttons don't cause overflow on mobile */
    .gallery-nav-overlay {
        width: 60px; /* Smaller buttons on mobile */
        height: 60px;
        font-size: 36px;
        left: 10px;
    }

    .gallery-next-overlay {
        left: auto;
        right: 10px;
    }
}

.gallery-description h4 {
    font-family: 'Config Condensed', sans-serif;
    font-size: 24px;
    margin: 0 0 8px 0;
    color: var(--dark-gray);
}

.gallery-description p {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: var(--dark-gray);
    margin: 0 0 16px 0;
    line-height: 1.6;
}

.gallery-cta { text-align: center; padding-bottom: 12px; }

/* Global responsive spacing normalization (safe overrides) */
:root {
    --section-pad-y: clamp(40px, 8vw, 88px);
    --section-pad-x: clamp(20px, 6vw, 80px);
}

/* Standardize top-level sections */
header.header, section.hero, section.services, section.logo-marquee,
section.cases, section.reviews, section.contact, footer.footer {
    box-sizing: border-box;
}

/* Ensure consistent horizontal padding on sections that lacked it */
section.hero,
section.services,
section.cases,
section.reviews,
section.contact {
    padding-left: var(--section-pad-x);
    padding-right: var(--section-pad-x);
}

/* Ensure consistent vertical rhythm where missing or excessive */
section.hero,
section.services,
section.cases,
section.reviews,
section.contact {
    padding-top: var(--section-pad-y);
    padding-bottom: var(--section-pad-y);
}

/* Container max-width normalization */
.container, .breadcrumbs-container, .gallery-section .gallery-container,
.services-content, .cases-content, .reviews-content, .contact .contact-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Thank You Page */
.thank-you {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
}

.thank-you-content {
    max-width: 800px;
    text-align: center;
}

.thank-you-header h1 {
    font-size: clamp(32px, 6vw, 48px);
    color: var(--dark-gray);
    margin-bottom: 16px;
}

.thank-you-header p {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 40px;
}

.thank-you-body {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.thank-you-icon {
    font-size: 64px;
    margin-bottom: 24px;
}

.thank-you-body h2 {
    font-size: 28px;
    color: var(--dark-gray);
    margin-bottom: 24px;
}

.thank-you-body ul {
    list-style: none;
    padding: 0;
    margin-bottom: 32px;
}

.thank-you-body li {
    padding: 8px 0;
    color: var(--text-gray);
    position: relative;
    padding-left: 24px;
}

.thank-you-body li:before {
    content: "✓";
    color: var(--primary-orange);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.thank-you-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Reduce excessive mobile padding in .gallery-section already tuned above */
@media (max-width: 768px) {
    section.hero,
    section.services,
    section.cases,
    section.reviews,
    section.contact,
    section.gallery-section {
        padding-left: clamp(16px, 5vw, 24px);
        padding-right: clamp(16px, 5vw, 24px);
        padding-top: clamp(28px, 7vw, 48px);
        padding-bottom: clamp(28px, 7vw, 48px);
    }

    .thank-you-body {
        padding: 24px;
    }

    .thank-you-actions {
        flex-direction: column;
        align-items: center;
    }

    .thank-you-actions .btn {
        width: 100%;
        max-width: 280px;
    }
}
