/* -------------------------------------------------------------
   DESIGN SYSTEM & CUSTOM STYLING - SITO WEB BAÙ ANTONIO
   ------------------------------------------------------------- */

/* Reset & Base Variables */
:root {
    --bg-main: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #475569;
    --text-light: #94a3b8;
    
    --primary: #1e6b65; /* Verde Petrolio Brand */
    --primary-hover: #144d49;
    --primary-bg-light: #f0fdfa;
    
    --brand-green: #1e6b65; /* Verde Petrolio Logo */
    --brand-green-hover: #144d49;
    --brand-green-light: #3fb1a5; /* Verde Petrolio Luminoso */
    --brand-green-bg: #f0fdfa;
    
    --accent: #2e7d32; /* Verde per Aree Verdi (Sage) */
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    --transition-smooth: all 0.7s cubic-bezier(0.32, 0.72, 0, 1);
    --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    
    --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.03), 0 1px 8px rgba(15, 23, 42, 0.02);
    --shadow-medium: 0 20px 40px rgba(15, 23, 42, 0.06), 0 1px 10px rgba(15, 23, 42, 0.03);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: #0f172a; /* Prevents flash of white before first frame loads */
    color: var(--text-main);
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Grana/Rumore Sfondo (Design Spell) */
.noise-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.02;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    box-sizing: border-box;
}

.section-padding {
    padding: 7rem 0;
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    margin: 0;
    color: var(--text-main);
}

p {
    margin: 0 0 1.5rem 0;
}
p:last-child {
    margin-bottom: 0;
}

/* Micro Badges (Eyebrow tags) */
.eyebrow-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary);
    background-color: var(--primary-bg-light);
    border: 1px solid rgba(30, 107, 101, 0.15);
    padding: 0.35rem 1rem;
    border-radius: 100px;
    margin-bottom: 1.5rem;
}

/* Section Headers */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 5rem auto;
}

.section-title {
    font-size: 2.75rem;
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Button & CTA styles (Magnetic & Nested Button Architecture) */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 100px;
    padding: 0.5rem 0.5rem 0.5rem 1.75rem;
    box-sizing: border-box;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    border: 1px solid var(--primary);
    box-shadow: 0 4px 14px rgba(30, 107, 101, 0.25);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: scale(1.02);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1rem;
    transition: var(--transition-fast);
}

.btn-primary:hover .btn-icon {
    transform: translateX(3px) scale(1.05);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid rgba(15, 23, 42, 0.15);
    padding: 0.75rem 1.75rem;
    margin-left: 1rem;
}

.btn-secondary:hover {
    background-color: rgba(15, 23, 42, 0.05);
    border-color: var(--text-main);
    transform: scale(1.02);
}

.btn-secondary:active {
    transform: scale(0.98);
}

.wa-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
}

/* -------------------------------------------------------------
   DOUBLE BEZEL CARD ARCHITECTURE (Nested Bezel)
   ------------------------------------------------------------- */
.double-bezel-card {
    border: 1px solid rgba(15, 23, 42, 0.06);
    background: rgba(15, 23, 42, 0.02);
    padding: 6px;
    border-radius: 2rem;
    transition: var(--transition-smooth);
    box-sizing: border-box;
}

.double-bezel-card .card-inner {
    background: #ffffff;
    border-radius: calc(2rem - 6px);
    padding: 2.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.01), 0 1px 2px rgba(0,0,0,0.02);
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.double-bezel-card:hover {
    transform: translateY(-4px);
    background: rgba(15, 23, 42, 0.04);
    box-shadow: var(--shadow-medium);
}

/* -------------------------------------------------------------
   NAVBAR (Floating Fluid Island)
   ------------------------------------------------------------- */
.navbar-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 1rem 0 1rem;
    box-sizing: border-box;
    pointer-events: none;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 100px;
    padding: 0.6rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    pointer-events: auto;
    transition: var(--transition-smooth);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-main);
}

