/* ============================================================
   WESTGATE ADVISERS — westgateadvisers.co.uk
   style.css
   ============================================================ */

/* ===========================
   CSS Variables
=========================== */
:root {
    --navy:      #1B2A4A;
    --gold:      #C9A84C;
    --pale-grey: #F4F6F9;
    --white:     #ffffff;
    --text-body: #2e3a40;
    --text-muted:#5c6f78;

    --font-heading: 'Cormorant Garamond', serif;
    --font-body:    'Inter', sans-serif;

    --max-width:      1120px;
    --section-v:      96px;
    --nav-height:     72px;
    --border-radius:  8px;
    --card-shadow:    0 2px 16px rgba(27, 42, 74, 0.08);
}

/* ===========================
   Reset & Base
=========================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.75;
    color: var(--text-body);
    background: var(--white);
}

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

ul { list-style: none; }

a {
    color: inherit;
    text-decoration: none;
}

strong { font-weight: 700; }

/* ===========================
   Typography
=========================== */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--navy);
    line-height: 1.15;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }

p { margin-bottom: 1.3rem; }
p:last-child { margin-bottom: 0; }

/* ===========================
   Layout
=========================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 32px;
}

.section-white     { background: var(--white); overflow: hidden; }
.section-pale-grey { background: var(--pale-grey); overflow: hidden; }
.section-navy      { background: var(--navy); overflow: hidden; }

/* ===========================
   CTA Button
=========================== */
.btn-cta {
    display: inline-block;
    background: var(--gold);
    color: var(--white);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    padding: 15px 34px;
    border-radius: 6px;
    text-decoration: none;
    margin-top: 2.25rem;
    transition: opacity 0.18s ease, transform 0.18s ease;
    cursor: pointer;
    border: none;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.btn-cta:hover {
    opacity: 0.88;
    transform: translateY(-2px);
}

/* ===========================
   Navigation
=========================== */
#navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    height: var(--nav-height);
    border-bottom: 1px solid rgba(27, 42, 74, 0.09);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 32px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo img {
    height: 44px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--navy);
    transition: color 0.18s ease;
}

.nav-links a:hover { color: var(--gold); }

