/* ============================================================
   VALERIAN POOLS — MAIN STYLESHEET
   Bespoke swimming pools for exceptional homes.
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* ── Custom Properties (Brand Tokens) ────────────────────── */
:root {
    --navy:        #071A33;
    --navy-mid:    #0D2647;
    --navy-light:  #153258;
    --aqua:        #7DBEC2;
    --aqua-light:  #A8D5D8;
    --aqua-dark:   #5FA8AD;
    --stone:       #E8E2D6;
    --stone-dark:  #D8D0C1;
    --white:       #FAF8F3;
    --charcoal:    #2F3437;
    --grey:        #8E918C;
    --grey-light:  #C4C7C0;
    --border:      #E0DDD5;

    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans:  'Inter', system-ui, -apple-system, sans-serif;

    --container-max:    1280px;
    --container-narrow: 800px;
    --container-px:     clamp(1.25rem, 4vw, 3rem);

    --section-py:    clamp(3.5rem, 7vw, 6rem);
    --section-py-sm: clamp(2rem, 4vw, 3.5rem);

    --nav-height: 80px;

    --radius-sm:  2px;
    --radius:     4px;
    --radius-lg:  8px;

    --shadow-sm:  0 1px 3px rgba(7, 26, 51, 0.08);
    --shadow:     0 4px 16px rgba(7, 26, 51, 0.10);
    --shadow-lg:  0 12px 40px rgba(7, 26, 51, 0.14);
    --shadow-xl:  0 24px 64px rgba(7, 26, 51, 0.18);

    --transition: 0.3s ease;
    --transition-fast: 0.18s ease;
}

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

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

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--charcoal);
    background-color: var(--white);
    overflow-x: hidden;
    /* Push all page content below the fixed white nav */
    padding-top: var(--nav-height);
}

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

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

ul, ol { list-style: none; }

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ── Typography ───────────────────────────────────────────── */
.font-serif { font-family: var(--font-serif); }
.font-sans  { font-family: var(--font-sans); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.15;
    color: var(--navy);
}

/* Display — hero headline */
.heading-display {
    font-family: var(--font-serif);
    font-size: clamp(2.6rem, 5.5vw, 5rem);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.01em;
    color: inherit;
}

.heading-1 {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 4.5vw, 3.75rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.heading-2 {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 400;
    line-height: 1.15;
}

.heading-3 {
    font-family: var(--font-serif);
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 400;
    line-height: 1.2;
}

.heading-4 {
    font-family: var(--font-serif);
    font-size: clamp(1.15rem, 1.8vw, 1.4rem);
    font-weight: 500;
    line-height: 1.3;
}

.body-large {
    font-family: var(--font-sans);
    font-size: clamp(1rem, 1.3vw, 1.125rem);
    font-weight: 400;
    line-height: 1.75;
    color: var(--charcoal);
}

.body-small {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--grey);
}

/* Section label / tag */
.tag {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--aqua-dark);
    margin-bottom: 1rem;
}

.tag--light { color: var(--aqua-light); }
.tag--grey  { color: var(--grey); }
.tag--white { color: rgba(255, 255, 255, 0.65); }

/* Divider accent line */
.divider-aqua {
    display: block;
    width: 48px;
    height: 2px;
    background: var(--aqua);
    margin: 1.25rem 0;
}

.divider-aqua--center { margin-left: auto; margin-right: auto; }

