:root {
    --ink: #071012;
    --muted: #5d6770;
    --line: #dce4ee;
    --cream: #f6fbf2;
    --paper: #ffffff;
    --green: #5aa832;
    --green-dark: #3d7f22;
    --orange: #f26a00;
    --charcoal: #071012;
    --shadow: 0 24px 70px rgba(7, 16, 18, 0.14);
    --radius: 24px;
    --container: 1160px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    background: #fffefa;
}

a {
    color: inherit;
}

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

.container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}

.skip-link,
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    width: auto;
    height: auto;
    clip: auto;
    padding: 12px 16px;
    margin: 12px;
    background: var(--ink);
    color: white;
    z-index: 1000;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #ffffff;
    border-bottom: 1px solid rgba(220, 228, 238, 0.8);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 104px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    text-decoration: none;
    letter-spacing: -0.04em;
    font-size: 1.35rem;
}

.brand__logo {
    display: block;
    width: 340px;
    max-height: 96px;
    object-fit: contain;
}

.primary-nav {
    margin-left: auto;
}

.primary-nav ul,
.site-footer ul {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-nav a,
.site-footer a {
    color: var(--ink);
    text-decoration: none;
}

.primary-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    font-weight: 700;
    color: var(--muted);
    white-space: nowrap;
}

.primary-nav a:hover,
.site-footer a:hover {
    color: var(--green-dark);
}

.primary-nav li {
    position: relative;
}

.primary-nav .menu-item-has-children > a::after {
    content: "⌄";
    margin-left: 6px;
    color: var(--green);
    font-size: 0.85em;
}

.primary-nav .sub-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 20;
    display: grid;
    min-width: 220px;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: white;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.primary-nav .menu-item-has-children:hover > .sub-menu,
.primary-nav .menu-item-has-children:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.primary-nav .sub-menu a {
    display: flex;
    min-height: auto;
    padding: 10px 12px;
    border-radius: 12px;
    white-space: nowrap;
}

.primary-nav .sub-menu a:hover,
.primary-nav .sub-menu a:focus {
    background: #f1f8ec;
}

.header-cta,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.header-cta,
.button--primary {
    color: white;
    background: var(--green);
    box-shadow: 0 14px 30px rgba(90, 168, 50, 0.25);
}

.button--ghost {
    color: var(--ink);
    background: white;
    border: 1px solid var(--line);
}

.header-cta:hover,
.button:hover {
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 96px 0;
    background:
        linear-gradient(105deg, rgba(7, 16, 18, 0.88) 0%, rgba(7, 16, 18, 0.76) 42%, rgba(61, 127, 34, 0.42) 100%),
        radial-gradient(circle at top left, rgba(242, 106, 0, 0.28), transparent 32rem),
        url("../images/hero-houses.jpg") center / cover no-repeat;
    color: white;
}

.hero__grid,
.process,
.cta-band__inner,
.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--green-dark);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    font-size: 0.78rem;
}

.hero .eyebrow {
    color: #b7f29b;
}

.hero .button--ghost {
    color: white;
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(255, 255, 255, 0.34);
    backdrop-filter: blur(10px);
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.05;
    letter-spacing: -0.055em;
}