/* Nav CTA button */
.btn-nav-cta {
    display: inline-block;
    background: var(--gold);
    color: var(--white) !important;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 10px 22px;
    border-radius: 6px;
    transition: opacity 0.18s ease, transform 0.18s ease;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.btn-nav-cta:hover {
    opacity: 0.88 !important;
    transform: translateY(-1px);
    color: var(--white) !important;
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    width: 36px;
    height: 36px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Hamburger → X animation */
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===========================
   Eyebrows / Labels
=========================== */
.eyebrow {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.eyebrow-section {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

/* ===========================
   Left-Border List Utility
=========================== */
.left-border-list {
    margin: 1.5rem 0;
}

.left-border-list li {
    padding: 0.45rem 0 0.45rem 1.5rem;
    font-size: 0.975rem;
    color: var(--text-body);
    border-bottom: 1px solid rgba(27, 42, 74, 0.07);
    position: relative;
}

.left-border-list li:last-child { border-bottom: none; }

.left-border-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--gold);
}

/* ===========================
   Section 1 — Hero
=========================== */
.hero {
    position: relative;
    min-height: calc(100vh - var(--nav-height));
    background-image: url('Corporate Finance Image.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 32px;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(27, 42, 74, 0.62);
    z-index: 0;
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--max-width);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Frosted glass content box */
.content-box {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 3.25rem 3.75rem;
    border-radius: 12px;
    max-width: 820px;
    width: 100%;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.hero .content-box h1 {
    color: var(--navy);
    margin: 0.3rem 0 1.4rem;
}

.hero .content-box p {
    font-size: 1.025rem;
    color: var(--text-body);
    max-width: 680px;
    margin: 0 auto 1.2rem;
}

.hero .content-box p:last-of-type { margin-bottom: 0; }

/* ===========================
   Two-Column Layout System
=========================== */
.two-col {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: stretch;
    padding: var(--section-v) 32px;
}

/* Image-left variant: image gets negative order */
.two-col-flipped .col-image {
    order: -1;
}

.col-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.col-text p {
    font-size: 1.025rem;
}

.col-text p:last-child { margin-bottom: 0; }

/* Image column — stretches to text column height */
.col-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    min-height: 400px;
}

.col-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* About Us navy section — image gets subtle gold border */
.section-navy .col-image {
    border: 2px solid rgba(201, 168, 76, 0.35);
}

/* ===========================
   Modelling — Inline Testimonial
=========================== */
.testimonial-inline {
    background: var(--pale-grey);
    border-left: 3px solid var(--gold);
    padding: 1.4rem 1.6rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    margin-top: 2rem;
}

.testimonial-inline p {
    font-style: italic;
    font-size: 0.975rem;
    color: var(--navy);
    line-height: 1.7;
    margin-bottom: 0.8rem !important;
}

.testimonial-inline cite {
    display: block;
    font-style: normal;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ===========================
   About Us — Navy Section Overrides
=========================== */
.section-navy h2 {
    color: var(--white);
}

.section-navy .col-text p {
    color: rgba(255, 255, 255, 0.84);
}

.section-navy .eyebrow-section {
    color: var(--gold);
}

/* ===========================
   Contact Section
=========================== */
.contact-details {
    margin: 1.75rem 0 0;
    border-top: 1px solid rgba(27, 42, 74, 0.1);
}

.contact-item {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(27, 42, 74, 0.1);
}

.contact-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--navy);
    min-width: 72px;
    letter-spacing: 0.02em;
}

.contact-item a {
    color: var(--text-body);
    font-size: 1rem;
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-underline-offset: 3px;
    transition: color 0.18s ease;
}

.contact-item a:hover {
    color: var(--gold);
}

/* ===========================
   Footer
=========================== */
footer {
    background: var(--navy);
    padding: 52px 32px 40px;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    align-items: center;
}

.footer-logo img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-contact {
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.65);
    transition: color 0.18s ease;
    text-decoration: underline;
    text-decoration-color: rgba(201, 168, 76, 0.4);
    text-underline-offset: 3px;
}

.footer-contact a:hover { color: var(--white); }

.footer-sep {
    color: rgba(255, 255, 255, 0.25);
}

.footer-legal {
    text-align: right;
}

.footer-legal p {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.78rem;
    line-height: 1.6;
    margin: 0;
}

/* ===========================
   Responsive — Tablet (900px)
=========================== */
@media (max-width: 900px) {
    .two-col {
        gap: 3rem;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-logo {
        display: flex;
        justify-content: center;
    }

    .footer-legal {
        text-align: center;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }
}

/* ===========================
   Responsive — Mobile (768px)
=========================== */
@media (max-width: 768px) {
    :root {
        --section-v: 64px;
        --nav-height: 64px;
    }

    /* Nav */
    .nav-container { padding: 0 20px; }
    .nav-logo img  { height: 36px; }

    .nav-toggle { display: flex; }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.5rem 0;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
        border-bottom: 1px solid rgba(27, 42, 74, 0.08);
        z-index: 999;
    }

    .nav-links.is-open { display: flex; }

    .nav-links li a {
        display: block;
        padding: 0.9rem 24px;
        border-bottom: 1px solid rgba(27, 42, 74, 0.06);
        font-size: 1rem;
    }

    .nav-cta-item {
        padding: 1.25rem 20px;
        border-top: 1px solid rgba(27, 42, 74, 0.08);
        margin-top: 0.25rem;
    }

    .btn-nav-cta {
        display: block;
        text-align: center;
        padding: 13px 20px;
        font-size: 1rem;
        border-radius: 6px;
    }

    /* Hero */
    .hero {
        min-height: auto;
        padding: 56px 20px;
    }

    .content-box {
        padding: 2rem 1.5rem;
        text-align: left;
    }

    .hero .content-box p {
        margin-left: 0;
        margin-right: 0;
    }

    /* Two-column → single column */
    .two-col {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Reset flipped image order — image always below text on mobile */
    .two-col-flipped .col-image {
        order: 2;
    }

    /* Image height on mobile */
    .col-image {
        min-height: 260px;
        height: 260px;
    }

    /* Footer */
    footer {
        padding: 44px 20px 36px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .footer-contact {
        line-height: 2;
    }

    .footer-sep {
        display: none;
    }

    .footer-contact a {
        display: block;
    }
}
