/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Root Variables */
:root {
    --color-primary: #1a1a1a;
    --color-secondary: #666666;
    --color-light-gray: #f5f5f5;
    --color-border: #e0e0e0;
    --color-white: #ffffff;
    --color-overlay: rgba(0, 0, 0, 0.4);
    
    --container-max-width: 1200px;
    --container-padding: 24px;
    --section-padding: 120px;
    --section-padding-mobile: 80px;
    
    --transition: all 0.3s ease;
}

/* Base Styles */
html {
    font-size: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 300;
    font-size: 1rem;           /* ~16px base */
    line-height: 1.7;          /* airy copy */
    letter-spacing: 0.1px;     /* subtle polish */
    color: #111;               /* near-black on white */
    background-color: var(--color-white);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
    transition: var(--transition);
}

.skip-link:focus {
    top: 6px;
}

/* Container Utility */
.container {
    max-width: var(--container-max-width);
    margin-inline: auto;
    padding-inline: var(--container-padding);
}

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

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header .lead {
    margin: 0 auto;
    max-width: 60ch;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: "Montserrat", serif;
    font-weight: 500;          /* default for headings */
    line-height: 1.2;
    letter-spacing: 0.2px;
    margin: 0 0 0.6em;
    color: #0a0a0a;
}

/* Hero headline: large, elegant */
.hero h1 {
    font-weight: 600;
    font-size: clamp(2.25rem, 4vw, 4rem);
}


h2 {
    font-size: clamp(1.5rem, 2.4vw, 2.5rem);
    margin-bottom: 0.75em;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1rem;
}

/* Lead paragraph under titles */
.lead {
    font-size: clamp(1.0625rem, 1.2vw, 1.25rem);
    font-weight: 300;
    line-height: 1.8;
}

p {
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.7;
    color: var(--color-secondary);
    max-width: 68ch;
}

/* Nav + small UI text */
.nav, .meta, .footnote, .button, label, input, select, textarea {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 400;
    letter-spacing: 0.2px;
    color: white;
}

.nav {
    background-color: var(--color-primary);
}



/* Responsive ramps for type */
@media (min-width: 768px) {
    body { font-size: 1.0625rem; }          /* ~17px */
}

@media (min-width: 1280px) {
    body { font-size: 1.125rem; }           /* ~18px */
}

/* Consistent measure for readable paragraphs */
.container p {
    max-width: 68ch;
}

/* Tighten lists */
ul, ol { padding-left: 1.2em; }
li { margin: 0.25em 0; }

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-secondary);
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.nav {
    padding: 0.3rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo a {
    display: flex;
    height: min-content;
}

.logo {
    height: 40px;
    width: auto;
    transition: var(--transition);
}

.logo:hover {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 1rem;
    font-weight: 400;
    color: white;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--color-border);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-overlay);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--color-white);
    max-width: 800px;
    padding: 0 var(--container-padding);
}

.hero-logo {
    max-width: 400px;
    width: 80vw;
    height: auto;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.hero-cta-btn {
    display: inline-block;
    background: #051104a3;
    color: var(--color-white);
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(19, 64, 16, 0.3);
    border: 2px solid transparent;
}

.hero-cta-btn:hover {
    background: #051104db;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(19, 64, 16, 0.4);
    color: var(--color-white);
}

.hero-cta-btn:active {
    transform: translateY(0);
}

/* Studio Section */
.studio {
    padding: var(--section-padding) 0;
}

.studio-content {
    max-width: 800px;
    margin: 0 auto;
}

.studio h2 {
    text-align: center;
    margin-bottom: 4rem;
}

.studio-text p {
    margin-bottom: 2rem;
    font-size: 1.125rem;
    line-height: 1.8;
}

.studio-text p:last-child {
    margin-bottom: 0;
}

/* Team Section */
.team-section {
    margin-top: 5rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    margin-top: 3rem;
}

.team-member {
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-member.aos-animate {
    opacity: 1;
    transform: translateY(0);
}

.team-image {
    width: 180px;
    height: 180px;
    margin: 0 auto 2rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transition: var(--transition);
}

.team-image:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.16);
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.team-info {
    max-width: 300px;
    margin: 0 auto;
}

.team-name {
    font-family: "Montserrat", serif;
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.team-role {
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-size: 1rem;
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
    letter-spacing: 0.2px;
}

.team-description {
    font-family: "Montserrat", serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-secondary);
    margin: 0;
}

/* Services Section */
.services {
    padding: var(--section-padding) 0;
}

.services h2 {
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: rgba(26, 26, 26, 0.4);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
    background: rgba(26, 26, 26, 0.95);
}

.service-card-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #134010;
}