h1 {
    max-width: 820px;
    font-size: clamp(2.65rem, 6.6vw, 5.2rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
    font-size: 1.45rem;
}

.hero__lead,
.hero__quote {
    max-width: 660px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.2rem;
}

.hero__quote {
    padding-left: 20px;
    border-left: 4px solid var(--orange);
}

.hero__quote p {
    margin: 0;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.hero-card {
    position: relative;
    padding: 34px;
    border-radius: var(--radius);
    background: white;
    color: var(--ink);
    box-shadow: var(--shadow);
    transform: rotate(2deg);
}

.hero-card::before {
    content: "";
    position: absolute;
    inset: -18px;
    z-index: -1;
    border-radius: 34px;
    background: repeating-linear-gradient(135deg, rgba(90, 168, 50, 0.22) 0 12px, transparent 12px 24px);
}

.hero-card__badge {
    display: inline-flex;
    margin-bottom: 24px;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--charcoal);
    background: #e8f0ff;
    font-weight: 900;
}

.hero-card ul {
    margin: 24px 0 0;
    padding-left: 20px;
    color: var(--muted);
}

.section {
    padding: 88px 0;
}

.section--tint {
    background: #f1f8ec;
}

.section-heading {
    max-width: 780px;
    margin-bottom: 34px;
}

.section-heading--wide {
    max-width: var(--container);
}

.section-heading--wide p:not(.eyebrow) {
    width: 100%;
    max-width: var(--container);
}

.section-heading p:not(.eyebrow) {
    color: var(--muted);
    font-size: 1.08rem;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.why-choose {
    background:
        radial-gradient(circle at 12% 18%, rgba(90, 168, 50, 0.1), transparent 24rem),
        radial-gradient(circle at 88% 28%, rgba(242, 106, 0, 0.09), transparent 22rem),
        #fffefa;
}

.cards--why .card {
    border-top: 4px solid var(--green);
}

.card,
.post-card {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: 0 12px 36px rgba(7, 16, 18, 0.06);
}

.card__icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 22px;
    border-radius: 18px;
    background: var(--cream);
    font-size: 1.6rem;
}

.card p,
.process p,
.content-area,
.post-card p {
    color: var(--muted);
}

.steps {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: steps;
}

.steps li {
    counter-increment: steps;
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 16px;
    padding: 20px;
    border-radius: 20px;
    background: white;
}

.steps li::before {
    content: counter(steps);
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: white;
    background: var(--orange);
    font-weight: 900;
}

.steps span {
    grid-column: 2;
    color: var(--muted);
}

.cta-band {
    padding: 20px 0 52px;
}

.cta-band__inner {
    padding: 34px;
    border-radius: calc(var(--radius) + 10px);
    color: white;
    background: linear-gradient(135deg, var(--charcoal), var(--green-dark));
}

.cta-band .eyebrow {
    color: #b7f29b;
}

.split-feature {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
    align-items: start;
    padding: 42px;
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) + 10px);
    background: white;
    box-shadow: 0 16px 46px rgba(7, 16, 18, 0.07);
}

.split-feature p {
    color: var(--muted);
    margin-top: 0;
}

.small-print,
.footer-disclaimer {
    font-size: 0.85rem;
}

.page-hero {
    padding: 72px 0;
    background: var(--cream);
}

.page-hero--about,
.page-hero--complaints-procedure,
.page-hero--contact-us,
.page-hero--lettings,
.page-hero--privacy-policy,
.page-hero--property-sales {
    position: relative;
    overflow: hidden;
    min-height: 360px;
    display: grid;
    align-items: end;
    padding: 96px 0;
    color: white;
    background:
        linear-gradient(105deg, rgba(7, 16, 18, 0.86) 0%, rgba(7, 16, 18, 0.66) 44%, rgba(61, 127, 34, 0.34) 100%),
        var(--cream);
}

.page-hero--about {
    background:
        linear-gradient(105deg, rgba(7, 16, 18, 0.88) 0%, rgba(7, 16, 18, 0.68) 44%, rgba(61, 127, 34, 0.34) 100%),
        url("../images/about-hero.jpg") center 32% / cover no-repeat;
}

.page-hero--contact-us {
    background:
        linear-gradient(105deg, rgba(7, 16, 18, 0.86) 0%, rgba(7, 16, 18, 0.64) 44%, rgba(61, 127, 34, 0.3) 100%),
        url("../images/contact-hero.png") center / cover no-repeat;
}

.page-hero--lettings {
    background:
        linear-gradient(105deg, rgba(7, 16, 18, 0.86) 0%, rgba(7, 16, 18, 0.66) 44%, rgba(61, 127, 34, 0.34) 100%),
        url("../images/lettings-hero.jpg") center / cover no-repeat;
}

.page-hero--property-sales {
    background:
        linear-gradient(105deg, rgba(7, 16, 18, 0.86) 0%, rgba(7, 16, 18, 0.64) 44%, rgba(61, 127, 34, 0.36) 100%),
        url("../images/property-sales-hero.jpg") center / cover no-repeat;
}

.page-hero--privacy-policy {
    background:
        linear-gradient(105deg, rgba(7, 16, 18, 0.88) 0%, rgba(7, 16, 18, 0.66) 44%, rgba(61, 127, 34, 0.34) 100%),
        url("../images/privacy-hero.jpg") center / cover no-repeat;
}

.page-hero--complaints-procedure {
    background:
        linear-gradient(105deg, rgba(7, 16, 18, 0.88) 0%, rgba(7, 16, 18, 0.66) 44%, rgba(61, 127, 34, 0.34) 100%),
        url("../images/privacy-hero.jpg") center / cover no-repeat;
}

.page-hero--about .eyebrow,
.page-hero--complaints-procedure .eyebrow,
.page-hero--contact-us .eyebrow,
.page-hero--lettings .eyebrow,
.page-hero--privacy-policy .eyebrow,
.page-hero--property-sales .eyebrow {
    color: #b7f29b;
}

.content-area {
    max-width: 850px;
    padding: 64px 0;
    font-size: 1.08rem;
}

