/* ═══════════════════════════════════════════
   AMPF — GLOBAL CSS
   File: public/assets/css/global.css
═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@400;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');

/* ─── VARIABLES ──────────────────────────── */
:root {
    --ampf-orange: #E8761A;
    --ampf-green:  #2E9E4F;
    --ampf-blue:   #1B6BB5;
    --navy:        #0a1628;
    --navy-mid:    #112240;
    --ice:         #e8f4fd;
    --ice-mid:     #cce8f8;
    --white:       #ffffff;
    --gray:        #64748b;
    --gray-light:  #f1f5f9;
    --text:        #1e293b;

    /* aliases */
    --blue:        #1B6BB5;
    --blue-light:  #3b82f6;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'DM Sans', sans-serif;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
    padding-top: 72px;
}
h1, h2, h3, h4, h5 { font-family: 'Roboto Condensed', sans-serif; }
img { max-width: 100%; height: auto; }
a { text-decoration: none; }

/* ─── PRELOADER ──────────────────────────── */
.ampf-preloader {
    position: fixed; inset: 0;
    background: var(--navy);
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.ampf-preloader.hidden { opacity: 0; visibility: hidden; }

.preloader-3D img {
    width: auto;
    height: 9rem;
    margin: auto;
}
.preloader-inner { text-align: center; }

.preloader-logo {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 52px; font-weight: 800;
    color: white; margin-bottom: 24px;
    background: linear-gradient(135deg, var(--ampf-orange), var(--ampf-blue));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    letter-spacing: -1px;
}

.preloader-bar {
    width: 200px; height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px; overflow: hidden; margin: 0 auto;
}

.preloader-bar-fill {
    height: 100%; width: 0;
    background: linear-gradient(90deg,
        var(--ampf-orange) 0%,  var(--ampf-orange) 33%,
        var(--ampf-green)  33%, var(--ampf-green)  66%,
        var(--ampf-blue)   66%, var(--ampf-blue)   100%
    );
    border-radius: 2px;
    animation: loadBar 1.2s ease forwards;
}
@keyframes loadBar { to { width: 100%; } }

/* ─── SCROLL TOP ─────────────────────────── */
.scroll-top-btn {
    position: fixed; bottom: 32px; right: 32px;
    width: 44px; height: 44px;
    background: var(--ampf-blue);
    color: white; border: none; border-radius: 12px;
    font-size: 14px; cursor: pointer;
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: all 0.3s; z-index: 500;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 20px rgba(27,107,181,0.35);
}
.scroll-top-btn.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top-btn:hover { background: var(--ampf-green); transform: translateY(-3px); box-shadow: 0 10px 24px rgba(46,158,79,0.4); }

/* ══════════════════════════════════════════════
   PAGE HERO — Base
══════════════════════════════════════════════ */
.page-hero {
    background: var(--navy);
    padding: 72px 0 60px;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 70% 80% at 70% 50%, rgba(27,107,181,0.18) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 20% 30%, rgba(232,118,26,0.1) 0%, transparent 50%),
        radial-gradient(ellipse 30% 40% at 90% 80%, rgba(46,158,79,0.07) 0%, transparent 50%);
    z-index: 1;
}

.page-hero-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 1;
}

.page-hero-content {
    position: relative; z-index: 2;
    max-width: 1280px; margin: 0 auto; padding: 0 48px;
}

/* ── PAGE HERO WITH BACKGROUND IMAGE ✅ ──── */
.page-hero--img {
    padding: 100px 0 80px;
    min-height: 380px;
    display: flex;
    align-items: center;
}

/* Khothi ::before dyal base (gradients) mashi visible f img hero */
.page-hero--img::before {
    display: none;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* Overlay faw9 l'image */
.page-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10,22,40,0.88) 0%,
        rgba(10,22,40,0.65) 50%,
        rgba(27,107,181,0.35) 100%
    );
}

/* Grid faw9 l'image */
.page-hero--img .page-hero-grid {
    z-index: 1;
}

/* Content z-index */
.page-hero--img .page-hero-content {
    position: relative;
    z-index: 2;
}

