/* ===================================
   West Country Websites — Design System
   =================================== */

:root {
    --cream: #F9F4E2;
    --cream-light: #FAF7F0;
    --white: #FFFFFF;
    --charcoal: #2D3436;
    --charcoal-light: #636e72;
    --orange: #E8792B;
    --orange-dark: #D06A22;
    --navy: #283345;
    --green-dark: #627043;
    --green-mid: #6B7D3A;
    --sea-blue: #90BCCB;

    --font-heading: 'Roboto Slab', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --radius-full: 50px;

    --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.04);

    --nav-height: 96px;
    --max-width: 1200px;
    --padding: 1.5rem;
}

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

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

body {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--charcoal);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: var(--orange);
    text-decoration: none;
    transition: color 0.3s ease;
}

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


/* --- Typography --- */

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
    color: var(--charcoal);
}

h1 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    margin-bottom: 1.25rem;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.6rem);
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
}

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

.lead {
    font-size: 1.15rem;
    line-height: 1.5;
    color: var(--charcoal-light);
}

.section-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--orange);
    margin-bottom: 0.75rem;
    display: block;
}


/* --- Layout --- */

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--padding);
}

.section {
    padding: 4rem 0;
}

.section--navy {
    background: var(--navy);
}

.section--navy .section-header h2 {
    color: var(--white);
}

.section--navy .section-header p {
    color: rgba(255, 255, 255, 0.85);
}

.section--navy .reviews-carousel__dot {
    background: rgba(255, 255, 255, 0.25);
}

.section--navy .reviews-carousel__dot.active {
    background: var(--orange);
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 3rem;
}

.section-header p {
    color: var(--charcoal-light);
    font-size: 1.1rem;
}


/* --- Cards --- */

.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow);
}

.card--hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card.card--hover:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.grid {
    display: grid;
    gap: 1.5rem;
}

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


/* --- Blog --- */

.blog-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.blog-filters__btn {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.6rem 1.4rem;
    border-radius: var(--radius-full);
    border: 2px solid var(--charcoal);
    background: transparent;
    color: var(--charcoal);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.blog-filters__btn:hover {
    border-color: var(--orange);
    color: var(--orange);
}

.blog-filters__btn.active {
    background: var(--charcoal);
    border-color: var(--charcoal);
    color: var(--white);
}

.blog-card {
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
    padding: 0;
    overflow: hidden;
}

.blog-card:hover {
    color: inherit;
}

.blog-card h3 {
    transition: color 0.2s ease;
}

.blog-card:hover h3 {
    color: var(--orange);
}

.blog-card__image {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cream);
    overflow: hidden;
}

.blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card__image--client-news { background: rgba(232, 121, 43, 0.12); }
.blog-card__image--insights { background: rgba(40, 51, 69, 0.08); }
.blog-card__image--local-news { background: rgba(107, 125, 58, 0.12); }

.blog-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.75rem 1.75rem 2rem;
}

.blog-card__category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.3rem 0.85rem;
    border-radius: var(--radius-full);
    margin-bottom: 1.1rem;
}

.blog-card__category--client-news {
    background: rgba(232, 121, 43, 0.12);
    color: var(--orange);
}

.blog-card__category--insights {
    background: rgba(40, 51, 69, 0.08);
    color: var(--navy);
}

.blog-card__category--local-news {
    background: rgba(107, 125, 58, 0.12);
    color: var(--green-mid);
}

.blog-card__excerpt {
    color: var(--charcoal-light);
}

.blog-card__meta {
    display: block;
    margin-top: auto;
    padding-top: 1.25rem;
    font-size: 0.85rem;
    color: var(--charcoal-light);
}

.blog-card.is-hidden {
    display: none;
}

.reviews-carousel__track > .blog-card {
    flex: 0 0 calc((100% - 3rem) / 3);
    width: calc((100% - 3rem) / 3);
}

@media (max-width: 960px) {
    .reviews-carousel__track > .blog-card {
        flex: 0 0 calc((100% - 1.5rem) / 2);
        width: calc((100% - 1.5rem) / 2);
    }
}

@media (max-width: 640px) {
    .reviews-carousel__track > .blog-card {
        flex: 0 0 100%;
        width: 100%;
    }
}

.blog-post {
    max-width: 720px;
    margin: 0 auto;
}

.blog-post.blog-post--wide {
    max-width: 100%;
}

.blog-post-header {
    display: flex;
    align-items: stretch;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.blog-post-header__logo {
    flex: 0 0 auto;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cream);
    overflow: hidden;
}

.blog-post-header__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.blog-post-header__banner {
    flex: 1 1 0;
    min-width: 0;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--cream);
}

.blog-post-header__banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 640px) {
    .blog-post-header {
        flex-direction: column;
    }

    .blog-post-header__logo {
        width: 96px;
        height: 96px;
        aspect-ratio: auto;
    }

    .blog-post-header__banner {
        flex: none;
        width: 100%;
    }
}

.blog-post__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--charcoal-light);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}


/* --- Case Studies --- */

