/* =============================================
   Nordic Demining Group — Shared Stylesheet
   Colors: Blue #183B5B · Olive #6E7F52 · Gold #C4A85C
   Fonts: Playfair Display + Source Sans 3
   ============================================= */

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Source Sans 3', 'Segoe UI', sans-serif; color: #1e293b; line-height: 1.7; background: #fff; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: all 0.3s; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* --- PRELOADER --- */
#preloader { position: fixed; inset: 0; background: #0e2239; display: flex; align-items: center; justify-content: center; z-index: 99999; transition: opacity 0.6s, visibility 0.6s; }
#preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-ring { width: 56px; height: 56px; border: 3px solid #132d47; border-top-color: #C4A85C; border-radius: 50%; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --- NAVBAR --- */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 12px 0; background: rgba(24, 59, 91, 0.95); backdrop-filter: blur(12px); transition: all 0.4s; }
.navbar.scrolled { padding: 8px 0; box-shadow: 0 4px 30px rgba(0,0,0,0.2); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo img { height: 42px; width: auto; }
.nav-logo-text { font-size: 1.2rem; font-weight: 700; color: #fff; letter-spacing: 1.5px; text-transform: uppercase; line-height: 1.2; }
.nav-logo-text .red { color: #e74c3c; }
.nav-logo-text .blue { color: #7bb4d4; }
.nav-logo-text .gray { color: #cbd1d8; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { color: rgba(255,255,255,0.8); font-weight: 500; font-size: 0.88rem; padding: 8px 16px; border-radius: 6px; }
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(255,255,255,0.1); }
.nav-links .nav-cta { background: #6E7F52; color: #fff; font-weight: 600; padding: 10px 22px; border-radius: 6px; }
.nav-links .nav-cta:hover { background: #839760; }
.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px; }
.hamburger span { width: 26px; height: 2px; background: #fff; border-radius: 2px; transition: all 0.3s; }

/* --- HERO --- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; background: #183B5B; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.3; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(14,34,57,0.82), rgba(24,59,91,0.6)); }
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 850px; margin: 0 auto; }
.hero h1 { font-family: 'Playfair Display', Georgia, serif; font-size: 3.4rem; font-weight: 700; color: #fff; line-height: 1.2; margin-bottom: 12px; animation: fadeUp 0.8s ease 0.1s forwards; opacity: 0; }
.hero h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.6rem; font-weight: 400; color: #d4bc7a; margin-bottom: 16px; font-style: italic; animation: fadeUp 0.8s ease 0.25s forwards; opacity: 0; }
.hero p { font-size: 1.15rem; color: rgba(255,255,255,0.8); max-width: 650px; margin: 0 auto 36px; animation: fadeUp 0.8s ease 0.4s forwards; opacity: 0; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; animation: fadeUp 0.8s ease 0.55s forwards; opacity: 0; }
@keyframes fadeUp { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:translateY(0); } }
.scroll-indicator { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 2; color: rgba(255,255,255,0.4); animation: bounce 2s infinite; }
@keyframes bounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(10px); } }

/* --- PAGE HERO (inner pages) --- */
.page-hero { position: relative; padding: 160px 0 80px; background: #183B5B; overflow: hidden; text-align: center; }
.page-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.15; }
.page-hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,34,57,0.9), rgba(24,59,91,0.85)); }
.page-hero h1 { font-family: 'Playfair Display', serif; font-size: 2.8rem; font-weight: 700; color: #fff; margin-bottom: 12px; position: relative; z-index: 1; }
.page-hero p { color: rgba(255,255,255,0.7); font-size: 1.1rem; max-width: 600px; margin: 0 auto; position: relative; z-index: 1; }
.breadcrumb { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 20px; font-size: 0.9rem; color: rgba(255,255,255,0.4); position: relative; z-index: 1; }
.breadcrumb a { color: #C4A85C; }
.breadcrumb a:hover { color: #d4bc7a; }

/* --- BUTTONS --- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 32px; border-radius: 6px; font-size: 1rem; font-weight: 600; cursor: pointer; border: none; transition: all 0.35s; }
.btn-primary { background: #6E7F52; color: #fff; box-shadow: 0 4px 20px rgba(110,127,82,0.3); }
.btn-primary:hover { background: #839760; transform: translateY(-2px); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.4); }
.btn-outline:hover { border-color: #C4A85C; color: #C4A85C; }
.btn-blue { background: #183B5B; color: #fff; }
.btn-blue:hover { background: #1e4d73; transform: translateY(-2px); }
.btn-gold { background: #C4A85C; color: #0e2239; font-weight: 700; }
.btn-gold:hover { background: #d4bc7a; transform: translateY(-2px); }

/* --- SECTIONS --- */
.section { padding: 90px 0; }
.section-cream { background: #F5F1EB; }
.section-olive { background: #6E7F52; color: #fff; }
.section-blue { background: #183B5B; color: #fff; }
.section-dark { background: #0e2239; color: #fff; }

.section-header { text-align: center; max-width: 700px; margin: 0 auto 56px; }
.section-header h2 { font-family: 'Playfair Display', serif; font-size: 2.4rem; font-weight: 700; color: #183B5B; line-height: 1.2; margin-bottom: 4px; }
.section-header h2::after { content: ''; display: block; width: 60px; height: 3px; background: #6E7F52; margin: 12px auto 0; border-radius: 2px; }
.section-header p { font-size: 1.05rem; color: #64748b; line-height: 1.8; margin-top: 12px; }
/* Overrides for dark sections */
.section-olive .section-header h2,
.section-blue .section-header h2,
.section-dark .section-header h2 { color: #fff; }
.section-olive .section-header h2::after,
.section-blue .section-header h2::after,
.section-dark .section-header h2::after { background: #C4A85C; }
.section-olive .section-header p,
.section-blue .section-header p,
.section-dark .section-header p { color: rgba(255,255,255,0.7); }

/* --- TWO-COLUMN LAYOUT --- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.two-col img { border-radius: 12px; box-shadow: 0 15px 40px rgba(0,0,0,0.12); width: 100%; height: 420px; object-fit: cover; }
.text-block h2 { font-family: 'Playfair Display', serif; font-size: 2.2rem; font-weight: 700; color: #183B5B; margin-bottom: 20px; line-height: 1.2; }
.text-block .lead { font-size: 1.05rem; color: #6E7F52; font-weight: 600; margin-bottom: 16px; }
.text-block p { color: #475569; margin-bottom: 14px; line-height: 1.8; }

/* --- PILLAR CARDS --- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 48px; }
.pillar { text-align: center; padding: 30px 20px; background: #fff; border-radius: 12px; border: 1px solid #e2e6ea; transition: all 0.3s; }
.pillar:hover { border-color: #9aad78; box-shadow: 0 8px 30px rgba(0,0,0,0.06); }
.pillar-icon { width: 60px; height: 60px; background: #e6ecdb; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; color: #6E7F52; font-size: 1.4rem; }
.pillar h4 { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; color: #183B5B; margin-bottom: 6px; }
.pillar p { font-size: 0.9rem; color: #64748b; }

/* --- SERVICE CARDS --- */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.svc-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.06); transition: all 0.4s; border: 1px solid #f1f3f5; text-align: center; }
.svc-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,0.1); border-color: #b3c498; }
.svc-card-top { background: #6E7F52; color: #fff; padding: 14px; font-weight: 600; font-size: 0.88rem; }
.svc-card-body { padding: 28px 20px; }
.svc-icon { width: 56px; height: 56px; background: #e6ecdb; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; color: #5a6844; font-size: 1.3rem; }
.svc-card-body p { font-size: 0.9rem; color: #64748b; }
.svc-link { color: #1e4d73; font-weight: 600; font-size: 0.88rem; display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; }
.svc-link:hover { color: #6E7F52; gap: 10px; }

/* --- SERVICE DETAIL LIST --- */
.svc-detail-list { display: grid; gap: 10px; margin-top: 20px; }
.svc-detail-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #F5F1EB; border-radius: 8px; font-size: 0.92rem; color: #334155; }
.svc-detail-item i { color: #6E7F52; font-size: 0.8rem; flex-shrink: 0; }

/* --- VALUES --- */
.val-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.val-card { text-align: center; padding: 36px 16px; background: #fff; border-radius: 12px; border: 1px solid #e2e6ea; transition: all 0.3s; }
.val-card:hover { border-color: #9aad78; transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,0.06); }
.val-icon { width: 56px; height: 56px; background: #e6ecdb; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; color: #6E7F52; font-size: 1.3rem; }
.val-card h4 { font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 700; color: #183B5B; margin-bottom: 6px; }
.val-card p { font-size: 0.85rem; color: #64748b; line-height: 1.6; }

/* --- RESILIENCE CARDS --- */
.res-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.res-card { text-align: center; padding: 36px 20px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; transition: all 0.3s; }
.res-card:hover { background: rgba(255,255,255,0.12); transform: translateY(-4px); }
.res-icon { width: 56px; height: 56px; background: rgba(255,255,255,0.1); border-radius: 14px; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; color: #C4A85C; font-size: 1.3rem; }
.res-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.res-card p { font-size: 0.88rem; color: rgba(255,255,255,0.6); }

/* --- MISSION BANNER --- */
.mission-banner { position: relative; padding: 80px 0; text-align: center; }
.mission-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.mission-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(14,34,57,0.9), rgba(24,59,91,0.85)); }
.mission-banner .container { position: relative; z-index: 1; }
.mission-banner h2 { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: #fff; margin-bottom: 16px; }
.mission-banner .quote { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 400; color: #fff; max-width: 700px; margin: 0 auto; line-height: 1.5; font-style: italic; }
.mission-banner .label { color: #C4A85C; font-size: 1.1rem; font-weight: 600; font-family: 'Playfair Display', serif; margin-top: 16px; }

/* --- CLIENTS --- */
.clients-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.client-card { text-align: center; padding: 32px 16px; background: #fff; border-radius: 12px; border: 1px solid #e2e6ea; transition: all 0.3s; }
.client-card:hover { border-color: #b3c498; box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.client-card .ci { width: 56px; height: 56px; background: #e6ecdb; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; color: #5a6844; font-size: 1.3rem; }
.client-card h4 { font-size: 0.95rem; font-weight: 700; color: #183B5B; margin-bottom: 4px; }
.client-card p { font-size: 0.85rem; color: #64748b; }

/* --- LEADERSHIP CARDS --- */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.team-card { position: relative; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.1); }
.team-card img { width: 100%; height: 350px; object-fit: cover; object-position: top; }
.team-card-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(14,34,57,0.95), rgba(14,34,57,0.6), transparent); padding: 30px 24px 24px; }
.team-card-overlay h3 { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 700; color: #fff; }
.team-card-overlay .role { color: #C4A85C; font-weight: 600; font-size: 0.9rem; }
.team-card-overlay .sub { color: rgba(255,255,255,0.6); font-size: 0.85rem; font-style: italic; }

/* --- INFO BOX --- */
.info-box { margin-top: 14px; padding: 18px; border-radius: 10px; border-left: 4px solid #6E7F52; background: #F5F1EB; }
.info-box.gold { border-left-color: #C4A85C; }
.info-box.blue { border-left-color: #183B5B; }
.info-box h4 { font-family: 'Playfair Display', serif; font-size: 0.95rem; color: #1e293b; margin-bottom: 6px; }
.info-box p { font-size: 0.88rem; color: #475569; line-height: 1.7; }

/* --- DEPLOYMENT STEPS --- */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; }
.step-card { text-align: center; padding: 32px 16px; }
.step-num { width: 44px; height: 44px; background: #C4A85C; color: #0e2239; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; font-weight: 800; font-size: 1.1rem; font-family: 'Playfair Display', serif; }
.step-card h4 { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 6px; }
.step-card p { font-size: 0.85rem; color: rgba(255,255,255,0.6); }

/* --- CONTACT --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: 0.88rem; color: #334155; margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 13px 16px; border: 2px solid #e2e6ea; border-radius: 8px; font-family: 'Source Sans 3', sans-serif; font-size: 0.95rem; color: #1e293b; transition: all 0.3s; background: #fff; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: #6E7F52; box-shadow: 0 0 0 3px rgba(110,127,82,0.12); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ci-cards { display: grid; gap: 16px; }
.ci-card { display: flex; align-items: center; gap: 16px; padding: 20px; background: #F5F1EB; border-radius: 12px; }
.ci-icon { width: 50px; height: 50px; background: #183B5B; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.1rem; flex-shrink: 0; }
.ci-card h4 { font-size: 0.8rem; color: #94a0b0; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 2px; }
.ci-card p { color: #1e293b; font-weight: 500; font-size: 0.92rem; }
.ci-card a { color: #1e4d73; }
.ci-card a:hover { color: #6E7F52; }
.contact-map { margin-top: 20px; border-radius: 12px; overflow: hidden; height: 220px; }
.contact-map iframe { width: 100%; height: 100%; border: none; }

/* --- FOOTER --- */
.footer { background: #0e2239; color: rgba(255,255,255,0.7); padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand p { margin-top: 14px; font-size: 0.9rem; line-height: 1.8; color: rgba(255,255,255,0.5); }
.footer h4 { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 16px; }
.footer-links a { display: block; padding: 5px 0; font-size: 0.9rem; color: rgba(255,255,255,0.5); }
.footer-links a:hover { color: #C4A85C; padding-left: 4px; }
.footer-bottom { padding: 20px 0; display: flex; align-items: center; justify-content: space-between; font-size: 0.82rem; color: rgba(255,255,255,0.3); }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.5); }
.footer-social a:hover { background: #6E7F52; color: #fff; }
.nl-form { display: flex; gap: 6px; }
.nl-form input { flex: 1; padding: 10px 14px; border: 1px solid rgba(255,255,255,0.15); border-radius: 8px; background: rgba(255,255,255,0.05); color: #fff; font-size: 0.88rem; }
.nl-form input::placeholder { color: rgba(255,255,255,0.3); }
.nl-form button { padding: 10px 16px; background: #6E7F52; color: #fff; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; }
.nl-form button:hover { background: #839760; }

/* --- BACK TO TOP --- */
#btt { position: fixed; bottom: 24px; right: 24px; width: 44px; height: 44px; background: #183B5B; color: #fff; border: none; border-radius: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1rem; opacity: 0; visibility: hidden; transition: all 0.3s; box-shadow: 0 4px 16px rgba(24,59,91,0.3); z-index: 999; }
#btt.visible { opacity: 1; visibility: visible; }
#btt:hover { background: #6E7F52; transform: translateY(-3px); }

/* --- SCROLL REVEAL --- */
.reveal { opacity: 0; transform: translateY(35px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .svc-grid { grid-template-columns: repeat(2, 1fr); }
    .val-grid { grid-template-columns: repeat(3, 1fr); }
    .res-grid { grid-template-columns: repeat(2, 1fr); }
    .clients-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-links { position: fixed; top: 0; right: -100%; width: 280px; height: 100vh; background: #0e2239; flex-direction: column; padding: 80px 24px 24px; transition: right 0.4s; align-items: stretch; box-shadow: -10px 0 40px rgba(0,0,0,0.4); }
    .nav-links.open { right: 0; }
    .nav-links a { padding: 14px 18px; border-radius: 8px; font-size: 1rem; }
    .hero h1 { font-size: 2.2rem; }
    .hero h2 { font-size: 1.2rem; }
    .page-hero h1 { font-size: 2rem; }
    .two-col { grid-template-columns: 1fr; gap: 32px; }
    .pillars { grid-template-columns: 1fr; }
    .svc-grid { grid-template-columns: 1fr; }
    .val-grid { grid-template-columns: 1fr 1fr; }
    .res-grid, .clients-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr 1fr; }
    .section { padding: 60px 0; }
    .section-header { margin-bottom: 36px; }
    .section-header h2 { font-size: 1.9rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
    .form-row { grid-template-columns: 1fr; }
}
