/* ============================================================
   W&H Edinburgh Ltd — Company Website Styles
   ============================================================ */

:root {
    --red:    #cc2200;              /* accent — used sparingly */
    --blue:   #1d6fd8;              /* primary */
    --blue2:  #1452a8;              /* darker blue */
    --navy:   #0e2a52;              /* deep navy */
    --dark:   #060d1a;              /* page bg */
    --dark2:  #0a1628;              /* card bg */
    --dark3:  #0f1e38;              /* alt card */
    --light:  #f5f5f5;
    --muted:  #7a90b0;
    --border: rgba(29,111,216,0.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--dark);
    color: #ccc;
    overflow-x: hidden;
}

/* ── Scrollbar ─────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 3px; }

/* ── Navbar ────────────────────────────────────── */
#mainNav {
    background: transparent;
    transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
    padding: 18px 0;
}
#mainNav.scrolled {
    background: rgba(6,13,26,.97);
    box-shadow: 0 2px 24px rgba(0,0,0,.6);
    padding: 10px 0;
}
.navbar-brand {
    font-family: 'Cairo', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 1px;
    text-decoration: none;
}
.brand-w   { color: var(--red); }
.brand-amp { color: #fff; }
.brand-h   { color: var(--blue); }
.brand-text {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-left: 6px;
    letter-spacing: 2px;
}
.nav-link {
    color: rgba(255,255,255,.8) !important;
    font-weight: 600;
    font-size: .875rem;
    letter-spacing: .5px;
    padding: 6px 12px !important;
    transition: color .2s;
}
.nav-link:hover, .nav-link.active { color: #fff !important; }

/* ── Hero ──────────────────────────────────────── */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #060d1a 0%, #0a1e42 50%, #071230 100%);
    overflow: hidden;
}
/* Animated grid overlay */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(29,111,216,.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(29,111,216,.08) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 20s linear infinite;
}
@keyframes gridMove {
    0%   { transform: translateY(0); }
    100% { transform: translateY(60px); }
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(29,111,216,.18) 0%, transparent 65%);
}
.hero-badge {
    display: inline-block;
    background: rgba(29,111,216,.15);
    border: 1px solid rgba(29,111,216,.5);
    color: #6fb3ff;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.hero-title {
    font-family: 'Cairo', sans-serif;
    font-size: clamp(3.5rem, 8vw, 7rem);
    font-weight: 900;
    line-height: 1;
    color: #fff;
}
.hero-h { color: var(--blue); }
.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 2.2rem);
    font-weight: 700;
    color: rgba(255,255,255,.7);
    letter-spacing: 4px;
}
.hero-desc {
    font-size: 1.05rem;
    color: rgba(255,255,255,.6);
    max-width: 520px;
    line-height: 1.7;
    margin-top: 16px;
}
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}
.scroll-indicator span {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255,255,255,.3);
    border-radius: 12px;
    position: relative;
}
.scroll-indicator span::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--blue);
    border-radius: 2px;
    animation: scrollDot 1.5s ease-in-out infinite;
}
@keyframes scrollDot {
    0%   { top: 6px;  opacity: 1; }
    100% { top: 22px; opacity: 0; }
}

/* ── Stats Bar ─────────────────────────────────── */
.stats-bar {
    background: linear-gradient(90deg, var(--blue2), var(--blue));
    padding: 0;
}
.stat-item {
    padding: 28px 20px;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,.2);
}
.stat-item:last-child { border-right: none; }
.stat-number {
    font-family: 'Cairo', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}
.stat-number span { font-size: 1.4rem; }
.stat-label {
    font-size: .75rem;
    font-weight: 600;
    color: rgba(255,255,255,.85);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 4px;
}

/* ── Sections ──────────────────────────────────── */
.section-pad { padding: 90px 0; }
.bg-dark-alt { background: var(--dark2); }

.section-label {
    display: inline-block;
    color: var(--blue);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.section-title {
    font-family: 'Cairo', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 16px;
}
.section-text {
    color: var(--muted);
    line-height: 1.8;
    font-size: .95rem;
}

/* ── About ─────────────────────────────────────── */
.about-img-wrap {
    position: relative;
    height: 380px;
}
.about-img-box {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a1628, #071840);
    border: 1px solid var(--border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: rgba(29,111,216,.2);
}
.about-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--dark3);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #fff;
    font-size: .9rem;
    box-shadow: 0 8px 32px rgba(0,0,0,.5);
}
.about-badge i { font-size: 1.5rem; color: var(--blue); }
.about-feature {
    color: rgba(255,255,255,.75);
    font-size: .875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

/* ── Services ──────────────────────────────────── */
.service-card {
    background: var(--dark2);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 36px 28px;
    height: 100%;
    transition: border-color .3s, transform .3s, box-shadow .3s;
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue), var(--red));
    transform: scaleX(0);
    transition: transform .35s;
    transform-origin: left;
}
.service-card:hover {
    border-color: rgba(29,111,216,.5);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,.4);
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(29,111,216,.12);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--blue);
    margin-bottom: 20px;
    transition: background .3s;
}
.service-card:hover .service-icon { background: rgba(29,111,216,.25); }
.service-card h4 {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 12px;
}
.service-card p {
    color: var(--muted);
    font-size: .875rem;
    line-height: 1.7;
    margin: 0;
}

/* ── Why Us ────────────────────────────────────── */
.why-card {
    background: var(--dark3);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 36px 24px;
    height: 100%;
    transition: transform .3s, border-color .3s;
}
.why-card:hover {
    transform: translateY(-4px);
    border-color: rgba(29,111,216,.4);
}
.why-icon {
    width: 70px;
    height: 70px;
    background: rgba(29,111,216,.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--blue);
    margin: 0 auto 20px;
}
.why-card h5 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 12px;
}
.why-card p {
    color: var(--muted);
    font-size: .875rem;
    line-height: 1.7;
    margin: 0;
}

/* ── Contact ───────────────────────────────────── */
.contact-card {
    background: var(--dark2);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px 36px;
}
.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 28px;
}
.contact-icon {
    width: 42px;
    height: 42px;
    background: rgba(29,111,216,.12);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--blue);
    flex-shrink: 0;
    margin-top: 2px;
}
.contact-label {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 4px;
}
.contact-value {
    color: rgba(255,255,255,.85);
    font-size: .9rem;
    line-height: 1.6;
    text-decoration: none;
    transition: color .2s;
}
a.contact-value:hover { color: var(--blue); }
.map-wrap {
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    min-height: 420px;
    border: 1px solid var(--border);
}

/* ── Buttons override ──────────────────────────── */
.btn-primary {
    background: var(--blue);
    border-color: var(--blue);
}
.btn-primary:hover {
    background: var(--blue2);
    border-color: var(--blue2);
}

/* ── Footer ────────────────────────────────────── */
.site-footer {
    background: #030810;
    padding: 40px 0 24px;
    border-top: 1px solid var(--border);
}
.footer-brand {
    font-family: 'Cairo', sans-serif;
    font-size: 1.4rem;
    font-weight: 900;
}
.footer-hr {
    border-color: var(--border);
    margin: 28px 0 20px;
}
.fw-900 { font-weight: 900; }

/* ── Animations ────────────────────────────────── */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ────────────────────────────────── */
@media (max-width: 768px) {
    .about-img-wrap { height: 260px; }
    .about-badge { right: 0; bottom: -14px; }
    .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.2); }
    .stat-item:last-child { border-bottom: none; }
    .contact-card { padding: 28px 22px; }
    .map-wrap { min-height: 280px; }
}