/* Label color f image hero */
.page-hero--img .page-hero-label {
    color: var(--ampf-orange);
}
.page-hero--img .page-hero-label::before {
    background: var(--ampf-orange);
}

/* ── Labels & Title ──────────────────────── */
.page-hero-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 11px; font-weight: 600;
    letter-spacing: 2px; text-transform: uppercase;
    color: var(--ampf-orange);
    margin-bottom: 12px;
    display: flex; align-items: center; gap: 8px;
}
.page-hero-label::before {
    content: ''; display: inline-block;
    width: 20px; height: 2px;
    background: var(--ampf-orange); border-radius: 2px;
}

.page-hero-title {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: clamp(36px, 5vw, 64px); font-weight: 800;
    color: white; line-height: 1.05; margin-bottom: 16px;
    letter-spacing: -1px;
}

.page-hero-desc {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px; color: rgba(255,255,255,0.5);
    max-width: 560px; line-height: 1.7;
}

.page-hero-title-bar {
    display: block;
    width: 60px; height: 3px;
    background: linear-gradient(90deg,
        var(--ampf-orange) 0%,  var(--ampf-orange) 33%,
        var(--ampf-green)  33%, var(--ampf-green)  66%,
        var(--ampf-blue)   66%, var(--ampf-blue)   100%
    );
    border-radius: 2px;
    margin: 14px 0 16px;
}

.page-breadcrumb {
    display: flex; align-items: center; gap: 8px; margin-top: 20px;
}
.page-breadcrumb a,
.page-breadcrumb span {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px; color: rgba(255,255,255,0.4);
    text-decoration: none; transition: color 0.2s;
}
.page-breadcrumb a:hover { color: rgba(255,255,255,0.8); }
.page-breadcrumb .sep { color: rgba(255,255,255,0.2); font-size: 11px; }
.page-breadcrumb .current { color: var(--ampf-blue); }

/* ─── CONTAINER ──────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 48px; }
.section { padding: 100px 0; }

/* ─── SECTION LABELS ─────────────────────── */
.section-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 11px; font-weight: 600;
    letter-spacing: 2px; text-transform: uppercase;
    color: var(--ampf-blue); margin-bottom: 12px; display: block;
}
.section-label-light { color: var(--ampf-orange); }

.section-title {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: clamp(28px, 3.5vw, 44px); font-weight: 700;
    color: var(--navy); line-height: 1.1; margin-bottom: 16px;
    letter-spacing: -0.5px;
}
.section-title-white { color: white; }

.section-desc {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px; color: var(--gray); line-height: 1.7; max-width: 600px;
}
.section-desc-light { color: rgba(255,255,255,0.45); }

/* Values page helpers */
.values-head { margin-bottom: 56px; }
.values-desc  { margin: 0 auto; }

/* ─── BUTTONS ────────────────────────────── */
.btn-primary {
    background: var(--ampf-green); color: white;
    padding: 13px 26px; border-radius: 10px;
    font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 15px;
    text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
    transition: all 0.2s; border: none; cursor: pointer;
}
.btn-primary:hover { background: #37b85e; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(46,158,79,0.4); color: white; }

.btn-secondary {
    background: rgba(255,255,255,0.06); color: white;
    padding: 13px 26px; border-radius: 10px;
    font-family: 'DM Sans', sans-serif; font-weight: 500; font-size: 15px;
    text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
    border: 1px solid rgba(255,255,255,0.14); transition: all 0.2s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.28); color: white; }

.btn-blue {
    background: var(--ampf-blue); color: white;
    padding: 13px 26px; border-radius: 10px;
    font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 15px;
    text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
    transition: all 0.2s; border: none; cursor: pointer;
}
.btn-blue:hover { background: #1e7fcb; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(27,107,181,0.4); color: white; }

.btn-gold {
    background: var(--ampf-orange); color: white;
    padding: 13px 26px; border-radius: 10px;
    font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 15px;
    text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
    transition: all 0.2s; border: none; cursor: pointer;
}
.btn-gold:hover { background: #f08020; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,118,26,0.4); color: white; }

/* ─── REVEAL ─────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── CARDS ──────────────────────────────── */
.ampf-card { background: white; border-radius: 16px; border: 1px solid rgba(0,0,0,0.06); overflow: hidden; transition: all 0.3s; }
.ampf-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); border-color: transparent; }