.case-study-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.case-study-filters__btn {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.6rem 1.4rem;
    border-radius: var(--radius-full);
    border: 2px solid var(--charcoal);
    background: transparent;
    color: var(--charcoal);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.case-study-filters__btn:hover {
    border-color: var(--orange);
    color: var(--orange);
}

.case-study-filters__btn.active {
    background: var(--charcoal);
    border-color: var(--charcoal);
    color: var(--white);
}

.case-study-card {
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
    padding: 0;
    overflow: hidden;
}

.case-study-card:hover {
    color: inherit;
}

.case-study-card h3 {
    transition: color 0.2s ease;
}

.case-study-card:hover h3 {
    color: var(--orange);
}

.case-study-card__image {
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cream);
    overflow: hidden;
}

.case-study-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-study-card__image--website { background: rgba(232, 121, 43, 0.12); }
.case-study-card__image--ecommerce { background: rgba(40, 51, 69, 0.08); }
.case-study-card__image--branding { background: rgba(107, 125, 58, 0.12); }
.case-study-card__image--google-ads { background: rgba(144, 188, 203, 0.25); }
.case-study-card__image--email-marketing { background: rgba(74, 90, 40, 0.1); }
.case-study-card__image--social-advertising { background: rgba(45, 52, 54, 0.08); }

.case-study-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.75rem 1.75rem 2rem;
}

.case-study-card__category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.3rem 0.85rem;
    border-radius: var(--radius-full);
    margin-bottom: 1.1rem;
}

.case-study-card__category--website {
    background: rgba(232, 121, 43, 0.12);
    color: var(--orange);
}

.case-study-card__category--ecommerce {
    background: rgba(40, 51, 69, 0.08);
    color: var(--navy);
}

.case-study-card__category--branding {
    background: rgba(107, 125, 58, 0.12);
    color: var(--green-mid);
}

.case-study-card__category--google-ads {
    background: rgba(144, 188, 203, 0.25);
    color: #3d6774;
}

.case-study-card__category--email-marketing {
    background: rgba(74, 90, 40, 0.1);
    color: var(--green-dark);
}

.case-study-card__category--social-advertising {
    background: rgba(45, 52, 54, 0.08);
    color: var(--charcoal);
}

.case-study-card__excerpt {
    color: var(--charcoal-light);
}

.case-study-card__meta {
    display: block;
    margin-top: auto;
    padding-top: 1.25rem;
    font-size: 0.85rem;
    color: var(--charcoal-light);
}

.case-study-card.is-hidden {
    display: none;
}

.reviews-carousel__track > .case-study-card {
    flex: 0 0 calc((100% - 3rem) / 3);
    width: calc((100% - 3rem) / 3);
}

@media (max-width: 960px) {
    .reviews-carousel__track > .case-study-card {
        flex: 0 0 calc((100% - 1.5rem) / 2);
        width: calc((100% - 1.5rem) / 2);
    }
}

@media (max-width: 640px) {
    .reviews-carousel__track > .case-study-card {
        flex: 0 0 100%;
        width: 100%;
    }
}


.blog-post p {
    color: var(--charcoal-light);
}


/* --- Navigation --- */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Once the page is scrolled the bar turns see-through so content shows
   beneath it; the blur keeps the links readable over busy sections. */
.nav--scrolled {
    background: rgba(40, 51, 69, 0.8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

/* backdrop-filter would make the nav the containing block for the fixed
   full-screen mobile menu, trapping it inside the bar — drop it while open. */
.nav--scrolled:has(.nav__menu.open) {
    background: var(--navy);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

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

.nav__menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
}

.nav__logo {
    order: -1;
    position: relative;
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--white);
    flex-shrink: 0;
}


.nav__logo:hover {
    color: var(--white);
}

.nav .nav__logo img {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.nav__logo:hover img {
    animation: logo-pulse 1s ease-in-out infinite;
}

@keyframes logo-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}

.nav__links {
    display: flex;
    align-items: center;
    list-style: none;
}

.nav__links {
    gap: 0.25rem;
}

.nav__link {
    position: relative;
    display: inline-block;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.82);
    background: transparent;
    text-decoration: none;
    text-align: center;
    padding: 0.5rem 0.9rem;
    white-space: nowrap;
    transition: color 0.3s ease, background 0.3s ease;
}

.nav__link::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0.15rem;
    width: 0;
    height: 3px;
    border-radius: 3px;
    background: var(--orange);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav__link:hover::before,
.nav__link--active::before {
    width: 24px;
}

.nav__link:hover,
.nav__link--active {
    color: var(--white);
}

.nav__link.nav__link--cta {
    margin-left: 0.75rem;
    padding: 0.65rem 1.5rem;
    background: var(--orange);
    color: var(--white);
    font-weight: 600;
    border-radius: var(--radius-full);
}

.nav__link.nav__link--cta::before {
    display: none;
}

.nav__link.nav__link--cta:hover,
.nav__link.nav__link--cta.nav__link--active {
    background: var(--orange-dark);
    color: var(--white);
}

.nav__dropdown {
    position: relative;
}

.nav__dropdown > .nav__link::after {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin-left: 5px;
    margin-bottom: 2px;
    transition: transform 0.3s ease;
}

.nav__dropdown:hover > .nav__link::after {
    transform: rotate(-135deg);
}

.nav__dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: var(--cream);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.75rem 0;
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    list-style: none;
    margin-top: 0.5rem;
}

