/* ============================================
   BTP Survey Group - Premium Stylesheet v2.0
   Ultra-fast, SEO-optimized, mobile-first
   ============================================ */

/* ===== CSS VARIABLES ===== */
:root {
    --primary-green: #2D5F3F;
    --primary-blue: #1E5B8C;
    --accent-teal: #3EADA8;
    --accent-orange: #E67E22;
    --charcoal: #2C3E50;
    --light-gray: #F8F9FA;
    --white: #FFFFFF;
    --dark-text: #1A1A1A;
    --medium-gray: #6C757D;

    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Poppins', sans-serif;

    --section-padding: 100px;
    --container-width: 1200px;
    --navbar-height: 96px;
    --topbar-height: 40px;

    --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,.12);
    --shadow-lg: 0 8px 40px rgba(0,0,0,.16);
    --shadow-xl: 0 16px 60px rgba(0,0,0,.2);
    --shadow-hover: 0 20px 70px rgba(0,0,0,.25);

    --gradient-green: linear-gradient(135deg, #2D5F3F 0%, #1a3d27 100%);
    --gradient-blue: linear-gradient(135deg, #1E5B8C 0%, #0d3a5c 100%);
    --gradient-hero: linear-gradient(135deg, rgba(45,95,63,.92) 0%, rgba(30,91,140,.88) 100%);

    --transition-fast: .2s cubic-bezier(.4,0,.2,1);
    --transition-base: .35s cubic-bezier(.4,0,.2,1);
    --transition-slow: .6s cubic-bezier(.4,0,.2,1);
    --transition-bounce: .5s cubic-bezier(.68,-.55,.265,1.55);

    --radius: 12px;
    --radius-lg: 20px;
}

/* ===== RESET ===== */
*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; font-size:16px; overflow-x:hidden; }
body { font-family:var(--font-main); background:var(--white); color:var(--dark-text); line-height:1.7; overflow-x:hidden; -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; }
body,html { max-width:100%; overflow-x:hidden; }

/* ===== TYPOGRAPHY ===== */
h1,h2,h3,h4,h5,h6 { font-family:var(--font-heading); font-weight:700; line-height:1.2; margin-bottom:1rem; color:var(--charcoal); }
h1 { font-size:clamp(2.5rem,5vw,4.5rem); }
h2 { font-size:clamp(2rem,4vw,3.5rem); }
h3 { font-size:clamp(1.5rem,3vw,2.25rem); }
h4 { font-size:1.75rem; }
p { font-size:1.125rem; line-height:1.8; color:var(--medium-gray); margin-bottom:1.5rem; }
a { text-decoration:none; color:inherit; transition:var(--transition-base); }
img { max-width:100%; height:auto; display:block; }

/* ===== CONTAINERS ===== */
.container { max-width:var(--container-width); margin:0 auto; padding:0 2rem; width:100%; }
.section { padding:var(--section-padding) 0; position:relative; }
.section-light { background:var(--white); }
.section-gray { background:var(--light-gray); }

/* ===== TOP BAR ===== */
.topbar {
    background:var(--charcoal);
    color:rgba(255,255,255,.85);
    font-size:.85rem;
    height:var(--topbar-height);
    display:flex;
    align-items:center;
    position:fixed;
    top:0; left:0; right:0;
    z-index:10000;
    transition:transform var(--transition-base);
}
.topbar.hidden { transform:translateY(-100%); }
.topbar-container { max-width:1600px; margin:0 auto; padding:0 2rem; width:100%; display:flex; justify-content:space-between; align-items:center; }
.topbar-left,.topbar-right { display:flex; align-items:center; gap:.75rem; }
.topbar-item { display:flex; align-items:center; gap:6px; color:rgba(255,255,255,.85); }
.topbar-item:hover { color:var(--accent-teal); }
.topbar-item svg { flex-shrink:0; }
.topbar-divider { width:1px; height:14px; background:rgba(255,255,255,.2); }