/* ── Layout ────────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-px);
    padding-right: var(--container-px);
}

.container--narrow {
    max-width: var(--container-narrow);
}

.section {
    padding-top: var(--section-py);
    padding-bottom: var(--section-py);
}

.section--sm {
    padding-top: var(--section-py-sm);
    padding-bottom: var(--section-py-sm);
}

.section--white  { background-color: var(--white); }
.section--stone  { background-color: var(--stone); }
.section--navy   { background-color: var(--navy); }
.section--navy-mid { background-color: var(--navy-mid); }

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

.section-header--center { text-align: center; }
.section-header--center .divider-aqua { margin-left: auto; margin-right: auto; }

.section-intro {
    font-size: 1.05rem;
    font-weight: 400;
    color: #3a3f42;
    max-width: 640px;
    line-height: 1.75;
    margin-top: 1rem;
}

.section-header--center .section-intro { margin-left: auto; margin-right: auto; }

/* On dark sections */
.section--navy .heading-2,
.section--navy .heading-3,
.section--navy .heading-4,
.section--navy-mid .heading-2 { color: var(--white); }
.section--navy .section-intro,
.section--navy .body-large  { color: rgba(255, 255, 255, 0.82); }
.section--navy .tag { color: var(--aqua-light); }
.section--navy .divider-aqua { background: var(--aqua); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2.25rem;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition-fast), box-shadow var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* Primary — solid navy */
.btn--primary {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}
.btn--primary:hover {
    background: var(--navy-mid);
    border-color: var(--navy-mid);
    box-shadow: var(--shadow);
}

/* Secondary — outline navy */
.btn--secondary {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}
.btn--secondary:hover {
    background: var(--navy);
    color: var(--white);
}

/* Ghost white — for use on dark backgrounds */
.btn--ghost-white {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.6);
}
.btn--ghost-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

/* Aqua accent */
.btn--aqua {
    background: var(--aqua);
    color: var(--navy);
    border-color: var(--aqua);
}
.btn--aqua:hover {
    background: var(--aqua-dark);
    border-color: var(--aqua-dark);
    box-shadow: var(--shadow);
}

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

/* Arrow link */
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--navy);
    transition: gap var(--transition);
}
.link-arrow::after {
    content: '→';
    transition: transform var(--transition);
}
.link-arrow:hover { gap: 0.65rem; }
.link-arrow--aqua { color: var(--aqua-dark); }
.link-arrow--white { color: var(--white); }

/* ── Navigation ───────────────────────────────────────────── */
#site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    background: var(--white);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition), box-shadow var(--transition);
}

/* Subtle shadow once user has scrolled */
#site-nav.nav--scrolled {
    border-bottom-color: var(--border);
    box-shadow: 0 2px 16px rgba(7, 26, 51, 0.07);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

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

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

.nav-link {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--charcoal);
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--navy);
}

.nav-link.is-active {
    color: var(--navy);
    font-weight: 600;
}

.nav-link.is-active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0.85rem;
    right: 0.85rem;
    height: 2px;
    background: var(--aqua);
    border-radius: 1px;
}

.nav-cta {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--white);
    background: var(--navy);
    padding: 0.55rem 1.4rem;
    border-radius: var(--radius-sm);
    border: 2px solid var(--navy);
    transition: background var(--transition), color var(--transition), border-color var(--transition);
    margin-left: 0.5rem;
}

.nav-cta:hover {
    background: var(--navy-mid);
    border-color: var(--navy-mid);
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 260px;
    background: var(--white);
    border-top: 2px solid var(--aqua);
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 0.5rem 0;
    transition: opacity var(--transition), transform var(--transition);
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.7rem 1.4rem;
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--charcoal);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition), color var(--transition);
}

.nav-dropdown-menu a:last-child { border-bottom: none; }
.nav-dropdown-menu a:hover {
    background: var(--stone);
    color: var(--navy);
    padding-left: 1.75rem;
}

/* Mobile nav button */
.nav-mobile-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-mobile-btn span {
    display: block;
    height: 1.5px;
    background: var(--navy);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

/* Mobile menu */
.nav-mobile-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--navy);
    z-index: 99;
    overflow-y: auto;
    padding: 1.25rem var(--container-px) 3rem;
    display: flex;
    flex-direction: column;
}

/* Primary nav items */
.nav-mobile-item {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    transition: color var(--transition);
}

.nav-mobile-item:hover { color: var(--white); }

.nav-mobile-item.is-active { color: var(--aqua-light); }

/* Services accordion toggle button */
.nav-mobile-toggle {
    width: 100%;
    background: none;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 0;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    transition: color var(--transition);
}