.nav__dropdown:hover .nav__dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav__dropdown-menu a {
    display: block;
    padding: 0.6rem 1.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--charcoal);
    transition: background 0.2s ease, color 0.2s ease;
}

.nav__dropdown-menu a:hover {
    background: var(--white);
    color: var(--orange);
}

.nav__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.nav__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    margin: 5px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-radius: 2px;
}

.nav__toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav__toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav__overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 998;
}

.nav__overlay.open {
    display: block;
}


/* --- Buttons --- */

.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.9rem 2.2rem;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease, color 0.3s ease;
    letter-spacing: 0.01em;
}

.btn--primary {
    background: var(--orange);
    color: var(--white);
}

.btn--primary:hover {
    background: var(--orange-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(232, 121, 43, 0.3);
}

.btn--secondary {
    background: transparent;
    color: var(--charcoal);
    border: 2px solid var(--charcoal);
}

.btn--secondary:hover {
    background: var(--charcoal);
    color: var(--white);
    transform: translateY(-2px);
}

.btn--large {
    font-size: 1.1rem;
    padding: 1.1rem 2.8rem;
}


/* --- Hero --- */

.hero {
    background: var(--navy);
    padding: calc(var(--nav-height) + 6rem) 0 6rem;
}

.hero__grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero__content {
    flex: 1 1 60%;
    max-width: 680px;
    min-width: 0;
}

.hero__visual {
    flex: 0 1 55%;
    max-width: 620px;
    display: flex;
    justify-content: center;
}

.hero__visual img {
    width: 100%;
    max-width: 580px;
    height: auto;
    filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.25));
}

.hero__visual--lg {
    flex-basis: 78%;
    max-width: 950px;
}

.hero__visual--lg img {
    max-width: 100%;
}

/* Scale the device mockups up without reflowing the hero text: the transform
   grows the image rightwards into the page margin, leaving the text column
   exactly where it was. */
@media (min-width: 1025px) {
    .hero__visual--lg img {
        transform: scale(1.05);
        transform-origin: left center;
    }
}

@media (min-width: 1200px) {
    .hero__visual--lg img {
        transform: scale(1.08);
    }
}

@media (min-width: 1280px) {
    .hero__visual--lg img {
        transform: scale(1.12);
    }
}

@media (min-width: 1400px) {
    .hero__visual--lg img {
        transform: scale(1.25);
    }
}

@media (min-width: 1600px) {
    .hero__visual--lg img {
        transform: scale(1.35);
    }
}

.hero__intro {
    font-family: 'Roboto Slab', serif;
    font-weight: 700;
    font-size: clamp(1.1rem, 2.4vw, 1.6rem);
    text-transform: uppercase;
    letter-spacing: 0.01em;
    line-height: 1.35;
    color: var(--cream);
    margin-bottom: 1.2rem;
}

.hero__divider {
    width: 130px;
    height: 4px;
    background: var(--orange);
    margin-bottom: 1.5rem;
}

.hero__punch {
    font-family: 'Rethink Sans', sans-serif;
    font-weight: 800;
    font-size: clamp(2.5rem, 5.2vw, 4.4rem);
    line-height: 0.95;
    letter-spacing: -0.01em;
    color: var(--cream);
    margin-bottom: 1.5rem;
}

.hero__punch--orange {
    color: var(--orange);
}

.hero__punch--sm {
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    margin-bottom: 1.5rem;
}

.hero .lead {
    max-width: 500px;
    margin: 0 0 1.5rem;
    color: var(--cream);
}

.hero__ctas {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero .btn--primary {
    background: var(--orange);
    color: var(--white);
    border: 2px solid transparent;
}

.hero .btn--primary:hover {
    background: var(--navy);
    color: var(--white);
    border: 2px solid var(--white);
}

.hero .btn--secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.hero .btn--secondary:hover {
    background: var(--orange);
    color: var(--white);
    border-color: var(--white);
}

.btn--stacked {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    line-height: 1.2;
}

.btn__label {
    font-size: 1.15em;
}

.btn__subtext {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: normal;
    text-transform: none;
    opacity: 0.85;
}


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

.page-header {
    background: var(--navy);
    padding: calc(var(--nav-height) + 4rem) 0 4rem;
}

.page-header__content {
    flex: 1;
    min-width: 0;
    margin: 0 auto;
    text-align: center;
}

.page-header h1 {
    margin-bottom: 0.75rem;
    color: var(--white);
}

.page-header h1::after {
    content: '';
    display: block;
    width: 64px;
    height: 4px;
    border-radius: 4px;
    background: var(--orange);
    margin: 1.25rem auto 0.5rem;
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.page-header .section-label {
    color: var(--white);
}
/* --- Service Cards --- */


.service-card {
    text-align: center;
    padding: 1.5rem 1.5rem 1.75rem;
}

.service-card__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cream);
    border-radius: var(--radius-md);
}

.service-card__icon:has(img) {
    width: 130%;
    height: auto;
    margin: -6.5rem -15% 1rem;
    background: transparent;
}

.service-card__icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--orange);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-card__icon img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.service-icons--compact .service-card__icon:has(img) {
    width: 110px;
    height: 110px;
    margin: 0 auto 1.5rem;
    background: transparent;
}

