/* 
  VÝKOPY s. r. o. - Premium Industrial Chic Design
  Main Stylesheet (Optimized v2)
*/

:root {
    --primary: #C9822B;        /* Earthy Orange */
    --primary-light: #D48F3B;
    --primary-hover: #B06D1F;
    --dark: #F6F4EF;           /* Sand Main Background */
    --dark-surface: #ffffff;    /* White Surface */
    --bg-alt: #ECE7DE;         /* Alternate Sand Block */
    --accent: #C9822B;
    --text: #1F1F1F;           /* Near Black Text */
    --text-muted: #575757;     /* Muted Grey */
    --glass: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(31, 31, 31, 0.08);
    --header-height: 80px;
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-premium: 0 20px 50px rgba(31, 31, 31, 0.06);
    --shadow-hover: 0 30px 60px rgba(31, 31, 31, 0.12);
    --cursor-size: 20px;
    
    /* Fluid Spacing & Typography */
    --section-padding: clamp(3rem, 10vw, 7rem);
    --container-padding: clamp(1rem, 5vw, 2rem);
    --h1-size: clamp(2.25rem, 8vw, 4.5rem);
    --h2-size: clamp(1.75rem, 5vw, 2.75rem);
    --h3-size: clamp(1.25rem, 3vw, 1.75rem);
}

/* Custom Cursor */
#custom-cursor {
    position: fixed;
    width: var(--cursor-size);
    height: var(--cursor-size);
    background: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: width 0.3s, height 0.3s, background 0.3s, opacity 0.3s;
    transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
    transform: translate(-50%, -50%);
    opacity: 0;
    will-change: transform, width, height;
}

#custom-cursor.active {
    width: 60px;
    height: 60px;
    background: rgba(230, 126, 34, 0.15);
    border: 1px solid var(--primary);
    mix-blend-mode: normal;
}

body:hover #custom-cursor {
    opacity: 1;
}

@media (max-width: 1024px) {
    #custom-cursor { display: none; }
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background-color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Global Padding for subpages without Hero */
body:not(.home-page):not(.contact-page) {
    padding-top: 120px; /* header-height (80) + top-bar (40) */
}

h1, h2, h3, h4, .subtitle {
    font-family: 'Space Grotesk', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    line-height: 1.1;
}

h1 { font-size: var(--h1-size); }
h2 { font-size: var(--h2-size); }
h3 { font-size: var(--h3-size); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--container-padding); }
.container-lx { max-width: 1440px; margin: 0 auto; padding: 0 var(--container-padding); }