/* ===== BUTTONS ===== */
.btn { display:inline-flex; align-items:center; justify-content:center; padding:14px 36px; font-family:var(--font-heading); font-size:1rem; font-weight:600; text-align:center; border:none; border-radius:var(--radius); cursor:pointer; transition:all var(--transition-base); text-transform:uppercase; letter-spacing:.5px; position:relative; overflow:hidden; z-index:1; gap:8px; white-space:nowrap; }
.btn::before { content:''; position:absolute; top:50%; left:50%; width:0; height:0; border-radius:50%; background:rgba(255,255,255,.25); transform:translate(-50%,-50%); transition:width .6s,height .6s; z-index:-1; }
.btn:hover::before { width:300px; height:300px; }

.btn-primary { background:var(--gradient-green); color:var(--white); box-shadow:var(--shadow-md); }
.btn-primary:hover { transform:translateY(-3px); box-shadow:var(--shadow-xl); }
.btn-secondary { background:transparent; color:var(--primary-green); border:2px solid var(--primary-green); }
.btn-secondary:hover { background:var(--primary-green); color:var(--white); transform:translateY(-3px); box-shadow:var(--shadow-md); }
.btn-white { background:var(--white); color:var(--primary-green); box-shadow:var(--shadow-md); }
.btn-white:hover { background:var(--light-gray); transform:translateY(-3px); box-shadow:var(--shadow-xl); }
.btn-outline-white { background:transparent; color:var(--white); border:2px solid rgba(255,255,255,.6); }
.btn-outline-white:hover { background:rgba(255,255,255,.15); border-color:var(--white); transform:translateY(-3px); }
.btn-lg { padding:18px 44px; font-size:1.05rem; }
.btn-block { width:100%; }

/* ===== NAVBAR ===== */
.navbar { position:fixed; top:var(--topbar-height); left:0; right:0; background:rgba(255,255,255,.97); backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px); box-shadow:0 2px 20px rgba(0,0,0,.08); z-index:9999; height:var(--navbar-height); transition:all var(--transition-base); }
.navbar.scrolled { background:rgba(255,255,255,.99); box-shadow:0 4px 30px rgba(0,0,0,.12); height:70px; }
.navbar-container { max-width:1600px; margin:0 auto; padding:0 2rem; display:flex; justify-content:space-between; align-items:center; height:100%; position:relative; }
.navbar-logo { display:flex; align-items:center; gap:12px; z-index:10001; transition:transform var(--transition-base); }
.navbar-logo:hover { transform:scale(1.03); }
.navbar-logo img { height:82px; width:auto; transition:all var(--transition-base); }
.navbar.scrolled .navbar-logo img { height:62px; }
.navbar-menu { display:flex; list-style:none; gap:2rem; align-items:center; margin:0; }
.navbar-link { font-family:var(--font-heading); font-weight:500; font-size:.95rem; color:var(--charcoal); position:relative; padding:.5rem 0; transition:color var(--transition-base); }
.navbar-link::after { content:''; position:absolute; bottom:0; left:0; width:0; height:2px; background:var(--gradient-green); transition:width var(--transition-base); border-radius:2px; }
.navbar-link:hover,.navbar-link.active { color:var(--primary-green); }
.navbar-link:hover::after,.navbar-link.active::after { width:100%; }

.navbar-phone-link { font-family:var(--font-heading); font-weight:600; font-size:.9rem; color:var(--primary-green); display:inline-flex; align-items:center; gap:6px; padding:.5rem 0; }
.navbar-phone-link:hover { color:var(--accent-teal); }

/* Hamburger */
.navbar-toggle { display:none; flex-direction:column; gap:6px; cursor:pointer; background:none; border:none; padding:10px; z-index:100003 !important; position:relative; }
.navbar-toggle span { width:28px; height:3px; background:var(--charcoal); border-radius:3px; transition:all var(--transition-base); transform-origin:center; }
.navbar-toggle.active span:nth-child(1) { transform:translateY(9px) rotate(45deg); }
.navbar-toggle.active span:nth-child(2) { opacity:0; transform:translateX(-20px); }
.navbar-toggle.active span:nth-child(3) { transform:translateY(-9px) rotate(-45deg); }