.service-icons--compact .service-card__icon img {
    width: 110px;
    height: 110px;
    object-fit: contain;
}

.service-icons--icon .service-card__icon:has(img) {
    width: 220px;
    height: auto;
    margin: 0 auto 1.5rem;
    background: transparent;
}

.service-icons--icon .service-card__icon img {
    width: 220px;
    height: auto;
}

.service-card h3 {
    font-weight: 700;
}

.service-card p {
    color: var(--charcoal-light);
    font-size: 0.95rem;
}

.service-card__link {
    display: inline-block;
    margin-top: 1.25rem;
    font-weight: 600;
    font-size: 0.9rem;
}


/* --- Feature Sections --- */

.feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.feature__content h2 {
    margin-bottom: 1.25rem;
}

.feature__content p {
    color: var(--charcoal-light);
    margin-bottom: 1.25rem;
}

.feature__visual {
    background: var(--cream);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    overflow: hidden;
}

.feature__visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/* --- Reviews Carousel --- */

.reviews-carousel {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.reviews-carousel__viewport {
    flex: 1;
    overflow: hidden;
}

.reviews-carousel__track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s ease;
}

.review-card {
    flex: 0 0 calc((100% - 3rem) / 3);
    width: calc((100% - 3rem) / 3);
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 2rem 1.75rem;
    text-align: center;
}

@media (max-width: 960px) {
    .review-card {
        flex: 0 0 calc((100% - 1.5rem) / 2);
        width: calc((100% - 1.5rem) / 2);
    }
}

@media (max-width: 640px) {
    .review-card {
        flex: 0 0 100%;
        width: 100%;
    }
}

.review-card__source {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--charcoal);
}

.review-card__source svg {
    flex-shrink: 0;
}

.review-card__stars {
    color: var(--orange);
    font-size: 1.25rem;
    letter-spacing: 0.15em;
    margin-bottom: 1.25rem;
}

.review-card__text {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--charcoal);
    margin-bottom: 1.5rem;
}

.review-card__toggle {
    display: inline-block;
    margin: -1rem 0 1.5rem;
    background: none;
    border: none;
    color: var(--orange);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0;
}

.review-card__toggle:hover {
    color: var(--orange-dark);
    text-decoration: underline;
}

.review-card__author {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin-top: auto;
}

.review-card__author strong {
    color: var(--charcoal);
}

.review-card__author span {
    color: var(--charcoal-light);
    font-size: 0.9rem;
}

.reviews-carousel__btn {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--orange);
    background: var(--white);
    color: var(--orange);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.reviews-carousel__btn:hover {
    background: var(--orange);
    color: var(--white);
}

.reviews-carousel__dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.reviews-carousel__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(45, 52, 54, 0.15);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease;
}

.reviews-carousel__dot.active {
    background: var(--orange);
}

@media (max-width: 768px) {
    .reviews-carousel {
        gap: 0.75rem;
    }

    .review-card {
        padding: 2rem 1.5rem;
    }

    .reviews-carousel__btn {
        width: 40px;
        height: 40px;
    }
}

.reviews-masonry {
    column-count: 3;
    column-gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.reviews-masonry .review-card {
    display: block;
    width: 100%;
    flex: none;
    margin: 0 0 1.5rem;
    break-inside: avoid;
}

@media (max-width: 960px) {
    .reviews-masonry {
        column-count: 2;
    }
}

@media (max-width: 640px) {
    .reviews-masonry {
        /* A single visual column doesn't need multi-column formatting at all —
           and WebKit/mobile Safari has long-standing bugs clipping/misplacing
           break-inside:avoid children (with box-shadow) inside a column
           container, even when column-count is 1. Dropping to plain block
           layout here sidesteps that engine bug entirely on phones. */
        column-count: auto;
        display: block;
    }
}


/* --- Values/Points List --- */

.values-list {
    list-style: none;
    display: grid;
    gap: 1.5rem;
}

.values-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.values-list__icon {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.15rem;
}

.values-list__icon img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.values-list h3 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.values-list p {
    color: var(--charcoal-light);
    font-size: 0.95rem;
}


/* --- Process Steps --- */

.process {
    counter-reset: step;
}

.process-step {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    padding: 2rem 2.5rem;
}

.process-step::before {
    counter-increment: step;
    content: counter(step);
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--orange);
    line-height: 1;
    flex-shrink: 0;
    width: 48px;
    text-align: center;
}

.process-step h3 {
    margin-bottom: 0.5rem;
}

.process-step p {
    color: var(--charcoal-light);
    font-size: 0.95rem;
}


/* --- Pricing/Package Cards --- */

.package-card {
    display: flex;
    flex-direction: column;
    padding: 2.5rem;
    text-align: center;
    position: relative;
}

.package-card ul {
    flex: 1;
}

.package-card--featured {
    background: var(--orange);
    border: 2px solid var(--orange);
    color: var(--white);
}

.package-card--featured h3,
.package-card--featured .package-card__price {
    color: var(--white);
}

.package-card--featured .package-card__price span {
    color: var(--white);
}

.package-card--featured p {
    color: var(--white) !important;
}