section { padding: var(--section-padding) 0; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary { 
    background: linear-gradient(135deg, var(--primary), var(--primary-hover)); 
    color: #fff; 
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.btn-primary:hover::before {
    width: 300%;
    height: 300%;
}

.btn-primary:hover { 
    transform: translateY(-4px) scale(1.02); 
    box-shadow: 0 8px 25px rgba(201, 130, 43, 0.4);
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

.btn-outline { 
    border: 1px solid rgba(255, 255, 255, 0.3); 
    color: #ffffff; 
    background: rgba(255, 255, 255, 0.08); 
    backdrop-filter: blur(10px);
}
.btn-outline:hover { 
    background: var(--primary); 
    color: var(--dark);
    border-color: var(--primary);
    transform: translateY(-4px);
}

@media (max-width: 480px) {
    .btn { padding: 1.15rem 2rem; font-size: 0.95rem; }
}

/* Site Header - Premium Redesign */
.site-header {
    position: fixed;
    top: 0; width: 100%;
    z-index: 1100;
    transition: var(--transition);
}

.site-header.scrolled {
    background: var(--dark-surface);
    box-shadow: var(--shadow-premium);
}

.site-header.scrolled .logo-text,
.site-header.scrolled .nav-links a,
.site-header.scrolled .top-info-link {
    color: var(--text) !important;
}

/* Top Bar */
.header-top-bar {
    height: 40px;
    background: #2F3A40;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.footer-bottom {
    padding: 2rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.footer-credits {
    display: flex;
    gap: 1.5rem;
}

.footer-credits a {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-decoration: none;
    opacity: 0.85; /* Increased for contrast */
    transition: var(--transition);
}

.footer-credits a:hover {
    opacity: 1;
    color: var(--primary);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-contacts {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.top-info-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.top-info-link:hover { color: var(--primary); }
.top-info-link svg { color: var(--primary); }
.top-divider { color: rgba(255,255,255,0.1); font-size: 0.8rem; }

.top-extras {
    font-size: 0.75rem;
    color: #E5E7EB;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Main Nav Area */
.header-main-nav {
    height: 80px;
    display: flex;
    align-items: center;
    background: #ffffff; /* Default solid for subpages */
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(31, 31, 31, 0.05);
    transition: var(--transition);
}

/* Transparent Header for Home & Contact */
.home-page .header-main-nav,
.contact-page .header-main-nav {
    background: transparent;
    backdrop-filter: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.home-page .header-top-bar,
.contact-page .header-top-bar {
    background: rgba(47, 58, 64, 0.5); /* Semi-transparent top bar */
}

@media (max-width: 1024px) {
    .header-main-nav { height: 75px; } /* Slightly more compact for tablets */
}

@media (max-width: 768px) {
    .header-top-bar { display: none; }
    .header-main-nav { height: 70px; } /* Compact for mobiles */
}

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

/* Logo Redesign */
.logo-link { text-decoration: none; display: flex; align-items: center; }
.logo-link img { transition: var(--transition); max-height: 45px; }

.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: clamp(1.25rem, 4vw, 1.85rem);
    letter-spacing: -1px;
    color: var(--text); /* Default dark for subpages */
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.home-page .logo-text,
.contact-page .logo-text {
    color: #fff; /* White for hero pages */
}
.logo-accent { color: var(--primary); margin-left: 0.35rem; }

/* Nav Links */
.nav-links { display: flex; list-style: none; gap: 2.25rem; align-items: center; }
.nav-links a {
    text-decoration: none;
    color: var(--text); /* Default dark for subpages */
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition);
    opacity: 0.8;
}

.home-page .nav-links a,
.contact-page .nav-links a {
    color: #fff; /* White for hero pages */
    opacity: 0.9;
}
    position: relative;
}
.nav-links a:hover, .nav-links a.active { opacity: 1; color: var(--primary); }
.nav-links a::after {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px;
    background: var(--primary); transition: var(--transition);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* Nav CTA */
.btn-nav-cta {
    background: var(--primary);
    color: #fff !important;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 700 !important;
    opacity: 1 !important;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.2);
}
.btn-nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(230, 126, 34, 0.35); background: var(--primary-hover) !important; }

/* Mobile Menu Styles */
#mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(246, 244, 239, 0.99);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.85, 0, 0.15, 1);
    backdrop-filter: blur(15px);
}

#mobile-menu-overlay.active {
    transform: translateX(0);
}

.mobile-nav-links {
    list-style: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav-links a {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.5rem, 8vw, 2.5rem);
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    text-transform: uppercase;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.mobile-nav-links a.active {
    color: var(--primary);
}

.mobile-nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    right: 25%;
    height: 3px;
    background: var(--primary);
}

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

.mobile-nav-links .btn-nav-cta {
    font-size: 1.25rem;
    padding: 1rem 2.5rem;
}

#mobile-menu-overlay .mobile-nav-links li {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

#mobile-menu-overlay.active .mobile-nav-links li {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu-overlay.active .mobile-nav-links li:nth-child(1) { transition-delay: 0.2s; }
#mobile-menu-overlay.active .mobile-nav-links li:nth-child(2) { transition-delay: 0.3s; }
#mobile-menu-overlay.active .mobile-nav-links li:nth-child(3) { transition-delay: 0.4s; }
#mobile-menu-overlay.active .mobile-nav-links li:nth-child(4) { transition-delay: 0.5s; }
#mobile-menu-overlay.active .mobile-nav-links li:nth-child(5) { transition-delay: 0.6s; }

/* Scrolled State */
header.scrolled .header-top-bar {
    transform: translateY(-100%);
    opacity: 0;
    height: 0;
}
header.scrolled .header-main-nav {
    height: 65px;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 10px 40px rgba(31, 31, 31, 0.08);
}

header.scrolled .logo-link img { max-height: 35px; }
header.scrolled .logo-text { font-size: 1.4rem; color: var(--text) !important; }
header.scrolled .nav-links a { color: var(--text) !important; opacity: 0.8; }
header.scrolled .nav-links a:hover { color: var(--primary) !important; opacity: 1; }

/* Mobile Adaptations */
@media (max-width: 768px) {
    .logo-text { font-size: 1.4rem; }
    .logo-link img { max-height: 35px; }
    header.scrolled .logo-text { font-size: 1.2rem; }
}

/* Hero */
#hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    /* No background here – image is on .hero-bg-parallax via inline style */
    background: var(--dark);
}

/* hero-bg-parallax: the actual image layer.
   Background-image is set via inline style in Blade (dynamic admin image).
   CSS fallback is set only as background-color below.
   The gradient overlay is handled by ::after pseudo-element. */
.hero-bg-parallax {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: var(--dark);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Dark gradient overlay on top of the image */
.hero-bg-parallax::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(31, 31, 31, 0.6) 0%, rgba(31, 31, 31, 0.2) 100%);
    z-index: 1;
}

.hero-industrial-text {
    display: none; /* Hide for Context Alignment */
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.hero-content { position: relative; z-index: 2; max-width: 850px; color: #fff; }
.hero-content h1 { font-size: clamp(2.5rem, 8vw, 5.5rem); line-height: 1; margin-bottom: 2rem; color: #fff; }
.hero-content h1 span { color: var(--primary); text-decoration: underline; text-decoration-thickness: 5px; text-underline-offset: 10px; }
.hero-content p { font-size: 1.125rem; color: rgba(255, 255, 255, 0.8); max-width: 600px; margin-bottom: 2.5rem; }

/* Projects Gallery (Optimized) */
.section-header { text-align: center; margin-bottom: 4rem; }
.subtitle { color: var(--primary); display: block; margin-bottom: 0.5rem; font-size: 0.9rem; }
.section-header h2 { font-size: clamp(2rem, 5vw, 3rem); }

.projects-packets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.project-packet {
    background: var(--dark-surface);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    cursor: pointer;
}

.project-packet:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
    box-shadow: var(--shadow-premium);
}

.packet-img {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.packet-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(31, 31, 31, 0.4));
}

.packet-overlay {
    position: absolute;
    inset: 0;
    background: rgba(212, 175, 55, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    backdrop-filter: blur(5px);
    transition: var(--transition);
}

.project-packet:hover .packet-overlay { opacity: 1; }

.view-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(20px);
    transition: var(--transition);
}

.project-packet:hover .view-btn { transform: translateY(0); }

.packet-info { padding: 1.5rem; }
.packet-info h4 { font-size: 1.25rem; margin-bottom: 0.5rem; color: var(--primary); }
.packet-info p { color: var(--text-muted); font-size: 0.9rem; }

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(31, 31, 31, 0.95);
    backdrop-filter: blur(15px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox.active { display: flex; animation: fadeIn 0.3s ease; }

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

.lightbox-content {
    max-width: 90vw;
    max-height: 80vh;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border: 2px solid var(--glass-border);
    box-shadow: 0 0 100px rgba(0,0,0,0.5);
}

.close-lightbox {
    position: absolute;
    top: 2rem; right: 2rem;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    z-index: 2001;
}

.lightbox-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 50%;
}

.lightbox-nav button:hover { background: var(--primary); color: var(--dark); }
.prev-btn { left: -5rem; }
.next-btn { right: -5rem; }

/* Projects Mobile */
@media (max-width: 768px) {
    .projects-packets-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 580px) {
    .projects-packets-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .packet-img { height: 280px; }
}

.lightbox-counter {
    position: absolute;
    bottom: -3rem;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 700;
    color: var(--primary);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--dark-surface);
    padding: 3.5rem 2.5rem;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: var(--transition);
    text-align: left;
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: ''; position: absolute; top:0; left:0; width:100%; height:3px;
    background: var(--primary); transform: scaleX(0); transform-origin: left;
    transition: var(--transition);
}

.service-card:hover { 
    border-color: rgba(212, 175, 55, 0.3); 
    transform: translateY(-10px);
    box-shadow: var(--shadow-premium);
}

.service-card:hover::after { transform: scaleX(1); }

.service-card .icon { color: var(--primary); margin-bottom: 2rem; display: inline-block; }
.service-card h3 { margin-bottom: 1.25rem; font-size: 1.75rem; color: var(--text); }
.service-card p { color: var(--text-muted); font-size: 1rem; line-height: 1.7; }

/* Mobile Adaptations */
@media (max-width: 1024px) {
    .prev-btn { left: 1rem; }
    .next-btn { right: 1rem; }
    .lightbox-nav button { background: rgba(0,0,0,0.5); }
}

#mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
    width: 40px;
    height: 40px;
}