/* ─── SERVICE CARDS ──────────────────────── */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }

.service-item {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 36px 28px;
    position: relative;
    transition: all 0.3s;
    overflow: hidden;
}
.service-item.dark  { background: var(--navy-mid); }
.service-item.light { background: white; border-color: rgba(0,0,0,0.06); }

.service-item:hover       { border-color: rgba(27,107,181,0.4); background: rgba(27,107,181,0.06); }
.service-item.dark:hover  { background: rgba(27,107,181,0.15); border-color: rgba(27,107,181,0.3); }
.service-item.light:hover { border-color: rgba(27,107,181,0.2); box-shadow: 0 12px 32px rgba(27,107,181,0.1); }

.service-item-num {
    position: absolute; top: 16px; right: 20px;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 52px; font-weight: 800;
    color: rgba(255,255,255,0.05);
    line-height: 1;
}
.service-item.light .service-item-num { color: rgba(0,0,0,0.04); }

.service-item-icon {
    width: 50px; height: 50px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; margin-bottom: 20px;
    background: rgba(27,107,181,0.12);
    border: 1px solid rgba(27,107,181,0.2);
    color: #60aeff;
    transition: transform 0.2s;
}
.service-item:hover .service-item-icon { transform: scale(1.1); }
.service-item.light .service-item-icon { background: var(--ice); border-color: var(--ice-mid); color: var(--ampf-blue); }

.service-item:nth-child(3n+1) .service-item-icon { background: rgba(232,118,26,0.12); border-color: rgba(232,118,26,0.25); color: var(--ampf-orange); }
.service-item:nth-child(3n+2) .service-item-icon { background: rgba(46,158,79,0.12);  border-color: rgba(46,158,79,0.25);  color: var(--ampf-green); }
.service-item:nth-child(3n+3) .service-item-icon { background: rgba(27,107,181,0.12); border-color: rgba(27,107,181,0.25); color: var(--ampf-blue); }

.service-item-title {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 16px; font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
    color: white;
    letter-spacing: -0.2px;
}
.service-item.light .service-item-title { color: var(--navy); }

.service-item-desc {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255,255,255,0.45);
}
.service-item.light .service-item-desc { color: var(--gray); }

/* card 07 centered desktop only */
.service-item-center { grid-column: 2; }

/* ─── RESPONSIVE ─────────────────────────── */
@media (max-width: 1100px) {
    .container { padding: 0 24px; }
    .page-hero-content { padding: 0 24px; }

    .page-hero--img { padding: 80px 0 60px; min-height: 320px; }

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
        margin-top: 32px;
    }

    .service-item-center { grid-column: auto; }

    .service-item {
        padding: 28px 20px;
        border-radius: 14px;
    }

    .service-item-num {
        font-size: 44px;
        top: 14px;
        right: 16px;
    }

    .values-head { margin-bottom: 38px; }

    .service-item-title { font-size: 15px; }
    .service-item-desc  { font-size: 13px; }
}

@media (max-width: 640px) {
    body { padding-top: 64px; }

    .page-hero { padding: 44px 0 36px; }
    .page-hero--img { padding: 60px 0 48px; min-height: 260px; }
    .page-hero-desc { font-size: 14px; }
    .page-breadcrumb { flex-wrap: wrap; row-gap: 6px; }

    .section { padding: 60px 0; }

    .values-head { margin-bottom: 28px; }

    .service-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 22px;
    }

    .service-item { padding: 22px 18px; }

    .service-item-icon {
        width: 46px; height: 46px;
        font-size: 18px; margin-bottom: 14px;
    }

    .service-item-num {
        font-size: 38px;
        top: 12px; right: 14px;
    }

    .service-item-title { font-size: 15px; margin-bottom: 8px; }
    .service-item-desc  { font-size: 13px; line-height: 1.65; }
}

@media (max-width: 380px) {
    .container { padding: 0 16px; }
    .page-hero-content { padding: 0 16px; }
    .service-item { padding: 20px 16px; }
}