/* Evergreen Financial Advice - shared site styles */

:root {
    /* Brand green from the logo; used where it doesn't carry text */
    --colour-evergreen-brand: #649b95;
    /* Deeper shades of the brand green for text and white-on-green (WCAG AA) */
    --colour-evergreen: #3f7570;
    --colour-evergreen-dark: #2f5c57;
    --colour-sage: #edf4f3;
    --colour-sage-border: #d3e3e1;
    --colour-ivory: #fbf8f1;
    --colour-warm-white: #fffdf8;
    --colour-charcoal: #24302f;
    --colour-muted: #5c6d6b;
    /* Pink from the logo */
    --colour-accent: #ae546d;
    --colour-accent-dark: #963f58;
    --colour-accent-soft: #f9e4ea;
    --colour-border: #e8e2d6;
    --shadow-soft: 0 14px 34px rgba(47, 92, 87, 0.08);
    --shadow-card: 0 10px 26px rgba(38, 51, 47, 0.08);
    --radius-small: 8px;
    --radius-medium: 14px;
    --radius-large: 24px;
    --logo-height: 200px;
    --header-height: calc(var(--logo-height) + 24px);
}

/* ---------- Base ---------- */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.65;
    color: var(--colour-charcoal);
    background: var(--colour-ivory);
}

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

a {
    color: var(--colour-evergreen);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--colour-accent-dark);
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--colour-accent);
    outline-offset: 3px;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--colour-accent-dark);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 34px;
    height: 1px;
    background: var(--colour-accent);
}

.section-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.15;
    margin-bottom: 18px;
    color: var(--colour-evergreen);
}

.section-intro {
    max-width: 760px;
    margin: 0 auto 46px;
    color: var(--colour-muted);
    font-size: 1.08rem;
}

.section-heading {
    text-align: center;
    margin-bottom: 16px;
}

.button,
.cta-button,
.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 22px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    background: var(--colour-evergreen);
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.button:hover,
.cta-button:hover,
.submit-btn:hover {
    background: var(--colour-evergreen-dark);
    color: #ffffff;
    transform: translateY(-1px);
}

.button-secondary {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.55);
    color: #ffffff;
}

.button-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #ffffff;
}

/* ---------- Header ---------- */

header {
    position: fixed;
    top: 0;
    z-index: 1000;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 253, 248, 0.96);
    border-bottom: 1px solid rgba(211, 227, 225, 0.9);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 18px rgba(47, 92, 87, 0.06);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    gap: 28px;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    height: 100%;
}

.logo img {
    height: var(--logo-height);
    width: auto;
    max-width: none;
    object-fit: contain;
}

.nav-end {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    margin-left: auto;
    min-width: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 28px;
}

.nav-social {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 10px;
    flex-shrink: 0;
}

.nav-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: var(--colour-charcoal);
    border-radius: 6px;
}

.nav-social a:hover,
.nav-social a:focus-visible {
    color: var(--colour-accent-dark);
}

.nav-social svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.nav-links a:not(.cta-button) {
    color: var(--colour-charcoal);
    font-size: 0.96rem;
    font-weight: 700;
    text-decoration: none;
}

.nav-links a:not(.cta-button):hover {
    color: var(--colour-accent-dark);
}

.nav-links .cta-button {
    min-height: 42px;
    padding: 10px 18px;
    font-size: 0.9rem;
}

.mobile-menu-note {
    display: none;
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    overflow: hidden;
    margin-top: var(--header-height);
    padding: 96px 0 82px;
    color: #ffffff;
    background:
            radial-gradient(circle at 80% 20%, rgba(174, 84, 109, 0.2), transparent 34%),
            linear-gradient(135deg, #3a6d68 0%, #457a74 100%);
}

.hero::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -130px;
    width: 390px;
    height: 390px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
}

.hero-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
    gap: 54px;
    align-items: center;
}

.hero-content {
    max-width: 720px;
}

.hero .eyebrow {
    color: var(--colour-accent-soft);
}

.hero .eyebrow::before {
    background: var(--colour-accent-soft);
}