@media (max-width: 768px) {
    #desktop-nav { display: none; }
    #mobile-menu-toggle { 
        display: flex; 
        flex-direction: column;
        gap: 6px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
        margin-right: -10px;
        width: 44px;
        height: 44px;
        justify-content: center;
        align-items: center;
    }
    .container-lx { padding: 0 1.25rem; }
    .hero-content h1 { font-size: clamp(2rem, 9vw, 2.75rem); margin-bottom: 1.25rem; line-height: 1.1; letter-spacing: -1px; }
    .hero-content p { font-size: 0.95rem; margin-bottom: 2rem; opacity: 0.9; }
    /* Hero CTA buttons only – not all buttons globally */
    .hero-ctas .btn { padding: 0.85rem 1.5rem; width: 100%; text-align: center; display: flex; align-items: center; justify-content: center; }
    .hero-proof { flex-direction: row; flex-wrap: wrap; justify-content: center; text-align: center; gap: 1.5rem; margin-top: 2rem; padding-top: 1.5rem; }
    .proof-item { align-items: center; flex: 1 1 30%; }

    #mobile-menu-toggle span {
        width: 25px;
        height: 2px;
        background: var(--primary);
        transition: var(--transition);
        transform-origin: center;
    }

    #mobile-menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    #mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
    #mobile-menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ==========================================
   SITE FOOTER — Premium Design
   ========================================== */