/* ===== HERO ===== */
.hero { position:relative; height:100vh; min-height:700px; display:flex; align-items:center; justify-content:center; overflow:hidden; margin-top:calc(var(--navbar-height) + var(--topbar-height)); }
.page-hero { height:55vh; min-height:380px; }
.hero-video { position:absolute; inset:0; width:100%; height:110%; object-fit:cover; object-position:center; will-change:transform; z-index:0; }
.hero-bg { position:absolute; inset:0; background-size:cover; background-position:center; will-change:transform; z-index:0; }
.hero-overlay { position:absolute; inset:0; background:var(--gradient-hero); z-index:1; }
.hero-content { position:relative; z-index:2; text-align:center; color:var(--white); max-width:950px; padding:2rem; animation:fadeInUp 1s ease-out; }

.hero-badge { display:inline-block; background:rgba(255,255,255,.15); backdrop-filter:blur(8px); border:1px solid rgba(255,255,255,.25); padding:8px 24px; border-radius:50px; font-size:.85rem; font-weight:600; letter-spacing:2px; text-transform:uppercase; margin-bottom:1.5rem; color:rgba(255,255,255,.95); }
.hero-title { color:var(--white); margin-bottom:1.5rem; text-shadow:0 4px 30px rgba(0,0,0,.3); animation:fadeInUp 1s ease-out .2s both; }
.hero-subtitle { font-size:clamp(1.15rem,2vw,1.6rem); color:rgba(255,255,255,.95); margin-bottom:2.5rem; font-weight:300; animation:fadeInUp 1s ease-out .4s both; }
.hero-buttons { display:flex; gap:1.25rem; justify-content:center; flex-wrap:wrap; animation:fadeInUp 1s ease-out .6s both; }

.hero-trust { display:flex; gap:2rem; justify-content:center; flex-wrap:wrap; margin-top:3rem; animation:fadeInUp 1s ease-out .8s both; }
.hero-trust-item { display:flex; align-items:center; gap:8px; font-size:.9rem; color:rgba(255,255,255,.85); font-weight:500; }
.hero-trust-item svg { stroke:var(--accent-teal); }

.scroll-indicator { position:absolute; bottom:30px; left:50%; transform:translateX(-50%); z-index:3; animation:bounce 2s infinite; }
.scroll-indicator svg { width:28px; height:28px; stroke:var(--white); filter:drop-shadow(0 2px 8px rgba(0,0,0,.3)); }

@keyframes fadeInUp { from{opacity:0;transform:translateY(40px)} to{opacity:1;transform:translateY(0)} }
@keyframes bounce { 0%,20%,50%,80%,100%{transform:translateX(-50%) translateY(0)} 40%{transform:translateX(-50%) translateY(-18px)} 60%{transform:translateX(-50%) translateY(-8px)} }

/* ===== SECTION HEADERS ===== */
.section-header { text-align:center; max-width:700px; margin:0 auto 4rem; }
.section-subtitle { font-size:.9rem; color:var(--accent-teal); font-weight:700; text-transform:uppercase; letter-spacing:3px; margin-bottom:1rem; display:inline-block; position:relative; padding-bottom:.5rem; }
.section-subtitle::after { content:''; position:absolute; bottom:0; left:50%; transform:translateX(-50%); width:50px; height:3px; background:var(--gradient-green); border-radius:3px; }
.section-title { color:var(--charcoal); margin-bottom:1.5rem; }
.section-description { font-size:1.2rem; color:var(--medium-gray); }