.nav-mobile-toggle:hover { color: var(--white); }
.nav-mobile-toggle.is-active { color: var(--aqua-light); }

.nav-mobile-chevron {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    transition: transform var(--transition);
    flex-shrink: 0;
    opacity: 0.6;
}

.nav-mobile-chevron.is-open {
    transform: rotate(180deg);
    opacity: 1;
}

/* Services submenu */
.nav-mobile-submenu {
    padding: 0.35rem 0 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-mobile-submenu a {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
    padding: 0.6rem 0 0.6rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    text-decoration: none;
    transition: color var(--transition), padding-left var(--transition);
    letter-spacing: 0.01em;
}

.nav-mobile-submenu a:last-child { border-bottom: none; }
.nav-mobile-submenu a:hover { color: var(--aqua-light); padding-left: 1.4rem; }

.nav-mobile-cta-wrap {
    margin-top: auto;
    padding-top: 2rem;
}

.nav-mobile-cta-wrap .btn {
    width: 100%;
    justify-content: center;
    font-size: 0.78rem;
    padding: 1rem 2rem;
}

/* ── Hero Section ─────────────────────────────────────────── */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero--full {
    /* Fill the full viewport below the nav */
    min-height: calc(100vh - var(--nav-height));
}

.hero--partial {
    min-height: 52vh;
}

.hero--tall {
    min-height: 72vh;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    /* Subtle parallax hint */
    will-change: transform;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(7, 26, 51, 0.72) 0%,
        rgba(7, 26, 51, 0.62) 50%,
        rgba(7, 26, 51, 0.78) 100%
    );
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    padding-top: clamp(2.5rem, 6vw, 5rem);
    padding-bottom: clamp(2.5rem, 6vw, 5rem);
    max-width: 820px;
}

.hero--center .hero__content {
    margin: 0 auto;
    text-align: center;
}

.hero__heading {
    color: var(--white);
    margin-bottom: 0;
    text-shadow: 0 2px 24px rgba(7, 26, 51, 0.45);
}

.hero__divider {
    width: 56px;
    height: 2px;
    background: var(--aqua);
    margin: 1.75rem 0;
    transition: width 0.6s ease;
}

.hero--center .hero__divider {
    margin: 1.75rem auto;
}

.hero__subheading {
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(0.95rem, 1.3vw, 1.1rem);
    font-weight: 400;
    line-height: 1.75;
    max-width: 580px;
    margin-bottom: 2.5rem;
    text-shadow: 0 1px 10px rgba(7, 26, 51, 0.35);
}

.hero--center .hero__subheading { margin-left: auto; margin-right: auto; }

/* ── Inner Page Header (for non-home pages) ───────────────── */
.page-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 46vh;
    padding-top: clamp(2.5rem, 5vw, 4rem);
    padding-bottom: clamp(2.5rem, 5vw, 4rem);
    overflow: hidden;
}

.page-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.page-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(7, 26, 51, 0.82) 0%, rgba(7, 26, 51, 0.45) 100%);
    z-index: 1;
}

