/* ══════════════════════════════════════════════════════
   MGLSCOACH — Custom styles (Bootstrap 5 complement)
   ══════════════════════════════════════════════════════ */

/* ── Brand tokens ───────────────────────────────────── */
:root {
    --brand-primary: #1e3a5f;
    --brand-secondary: #d4af37;
    --brand-accent: #2c5282;
    --font-title: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: #2d3748;
}

h1, h2, h3, h4 {
    font-family: var(--font-title);
}

/* ── Utility colours ────────────────────────────────── */
.text-brand-primary { color: var(--brand-primary) !important; }
.text-gold           { color: var(--brand-secondary) !important; }

/* ── Section heading helper ─────────────────────────── */
.section-title-h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--brand-primary);
    margin-bottom: .5rem;
}

/* ── Navbar ─────────────────────────────────────────── */
#mainNav {
    background: rgba(255, 255, 255, 0.98) !important;
    transition: box-shadow .3s;
}

.logo-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--brand-primary);
    color: var(--brand-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: .8rem;
    letter-spacing: .04em;
    flex-shrink: 0;
}

.logo-text {
    font-family: var(--font-title);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--brand-primary);
    letter-spacing: .03em;
}

.nav-link-brand {
    color: #2d3748 !important;
    font-weight: 500;
    position: relative;
    padding-bottom: .4rem !important;
    transition: color .25s;
}

.nav-link-brand::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-secondary);
    transition: width .3s;
}

.nav-link-brand:hover {
    color: var(--brand-secondary) !important;
}

.nav-link-brand:hover::after { width: 100%; }

/* ── Hero ────────────────────────────────────────────── */
.hero-section {
    min-height: 100vh;
    padding-top: 80px;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-accent) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23d4af37" fill-opacity="0.08" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
    pointer-events: none;
}

.hero-content { position: relative; z-index: 1; max-width: 820px; }

/* ── Hero animations ─────────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

.animate-fadeup          { animation: fadeInUp .9s ease both; }
.animate-fadeup.delay-1  { animation-delay: .2s; }
.animate-fadeup.delay-2  { animation-delay: .4s; }
.animate-fadeup.delay-3  { animation-delay: .6s; }

/* ── Hero subtitle ───────────────────────────────────── */
.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    font-weight: 300;
    letter-spacing: .12em;
    text-transform: uppercase;
    opacity: .95;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .6rem .8rem;
}

.hero-subtitle::before,
.hero-subtitle::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: var(--brand-secondary);
    opacity: .7;
}

.hero-badge {
    display: inline-block;
    padding: .25em .9em;
    border: 1.5px solid var(--brand-secondary);
    border-radius: 50px;
    color: var(--brand-secondary);
    font-weight: 700;
    font-size: .95em;
    letter-spacing: .16em;
    white-space: nowrap;
}

/* ── Gold button ─────────────────────────────────────── */
.btn-gold {
    background: var(--brand-secondary);
    color: var(--brand-primary);
    border: 2px solid var(--brand-secondary);
    transition: transform .25s, box-shadow .25s;
}

.btn-gold:hover {
    background: #c9a227;
    border-color: #c9a227;
    color: var(--brand-primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, .4);
}

/* ── Service cards ────────────────────────────────────── */
.service-card {
    transition: transform .3s, box-shadow .3s;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .15) !important;
}

.service-img-wrap {
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
}

.service-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}

.service-card:hover .service-img-wrap img { transform: scale(1.05); }

.service-link {
    color: var(--brand-secondary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: gap .2s;
}

.service-link:hover { color: #c9a227; gap: .6rem; }

/* ── Reveal on scroll ─────────────────────────────────── */
.reveal-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .5s ease, transform .5s ease;
}

.reveal-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ── Methodology section ──────────────────────────────── */
.methodology-section {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-accent) 100%);
}

.method-card {
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    backdrop-filter: blur(10px);
    transition: transform .3s, background .3s;
}

.method-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, .18);
}

.method-icon {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: var(--brand-secondary);
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

/* ── Process steps ────────────────────────────────────── */
.process-row {
    position: relative;
}

.process-row::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 12.5%;
    right: 12.5%;
    height: 3px;
    background: linear-gradient(to right, var(--brand-primary), var(--brand-secondary));
    z-index: 0;
}

.step-circle {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid var(--brand-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-title);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--brand-primary);
    position: relative;
    z-index: 1;
    transition: background .3s, color .3s;
}

.step-circle:hover {
    background: var(--brand-primary);
    color: var(--brand-secondary);
}

/* ── Contact icons ────────────────────────────────────── */
.contact-icon-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--brand-primary);
    color: var(--brand-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ── Form focus colours ───────────────────────────────── */
.form-control:focus {
    border-color: var(--brand-secondary);
    box-shadow: 0 0 0 .2rem rgba(212, 175, 55, .25);
}

/* ── Footer ───────────────────────────────────────────── */
.footer-section {
    background: var(--brand-primary);
}

.footer-logo {
    font-family: var(--font-title);
    font-size: 2rem;
    font-weight: 700;
}

.social-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background .25s, color .25s, transform .25s;
}

.social-btn:hover {
    background: var(--brand-secondary);
    color: var(--brand-primary);
    transform: translateY(-3px);
}

/* ── Responsive tweaks ────────────────────────────────── */
@media (max-width: 767.98px) {
    .process-row::before { display: none; }
}