.package-card--featured ul li {
    color: var(--white) !important;
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.package-card--featured .btn--primary {
    background: var(--white);
    color: var(--orange);
}

.package-card--featured .btn--primary:hover {
    background: var(--cream);
    color: var(--orange-dark);
}

.package-card--featured ul li::before {
    background: var(--white);
}

.package-card__badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--charcoal);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.3rem 1.2rem;
    border-radius: var(--radius-full);
}

.package-card h3 {
    margin-bottom: 1rem;
}

.package-card__price {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--charcoal);
    margin-bottom: 0.25rem;
}

.package-card__price span {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--charcoal-light);
    font-weight: 400;
}

.package-card ul {
    list-style: none;
    margin: 1.5rem 0;
    text-align: left;
}

.package-card ul li {
    padding: 0.5rem 0;
    font-size: 0.95rem;
    color: var(--charcoal-light);
    border-bottom: 1px solid var(--cream);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.package-card ul li::before {
    content: '';
    width: 18px;
    height: 18px;
    background: var(--cream);
    border-radius: 50%;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23E8792B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px;
}


/* --- FAQ --- */

.faq-item {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    align-self: start;
    overflow: hidden;
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.5rem;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--charcoal);
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    flex-shrink: 0;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--orange);
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    margin: 0;
    padding: 0 1.5rem 1.25rem;
    color: var(--charcoal-light);
    line-height: 1.6;
}

.faq-grid--compact {
    gap: 0.6rem;
}

.faq-grid--compact .faq-item summary {
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
}

.faq-grid--compact .faq-item p {
    padding: 0 1.25rem 0.9rem;
    font-size: 0.92rem;
}


/* --- Collapsible --- */

.collapsible {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.collapsible.is-open {
    max-height: 2000px;
}

.collapsible__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1rem;
    background: none;
    border: none;
    color: var(--orange);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    padding: 0;
}

.collapsible__toggle:hover {
    color: var(--orange-dark);
}

.collapsible__toggle-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

.collapsible__toggle.is-open .collapsible__toggle-icon {
    transform: rotate(180deg);
}


/* --- CTA Section --- */

.cta-section {
    text-align: center;
    padding: 4rem 3rem;
    border-radius: var(--radius-xl);
}

.cta-section h2 {
    margin-bottom: 1rem;
}

.cta-section p {
    color: var(--charcoal-light);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto 2rem;
}


/* --- Team --- */

.team-card {
    text-align: center;
    padding: 2.5rem 2rem;
}

.team-card__photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--cream);
    margin: 0 auto 1.5rem;
    overflow: hidden;
}

.team-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card__photo--initials {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy);
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.75rem;
}

.team-card h3 {
    margin-bottom: 0.25rem;
}

.team-card__role {
    color: var(--orange);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.team-card p {
    color: var(--charcoal-light);
    font-size: 0.9rem;
}


/* --- Office Map --- */

.office-card__map {
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-top: 1.25rem;
    aspect-ratio: 16 / 10;
}

.office-card__map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}


/* --- Area Cards --- */

.area-card {
    display: block;
    text-align: center;
    padding: 2rem 1.5rem;
    color: inherit;
    text-decoration: none;
}

.area-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    transition: color 0.2s ease;
}

.area-card:hover h3 {
    color: var(--orange);
}

.area-card p {
    color: var(--charcoal-light);
    font-size: 0.9rem;
}

.area-card .service-card__icon:has(img) {
    width: 220px;
    height: auto;
    margin: 0 auto 1.25rem;
}

.area-card .service-card__icon img {
    width: 220px;
    height: auto;
}


/* --- Category Cards --- */

.category-card {
    text-align: center;
    padding: 2rem 1.5rem;
}

.category-card .service-card__icon:has(img) {
    width: 175px;
    height: auto;
    margin: 0 auto 1.25rem;
}

.category-card .service-card__icon img {
    width: 175px;
    height: auto;
}


/* --- Forms --- */

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.85rem 1.1rem;
    border: 2px solid var(--cream);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--charcoal);
    background: var(--cream-light);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(232, 121, 43, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #b0a899;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-success {
    display: none;
    text-align: center;
    padding: 3rem 1rem;
}

.form-success__tick {
    width: 56px;
    height: 56px;
    background: var(--green-mid);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.form-success__tick svg {
    width: 28px;
    height: 28px;
}

.form-success h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--charcoal);
    margin-bottom: 0.5rem;
}

.form-success p {
    color: var(--charcoal-light);
    font-size: 0.95rem;
}


/* --- Blockquote --- */

blockquote {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    line-height: 1.5;
    color: var(--charcoal);
    text-align: center;
    padding: 2rem 0;
}

blockquote cite {
    display: block;
    font-family: var(--font-body);
    font-style: normal;
    font-size: 0.9rem;
    color: var(--charcoal-light);
    font-weight: 500;
    margin-top: 1rem;
}


/* --- Footer --- */

.footer-info {
    background: var(--green-dark);
    padding: 3rem 0 2.5rem;
}

.footer-info__inner {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 2.5rem;
}

.footer-info__brand p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
    margin-top: 1rem;
    max-width: 280px;
}

.footer-info__brand .footer-info__tagline {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    line-height: 1.2;
    color: var(--white);
    max-width: 340px;
    margin: 0 0 1.5rem;
}

.footer-info__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-info__social {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    transition: background 0.2s ease;
}