.page-hero__content {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.page-hero__heading {
    color: var(--white);
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.page-hero__intro {
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(0.95rem, 1.2vw, 1.05rem);
    font-weight: 400;
    line-height: 1.75;
    margin-top: 1.25rem;
    max-width: 560px;
}

/* ── Intro / Text Section ─────────────────────────────────── */
.intro-section--center { text-align: center; }

.intro-section--left { text-align: left; }

.intro-section .heading-2 {
    margin-top: 0.25rem;
    margin-bottom: 0;
}

.intro-section .heading-2 + .body-large {
    margin-top: 1.25rem;
}

.intro-section--center p,
.intro-section--center .body-large {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.intro-section--center .heading-2 {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.intro-section--left .heading-2,
.intro-section--left .body-large {
    max-width: 720px;
}

.intro-section--left .body-large + .body-large {
    margin-top: 1.25rem;
}

.page-hero + .section {
    padding-top: clamp(2.5rem, 5vw, 4rem);
}

/* ── Services Grid ────────────────────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: transform var(--transition), box-shadow var(--transition);
    text-decoration: none;
    color: inherit;
}

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

.service-card__image {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--stone);
}

.service-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover .service-card__image img {
    transform: scale(1.04);
}

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

.service-card__label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--aqua-dark);
    margin-bottom: 0.6rem;
}

.service-card__title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--navy);
    margin-bottom: 0.75rem;
    line-height: 1.25;
}

.service-card__desc {
    font-size: 0.9rem;
    font-weight: 400;
    color: #3a3f42;
    line-height: 1.65;
    flex: 1;
    margin-bottom: 1.25rem;
}

.service-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--navy);
    margin-top: auto;
    transition: gap var(--transition), color var(--transition);
}

.service-card__link::after { content: '→'; }
.service-card:hover .service-card__link { gap: 0.65rem; color: var(--aqua-dark); }

/* ── Feature Cards (Why Choose) ───────────────────────────── */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.feature-card {
    padding: 2.25rem 2rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition);
}

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

.feature-card__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.feature-card__icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    color: var(--aqua-dark);
}

.feature-card__icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-card__title {
    font-family: var(--font-serif);
    font-size: clamp(1.35rem, 2vw, 1.65rem);
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 0;
    line-height: 1.2;
}

.feature-card__body {
    font-size: 0.9rem;
    font-weight: 400;
    color: #3a3f42;
    line-height: 1.65;
}

/* ── Process Steps ────────────────────────────────────────── */
.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem 3rem;
}

.process-step {
    padding: 0;
    position: relative;
}

.process-step__header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.65rem;
}

.process-step__number {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--aqua-light);
    line-height: 1;
    flex-shrink: 0;
    min-width: 2.1rem;
    padding-right: 0.85rem;
    border-right: 1px solid rgba(168, 213, 216, 0.35);
}

.process-step__title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 0;
    line-height: 1.2;
}

.process-step__desc {
    font-size: 0.9rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.65;
}

/* ── Projects / Gallery Cards ─────────────────────────────── */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--navy);
    aspect-ratio: 4 / 3;
    display: block;
    text-decoration: none;
}

.project-card--wide {
    grid-column: span 2;
    aspect-ratio: 16 / 9;
}

.project-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, opacity var(--transition);
    opacity: 0.88;
}

.project-card:hover .project-card__image {
    transform: scale(1.04);
    opacity: 0.72;
}

.project-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7, 26, 51, 0.88) 0%, transparent 55%);
    transition: opacity var(--transition);
}

.project-card__body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 1.75rem;
    z-index: 2;
}

.project-card__type {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--aqua-light);
    display: block;
    margin-bottom: 0.4rem;
}

.project-card__title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--white);
    line-height: 1.2;
}

/* ── Guide / Article Cards ────────────────────────────────── */
.guides-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.guide-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    text-decoration: none;
    color: inherit;
}

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

.guide-card__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--stone);
}

.guide-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.guide-card:hover .guide-card__image img { transform: scale(1.04); }

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

.guide-card__category {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--aqua-dark);
    margin-bottom: 0.6rem;
}

.guide-card__title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--navy);
    line-height: 1.3;
    margin-bottom: 0.75rem;
    flex: 1;
}

.guide-card__excerpt {
    font-size: 0.875rem;
    font-weight: 400;
    color: #5a5e61;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

/* ── CTA Banner ───────────────────────────────────────────── */
.cta-banner {
    text-align: center;
    padding: var(--section-py) var(--container-px);
}

.cta-banner .heading-2 { color: var(--white); margin-bottom: 1rem; }
.cta-banner p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    font-weight: 300;
    max-width: 520px;
    margin: 0 auto 2.5rem;
    line-height: 1.75;
}

/* ── Areas / Location Links ───────────────────────────────── */
.location-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.location-link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem 1.5rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    border-left: 3px solid var(--aqua);
    text-decoration: none;
    color: inherit;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.location-link:hover {
    background: var(--stone);
    transform: translateX(3px);
    box-shadow: var(--shadow-sm);
}