/* ===== CARDS ===== */
.card { background:var(--white); border-radius:var(--radius-lg); overflow:hidden; box-shadow:var(--shadow-sm); transition:all var(--transition-slow); position:relative; }
.card::before { content:''; position:absolute; top:0; left:0; width:100%; height:4px; background:var(--gradient-green); transform:scaleX(0); transform-origin:left; transition:transform var(--transition-base); z-index:2; }
.card:hover::before { transform:scaleX(1); }
.card:hover { transform:translateY(-10px) scale(1.02); box-shadow:var(--shadow-hover); }
.card-img { width:100%; height:250px; object-fit:cover; transition:transform var(--transition-slow); }
.card:hover .card-img { transform:scale(1.06); }
.card-body { padding:2rem; }
.card-icon { width:56px; height:56px; margin-bottom:1.5rem; transition:transform var(--transition-bounce); }
.card:hover .card-icon { transform:scale(1.15) rotate(5deg); }
.card-title { font-size:1.4rem; margin-bottom:.75rem; color:var(--charcoal); transition:color var(--transition-base); }
.card:hover .card-title { color:var(--primary-green); }
.card-text { color:var(--medium-gray); font-size:1rem; }

/* ===== ICON CIRCLES ===== */
.icon-circle { width:80px; height:80px; margin:0 auto 1.5rem; border-radius:50%; display:flex; align-items:center; justify-content:center; }
.icon-circle-green { background:var(--primary-green); }
.icon-circle-blue { background:var(--primary-blue); }
.icon-circle-teal { background:var(--accent-teal); }
.icon-circle-orange { background:var(--accent-orange); }

/* ===== GRIDS ===== */
.grid { 
    display: grid; 
    gap: 2rem; 
}

/* 2 columnas auto-fit */
.grid-2 { 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
}

/* 3 columnas auto-fit */
.grid-3 { 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
}

/* 4 columnas FIJAS en desktop */
.grid-4 { 
    grid-template-columns: repeat(4, 1fr); 
}

/* Two-column layout */
.two-col { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 3rem; 
    align-items: center; 
}

