/* ==========================================================
   Triple S Security | Responsive Stylesheet
   Desktop is the reference design. Mobile is a refinement.
   ========================================================== */

/* ---------- Tokens ---------- */
:root{
    --navy:#061728;
    --navy-light:#102946;

    --blue:#2E7BEA;
    --blue-dark:#1F5FC6;

    --red:#D84343;

    --bg:#F7F9FC;
    --card:rgba(255,255,255,.72);

    --text:#1F2937;
    --text-light:#64748B;

    --radius:clamp(12px,1.5vw,16px);

    --shadow:0 10px 30px rgba(0,0,0,.08),0 2px 10px rgba(0,0,0,.04);
    --shadow-hover:0 18px 40px rgba(0,0,0,.12),0 6px 18px rgba(0,0,0,.06);

    --border:1px solid rgba(255,255,255,.45);
    --transition:.25s ease;

    --header-h:96px;      /* used on mobile spacer */
}

/* ---------- Reset ---------- */
*{margin:0;padding:0;box-sizing:border-box;}
*,*::before,*::after{-webkit-tap-highlight-color:transparent;}

html{scroll-behavior:smooth;background:#08111E;}

body{
    font-family:"Segoe UI",Arial,sans-serif;
    background:linear-gradient(180deg,#F9FBFD,#EEF3F8);
    color:var(--text);
    line-height:1.7;
    overflow-x:hidden;
    animation:fade .6s ease;
    min-height:100vh;
}

img{max-width:100%;height:auto;display:block;}

/* Ambient blobs */
body::before,
body::after{
    content:"";
    position:fixed;
    width:clamp(250px,35vw,420px);
    height:clamp(250px,35vw,420px);
    border-radius:50%;
    filter:blur(140px);
    z-index:-1;
    opacity:.05;
    pointer-events:none;
}
body::before{background:#2E7BEA;top:-15vw;left:-15vw;}
body::after {background:#0B2346;bottom:-15vw;right:-15vw;}

@keyframes fade{
    from{opacity:0;transform:translateY(12px);}
    to  {opacity:1;transform:none;}
}

/* Page transition overlay */
#transition-overlay{
    position:fixed;inset:0;
    background:#061728;
    opacity:0;pointer-events:none;
    transition:opacity .5s ease;
    z-index:9999;
}
#transition-overlay.active{opacity:1;}

/* ==========================================================
   HEADER (Desktop)
   ========================================================== */
header{
    position:fixed;
    top:clamp(10px,2vw,18px);
    left:50%;
    transform:translateX(-50%);
    width:min(92%,1450px);

    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:clamp(12px,2vw,20px);

    padding:clamp(12px,1.6vw,16px) clamp(18px,3vw,34px);

    background:rgba(6,23,40,.82);
    backdrop-filter:blur(22px) saturate(180%);
    -webkit-backdrop-filter:blur(22px) saturate(180%);

    border:1px solid rgba(255,255,255,.08);
    border-radius:var(--radius);
    box-shadow:0 20px 45px rgba(0,0,0,.22);

    z-index:1000;
    transition:var(--transition);
}
header:hover{box-shadow:0 25px 55px rgba(0,0,0,.28);}

.header-logo{
    height:clamp(42px,4vw,56px);
    width:auto;
    border-radius:12px;
    flex-shrink:0;
}

.logo{
    font-size:clamp(1rem,1.6vw,1.45rem);
    font-weight:700;
    letter-spacing:.5px;
    color:#fff;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

/* ---------- Navigation ---------- */
.nav{
    display:flex;
    list-style:none;
    gap:clamp(6px,1vw,12px);
    align-items:center;
}
.nav a{
    text-decoration:none;
    color:#fff;
    padding:clamp(8px,1vw,11px) clamp(12px,1.8vw,18px);
    font-weight:600;
    border-radius:clamp(8px,1vw,10px);
    transition:var(--transition);
    border:1px solid transparent;
    display:inline-block;
    min-height:44px;
    line-height:1.4;
    display:inline-flex;
    align-items:center;
}
.nav a:hover{
    background:rgba(255,255,255,.08);
    border-color:rgba(255,255,255,.12);
    transform:translateY(-2px);
}
.nav a.active{
    background:var(--blue);
    box-shadow:0 8px 20px rgba(46,123,234,.25);
}

/* Hamburger (hidden on desktop) */
.menu-toggle{
    display:none;
    background:none;
    border:none;
    color:#fff;
    font-size:2rem;
    cursor:pointer;
    padding:0;
    width:44px;
    height:44px;
    align-items:center;
    justify-content:center;
    border-radius:10px;
}
.menu-toggle:hover{background:rgba(255,255,255,.08);}
.menu-toggle .bar{
    display:block;
    width:22px;height:2px;
    background:#fff;
    position:relative;
    transition:.3s ease;
}
.menu-toggle .bar::before,
.menu-toggle .bar::after{
    content:"";
    position:absolute;left:0;
    width:22px;height:2px;
    background:#fff;
    transition:.3s ease;
}
.menu-toggle .bar::before{top:-7px;}
.menu-toggle .bar::after {top:7px;}
.menu-toggle.is-open .bar{background:transparent;}
.menu-toggle.is-open .bar::before{top:0;transform:rotate(45deg);}
.menu-toggle.is-open .bar::after {top:0;transform:rotate(-45deg);}

/* ==========================================================
   HERO
   ========================================================== */
.hero{
    min-height:100vh;
    display:flex;
    flex-direction:column;
    justify-content:center;
    padding:clamp(120px,15vw,170px) clamp(6%,8vw,10%) clamp(70px,8vw,100px);
    color:#fff;
    background:
        linear-gradient(rgba(6,23,40,.78),rgba(6,23,40,.88)),
        linear-gradient(135deg,#102946,#061728);
}
.hero h1{
    font-size:clamp(2rem,5.2vw,3.8rem);
    line-height:1.1;
    letter-spacing:clamp(-2px,-.2vw,-1px);
    max-width:min(92vw,900px);
    margin-bottom:clamp(14px,2vw,22px);
}
.hero p{
    max-width:min(92vw,720px);
    font-size:clamp(1rem,1.35vw,1.12rem);
    color:rgba(255,255,255,.85);
    margin-bottom:clamp(24px,3vw,36px);
}
.hero-buttons{
    display:flex;
    flex-direction:row;
    flex-wrap:wrap;
    width:auto;
    gap:14px;
    align-items:center;
    justify-content:flex-start;
}
/* ==========================================================
   BUTTONS
   ========================================================== */
.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:48px;
    padding:clamp(12px,1.6vw,15px) clamp(22px,3vw,34px);
    background:var(--blue);
    color:#fff;
    text-decoration:none;
    font-weight:700;
    font-size:1rem;
    border-radius:clamp(10px,1vw,12px);
    box-shadow:0 10px 28px rgba(46,123,234,.25);
    transition:var(--transition);
    border:none;
    cursor:pointer;
    line-height:1.2;
    text-align:center;
}
.btn:hover{
    background:var(--blue-dark);
    transform:translateY(-3px);
    box-shadow:0 18px 35px rgba(46,123,234,.30);
}
.btn:focus-visible{
    outline:3px solid rgba(255,255,255,.55);
    outline-offset:2px;
}

/* ==========================================================
   SECTIONS + GRID
   ========================================================== */
section{
    padding:clamp(70px,9vw,110px) clamp(20px,8vw,8%);
}
section h2{
    font-size:clamp(1.7rem,3.4vw,2.6rem);
    margin-bottom:clamp(15px,2vw,20px);
    color:var(--navy);
    line-height:1.2;
}
section > p{
    max-width:75ch;
    color:var(--text);
}

.grid,
.timeline{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));
    gap:clamp(18px,3vw,32px);
    margin-top:clamp(24px,3vw,36px);
    align-items:stretch;
}

/* ==========================================================
   CARDS
   ========================================================== */
.card,
.step{
    background:var(--card);
    backdrop-filter:blur(20px) saturate(180%);
    -webkit-backdrop-filter:blur(20px) saturate(180%);
    border:var(--border);
    border-radius:var(--radius);
    padding:clamp(22px,3vw,38px);
    box-shadow:var(--shadow);
    transition:var(--transition);
    display:flex;
    flex-direction:column;
    gap:10px;
    height:100%;
}
.card h3,
.step h3{
    font-size:clamp(1.15rem,1.6vw,1.35rem);
    color:var(--navy);
    line-height:1.3;
}
.card p,
.step p{
    color:var(--text);
    font-size:1rem;
}
.card:hover,
.step:hover{
    transform:translateY(-6px);
    box-shadow:var(--shadow-hover);
}
.step{
    text-align:center;
    align-items:center;
    justify-content:center;
}
.step strong{
    display:inline-flex;
    align-items:center;justify-content:center;
    width:44px;height:44px;
    border-radius:50%;
    background:var(--blue);
    color:#fff;
    font-size:1.1rem;
    margin-bottom:8px;
}
.eyebrow{
    display:inline-flex;
    align-items:center;
    gap:8px;
    color:var(--blue-dark);
    font-size:.78rem;
    font-weight:800;
    letter-spacing:.12em;
    text-transform:uppercase;
}
.eyebrow::before{
    content:"";
    width:28px;
    height:2px;
    background:currentColor;
}
.process-timeline{
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:16px;
    position:relative;
}
.process-timeline .step{
    position:relative;
    align-items:flex-start;
    justify-content:flex-start;
    text-align:left;
    padding:28px 24px;
    overflow:hidden;
}
.process-timeline .step::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:5px;
    background:linear-gradient(90deg,var(--blue),#7cb3ff);
}
.process-timeline .step strong{
    width:50px;
    height:50px;
    margin:0 0 16px;
    font-size:1rem;
}
.step-label{
    color:var(--blue-dark);
    font-size:.72rem;
    font-weight:800;
    letter-spacing:.1em;
    text-transform:uppercase;
}
.process-timeline .step h3{font-size:1.2rem;}
.process-timeline .step p{font-size:.94rem;line-height:1.6;}
@media (max-width:1100px){
    .process-timeline{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:700px){
    .process-timeline{grid-template-columns:1fr;gap:14px;}
    .process-timeline .step{padding:24px 22px;}
}

/* ==========================================================
   GALLERY
   ========================================================== */
.gallery-section{
    width:min(1200px,92%);
    margin:clamp(60px,8vw,90px) auto;
    padding:0;
}
.gallery-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:clamp(14px,2vw,24px);
}
.gallery-card{
    overflow:hidden;
    border-radius:18px;
    background:#fff;
    box-shadow:0 10px 30px rgba(0,0,0,.10);
    transition:.3s ease;
    aspect-ratio:4/3;
}
.gallery-card img{
    width:100%;
    height:100%;
    object-fit:cover;
    border-radius:18px;
    transition:transform .4s ease;
}
@media (hover:hover){
    .gallery-card:hover{
        transform:translateY(-5px);
        box-shadow:0 18px 40px rgba(0,0,0,.15);
    }
    .gallery-card:hover img{transform:scale(1.04);}
}

/* ==========================================================
   FORMS
   ========================================================== */
.contact-form{
    max-width:700px;
    margin:clamp(24px,3vw,32px) 0 0;
    display:grid;
    gap:16px;
}
.contact-form input,
.contact-form select,
.contact-form textarea{
    width:100%;
    padding:14px 18px;
    border-radius:12px;
    border:1px solid #ccd3dd;
    background:#fff;
    color:var(--text);
    font-size:1rem;
    font-family:inherit;
    line-height:1.5;
    transition:var(--transition);
    min-height:48px;
}
.contact-form textarea{
    min-height:150px;
    resize:vertical;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder{color:#98a1af;}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus{
    outline:none;
    border-color:var(--blue);
    box-shadow:0 0 0 4px rgba(46,123,234,.15);
}
.contact-form input:invalid:not(:placeholder-shown),
.contact-form textarea:invalid:not(:placeholder-shown){
    border-color:var(--red);
}
.contact-form .btn{width:auto;justify-self:start;}

/* ==========================================================
   FOOTER
   ========================================================== */
footer{
    background:var(--navy);
    color:#fff;
    padding:clamp(45px,7vw,70px) clamp(20px,8vw,8%);
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:clamp(25px,4vw,50px);
    align-items:start;
}
footer > div{
    display:flex;
    flex-direction:column;
    gap:10px;
}
footer h3{
    font-size:clamp(1.05rem,1.4vw,1.3rem);
    margin-bottom:6px;
    color:#fff;
}
footer p{
    color:rgba(255,255,255,.75);
    line-height:1.7;
    max-width:350px;
}
address{font-style:normal;}
footer a{
    color:rgba(255,255,255,.85);
    text-decoration:none;
    transition:.25s ease;
    display:inline-block;
    padding:4px 0;
    min-height:32px;
}
footer a:hover{color:#fff;transform:translateX(4px);}

/* ==========================================================
   TABLET  (≤ 1024px)
   ========================================================== */
@media (max-width:1024px){
    .gallery-grid{grid-template-columns:repeat(2,1fr);}
}

/* ==========================================================
   COMPACT NAVIGATION (≤ 1100px)
   ========================================================== */
@media (max-width:1100px){
    header{
        width:calc(100% - 20px);
        top:10px;
        padding:12px 16px;
        gap:12px;
        flex-wrap:wrap;
        border-radius:16px;
    }
    .header-logo{height:44px;width:44px;object-fit:cover;}
    .logo{
        flex:1;
        font-size:1rem;
        min-width:0;
    }
    .menu-toggle{display:inline-flex;margin-left:auto;}

    nav{
        order:3;
        width:100%;
        max-height:0;
        overflow:hidden;
        transition:max-height .35s ease;
    }
    nav.mobile-open{max-height:600px;}

    .nav{
        flex-direction:column;
        gap:8px;
        padding-top:14px;
        border-top:1px solid rgba(255,255,255,.08);
        margin-top:6px;
    }
    .nav a{
        display:flex;
        justify-content:center;
        text-align:center;
        width:100%;
        padding:14px;
        border-radius:12px;
        font-size:1rem;
        min-height:48px;
    }

}

@media (max-width:700px){
    /* Hero */
    .hero{
        padding:130px 6% 70px;
        text-align:left;
        align-items:flex-start;
        min-height:auto;
    }
    .hero h1{font-size:2.15rem;line-height:1.15;margin-bottom:18px;}
    .hero p{font-size:1rem;line-height:1.75;margin-bottom:30px;}
    .hero-buttons{flex-direction:column;width:100%;align-items:stretch;gap:12px;}
    .hero-buttons .btn{width:100%;min-height:52px;padding:16px 20px;}

    /* Sections */
    section{padding:60px 6%;}
    section h2{font-size:1.75rem;margin-bottom:16px;}
    section p{font-size:1rem;line-height:1.75;}

    .grid,.timeline{grid-template-columns:1fr;gap:18px;}
    .card,.step{padding:24px;}

    /* Gallery */
    .gallery-section{margin:60px auto;}
    .gallery-grid{grid-template-columns:repeat(2,1fr);gap:14px;}

    /* Form */
    .contact-form input,
    .contact-form select,
    .contact-form textarea{
        font-size:16px;   /* prevents iOS zoom */
    }
    .contact-form .btn{width:100%;justify-self:stretch;}

    /* Footer */
    footer{
        grid-template-columns:1fr;
        text-align:center;
        gap:32px;
        padding:50px 6%;
    }
    footer > div{align-items:center;}
    footer p{max-width:100%;}
    footer a:hover{transform:none;}
}

/* ==========================================================
   SMALL PHONES  (≤ 480px)
   ========================================================== */
@media (max-width:480px){
    header{padding:10px 12px;gap:10px;}
    .header-logo{height:40px;width:40px;}
    .logo{font-size:.92rem;letter-spacing:.3px;}

    .hero{padding:120px 6% 55px;}
    .hero h1{font-size:1.85rem;letter-spacing:-.5px;}
    .hero p{font-size:.96rem;margin-bottom:28px;}

    section{padding:52px 6%;}
    section h2{font-size:1.55rem;}

    .card,.step{padding:22px;}
    .card h3,.step h3{font-size:1.1rem;}

    .gallery-grid{grid-template-columns:1fr;gap:14px;}
    .gallery-card{aspect-ratio:16/10;}

    .btn{width:100%;}
}

/* ==========================================================
   REDUCED MOTION
   ========================================================== */
@media (prefers-reduced-motion:reduce){
    *,*::before,*::after{
        animation-duration:.001ms !important;
        animation-iteration-count:1 !important;
        transition-duration:.001ms !important;
        scroll-behavior:auto !important;
    }
    .card:hover,.step:hover,.btn:hover,.gallery-card:hover,.gallery-card:hover img{
        transform:none;
    }
}

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

/* Reused "CTA" hero at the bottom of pages */
.hero.cta{
    min-height:auto;
    padding:clamp(60px,7vw,90px) clamp(20px,8vw,8%);
    text-align:center;
    align-items:center;
}
.hero.cta h2{
    font-size:clamp(1.6rem,3.2vw,2.4rem);
    max-width:820px;
    margin-left:auto;margin-right:auto;
}
.skip-link{
    position:fixed;
    top:12px;
    left:12px;
    z-index:10000;
    padding:10px 14px;
    border-radius:8px;
    background:#fff;
    color:var(--navy);
    font-weight:700;
    text-decoration:none;
    transform:translateY(-160%);
    transition:transform .2s ease;
}
.skip-link:focus{transform:translateY(0);}
.hero.cta p{
    margin-left:auto;margin-right:auto;
    margin-bottom:clamp(20px,2.5vw,28px);
}
.hero.cta .hero-buttons{
    justify-content:center;
    flex-direction:row;
    width:auto;
}
@media (max-width:700px){
    .hero.cta{text-align:center;align-items:center;}
    .hero.cta .hero-buttons{flex-direction:column;width:100%;}
    
}