.location-link__name {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--navy);
    margin-bottom: 0.2rem;
}

.location-link__county {
    font-size: 0.78rem;
    color: var(--grey);
    font-weight: 400;
}

/* ── Contact Form ─────────────────────────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 4rem;
    align-items: start;
}

.contact-info__item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.75rem;
    align-items: flex-start;
}

.contact-info__icon {
    width: 40px;
    height: 40px;
    background: var(--stone);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--aqua-dark);
}

.contact-info__icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
}

.contact-info__label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--grey);
    margin-bottom: 0.2rem;
}

.contact-info__value {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--charcoal);
}

/* Form */
.enquiry-form {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2.75rem;
    box-shadow: var(--shadow);
}

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

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

.form-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--charcoal);
    margin-bottom: 0.45rem;
}

.form-label .required { color: var(--aqua-dark); margin-left: 2px; }

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.925rem;
    font-weight: 300;
    color: var(--charcoal);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--aqua);
    box-shadow: 0 0 0 3px rgba(125, 190, 194, 0.2);
}

.form-control::placeholder { color: var(--grey-light); }

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238E918C' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

textarea.form-control {
    resize: vertical;
    min-height: 130px;
}

.form-error {
    display: none;
    font-size: 0.78rem;
    color: #C0392B;
    margin-top: 0.35rem;
}

.form-checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.form-checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: var(--aqua-dark);
    cursor: pointer;
}

.form-checkbox-label {
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--charcoal);
    line-height: 1.6;
}

.form-success-msg,
.form-error-msg {
    display: none;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

.form-success-msg {
    background: rgba(125, 190, 194, 0.12);
    border: 1px solid var(--aqua);
    color: var(--navy);
}

.form-error-msg {
    background: rgba(192, 57, 43, 0.08);
    border: 1px solid rgba(192, 57, 43, 0.3);
    color: #7D1E1E;
}

/* ── Breadcrumb ───────────────────────────────────────────── */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.breadcrumb a,
.breadcrumb span {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.55);
}

.breadcrumb a:hover { color: rgba(255, 255, 255, 0.85); }

.breadcrumb__sep {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.65rem;
}

.breadcrumb__current { color: rgba(255, 255, 255, 0.75); }

/* ── Content / Prose ──────────────────────────────────────── */
.prose {
    max-width: 720px;
    line-height: 1.8;
}

.prose h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 400;
    color: var(--navy);
    margin-top: 2.5rem;
    margin-bottom: 0.85rem;
}

.prose h3 {
    font-family: var(--font-serif);
    font-size: clamp(1.2rem, 1.8vw, 1.5rem);
    font-weight: 400;
    color: var(--navy);
    margin-top: 2rem;
    margin-bottom: 0.65rem;
}

.prose p {
    margin-bottom: 1.25rem;
    font-size: 1rem;
    font-weight: 300;
    color: var(--charcoal);
}

.prose ul {
    list-style: none;
    margin: 1.25rem 0;
}

.prose ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--charcoal);
}

.prose ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 6px;
    height: 1.5px;
    background: var(--aqua-dark);
}

/* ── Content with Image ───────────────────────────────────── */
.content-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.content-split--reverse .content-split__image { order: -1; }

.content-split__image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4 / 3;
}

.content-split__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Stats / Numbers row ──────────────────────────────────── */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.stat-item {
    padding: 2.5rem 2rem;
    text-align: center;
    border-right: 1px solid var(--border);
}

.stat-item:last-child { border-right: none; }

.stat-item__value {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 300;
    color: var(--navy);
    line-height: 1;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-item__label {
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--grey);
    letter-spacing: 0.06em;
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
    background: var(--white);
    color: var(--charcoal);
    padding-top: 5rem;
    padding-bottom: 2.5rem;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
    gap: 3.5rem;
    padding-bottom: 3.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2.5rem;
}

.footer-brand img {
    height: 40px;
    width: auto;
    margin-bottom: 1.25rem;
}