.content-area h2,
.content-area h3 {
    color: var(--ink);
    margin-top: 1.5em;
}

.contact-form-wrap {
    margin-top: 36px;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
    box-shadow: 0 16px 46px rgba(7, 16, 18, 0.07);
}

.contact-form {
    display: grid;
    gap: 20px;
}

.contact-form p {
    margin: 0;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--ink);
    font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    min-height: 52px;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--ink);
    background: #fffefa;
    font: inherit;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: 3px solid rgba(90, 168, 50, 0.22);
    border-color: var(--green);
}

.contact-form__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.contact-form__privacy {
    color: var(--muted);
    font-size: 0.92rem;
}

.contact-form__trap {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

.form-notice {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 14px;
    font-weight: 700;
}

.form-notice ul {
    margin: 0;
    padding-left: 20px;
}

.form-notice--success {
    color: #245b16;
    background: #e7f7df;
}

.form-notice--error {
    color: #8a2a0a;
    background: #fff1e8;
}

.featured-image {
    margin-bottom: 34px;
    overflow: hidden;
    border-radius: var(--radius);
}

.post-list {
    display: grid;
    gap: 24px;
    padding: 64px 0;
}

.post-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
}

.post-card__image {
    overflow: hidden;
    border-radius: 18px;
}

.post-card__meta,
.text-link {
    color: var(--green-dark);
    font-weight: 900;
}

.text-link {
    text-decoration: none;
}

.site-footer {
    padding: 64px 0 28px;
    color: #d9e7ef;
    background: #071012;
}

.site-footer a,
.site-footer h2,
.site-footer h3 {
    color: white;
}

.site-footer p {
    color: #aab7c8;
}

.footer-grid {
    align-items: start;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
}

.footer-brand {
    font-size: 2rem;
}

.site-footer ul {
    display: grid;
    gap: 10px;
}

.footer-accreditations {
    margin-top: 46px;
}

.footer-accreditations h3 {
    margin-bottom: 18px;
}

.footer-accreditations__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.footer-accreditations__card {
    display: grid;
    place-items: center;
    min-height: 112px;
    padding: 18px;
    border-radius: 18px;
    background: white;
}

.footer-accreditations__card img {
    width: 100%;
    max-width: 210px;
    max-height: 72px;
    object-fit: contain;
}

.site-footer__bottom {
    margin-top: 44px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
}

.cookie-consent {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 100;
    color: var(--ink);
}

.cookie-consent[hidden] {
    display: none;
}

.cookie-consent__content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
    width: min(100%, 1040px);
    margin-inline: auto;
    padding: 22px;
    border: 1px solid rgba(220, 228, 238, 0.95);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.cookie-consent h2 {
    margin: 0 0 8px;
    font-size: 1.2rem;
    letter-spacing: -0.03em;
}

.cookie-consent p {
    margin: 0;
    color: var(--muted);
}

.cookie-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

@media (max-width: 860px) {
    .site-header__inner {
        min-height: 84px;
    }

    .brand__logo {
        width: 245px;
        max-height: 76px;
    }

    .menu-toggle {
        display: inline-grid;
        gap: 5px;
        margin-left: auto;
        padding: 10px;
    }

    .menu-toggle span:not(.screen-reader-text) {
        display: block;
        width: 25px;
        height: 2px;
        background: var(--ink);
    }

    .primary-nav,
    .header-cta {
        display: none;
    }

    .primary-nav.is-open {
        display: block;
        position: absolute;
        top: 84px;
        left: 20px;
        right: 20px;
        padding: 20px;
        border: 1px solid var(--line);
        border-radius: 22px;
        background: white;
        box-shadow: var(--shadow);
    }

    .primary-nav.is-open ul {
        display: grid;
        gap: 14px;
    }

    .primary-nav .sub-menu {
        position: static;
        min-width: 0;
        margin-top: 8px;
        padding: 8px 0 0 16px;
        border: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .hero {
        padding: 64px 0;
    }

    .hero__grid,
    .process,
    .cta-band__inner,
    .footer-grid,
    .post-card,
    .split-feature {
        grid-template-columns: 1fr;
    }

    .cards {
        grid-template-columns: 1fr;
    }

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

    .hero-card {
        transform: none;
    }

    .contact-form__grid {
        grid-template-columns: 1fr;
    }

    .cookie-consent__content {
        grid-template-columns: 1fr;
    }

    .cookie-consent__actions {
        justify-content: stretch;
    }

    .cookie-consent__actions .button {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .footer-accreditations__grid {
        grid-template-columns: 1fr;
    }
}