.footer-info__social:hover {
    background: var(--orange);
    color: var(--white);
}

.footer-info h4 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-info ul {
    list-style: none;
}

.footer-info ul li {
    margin-bottom: 0.55rem;
}

.footer-info ul a {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.75);
}

.footer-info ul a::before {
    content: '';
    width: 14px;
    height: 4px;
    border-radius: 4px;
    background: var(--orange);
    flex-shrink: 0;
}

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

.footer-info__base {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-info__base p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-info__base a {
    color: rgba(255, 255, 255, 0.9);
}

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

.footer-info__logo img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
}

.footer-scene {
    width: 100%;
    line-height: 0;
    background: linear-gradient(to bottom, #F8F4E2 0%, #F8F4E2 61.8%, #627043 61.8%, #627043 100%);
}

.footer-scene img {
    width: 100%;
    max-width: 1280px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.footer-bottom {
    background: var(--green-dark);
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 1.25rem;
    font-size: 0.8rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.9);
}

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


/* --- Animations --- */

.fade-in {
    opacity: 0;
    transform: translateY(70px) scale(0.9);
    transform-origin: top center;
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.grid-3 > .card:nth-child(1) { transition-delay: 0s; }
.grid-3 > .card:nth-child(2) { transition-delay: 0.2s; }
.grid-3 > .card:nth-child(3) { transition-delay: 0.4s; }


/* --- Utilities --- */

.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }
.mb-3 { margin-bottom: 1.5rem; }


/* --- Responsive --- */

@media (max-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .feature {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-info__inner {
        grid-template-columns: 1fr 1fr;
    }
}

/* Tighten the nav links so they fit beside the logo before the hamburger
   menu takes over at 768px. */
@media (max-width: 1024px) {
    .nav__link {
        font-size: 0.92rem;
        padding: 0.5rem 0.55rem;
    }

    .nav__link.nav__link--cta {
        margin-left: 0.4rem;
        padding: 0.6rem 1.1rem;
    }

    .nav .nav__logo img {
        width: 64px;
        height: 64px;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 76px;
        --padding: 1.25rem;
    }

    .nav .nav__logo img {
        width: 58px;
        height: 58px;
    }


    .nav__links {
        display: none;
    }

    .nav__toggle {
        display: block;
        position: absolute;
        top: 50%;
        right: var(--padding);
        transform: translateY(-50%);
    }

    .nav__menu.open {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: 100%;
        background: var(--navy);
        padding: calc(var(--nav-height) + 1.5rem) 2rem 2rem;
        gap: 0;
        z-index: 999;
        overflow-y: auto;
    }

    .nav__menu.open .nav__links {
        display: flex;
        flex: none;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        width: 100%;
        margin: 0;
        gap: 0;
    }

    .nav__menu.open .nav__links li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    .nav__menu.open .nav__link {
        padding: 1.1rem 0;
        font-size: 1.35rem;
        font-weight: 600;
        display: block;
        width: auto;
        text-align: left;
        color: var(--white);
    }

    .nav__menu.open .nav__link::before {
        left: 0;
        bottom: 0.6rem;
        transform: none;
    }

    .nav__menu.open .nav__link:hover::before,
    .nav__menu.open .nav__link--active::before {
        width: 30px;
    }

    .nav__menu.open .nav__link:hover {
        color: var(--orange);
    }

    .nav__menu.open .nav__links li:has(.nav__link--cta) {
        border-bottom: none;
    }

    .nav__menu.open .nav__link.nav__link--cta {
        margin: 1.5rem 0 0;
        padding: 0.9rem 1.5rem;
        text-align: center;
        background: var(--orange);
        color: var(--white);
        border-radius: var(--radius-full);
    }

    .nav__menu.open .nav__link.nav__link--cta:hover,
    .nav__menu.open .nav__link.nav__link--cta.nav__link--active {
        background: var(--orange-dark);
        color: var(--white);
    }

    .nav__menu.open .nav__dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        background: transparent;
        padding: 0 0 0.5rem 1rem;
        margin-top: 0;
        display: none;
        min-width: auto;
    }

    .nav__menu.open .nav__dropdown.open .nav__dropdown-menu {
        display: block;
    }

    .nav__menu.open .nav__dropdown-menu a {
        padding: 0.6rem 0;
        font-size: 1.1rem;
        color: var(--white);
        background: transparent;
    }

    .nav__menu.open .nav__dropdown-menu a:hover {
        background: transparent;
        color: var(--orange);
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .service-card__icon:has(img) {
        width: 108%;
        margin: -4rem -4% 1rem;
    }

    .card {
        padding: 1.5rem 1.25rem;
        border-radius: var(--radius-md);
    }

    .hero {
        padding: calc(var(--nav-height) + 2.5rem) 0 2.5rem;
    }

    .hero__grid {
        flex-direction: column-reverse;
        gap: 2rem;
    }

    .hero__visual {
        max-width: 100%;
    }

    .page-header {
        padding: calc(var(--nav-height) + 2.5rem) 0 2.5rem;
    }

    .section {
        padding: 2.5rem 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .cta-section {
        padding: 2.5rem 1.5rem;
        border-radius: var(--radius-lg);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .process-step {
        padding: 1.5rem;
        gap: 1.25rem;
    }

    .process-step::before {
        font-size: 2rem;
        width: 36px;
    }

    .footer-info__inner {
        grid-template-columns: 1fr;
    }

    .feature__visual {
        min-height: 240px;
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .btn--large {
        width: 100%;
    }

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

    .nav .nav__logo img {
        width: 54px;
        height: 54px;
    }
}


/* --- Section Framework --- */

.section--white {
    background: var(--white);
}

.section--white .card,
.section--white .review-card {
    background: var(--cream-light);
    box-shadow: none;
}

.section--white .card.card--hover:hover {
    box-shadow: var(--shadow);
}

.section--navy .section-header .section-label,
.section--navy .section-label {
    color: var(--orange);
}

.accent-bar {
    width: 64px;
    height: 4px;
    border-radius: 4px;
    background: var(--orange);
    margin: 0 0 1.5rem;
}

.section-header .accent-bar {
    margin: 0.25rem auto 1.25rem;
}


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

.hero--home {
    padding-bottom: 0;
}

.hero__link {
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--white);
    padding: 0.9rem 0.5rem;
}

.hero__link:hover {
    color: var(--orange);
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 4.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero__stat {
    padding: 1.75rem 1rem 2rem;
    text-align: center;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.hero__stat:first-child {
    border-left: none;
}

.hero__stat strong {
    display: block;
    font-family: 'Rethink Sans', sans-serif;
    font-weight: 800;
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    line-height: 1.1;
    color: var(--orange);
}

.hero__stat span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
}


/* --- Logo Wall --- */

.logo-wall {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}

.logo-wall__intro h2 {
    font-weight: 400;
}

.logo-wall__intro p {
    color: var(--charcoal-light);
    margin-bottom: 1.75rem;
}

.logo-wall__grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.logo-wall__grid a {
    display: block;
    aspect-ratio: 1 / 1;
    background: var(--white);
    border: 1px solid rgba(45, 52, 54, 0.08);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-wall__grid a:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.logo-wall__grid img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/* --- Split (image + statement) --- */

.split {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 5rem;
    align-items: center;
}

.split__visual {
    position: relative;
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
}

/* Decorative rings echoing the round badge logo. */
.split__visual::before {
    content: '';
    position: absolute;
    inset: -8%;
    border: 2px dashed rgba(144, 188, 203, 0.9);
    border-radius: 50%;
}

.split__visual::after {
    content: '';
    position: absolute;
    right: -2%;
    bottom: 4%;
    width: 22%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: var(--orange);
}

.split__visual img {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
}

.split__content h2 {
    font-weight: 400;
    font-size: clamp(1.8rem, 3.6vw, 2.6rem);
}

.split__content p {
    color: var(--charcoal-light);
}

.split__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}


/* --- Icon Row (What we do) --- */

.icon-row {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.icon-row__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--white);
}

.icon-row__img {
    width: 100%;
    aspect-ratio: 3 / 2;
    border-radius: var(--radius-md);
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem;
    margin-bottom: 1.25rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.icon-row__img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.icon-row__item:hover .icon-row__img {
    transform: translateY(-4px);
    box-shadow: 0 0 0 4px var(--orange);
}

.icon-row__label {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
    transition: color 0.2s ease;
}

.icon-row__item:hover,
.icon-row__item:hover .icon-row__label {
    color: var(--orange);
}

.icon-row__text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.72);
}

.icon-row__note {
    text-align: center;
    margin-top: 3.5rem;
    color: rgba(255, 255, 255, 0.85);
}

.icon-row__note a {
    font-weight: 600;
}


/* --- Included List --- */

.values-list--grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem 2.5rem;
}

.values-list--grid .values-list__icon,
.values-list--grid .values-list__icon img {
    width: 72px;
    height: 72px;
}

.values-list--grid h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
}


/* --- Chat CTA --- */

.chat-cta {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.chat-cta__logo {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
}

.chat-cta h2 {
    font-weight: 400;
}

.chat-cta .accent-bar {
    margin: 0.25rem auto 1.5rem;
}

.chat-cta p {
    color: var(--charcoal-light);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.chat-cta__actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}


@media (max-width: 1024px) {
    .logo-wall {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .logo-wall .accent-bar {
        margin-left: auto;
        margin-right: auto;
    }

    .logo-wall__intro p {
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }

    .split {
        gap: 3.5rem;
    }

    .icon-row {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 2.5rem;
    }

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

@media (max-width: 768px) {
    .hero__stats {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 2.5rem;
    }

    .hero__stat:nth-child(3) {
        border-left: none;
    }

    .hero__stat:nth-child(n + 3) {
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    .logo-wall__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Nine logos make a tidy 3x3 on phones. */
    .logo-wall__grid li:nth-child(n + 10) {
        display: none;
    }

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

    .split__visual {
        max-width: 300px;
    }

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

    .values-list--grid {
        grid-template-columns: 1fr;
    }

    .footer-info__base {
        flex-direction: column-reverse;
        text-align: center;
    }
}


/* --- Project (case study) pages --- */

.project-header__logo {
    width: 132px;
    height: 132px;
    margin: 0 auto 1.75rem;
    padding: 0.5rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.project-header__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.page-header .project-header__meta {
    margin-top: 1.25rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.project-body {
    position: relative;
}

.project-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    padding: 3rem 0;
}

.project-row + .project-row {
    border-top: 1px solid rgba(45, 52, 54, 0.08);
}

.project-row--reverse .project-row__media {
    order: -1;
}

/* First row: the device mockup (iMac, tablet, phone) gets a wider column
   and is scaled up into its own transparent margin. */
@media (min-width: 901px) {
    .project-body .container > .project-row:first-child {
        grid-template-columns: 0.8fr 1.2fr;
        gap: 3rem;
    }

    .project-body .container > .project-row:first-child .project-row__media img {
        transform: scale(1.12);
        transform-origin: 30% 50%;
    }
}

.project-row__text h2 {
    font-weight: 400;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.project-row__text h2 + .accent-bar {
    margin-bottom: 1.5rem;
}

.project-row__text h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin: 2rem 0 0.75rem;
}

.project-row__text p {
    color: var(--charcoal-light);
}

.project-row__media img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

/* Lifestyle photos from the client's own site: one consistent 4:3 crop. */
.project-row__media--photo img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Tall artwork (e.g. print mockups) — capped height, centred in its column. */
.project-row__media--portrait {
    display: flex;
    justify-content: center;
}

.project-row__media--portrait img {
    width: auto;
    max-width: 100%;
    max-height: 620px;
    border-radius: 0;
    filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.18));
}

/* A row with no image: centred single column. */
.project-row--text-only {
    grid-template-columns: 1fr;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.project-row--text-only .accent-bar {
    margin-left: auto;
    margin-right: auto;
}
.project-quote {
    max-width: 820px;
    margin: 3rem auto 0;
    padding: 3rem 3rem 2.5rem;
    background: var(--cream-light);
    border-radius: var(--radius-xl);
    position: relative;
}

.project-quote::before {
    content: '\201C';
    position: absolute;
    top: -0.35em;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-heading);
    font-size: 6rem;
    line-height: 1;
    color: var(--orange);
}

.project-quote blockquote {
    padding: 0;
}

.project-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 3.5rem;
}

/* Prev / next tabs pinned to the page edges. Collapsed to just an arrow so
   they sit in the side margin clear of the text; the label slides out on
   hover. */
.project-tab {
    position: absolute;
    top: 50vh;
    display: flex;
    align-items: center;
    height: 48px;
    padding: 0 1rem;
    background: var(--orange);
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    box-shadow: var(--shadow);
    transition: background 0.2s ease;
    z-index: 2;
}

.project-tab:hover,
.project-tab:focus-visible {
    background: var(--orange-dark);
    color: var(--white);
}

.project-tab__arrow {
    font-size: 1.1rem;
    line-height: 1;
}

.project-tab__label {
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-width 0.3s ease, opacity 0.2s ease, margin 0.3s ease;
}

.project-tab:hover .project-tab__label,
.project-tab:focus-visible .project-tab__label {
    max-width: 120px;
    opacity: 1;
}

.project-tab--prev {
    left: 0;
    border-radius: 0 var(--radius-full) var(--radius-full) 0;
}

.project-tab--prev:hover .project-tab__label,
.project-tab--prev:focus-visible .project-tab__label {
    margin-left: 0.6rem;
}

.project-tab--next {
    right: 0;
    border-radius: var(--radius-full) 0 0 var(--radius-full);
}

.project-tab--next:hover .project-tab__label,
.project-tab--next:focus-visible .project-tab__label {
    margin-right: 0.6rem;
}

.project-pager {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1.5rem;
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(45, 52, 54, 0.08);
}

.project-pager__link {
    display: flex;
    flex-direction: column;
    color: var(--charcoal);
}

.project-pager__link small {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--orange);
}

.project-pager__link strong {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1.15rem;
}

.project-pager__link:hover strong {
    color: var(--orange);
}

.project-pager__link--next {
    text-align: right;
}

.project-pager__all {
    font-weight: 600;
    font-size: 0.9rem;
}

@media (max-width: 1279px) {
    .project-tab {
        display: none;
    }
}

@media (max-width: 900px) {
    .project-row {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 0;
    }

    .project-row--reverse .project-row__media {
        order: 0;
    }
}

@media (max-width: 640px) {
    .project-pager {
        grid-template-columns: 1fr 1fr;
    }

    .project-pager__all {
        grid-column: 1 / -1;
        grid-row: 2;
        text-align: center;
    }

    .project-quote {
        padding: 2.5rem 1.5rem 2rem;
    }
}


/* --- Cookie Banner --- */

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    background: var(--navy);
    color: var(--white);
    padding: 1.25rem var(--padding);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-banner.is-visible {
    transform: translateY(0);
}

.cookie-banner__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-banner__text {
    flex: 1 1 380px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.cookie-banner__text a {
    color: var(--white);
    text-decoration: underline;
}

.cookie-banner__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.cookie-banner .btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
}

.cookie-banner .btn--secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.cookie-banner .btn--secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    color: var(--white);
}


@media (max-width: 640px) {
    .cookie-banner__inner {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-banner__text {
        flex-basis: auto;
    }

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

    .cookie-banner__actions .btn {
        flex: 1;
    }
}