.site-footer {
    background: #2F3A40;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 5rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.4fr;
    gap: 3rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-logo-link {
    text-decoration: none;
    display: inline-block;
    margin-bottom: 1.25rem;
}

.footer-logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 1.75rem;
    letter-spacing: -1px;
    color: #fff;
}

.footer-logo-text span { color: var(--primary); }

/* Grid / Layout Optimizations */
.about-flex {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.about-content { flex: 1.2; }
.about-image { flex: 1; position: relative; }

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-premium);
    border: 1px solid var(--glass-border);
}

.features {
    list-style: none;
    margin: 2rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 500;
}

.features li span {
    color: var(--primary);
    font-weight: 800;
}

@media (max-width: 1024px) {
    .about-flex { flex-direction: column; gap: 3rem; }
    .about-content { order: 2; }
    .about-image { order: 1; max-width: 600px; margin: 0 auto; }
}

@media (max-width: 640px) {
    .features { grid-template-columns: 1fr; }
}

.footer-contacts { list-style: none; display: flex; flex-direction: column; gap: 0.85rem; }
.footer-contacts li a, .footer-contacts li span {
    display: flex; align-items: center; gap: 0.65rem;
    font-size: 0.875rem; color: #E5E7EB; text-decoration: none; transition: color 0.25s;
}
.footer-contacts li a:hover { color: var(--primary); }
.footer-contacts svg { color: var(--primary); flex-shrink: 0; }

.footer-col-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.7rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.15em; color: rgba(255,255,255,0.6); margin-bottom: 1.5rem;
}

.footer-nav-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-nav-col ul li a {
    font-size: 0.875rem; color: #D1D5DB; text-decoration: none;
    transition: color 0.25s, padding-left 0.25s; display: inline-block;
}
.footer-nav-col ul li a:hover { color: var(--primary); padding-left: 4px; }