.service-card-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-card-icon img {
    width: 48px;
    height: 48px;
    filter: brightness(0) invert(1) opacity(0.8);
    transition: all 0.3s ease;
}

.service-card:hover .service-card-icon img {
    filter: brightness(0) invert(1) opacity(1);
    transform: scale(1.05);
}

.service-card-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--color-white);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.service-card-content p {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Service Card Overlay & CTA */
.service-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.5) 100%);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    pointer-events: none;
}

.service-card:hover .service-card-overlay,
.service-card:focus .service-card-overlay {
    opacity: 1;
    pointer-events: auto;
}

.service-cta-pill {
    background: #263129;
    color: var(--color-white);
    padding: 12px 24px;
    border-radius: 999px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    user-select: none;
}

.service-card:hover .service-cta-pill {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(38, 49, 41, 0.4);
}

/* Focus styles for accessibility */
.service-card:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

.service-card:focus .service-card-overlay {
    opacity: 1;
    pointer-events: auto;
}

/* Map Section */
.map-section {
    padding: 0!important;
    background-color: var(--color-light-gray);
}

.map-container {
    position: relative;
    min-height: 500px; /* Minimum height */
    overflow: hidden;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


/* Contact Section */
.contact {
    padding: var(--section-padding) 0;
    background: linear-gradient(135deg, #f8f6f3 0%, #f0ede8 100%);
}

.contact h2 {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-content {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Contact Form Styles */
.contact-form-container {
    background: #ffffff96;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    padding: 40px;
    position: relative;
}

.contact-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #134010;
    border-radius: 0 0 8px 8px;
}

.form-header {
    text-align: center;
    margin-bottom: 32px;
}

.form-title {
    font-family: 'Montserrat', serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 12px;
    line-height: 1.3;
}

.form-subtitle {
    font-size: 16px;
    color: var(--color-secondary);
    font-weight: 400;
    line-height: 1.5;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    position: relative;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.contact-form label {
    display: block;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 6px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    background: #fafafa;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--color-primary);
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form input[type="tel"]:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #134010;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(19, 64, 16, 0.1);
    transform: translateY(-1px);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #999999;
    font-size: 14px;
}

.contact-form 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='%23666' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

.contact-form select option {
    padding: 8px;
}


.submit-btn {
    background: #134010;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
    margin-top: 8px;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    background: #0f300c;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(19, 64, 16, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Form Messages */
.form-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    text-align: center;
    font-weight: 500;
    font-size: 14px;
}

.form-message.success {
    background: #e8f5e8;
    color: #2d5a2d;
    border: 1px solid #a8d4a8;
}

.form-message.error {
    background: #fdeaea;
    color: #c53030;
    border: 1px solid #f5a3a3;
}

/* Form Validation Errors */
.contact-form input.error,
.contact-form select.error {
    border-color: #e53e3e;
    background: #fef5f5;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.field-error {
    color: #c53030;
    font-size: 12px;
    margin-top: 4px;
    font-family: 'Inter', sans-serif;
}

/* Service preselection highlight */
.service-highlight {
    border-color: #263129 !important;
    background: rgba(38, 49, 41, 0.05) !important;
    box-shadow: 0 0 0 3px rgba(38, 49, 41, 0.1) !important;
    animation: serviceHighlight 1.5s ease-out;
}

@keyframes serviceHighlight {
    0% {
        transform: scale(1.02);
        box-shadow: 0 0 0 5px rgba(38, 49, 41, 0.2);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 3px rgba(38, 49, 41, 0.1);
    }
}

/* Loading state */
.submit-btn.loading {
    background: #666;
    cursor: not-allowed;
}

.submit-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Contact Info */
.contact-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-content: start;
}

.contact-item h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.contact-item p {
    line-height: 1.8;
}

.contact-item a {
    color: var(--color-secondary);
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--color-primary);
}

/* Footer */
.footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 3rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-copyright p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-nav {
    display: flex;
    gap: 2rem;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-nav a:hover {
    color: var(--color-white);
}

/* Responsive Design */
@media (max-width: 1024px) {
    :root {
        --section-padding: 100px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: var(--section-padding-mobile);
        --container-padding: 20px;
    }
    
    body {
        overflow-x: hidden;
    }
    
    .nav-container {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1.5rem;
        flex-wrap: wrap;
    }
    
    .hero-content {
        padding: 0 20px;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    .hero-cta-btn {
        font-size: 15px;
        padding: 14px 28px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        width: 100%;
        max-width: 100%;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        width: 100%;
        max-width: 100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .contact-form-container {
        padding: 32px 24px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .form-title {
        font-size: 22px;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .team-section {
        margin-top: 4rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .team-image {
        width: 160px;
        height: 160px;
        margin-bottom: 1.5rem;
    }
    
    .team-name {
        font-size: 1.375rem;
    }
    
    .team-role {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }
    
    .team-description {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-nav {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }
    
    .service-card {
        padding: 1.5rem 1rem;
    }
    
    .service-card-content h3 {
        font-size: 1.125rem;
    }
    
    .service-card-content p {
        font-size: 0.9rem;
    }
    
    /* Disable overlay on touch devices - direct tap navigation */
    @media (hover: none) and (pointer: coarse) {
        .service-card-overlay {
            display: none !important;
            opacity: 0 !important;
            pointer-events: none !important;
        }
        
        .service-card:hover .service-card-overlay,
        .service-card:focus .service-card-overlay {
            display: none !important;
            opacity: 0 !important;
            pointer-events: none !important;
        }
        
        /* Ensure cards are still interactive */
        .service-card {
            cursor: pointer;
        }
        
        /* Optional: Add subtle touch feedback */
        .service-card:active {
            transform: scale(0.98);
            transition: transform 0.1s ease;
        }
    }
    
    .map-container {
        height: 60vh; /* Slightly shorter on mobile */
        min-height: 300px;
    }
    
    .contact-form-container {
        padding: 24px 20px;
    }
    
    .form-title {
        font-size: 20px;
    }
    
    .form-subtitle {
        font-size: 15px;
    }
    
    .team-section {
        margin-top: 3rem;
    }
    
    .team-grid {
        gap: 2.5rem;
    }
    
    .team-image {
        width: 140px;
        height: 140px;
        border-radius: 12px;
    }
    
    .team-name {
        font-size: 1.25rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer {
        display: none;
    }
    
    .hero {
        height: auto;
        min-height: 400px;
    }
    
    * {
        background: white !important;
        color: black !important;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .service-card-overlay {
        transition: opacity 0.01ms !important;
    }
    
    .service-cta-pill {
        transition: transform 0.01ms !important;
    }
    
    .service-highlight {
        animation: none !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --color-primary: #000000;
        --color-secondary: #333333;
        --color-border: #000000;
    }
    
    .service-card {
        border: 2px solid var(--color-primary);
    }
}

/* Oversized Background Titles */
/* Base section spacing */
.section {
    position: relative;
    padding: clamp(72px, 12vw, 140px) 0;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
}

/* Light background sections */
.section.bg-light {
    background: #f8f6f3; /* light warm tone */
}

/* Section background image */
.section .section-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

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

.section .section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-overlay);
    z-index: 2;
}

.section .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.section .container {
       position: relative;
      z-index: 3;
}

/* Oversized background word */
.with-bg-title::before {
    content: attr(data-bg-title);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;                /* behind content */
    pointer-events: none;
    user-select: none;
    font-family: 'Montserrat';
    font-weight: 700;
    line-height: 0.8;
    letter-spacing: 0.06em;
    color: rgba(0,0,0,0.08);   /* VERY faint; tune between 0.03–0.07 */
    text-transform: uppercase;
    overflow: hidden;

    /* Responsive sizing that prevents cutoff */
    font-size: clamp(48px, 12vw, 300px);

    /* Vertical placement so the word sits behind the first lines */
    transform: translateY(10%);
    
    /* Prevent text from being cut off */
    white-space: nowrap;
    text-overflow: ellipsis;
    width: 100%;
    max-width: 100vw;
}

.with-bg-title-image::before {
    color: rgb(255 255 255 / 32%);   /* VERY faint; tune between 0.03–0.07 */
}


/* Ensure real content sits above the background word */
.section .container,
.section > * {
    position: relative;
    z-index: 5;
}

/* Optional: slightly different alignment per section */
.with-bg-title.align-center::before { 
    left: 50%; 
    transform: translate(-50%, 10%); 
    text-align: center; 
}

.with-bg-title.align-right::before { 
    left: auto; 
    right: 0; 
    text-align: right; 
}

/* Optional: blend on photo sections for a refined effect */
.section.photo-bg.with-bg-title::before {
    mix-blend-mode: multiply; /* keep subtle over images */
}

/* Mobile and tablet adjustments */
@media (max-width: 1024px) {
    .with-bg-title::before {
        font-size: clamp(36px, 10vw, 180px);
        letter-spacing: 0.04em;
    }
}

@media (max-width: 640px) {
    .with-bg-title::before {
        font-size: clamp(60px, 18vw, 220px);
        letter-spacing: 0.03em;
        color: rgba(0,0,0,0.06);
        transform: translateY(5%);
        white-space: pre-line;
        line-height: 0.75;
        margin: 0 20px;
        left: 0;
        right: 0;
    }
    
    .with-bg-title-image::before {
        font-size: clamp(40px, 14vw, 180px);
        margin: 10px 15px;
        color: rgb(255 255 255 / 32%);   /* VERY faint; tune between 0.03–0.07 */
    }
    
    /* Mobile word breaking for specific sections */
    .with-bg-title[data-bg-title="SERVICIOS"]::before {
        content: "SERVICIOS";
    }
    
    .with-bg-title[data-bg-title="NOSOTROS"]::before {
        content: "NOSO\A  TROS";
    }
    
    .with-bg-title[data-bg-title="CONTACTO"]::before {
        content: "CONT\A ACTO";
    }
    
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    background: #20b358;
    color: white;
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
    }
    
    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }
}

/* ===== NATURAL DRONE FLOAT ===== */
.drone-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999999999999;
  overflow: hidden;
}

.drone-element {
  position: absolute;
  width: 110px;
  height: 110px;
  opacity: 0.35;
  border: none;
  transform-origin: center;
  animation: droneWander 60s ease-in-out infinite alternate;
  will-change: transform, opacity;
  transition: opacity 2s ease;
}

/* Smooth, random-feeling flight pattern */
@keyframes droneWander {
  0% {
    transform: translate(5vw, 10vh) rotate(3deg);
  }
  10% {
    transform: translate(30vw, 20vh) rotate(-2deg);
  }
  25% {
    transform: translate(70vw, 25vh) rotate(4deg);
  }
  40% {
    transform: translate(60vw, 60vh) rotate(-3deg);
  }
  55% {
    transform: translate(20vw, 70vh) rotate(5deg);
  }
  70% {
    transform: translate(10vw, 40vh) rotate(-1deg);
  }
  85% {
    transform: translate(80vw, 50vh) rotate(2deg);
  }
  100% {
    transform: translate(50vw, 20vh) rotate(0deg);
  }
}

/* Smaller, slower, more subtle on mobile */
@media (max-width: 768px) {
  .drone-element {
    width: 80px;
    height: 80px;
    opacity: 0.25;
    animation-duration: 90s;
  }
}

@media (max-width: 480px) {
  .drone-element {
    width: 65px;
    height: 65px;
    opacity: 0.2;
    animation-duration: 110s;
  }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .drone-element {
    animation: none;
    opacity: 0.15;
  }
}


/* Service Select Highlight Animation */
.service-highlight {
    animation: serviceHighlight 1.5s ease-in-out;
}

@keyframes serviceHighlight {
    0% { background-color: transparent; }
    25% { background-color: rgba(26, 26, 26, 0.1); }
    50% { background-color: rgba(26, 26, 26, 0.15); }
    75% { background-color: rgba(26, 26, 26, 0.1); }
    100% { background-color: transparent; }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .drone-element {
        width: 70px;
        height: 70px;
        opacity: 0.25;
        animation-duration: 35s;
    }
}

@media (max-width: 480px) {
    .drone-element {
        width: 60px;
        height: 60px;
        opacity: 0.2;
        animation-duration: 40s;
    }
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
    .drone-element {
        animation-duration: 60s;
        opacity: 0.15;
    }
}