.logo-image {
    height: 38px;
    width: 38px;
    color: var(--brand-green);
    transition: var(--transition-fast);
}

.nav-logo:hover .logo-image {
    transform: scale(1.08) rotate(3deg);
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1;
    letter-spacing: -0.01em;
}

.logo-subtext {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-top: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-main);
}

.nav-link-cta {
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: white;
    background-color: var(--text-main);
    padding: 0.6rem 1.5rem;
    border-radius: 100px;
    transition: var(--transition-fast);
}

.nav-link-cta:hover {
    background-color: var(--primary);
    box-shadow: 0 4px 10px rgba(30, 107, 101, 0.2);
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.nav-toggle .bar {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-main);
    margin: 5px auto;
    transition: var(--transition-fast);
}

/* -------------------------------------------------------------
   HERO SECTION
   ------------------------------------------------------------- */
/* Wrapper per lo scroll-pinning (Design Spell) */
.hero-scroll-wrapper {
    position: relative;
    height: 200vh; /* Permette uno scorrimento di 1 viewport height prima di sbloccare */
    background-color: #0f172a;
}

.hero-section {
    position: sticky;
    top: 0;
    height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding-top: 8rem;
    padding-bottom: 5rem;
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.45) 0%, rgba(15, 23, 42, 0.75) 100%);
    z-index: -1; /* Sopra al canvas, sotto ai testi */
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    max-width: 850px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo-wrapper {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: hero-logo-pop 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-logo {
    width: 90px;
    height: 90px;
    color: var(--brand-green-light);
    filter: drop-shadow(0 4px 20px rgba(63, 177, 165, 0.25));
}

@keyframes hero-logo-pop {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Ensure all other sections sit on top of the background */
section {
    position: relative;
    z-index: 10;
}

#hero {
    z-index: 3;
    background: transparent;
}

.hero-content .eyebrow-tag {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: white;
    margin-bottom: 1.5rem;
}

.hero-lead {
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 3rem;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-actions .btn-secondary {
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.hero-actions .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* -------------------------------------------------------------
   SERVICES SECTION
   ------------------------------------------------------------- */
.services-section {
    background-color: white;
}

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

.service-card {
    min-height: 280px;
}

.service-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    background-color: var(--primary-bg-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    transition: var(--transition-fast);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(3deg);
    background-color: var(--primary);
    color: white;
}

.service-card-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.service-card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}



/* -------------------------------------------------------------
   PORTFOLIO (Filtrabile)
   ------------------------------------------------------------- */
.portfolio-section {
    background-color: white;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 4rem;
}

.filter-btn {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    background: transparent;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 100px;
    padding: 0.6rem 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
    flex-shrink: 0;
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: var(--text-main);
    color: var(--text-main);
}

.filter-btn.active {
    background-color: var(--text-main);
    border-color: var(--text-main);
    color: white;
}

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

.portfolio-item {
    display: block;
    height: 380px;
    padding: 4px; /* Double-bezel slim styling */
}

.portfolio-item .card-inner {
    padding: 0;
    overflow: hidden;
}

.portfolio-img-wrapper {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
}

.portfolio-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-item:hover .portfolio-img-wrapper img {
    transform: scale(1.05);
}

.portfolio-info {
    padding: 1.5rem;
}

.portfolio-tag {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 0.25rem;
}

.portfolio-item-title {
    font-size: 1.1rem;
    letter-spacing: -0.01em;
    color: var(--text-main);
}

/* Hide animations if filters change */
.portfolio-item.hidden {
    display: none;
}

/* -------------------------------------------------------------
   AREA OPERATIVA
   ------------------------------------------------------------- */
.area-section {
    background-color: var(--bg-main);
}

.split-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.area-stats {
    display: flex;
    gap: 3rem;
    margin: 2.5rem 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

.area-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.area-map-block {
    height: 400px;
}

.map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #0f172a !important; /* Dark theme map */
    color: white;
    position: relative;
    overflow: hidden;
}

.map-circle {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 2px dashed rgba(30, 107, 101, 0.4);
    background: rgba(30, 107, 101, 0.05);
    animation: pulseCircle 4s infinite ease-in-out;
}

@keyframes pulseCircle {
    0% { transform: scale(0.9); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.6; }
    100% { transform: scale(0.9); opacity: 0.3; }
}

.map-pin {
    color: var(--primary);
    position: relative;
    z-index: 2;
    margin-bottom: 1.5rem;
    animation: bouncePin 2s infinite alternate ease-in-out;
}

@keyframes bouncePin {
    from { transform: translateY(0); }
    to { transform: translateY(-10px); }
}

.map-label {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    z-index: 2;
    margin-bottom: 0.25rem;
}

.map-radius-text {
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    z-index: 2;
}

/* -------------------------------------------------------------
   CONTACTS SECTION
   ------------------------------------------------------------- */
.contacts-section {
    background-color: white;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
}

.contacts-info-block {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method-card {
    padding: 4px;
}

.contact-method-card .card-inner.flex-row {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    padding: 1.75rem;
}

.contact-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 26px;
    height: 26px;
}

.contact-icon.wa { background-color: #dcfce7; color: #15803d; }
.contact-icon.tel { background-color: #dbeafe; color: #1d4ed8; }
.contact-icon.mail { background-color: #ffedd5; color: #c2410c; }

.contact-text h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.contact-text p {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
}

.contact-text a {
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition-fast);
    word-break: break-word;
    overflow-wrap: break-word;
    display: inline-block;
    max-width: 100%;
}

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

.contact-sub {
    font-size: 12px;
    color: var(--text-muted);
}

/* Modulo di contatto */
.contact-form {
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.form-group input, .form-group select, .form-group textarea {
    font-family: var(--font-body);
    font-size: 14px;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(15, 23, 42, 0.15);
    background-color: #f8fafc;
    color: var(--text-main);
    transition: var(--transition-fast);
    box-sizing: border-box;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: white;
    box-shadow: 0 0 0 4px rgba(30, 107, 101, 0.1);
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: white;
    background-color: var(--text-main);
    border: 1px solid var(--text-main);
    border-radius: 100px;
    padding: 0.5rem 0.5rem 0.5rem 1.75rem;
    margin-top: 1rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-submit:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    transform: scale(1.02);
}

.btn-submit:active {
    transform: scale(0.98);
}

.btn-submit .btn-icon {
    background-color: rgba(255, 255, 255, 0.15);
}

.btn-submit:hover .btn-icon {
    transform: translateX(3px);
}

/* -------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------- */
.footer {
    background-color: #0f172a;
    color: white;
    padding: 5rem 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3rem;
}

.footer-brand h3 {
    color: white;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: var(--text-light);
    margin: 0;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.1em;
}

.footer-legal {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    width: 100%;
    color: var(--text-light);
    font-size: 12px;
    word-break: break-word;
    overflow-wrap: break-word;
}

.footer-legal p {
    margin: 0 0 0.5rem 0;
}

.footer-legal p:last-child {
    margin-bottom: 0;
}

/* -------------------------------------------------------------
   INTERSECTION OBSERVER SCROLL REVEALS
   ------------------------------------------------------------- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* -------------------------------------------------------------
   RESPONSIVENESS (Mobile Collapse Overrides)
   ------------------------------------------------------------- */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-title {
        font-size: 3.25rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .section-padding {
        padding: 5rem 0;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    /* Navbar collapse */
    .nav-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        transform: translateX(100%);
        height: 100vh;
        width: 80%;
        max-width: 320px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
        transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1), visibility 0s linear 0.5s;
        visibility: hidden;
        z-index: 1000;
        pointer-events: auto;
    }
    
    .nav-links.open {
        transform: translateX(0);
        visibility: visible;
        transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1), visibility 0s linear 0s;
    }
    
    /* Toggle active state */
    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    /* Grids collapse to single column */
    .services-grid, .portfolio-grid, .split-layout, .contacts-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .portfolio-filters {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 1rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin-left: -1.5rem;
        margin-right: -1.5rem;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .portfolio-filters::-webkit-scrollbar {
        display: none;
    }
    
    .hero-section {
        min-height: 100dvh;
        padding-top: 6rem;
        padding-bottom: 3rem;
        box-sizing: border-box;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-lead {
        font-size: 1.15rem;
        margin-bottom: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-actions .btn-secondary {
        margin-left: 0;
        width: 100%;
    }
    
    .btn-primary, .btn-secondary, .btn-submit {
        width: 100%;
        padding: 0.75rem 1.5rem;
    }
    
    .btn-icon {
        display: none;
    }
    

    
    .area-map-block {
        height: 300px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .double-bezel-card .card-inner {
        padding: 1.5rem;
    }

    .contact-method-card .card-inner.flex-row {
        padding: 1.25rem;
        gap: 1rem;
    }

    .contact-icon {
        width: 2.75rem;
        height: 2.75rem;
    }

    .contact-icon svg {
        width: 22px;
        height: 22px;
    }

    .contact-text p {
        font-size: 1.15rem;
    }

    .contact-text h4 {
        font-size: 1rem;
    }
    
    .contact-sub {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .logo-image {
        height: 32px;
    }
    .logo-text {
        font-size: 1.1rem;
    }
    .logo-subtext {
        font-size: 8px;
    }
    .navbar-container {
        padding: 0.6rem 1.25rem;
    }
}

/* prefers-reduced-motion media query (Accessibility) */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .hero-bg {
        animation: none !important;
        transform: scale(1) !important;
    }
    .reveal-on-scroll {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* -------------------------------------------------------------
   LIGHTBOX GALLERY MODAL
   ------------------------------------------------------------- */
.portfolio-item {
    cursor: pointer;
}

.gallery-modal {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(8, 15, 15, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.gallery-modal.open {
    opacity: 1;
    visibility: visible;
}

.gallery-modal-content {
    position: relative;
    max-width: 900px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gallery-modal.open .gallery-modal-content {
    transform: scale(1);
}

.gallery-modal-img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 1rem;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.gallery-modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 2010;
}

.gallery-modal-close:hover {
    background: var(--brand-green);
    border-color: var(--brand-green);
    transform: scale(1.08) rotate(90deg);
}

.gallery-modal-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 2001;
    user-select: none;
}

.gallery-modal-btn:hover {
    background: var(--brand-green);
    border-color: var(--brand-green);
    color: white;
    transform: translateY(-50%) scale(1.08);
}

.gallery-modal-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.gallery-modal-btn.prev {
    left: -4.5rem;
}

.gallery-modal-btn.next {
    right: -4.5rem;
}

.gallery-modal-info {
    margin-top: 1.5rem;
    text-align: center;
    color: white;
}

.gallery-modal-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #5cf2e3; /* Brighter teal for perfect visibility and premium contrast */
    background: rgba(30, 107, 101, 0.25); /* Tinted brand background */
    border: 1px solid rgba(63, 177, 165, 0.35);
    padding: 0.3rem 0.85rem;
    border-radius: 50px;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.gallery-modal-title {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 600;
    margin: 0.5rem 0 0 0;
    color: #ffffff; /* Explicitly white to override global dark h4 styling */
    letter-spacing: -0.01em;
}

.gallery-modal-counter {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65); /* Brighter for better visibility */
    margin-top: 0.5rem;
}

/* Responsiveness for Lightbox */
@media (max-width: 1100px) {
    .gallery-modal-btn.prev { left: 1rem; }
    .gallery-modal-btn.next { right: 1rem; }
    .gallery-modal-close { top: 1.5rem; right: 1.5rem; }
}

@media (max-width: 768px) {
    .gallery-modal-btn {
        width: 2.75rem;
        height: 2.75rem;
    }
    .gallery-modal-info {
        padding: 0 1rem;
    }
    .gallery-modal-title {
        font-size: 1.1rem;
    }
}