.footer-hours { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 2rem; }
.footer-hours li { display: flex; justify-content: space-between; font-size: 0.8rem; gap: 0.5rem; }
.footer-hours li span { color: #9CA3AF; }
.footer-hours li strong { color: #F3F4F6; font-weight: 600; white-space: nowrap; }

.footer-cta-btn {
    display: inline-block; padding: 0.75rem 1.5rem;
    background: var(--primary); color: #fff; text-decoration: none;
    font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.08em; border-radius: 6px; transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(230,126,34,0.25);
}
.footer-cta-btn:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(230,126,34,0.35); }

.footer-bottom-bar { padding: 1.5rem 0; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-bottom-inner p { font-size: 0.8rem; color: rgba(255,255,255,0.6); }
.footer-legal-links { display: flex; align-items: center; gap: 0.75rem; font-size: 0.8rem; color: rgba(255,255,255,0.4); }
.footer-legal-links a { color: rgba(255,255,255,0.7); text-decoration: none; transition: color 0.25s; }
.footer-legal-links a:hover { color: var(--primary); }

/* legacy .footer-grid classes */
/* Redundant block removed */
.footer-grid { display: grid; grid-template-columns: 2fr 3fr; gap: 3rem; padding: 4rem 0 3rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
.footer-col-main { display: flex; flex-direction: column; gap: 1rem; }
.footer-links-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer-col h4 { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.15em; color: rgba(255,255,255,0.6); margin-bottom: 1.25rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col ul a { font-size: 0.875rem; color: #D1D5DB; text-decoration: none; transition: color 0.25s; }
.footer-col ul a:hover { color: var(--primary); }
.footer-col p { font-size: 0.875rem; color: #D1D5DB; line-height: 1.6; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem 0; font-size: 0.8rem; }
.footer-bottom p { color: rgba(255,255,255,0.25); }
.footer-legal a { color: rgba(255,255,255,0.3); text-decoration: none; transition: color 0.25s; font-size: 0.8rem; }
.footer-legal a:hover { color: var(--primary); }

@media (max-width: 1100px) {
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 3rem; }
    .footer-brand { grid-column: 1 / -1; margin-bottom: 1rem; }
    .footer-tagline { color: #E5E7EB; line-height: 1.6; margin-bottom: 2rem; font-size: 0.95rem; }
.footer-social-links a { 
    color: #fff; 
    background: rgba(255,255,255,0.05); 
    width: 36px; height: 36px; 
    display: flex; align-items: center; justify-content: center; 
    border-radius: 8px; transition: var(--transition); 
}
.footer-social-links a:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }
}

@media (max-width: 640px) {
    .site-footer { padding-top: 4rem; }
    .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
    .footer-contacts li a, .footer-contacts li span { justify-content: center; }
    .footer-social-links { justify-content: center; }
    .footer-bottom-inner { flex-direction: column; text-align: center; gap: 1rem; }
    .footer-cta-btn { width: 100%; }
}

/* ==========================================
   CONTACT PAGE — Modern Redesign
   ========================================== */

.contact-page {
    background-color: var(--dark);
}

.contact-hero {
    position: relative;
    padding: 10rem 0 6rem;
    /* Static WebP background – contact page hero is not dynamic */
    background: url('../img/hero-bg.webp') center/cover no-repeat;
    background-attachment: scroll;
    text-align: center;
    overflow: hidden;
}

.contact-hero .hero-bg-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(246, 244, 239, 0.4), var(--dark));
    z-index: 1;
}

.contact-hero .container {
    position: relative;
    z-index: 2;
}

.contact-hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    margin-bottom: 1.5rem;
    color: var(--text);
    letter-spacing: -2px;
}

.contact-hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.contact-main {
    padding: 4rem 0 8rem;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    align-items: start;
}

.section-title span { color: var(--primary); }

.info-intro {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin: 1.5rem 0 3rem;
    max-width: 500px;
}

.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.contact-card {
    background: var(--dark-surface);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: var(--transition);
}

.contact-card:hover {
    background: var(--dark-surface);
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-premium);
}

.card-icon {
    width: 45px;
    height: 45px;
    background: rgba(230, 126, 34, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.card-data h3 {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.card-data a, .card-data span, .card-data p {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    line-height: 1.4;
}

.card-data a:hover { color: var(--primary); }

.trust-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(230, 126, 34, 0.08);
    padding: 1.25rem 1.5rem;
    border-radius: 10px;
    border-left: 3px solid var(--primary);
}

.trust-icon {
    background: var(--primary);
    color: var(--dark);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.trust-text { font-size: 0.9rem; color: var(--text); }
.trust-text strong { color: var(--primary); }

/* Glass Form */
.glass-form-card {
    background: var(--dark-surface);
    border: 1px solid var(--glass-border);
    padding: 3.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-premium);
}

.glass-form-card h3 { font-size: 2rem; margin-bottom: 1rem; }
.glass-form-card h3 span { color: var(--primary); }
.glass-form-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 2.5rem; }

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

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    background: var(--dark);
    border: 1px solid var(--glass-border);
    padding: 1.15rem;
    border-radius: 8px;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    background: #fff;
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 20px rgba(201, 130, 43, 0.15);
}

.btn-full { width: 100%; padding: 1.25rem; font-size: 1rem; margin-top: 1rem; }

.form-note {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.2);
}

.contact-map { padding-bottom: 8rem; }
.map-container {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-premium);
}

@media (max-width: 1100px) {
    .contact-wrapper { grid-template-columns: 1fr; gap: 4rem; }
    .contact-hero { padding: 9rem 0 5rem; }
}