/* ===== RESPONSIVE FIXES ===== */
@media (max-width: 992px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

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


/* ===== CHECK LISTS ===== */
.check-list { list-style:none; padding:0; margin-bottom:2rem; }
.check-list li { padding:.5rem 0; display:flex; align-items:flex-start; gap:.75rem; font-size:1.05rem; color:var(--dark-text); }
.check-list li::before { content:''; flex-shrink:0; width:22px; height:22px; margin-top:3px; background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232D5F3F' stroke-width='2.5'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center; background-size:contain; }
.check-list-teal li::before { background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233EADA8' stroke-width='2.5'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); }
.check-list-blue li::before { background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E5B8C' stroke-width='2.5'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); }
.check-list-orange li::before { background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E67E22' stroke-width='2.5'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); }

/* ===== CTA SECTION ===== */
.cta-section { position:relative; min-height:480px; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.cta-bg { position:absolute; inset:0; background-size:cover; background-position:center; will-change:transform; }
.cta-overlay { position:absolute; inset:0; background:linear-gradient(135deg,rgba(45,95,63,.92),rgba(30,91,140,.88)); }
.cta-container { position:relative; z-index:2; text-align:center; }
.cta-content { max-width:800px; margin:0 auto; color:white; }
.cta-title { color:white; font-size:clamp(2rem,4vw,3.5rem); margin-bottom:1.5rem; }
.cta-text { font-size:1.4rem; color:rgba(255,255,255,.95); margin-bottom:2.5rem; font-weight:300; }
.cta-buttons { display:flex; gap:1.25rem; justify-content:center; flex-wrap:wrap; }
.cta-footnote { margin-top:2rem; font-size:.9rem; color:rgba(255,255,255,.75); }

/* ===== FORMS ===== */
.contact-form { background:var(--white); padding:2.5rem; border-radius:var(--radius-lg); box-shadow:var(--shadow-lg); position:relative; }
.form-group { margin-bottom:1.25rem; }
.form-group label { display:block; font-weight:600; margin-bottom:.4rem; color:var(--charcoal); font-size:.95rem; }
.form-group input,.form-group select,.form-group textarea { width:100%; padding:13px 16px; border:2px solid #E5E7EB; border-radius:8px; font-size:1rem; font-family:var(--font-main); transition:border-color .3s,box-shadow .3s; background:var(--white); }
.form-group input:focus,.form-group select:focus,.form-group textarea:focus { outline:none; border-color:var(--primary-green); box-shadow:0 0 0 4px rgba(45,95,63,.1); }
.form-group input.error,.form-group select.error,.form-group textarea.error { border-color:#E74C3C; }
.form-group .error-message { display:none; color:#E74C3C; font-size:.85rem; margin-top:.35rem; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }

/* ===== CERT CARDS ===== */
.cert-card { text-align:center; padding:2rem; background:white; border-radius:var(--radius); box-shadow:var(--shadow-sm); transition:all var(--transition-base); }
.cert-card:hover { transform:translateY(-5px); box-shadow:var(--shadow-md); }
.cert-card h4 { font-size:1.2rem; color:var(--primary-green); margin-bottom:.5rem; }
.cert-card p { font-size:.9rem; color:var(--medium-gray); margin:0; }

/* ===== CONTACT INFO ===== */
.contact-info-list { display:flex; flex-direction:column; gap:2rem; }
.contact-info-item { display:flex; align-items:flex-start; gap:1.5rem; }
.contact-info-icon { width:50px; height:50px; border-radius:50%; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.contact-info-item a { color:var(--medium-gray); }
.contact-info-item a:hover { color:var(--primary-green); }

/* ===== FOOTER ===== */
.footer { background:var(--charcoal); color:rgba(255,255,255,.8); padding:4rem 0 2rem; }
.footer-logo-link { display:inline-block; margin-bottom:1.25rem; }

/* Si tu logo ya es claro/blanco, quita el filtro */
.footer-logo-link img {
    filter:none;
    height:84px;
    width:auto;
}

/* resto igual */
.footer-grid { display:grid; grid-template-columns:1.5fr 1fr 1fr 1.2fr; gap:3rem; margin-bottom:3rem; }
.footer-title { color:var(--white); font-size:1.2rem; margin-bottom:1.25rem; }
.footer-text { font-size:.95rem; line-height:1.8; margin-bottom:1rem; }
.footer-links { list-style:none; }
.footer-link { display:block; padding:.4rem 0; color:rgba(255,255,255,.7); transition:all var(--transition-base); font-size:.95rem; }
.footer-link:hover { color:var(--accent-teal); padding-left:6px; }
.footer-contact-list { list-style:none; }
.footer-contact-item { display:flex; align-items:center; gap:10px; padding:.5rem 0; font-size:.95rem; }
.footer-contact-item svg { flex-shrink:0; stroke:var(--accent-teal); }
.footer-contact-item a { color:rgba(255,255,255,.7); }
.footer-contact-item a:hover { color:var(--accent-teal); }
.footer-bottom { border-top:1px solid rgba(255,255,255,.1); padding-top:2rem; text-align:center; font-size:.9rem; }
.footer-bottom-links { margin-top:.5rem; display:flex; gap:.75rem; justify-content:center; align-items:center; flex-wrap:wrap; }
.footer-bottom-links .footer-link { display:inline; padding:0; }
.footer-social { display:flex; gap:.75rem; margin-top:1rem; }
.social-icon { width:44px; height:44px; background:rgba(255,255,255,.1); border-radius:50%; display:flex; align-items:center; justify-content:center; transition:all var(--transition-bounce); color:rgba(255,255,255,.8); }
.social-icon:hover { background:var(--accent-teal); transform:translateY(-4px); box-shadow:0 8px 20px rgba(62,173,168,.4); color:white; }


/* ===== BACK TO TOP ===== */
.back-to-top { position:fixed; bottom:30px; right:30px; width:48px; height:48px; background:var(--primary-green); color:white; border:none; border-radius:50%; cursor:pointer; display:none; align-items:center; justify-content:center; box-shadow:var(--shadow-md); transition:all .3s ease; z-index:999; }
.back-to-top.visible { display:flex !important; }
.back-to-top:hover { transform:translateY(-5px); box-shadow:0 6px 24px rgba(0,0,0,.3); background:var(--accent-teal); }

/* ===== STICKY PHONE (mobile) ===== */
.sticky-phone { display:none; position:fixed; bottom:0; left:0; right:0; background:var(--primary-green); color:white; text-align:center; padding:14px; font-family:var(--font-heading); font-weight:600; font-size:1rem; z-index:9998; box-shadow:0 -4px 20px rgba(0,0,0,.2); align-items:center; justify-content:center; gap:8px; text-decoration:none; }
.sticky-phone svg { stroke:white; }

/* ===== UTILITY ===== */
.text-center { text-align:center; }
.mb-1{margin-bottom:1rem} .mb-2{margin-bottom:2rem} .mb-3{margin-bottom:3rem} .mb-4{margin-bottom:4rem}
.mt-1{margin-top:1rem} .mt-2{margin-top:2rem} .mt-3{margin-top:3rem} .mt-4{margin-top:4rem}

/* ===== RESPONSIVE ===== */
@media (max-width:900px) {
    .navbar-toggle { display:flex; }
    .topbar-right { display:none; }
}

@media (max-width:768px) {
    :root { --section-padding:60px; --navbar-height:70px; --topbar-height:36px; }
    .container { padding:0 1.25rem; }
    .topbar { font-size:.78rem; }
    .topbar-divider { display:none; }

    .navbar-toggle { display:flex; }
    .navbar-menu { position:fixed; top:0; right:-100%; width:85%; max-width:400px; height:100vh; background:var(--white); flex-direction:column; align-items:flex-start; padding:100px 2rem 2rem; gap:0; transition:right var(--transition-slow); box-shadow:-5px 0 30px rgba(0,0,0,.15); overflow-y:auto; z-index:10000; }
    .navbar-menu.active { right:0; }
    .navbar-menu li { width:100%; border-bottom:1px solid rgba(0,0,0,.05); }
    .navbar-link { font-size:1.125rem; width:100%; padding:1.25rem 0; display:block; }
    .navbar-link::after { display:none; }
    .navbar-menu .btn { width:100%; margin-top:1rem; text-align:center; }
    .navbar-phone-link { font-size:1rem; padding:1.25rem 0; display:flex; width:100%; }

    body.menu-open::before { content:''; position:fixed; inset:0; background:rgba(0,0,0,.45); backdrop-filter:blur(4px); z-index:9998; pointer-events:none; }
    body.menu-open { overflow:hidden; position:fixed; width:100%; }

    .hero { margin-top:calc(var(--navbar-height) + var(--topbar-height)); min-height:600px; }
    .page-hero { min-height:300px; height:45vh; }
    .hero-buttons { flex-direction:column; width:100%; }
    .hero-buttons .btn { width:100%; }
    .hero-trust { flex-direction:column; gap:1rem; align-items:center; }
    .hero-badge { font-size:.75rem; padding:6px 18px; }

    .two-col { grid-template-columns:1fr; gap:2rem; }
    .two-col-reverse { display:flex; flex-direction:column-reverse; }
    .grid,.grid-2,.grid-3,.grid-4 { grid-template-columns:1fr; gap:1.5rem; }
    .footer-grid { grid-template-columns:1fr; text-align:center; gap:2rem; }
    .footer-social { justify-content:center; }
    .footer-contact-item { justify-content:center; }
    .form-row { grid-template-columns:1fr; }

    .sticky-phone { display:flex; }
    .back-to-top { bottom:80px; }

    .cta-buttons { flex-direction:column; }
    .cta-buttons .btn { width:100%; }
}

@media (max-width:480px) {
    :root { --section-padding:50px; }
    h1 { font-size:2.25rem; } h2 { font-size:1.875rem; }
    .btn { padding:13px 24px; font-size:.95rem; }
    .btn-lg { padding:15px 30px; font-size:1rem; }
    .navbar-logo img { height:42px; }
    .hero { min-height:550px; }
    .hero-content { padding:1rem; }
    .contact-form { padding:1.75rem; }
}

/* ===== PRINT ===== */
@media print { .navbar,.topbar,.footer,.sticky-phone,.back-to-top,.scroll-indicator { display:none !important; } .hero { height:auto; min-height:0; } }

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; } html { scroll-behavior:auto; } }

/* ===== SAFE AREA ===== */
@supports (padding:max(0px)) {
    .navbar-container,.container { padding-left:max(2rem,env(safe-area-inset-left)); padding-right:max(2rem,env(safe-area-inset-right)); }
    .sticky-phone { padding-bottom:max(14px,env(safe-area-inset-bottom)); }
}

/* ============================================
   EDITS — client revision (2026)
   ============================================ */

/* Home hero: video flush to very top of page, with transparent nav over it */
.hero-home { margin-top:0; }
.is-home .topbar { background:transparent; }
.is-home .navbar:not(.scrolled) { background:transparent; box-shadow:none; backdrop-filter:none; -webkit-backdrop-filter:none; }
.is-home .navbar:not(.scrolled) .navbar-logo img { background:#fff; padding:5px 10px; border-radius:10px; box-shadow:0 6px 18px rgba(0,0,0,.18); }

/* White hamburger over the video; reverts to dark when the white slide-in panel is open */
.is-home:not(.menu-open) .navbar:not(.scrolled) .navbar-toggle span { background:#fff; }

/* White horizontal links ONLY on desktop (>=901px), where the nav floats over the hero video.
   On <=900px the menu is a white slide-in panel, so links keep their default dark color. */
@media (min-width:901px) {
    .is-home .navbar:not(.scrolled) .navbar-link { color:#fff; }
    .is-home .navbar:not(.scrolled) .navbar-link:hover,
    .is-home .navbar:not(.scrolled) .navbar-link.active { color:#fff; }
    .is-home .navbar:not(.scrolled) .navbar-link::after { background:#fff; }
}

/* Mobile nav: slide-in panel across the full hamburger range (<=900px),
   not just <=768px — removes the 769-900px dead zone where both nav styles showed. */
@media (max-width:900px) {
    .navbar-menu { position:fixed; top:0; right:-100%; width:85%; max-width:400px; height:100vh; background:var(--white); flex-direction:column; align-items:flex-start; padding:100px 2rem 2rem; gap:0; transition:right var(--transition-slow); box-shadow:-5px 0 30px rgba(0,0,0,.15); overflow-y:auto; z-index:10000; }
    .navbar-menu.active { right:0; }
    .navbar-menu li { width:100%; border-bottom:1px solid rgba(0,0,0,.05); }
    .navbar-menu .navbar-link { font-size:1.125rem; width:100%; padding:1.25rem 0; display:block; color:var(--charcoal); }
    .navbar-menu .navbar-link::after { display:none; }
    .navbar-menu .btn { width:100%; margin-top:1rem; text-align:center; }
    body.menu-open::before { content:''; position:fixed; inset:0; background:rgba(0,0,0,.45); backdrop-filter:blur(4px); z-index:9998; pointer-events:none; }
    body.menu-open { overflow:hidden; position:fixed; width:100%; }
}

/* Keep nav tabs aligned to the right */
.navbar-menu { margin-left:auto; }

/* Image caption (e.g. project labels under photos) */
.img-caption { margin-top:.85rem; margin-bottom:0; font-size:.95rem; font-style:italic; color:var(--medium-gray); text-align:center; letter-spacing:.3px; }

/* ============================================
   PREMIUM GLASSMORPHISM CARD SYSTEM
   ============================================ */
:root {
    --glass-bg: rgba(255,255,255,.66);
    --glass-bg-hover: rgba(255,255,255,.82);
    --glass-border: rgba(255,255,255,.7);
    --glass-blur: blur(16px) saturate(150%);
    --glass-shadow: 0 8px 30px rgba(31,41,51,.10), 0 2px 8px rgba(31,41,51,.06);
    --glass-shadow-hover: 0 26px 60px rgba(31,41,51,.18), 0 8px 20px rgba(31,41,51,.10);
}

/* Soft brand-colored orbs behind card sections give the glass real depth to blur */
.section-orbs { position:relative; overflow:hidden; isolation:isolate; }
.section-orbs::before,
.section-orbs::after {
    content:''; position:absolute; border-radius:50%; pointer-events:none; z-index:0;
}
.section-orbs::before {
    width:min(62vw,640px); aspect-ratio:1; top:-16%; right:-10%;
    background:radial-gradient(circle at 30% 30%, rgba(62,173,168,.20), rgba(30,91,140,.12) 45%, transparent 70%);
}
.section-orbs::after {
    width:min(58vw,600px); aspect-ratio:1; bottom:-20%; left:-12%;
    background:radial-gradient(circle at 60% 40%, rgba(45,95,63,.18), rgba(62,173,168,.10) 50%, transparent 72%);
}
.section-orbs > .container { position:relative; z-index:1; }

/* Reusable glass card */
.glass-card {
    background:var(--glass-bg);
    -webkit-backdrop-filter:var(--glass-blur);
    backdrop-filter:var(--glass-blur);
    border:1px solid var(--glass-border);
    border-radius:20px;
    box-shadow:var(--glass-shadow);
    padding:2.25rem 1.75rem;
    transition:transform .35s cubic-bezier(.4,0,.2,1), box-shadow .35s ease, background .35s ease, border-color .35s ease;
    position:relative;
}
.glass-card::after {
    content:''; position:absolute; left:0; right:0; top:0; height:1px;
    background:linear-gradient(90deg, transparent, rgba(255,255,255,.9), transparent);
    opacity:.7; pointer-events:none;
}
.glass-card:hover {
    transform:translateY(-8px);
    background:var(--glass-bg-hover);
    border-color:rgba(255,255,255,.95);
    box-shadow:var(--glass-shadow-hover);
}

/* Glassify the existing .card component (services, mission, testimonials) */
.card {
    background:var(--glass-bg);
    -webkit-backdrop-filter:var(--glass-blur);
    backdrop-filter:var(--glass-blur);
    border:1px solid var(--glass-border);
    box-shadow:var(--glass-shadow);
}
.card:hover { box-shadow:var(--glass-shadow-hover); }

/* Glassify certification cards */
.cert-card {
    background:var(--glass-bg);
    -webkit-backdrop-filter:var(--glass-blur);
    backdrop-filter:var(--glass-blur);
    border:1px solid var(--glass-border);
    box-shadow:var(--glass-shadow);
}
.cert-card:hover { box-shadow:var(--glass-shadow-hover); background:var(--glass-bg-hover); }

/* On small screens lighten the blur a touch for performance */
@media (max-width:768px) {
    :root { --glass-blur: blur(12px) saturate(140%); }
}

/* Credential / certification logos (Who We Are) */
.cred-logos { display:flex; align-items:center; gap:1.75rem; flex-wrap:wrap; margin-bottom:2rem; }
.cred-logo { width:auto; object-fit:contain; display:block; }
.cred-logo-tbpels { height:44px; border-radius:6px; }
.cred-logo-tsps { height:88px; }

/* Testimonials — company logo instead of initials */
.testimonial-logo-wrap { width:auto; min-width:64px; height:52px; display:flex; align-items:center; justify-content:flex-start; flex-shrink:0; }
.testimonial-logo { max-height:52px; max-width:150px; width:auto; height:auto; object-fit:contain; }
.testimonial-company { font-size:1.05rem; font-weight:700; color:var(--charcoal); margin:0; }

@media (max-width:768px) {
    .cred-logos { justify-content:center; }
}