.footer-brand p {
    font-size: 0.875rem;
    font-weight: 300;
    line-height: 1.7;
    max-width: 280px;
    color: var(--grey);
}

.footer-col__heading {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--grey);
    margin-bottom: 1.25rem;
}

.footer-col a {
    display: block;
    font-size: 0.875rem;
    font-weight: 300;
    color: var(--charcoal);
    margin-bottom: 0.65rem;
    transition: color var(--transition);
}

.footer-col a:hover { color: var(--navy); }

.footer-contact-item {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    align-items: flex-start;
}

.footer-contact-item svg {
    width: 15px;
    height: 15px;
    stroke: var(--aqua-dark);
    fill: none;
    stroke-width: 1.5;
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-contact-item span {
    font-size: 0.875rem;
    font-weight: 300;
    color: var(--charcoal);
    line-height: 1.5;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-bottom p {
    font-size: 0.78rem;
    color: var(--grey);
}

.footer-bottom a {
    color: var(--grey);
    font-size: 0.78rem;
    margin-left: 1.25rem;
    transition: color var(--transition);
}

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

/* ── Hamburger open state ─────────────────────────────────── */
.burger-open-1 { transform: translateY(6.5px) rotate(45deg); }
.burger-open-2 { opacity: 0; transform: scaleX(0); }
.burger-open-3 { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Guide article layout (responsive) ───────────────────── */
.guide-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 5rem;
    align-items: start;
}

@media (max-width: 900px) {
    .guide-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .guide-sidebar {
        position: static !important;
    }
}

/* ── Reveal animations ────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Utility ──────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-navy   { color: var(--navy); }
.text-aqua   { color: var(--aqua-dark); }
.text-white  { color: var(--white); }
.text-grey   { color: var(--grey); }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

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

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1100px) {
    .footer-grid  { grid-template-columns: 1.5fr 1fr 1fr; }
    .footer-grid > *:last-child { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
    .services-grid  { grid-template-columns: repeat(2, 1fr); }
    .process-steps  { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 2rem; }
    .contact-grid   { grid-template-columns: 1fr; gap: 2.5rem; }
    .content-split  { grid-template-columns: 1fr; gap: 2.5rem; }
    .content-split--reverse .content-split__image { order: 0; }
    .location-grid  { grid-template-columns: repeat(2, 1fr); }
    .stats-row      { grid-template-columns: repeat(2, 1fr); }
    .stat-item      { border-bottom: 1px solid var(--border); }
    .stat-item:nth-child(2) { border-right: none; }
    .guides-grid    { grid-template-columns: repeat(2, 1fr); }
    .projects-grid  { grid-template-columns: repeat(2, 1fr); }
    .project-card--wide { grid-column: span 2; }
}

@media (max-width: 768px) {
    :root { --nav-height: 64px; }

    .nav-links, .nav-cta { display: none; }
    .nav-mobile-btn      { display: flex; }

    .hero--full    { min-height: 85vh; }
    .hero--partial { min-height: 42vh; }
    .page-hero     { min-height: 40vh; }

    .footer-grid   { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
    .footer-brand  { grid-column: 1 / -1; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .footer-bottom a:first-child { margin-left: 0; }

    .services-grid { grid-template-columns: 1fr; }
    .feature-grid  { grid-template-columns: 1fr; }
    .process-steps { grid-template-columns: 1fr; gap: 2rem; }
    .guides-grid   { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .project-card--wide { grid-column: span 1; aspect-ratio: 4/3; }
    .location-grid { grid-template-columns: repeat(2, 1fr); }
    .enquiry-form  { padding: 1.75rem; }
    .form-row      { grid-template-columns: 1fr; }
    .stats-row     { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .location-grid { grid-template-columns: 1fr; }
    .stats-row     { grid-template-columns: 1fr; }
    .stat-item     { border-right: none; }
    .btn-group     { flex-direction: column; align-items: stretch; }
    .btn-group .btn { text-align: center; justify-content: center; }
}