.hero h1 {
    max-width: 700px;
    margin-bottom: 22px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.5rem, 5.5vw, 4.8rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.hero p {
    max-width: 650px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.hero-panel {
    position: relative;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-large);
    background: rgba(255, 253, 248, 0.1);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(8px);
}

.hero-panel h2 {
    margin-bottom: 16px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.7rem;
    line-height: 1.25;
    color: #ffffff;
}

.hero-panel p {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1rem;
}

.hero-panel-list {
    list-style: none;
}

.hero-panel-list li {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    color: rgba(255, 255, 255, 0.94);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-panel-list li::before {
    content: "\2713";
    flex: 0 0 auto;
    color: var(--colour-accent-soft);
    font-weight: 700;
}

/* Shorter hero for inner pages (e.g. privacy policy) */
.hero-page {
    padding: 88px 0 76px;
}

.hero-page .hero-content {
    position: relative;
    z-index: 1;
    max-width: 820px;
}

.hero-page h1 {
    max-width: none;
    margin-bottom: 20px;
    font-size: clamp(2.5rem, 5vw, 4.4rem);
}

.hero-page p {
    max-width: 700px;
    margin-bottom: 0;
    font-size: clamp(1.08rem, 2vw, 1.24rem);
}

/* ---------- Home page sections ---------- */

.trust-strip {
    padding: 22px 0;
    background: var(--colour-warm-white);
    border-top: 3px solid var(--colour-evergreen-brand);
    border-bottom: 1px solid var(--colour-border);
}

.trust-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    list-style: none;
}

.trust-items li {
    padding: 0 12px;
    color: var(--colour-muted);
    font-size: 0.96rem;
    text-align: center;
    border-right: 1px solid var(--colour-border);
}

.trust-items li:last-child {
    border-right: none;
}

.trust-items strong {
    display: block;
    color: var(--colour-evergreen);
    font-size: 1rem;
}

main {
    background: var(--colour-warm-white);
}

section {
    padding: 86px 0;
}

.services {
    background: var(--colour-warm-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.service-card {
    position: relative;
    min-height: 100%;
    padding: 30px;
    border: 1px solid var(--colour-border);
    border-radius: var(--radius-medium);
    background: #ffffff;
    box-shadow: var(--shadow-card);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card::before {
    content: "";
    display: block;
    width: 44px;
    height: 3px;
    margin-bottom: 22px;
    background: var(--colour-accent);
    border-radius: 999px;
}

.service-card:hover {
    transform: translateY(-3px);
    border-color: var(--colour-evergreen-brand);
    box-shadow: var(--shadow-soft);
}

.service-card h3 {
    margin-bottom: 12px;
    color: var(--colour-evergreen);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
    line-height: 1.25;
}

.service-card p {
    color: var(--colour-muted);
}

.service-card em {
    display: block;
    margin-top: 18px;
    padding-top: 16px;
    color: var(--colour-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--colour-border);
}

.about {
    background: var(--colour-sage);
}

.about-content {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(310px, 0.85fr);
    gap: 46px;
    align-items: start;
}

.about-text {
    padding: 8px 0;
    color: var(--colour-muted);
    font-size: 1.08rem;
}

.about-text p + p {
    margin-top: 20px;
}

.credentials {
    padding: 34px;
    border: 1px solid var(--colour-border);
    border-radius: var(--radius-large);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.credentials h3 {
    margin-bottom: 18px;
    color: var(--colour-evergreen);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.55rem;
    line-height: 1.25;
}

.credential-list {
    list-style: none;
}

.credential-list li {
    display: flex;
    gap: 10px;
    padding: 12px 0;
    color: var(--colour-muted);
    border-bottom: 1px solid var(--colour-border);
}

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

.credential-list li::before {
    content: "\2713";
    flex: 0 0 auto;
    color: var(--colour-accent-dark);
    font-weight: 700;
}

.credential-list a {
    color: var(--colour-evergreen);
    font-weight: 700;
    text-decoration: none;
}

.credential-list a:hover {
    text-decoration: underline;
}

.contact {
    background: linear-gradient(135deg, var(--colour-evergreen-dark) 0%, #3a6d68 100%);
    color: #ffffff;
}

.contact .section-title,
.contact .section-intro {
    color: #ffffff;
}

.contact .section-intro {
    color: rgba(255, 255, 255, 0.82);
}

.contact-content {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
    gap: 42px;
    align-items: start;
}

.contact-info {
    padding: 8px 0;
}

.contact-info h3 {
    margin: 28px 0 8px;
    color: var(--colour-accent-soft);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
}

.contact-info h3:first-child {
    margin-top: 0;
}

.contact-info p {
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.86);
}

.contact-link {
    color: #ffffff;
    font-weight: 700;
}

.contact-benefits {
    list-style: none;
    margin-top: 12px;
}

.contact-benefits li {
    display: flex;
    gap: 10px;
    padding: 7px 0;
    color: rgba(255, 255, 255, 0.88);
}

.contact-benefits li::before {
    content: "\2713";
    flex: 0 0 auto;
    color: var(--colour-accent-soft);
    font-weight: 700;
}

.contact-form {
    padding: 34px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-large);
    background: var(--colour-warm-white);
    color: var(--colour-charcoal);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.contact-form h3 {
    margin-bottom: 8px;
    color: var(--colour-evergreen);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.7rem;
}

.form-note {
    margin-bottom: 24px;
    color: var(--colour-muted);
    font-size: 0.98rem;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    color: var(--colour-charcoal);
    font-size: 0.95rem;
    font-weight: 700;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--colour-border);
    border-radius: var(--radius-small);
    background: #ffffff;
    color: var(--colour-charcoal);
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: 3px solid rgba(174, 84, 109, 0.22);
    border-color: var(--colour-accent);
}

.form-group textarea {
    min-height: 126px;
    resize: vertical;
}

.checkbox-label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--colour-muted);
    font-weight: 400;
}

.checkbox-label input {
    width: auto;
    margin-top: 5px;
}

.submit-btn {
    width: 100%;
    border-radius: var(--radius-small);
}

/* ---------- Privacy policy page ---------- */

.privacy-section {
    padding: 78px 0 92px;
}

.privacy-layout {
    display: grid;
    grid-template-columns: minmax(230px, 0.34fr) minmax(0, 1fr);
    gap: 42px;
    align-items: start;
}

.privacy-summary {
    position: sticky;
    top: calc(var(--header-height) + 28px);
    padding: 28px;
    border: 1px solid var(--colour-border);
    border-radius: var(--radius-large);
    background: var(--colour-sage);
    box-shadow: var(--shadow-soft);
}

.privacy-summary h2 {
    margin-bottom: 12px;
    color: var(--colour-evergreen);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
    line-height: 1.2;
}

.privacy-summary p {
    margin-bottom: 18px;
    color: var(--colour-muted);
    font-size: 0.98rem;
}

.privacy-summary ul {
    margin: 0;
    list-style: none;
}

.privacy-summary li {
    padding: 8px 0;
    border-top: 1px solid var(--colour-sage-border);
}

.privacy-summary a {
    color: var(--colour-evergreen);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
}

.privacy-summary a:hover {
    color: var(--colour-accent-dark);
    text-decoration: underline;
}

.policy-card {
    padding: 42px;
    border: 1px solid var(--colour-border);
    border-radius: var(--radius-large);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.policy-card a {
    font-weight: 700;
}

.policy-card > em {
    display: inline-block;
    margin-bottom: 28px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--colour-sage);
    color: var(--colour-muted);
    font-style: normal;
    font-weight: 700;
}

.policy-card h2 {
    margin-bottom: 18px;
    color: var(--colour-evergreen);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.15;
}

.policy-card h3 {
    margin: 34px 0 12px;
    padding-top: 26px;
    border-top: 1px solid var(--colour-border);
    color: var(--colour-evergreen);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
    line-height: 1.25;
}

.policy-card h3:first-of-type {
    margin-top: 12px;
    padding-top: 0;
    border-top: none;
}

.policy-card p {
    margin-bottom: 16px;
    color: var(--colour-muted);
}

.policy-card ul {
    margin: 0 0 18px 22px;
    color: var(--colour-muted);
}

.policy-card li {
    margin-bottom: 8px;
    padding-left: 4px;
}

.policy-card strong {
    color: var(--colour-charcoal);
}

.contact-block {
    margin-top: 18px;
    padding: 22px;
    border: 1px solid var(--colour-border);
    border-radius: var(--radius-medium);
    background: var(--colour-ivory);
}

/* ---------- Footer ---------- */

footer {
    background: #24403c;
    color: rgba(255, 255, 255, 0.84);
    padding: 52px 0 36px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 34px;
    margin-bottom: 34px;
    text-align: left;
}

.footer-section h4 {
    margin-bottom: 12px;
    color: var(--colour-accent-soft);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.22rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.78);
}

.footer-section a {
    color: #ffffff;
    font-weight: 700;
}

.footer-section a:hover {
    color: var(--colour-accent-soft);
}

.disclaimer {
    padding-top: 26px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.88rem;
    line-height: 1.55;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    text-align: left;
}

.disclaimer p {
    margin-bottom: 9px;
}

.disclaimer a {
    color: #ffffff;
}

.registered-address {
    font-size: 0.95em;
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
    :root {
        --logo-height: 150px;
    }
}

@media (max-width: 980px) {
    :root {
        --logo-height: 140px;
    }

    .nav-links {
        gap: 18px;
    }

    .nav-links a:not(.cta-button) {
        font-size: 0.9rem;
    }

    .hero-layout,
    .about-content,
    .contact-content,
    .privacy-layout {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        max-width: 620px;
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .trust-items {
        grid-template-columns: repeat(2, 1fr);
    }

    .trust-items li:nth-child(2) {
        border-right: none;
    }

    .privacy-summary {
        position: static;
    }

    .privacy-summary ul {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 20px;
    }
}

@media (max-width: 840px) {
    :root {
        --logo-height: 110px;
        /* Stacked header: logo + nav row + padding */
        --header-height: calc(var(--logo-height) + 64px);
    }

    .container {
        padding: 0 18px;
    }

    header {
        height: auto;
        min-height: var(--header-height);
    }

    nav {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        padding-top: 8px;
        padding-bottom: 10px;
    }

    .logo {
        height: auto;
    }

    .nav-end {
        width: 100%;
        align-items: flex-start;
        gap: 8px;
    }

    .nav-links {
        width: auto;
        flex: 1 1 auto;
        justify-content: flex-start;
        gap: 14px;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .nav-links li {
        flex: 0 0 auto;
    }

    .nav-links .cta-button {
        min-height: 36px;
        padding: 8px 13px;
    }

    .hero {
        margin-top: var(--header-height);
        padding: 68px 0 58px;
    }

    .hero-page {
        padding: 64px 0 58px;
    }

    section {
        padding: 64px 0;
    }

    .privacy-section {
        padding: 54px 0 68px;
    }

    .hero h1 {
        font-size: 2.55rem;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-actions .button {
        width: 100%;
    }

    .services-grid,
    .trust-items,
    .footer-content,
    .privacy-summary ul {
        grid-template-columns: 1fr;
    }

    .trust-items li {
        padding: 10px 0;
        border-right: none;
        border-bottom: 1px solid var(--colour-border);
    }

    .trust-items li:last-child {
        border-bottom: none;
    }

    .contact-form,
    .credentials,
    .service-card,
    .hero-panel,
    .policy-card,
    .privacy-summary {
        padding: 24px;
    }

    .footer-content,
    .disclaimer {
        text-align: left;
    }
}

@media (max-width: 480px) {
    :root {
        --logo-height: 96px;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .policy-card h2 {
        font-size: 2rem;
    }

    .policy-card h3 {
        font-size: 1.28rem;
    }

    .nav-links {
        gap: 12px;
    }

    .nav-links a:not(.cta-button) {
        font-size: 0.86rem;
    }

    .nav-social {
        margin-left: 0;
    }

    .nav-social a {
        width: 32px;
        height: 32px;
    }

    .nav-social svg {
        width: 16px;
        height: 16px;
    }
}