@media (max-width: 640px) {
    .contact-cards-grid { grid-template-columns: 1fr; }
    .glass-form-card { padding: 2rem 1.5rem; }
    .form-row { grid-template-columns: 1fr; gap: 1.75rem; }
}

/* ==========================================
   EXTRA RESPONSIVE FIXES – Mobile/Tablet
   ========================================== */

/* Hero: stack CTAs vertically on small screens, prevent button overflow */
@media (max-width: 480px) {
    .hero-ctas {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }
    .hero-ctas .btn {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
    #hero {
        height: auto;
        min-height: 100svh;
        padding: 7rem 0 5rem;
    }
    .hero-content h1 {
        font-size: clamp(1.9rem, 10vw, 2.5rem);
    }
    .hero-proof {
        flex-direction: column;
        gap: 1rem;
    }
    .proof-divider { display: none; }
}

/* Services grid: single column on very small screens */
@media (max-width: 400px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    .service-card {
        padding: 2.5rem 1.75rem;
        text-align: center;
    }
    .service-card .icon { margin-bottom: 1.5rem; }
    .service-card h3 { font-size: 1.35rem; }
}

/* Contact hero: reduce padding on small screens */
@media (max-width: 480px) {
    .contact-hero { padding: 7rem 0 3rem; }
    .contact-main { padding: 2.5rem 0 5rem; }
    .contact-hero h1 { letter-spacing: -1px; }
    .info-intro { margin: 1.25rem 0 2rem; }
    .trust-banner { flex-direction: column; align-items: flex-start; }
}

/* Lightbox: full-screen on mobile */
@media (max-width: 600px) {
    .lightbox-content {
        max-width: 100vw;
        max-height: 90vh;
        padding: 0 0.5rem;
    }
    .lightbox-content img {
        max-height: 70vh;
    }
    .close-lightbox {
        top: 1rem;
        right: 1rem;
        font-size: 2rem;
    }
    .prev-btn { left: 0.25rem !important; }
    .next-btn { right: 0.25rem !important; }
    .lightbox-counter { bottom: -2rem; }
}

/* Form message (contact form feedback) */
#form-message {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-top: 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.5;
    display: none;
}

/* Footer tagline: readable on mobile */
.footer-tagline {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: 0.5rem;
}

/* Improve tap targets on mobile (accessibility) */
@media (max-width: 768px) {
    .nav-links a,
    .mobile-nav-links a,
    .footer-nav-col ul li a,
    .footer-contacts li a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    #back-to-top {
        width: 44px;
        height: 44px;
        bottom: 1.25rem;
        right: 1.25rem;
    }
}

/* Mobile Menu Toggle (Hamburger) */
.menu-trigger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 44px; height: 44px;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 12px;
    padding: 13px 11px;
    cursor: pointer;
    z-index: 1200;
    transition: var(--transition);
}

.menu-trigger .bar {
    width: 100%; height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.menu-trigger.active .bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-trigger.active .bar:nth-child(2) { opacity: 0; }
.menu-trigger.active .bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile Menu Overlay Drawer */
#mobile-menu-overlay {
    position: fixed;
    top: 0; right: -100%;
    width: 100%; height: 100svh;
    background: rgba(5, 8, 17, 0.98);
    backdrop-filter: blur(15px);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.6s cubic-bezier(0.85, 0, 0.15, 1);
    opacity: 0;
}

#mobile-menu-overlay.active {
    right: 0; opacity: 1;
}

.mobile-nav-links {
    list-style: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav-links li { 
    opacity: 0; 
    transform: translateY(20px);
    transition: 0.5s ease forwards;
}

#mobile-menu-overlay.active .mobile-nav-links li {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav-links a {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.mobile-nav-links .btn-nav-cta {
    margin-top: 2rem;
    font-size: 1rem;
}

@media (max-width: 1024px) {
    #desktop-nav { display: none; }
    .menu-trigger { display: flex; }
}

@media (max-width: 768px) {
    .header-main-nav { height: 70px; }
}

/* Ensure images never overflow */
img { max-width: 100%; height: auto; }
.container, .container-lx { overflow-x: clip; }

/* Android-specific font smoothing tweak */
@supports (-webkit-touch-callout: none) {
    /* iOS specific */
}
@supports not (-webkit-touch-callout: none) {
    /* Android / Other specific */
    body { font-weight: 400; }
}
