/* ===================================================
   GEDNEY POOLS — LUXURY AQUATIC ARCHITECTURE
   Premium website design system
   =================================================== */

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

:root {
    /* Brand palette — extracted from logo */
    --navy: #1a2744;
    --navy-deep: #0f1a2e;
    --navy-90: rgba(26, 39, 68, 0.9);
    --teal: #4a9bb5;
    --teal-light: #6bb8cf;
    --teal-glow: rgba(74, 155, 181, 0.2);
    --gold: #c8a55a;
    --gold-light: #d4b872;

    --white: #ffffff;
    --off-white: #f7f5f2;
    --cream: #ede8e0;
    --stone: #d4cec4;
    --text-dark: #1a1a1a;
    --text-body: #3d3d3d;
    --text-muted: #6b6b6b;
    --text-light: rgba(255, 255, 255, 0.85);
    --text-light-muted: rgba(255, 255, 255, 0.55);

    --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.65, 0, 0.35, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-body);
    background: var(--white);
    overflow-x: hidden;
}

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

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

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.4s var(--ease-out);
    border: none;
}

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

.btn-primary:hover {
    background: var(--teal);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(74, 155, 181, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

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

.btn-full {
    width: 100%;
}

/* ===================================================
   NAVIGATION
   =================================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 24px 0;
    transition: all 0.5s var(--ease-out);
}

/* Pages WITHOUT the slideshow hero (locations, blog, services, services-by-location)
   need an opaque nav by default — otherwise white nav text is invisible on the white
   content background. Added 2026-05-13 to fix nav-link invisibility bug. */
body:not(:has(.hero-slides)) .nav {
    background: rgba(15, 26, 46, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.nav.scrolled {
    background: rgba(15, 26, 46, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 14px 0;
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.2);
}

.nav.scrolled .nav-links a {
    color: var(--white);
}

.nav.scrolled .nav-links a:hover {
    color: var(--teal-light);
}

.nav.scrolled .nav-cta {
    border-color: rgba(255, 255, 255, 0.4) !important;
    color: var(--white) !important;
}

.nav.scrolled .nav-cta:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: var(--white) !important;
}

.nav.scrolled .nav-hamburger span {
    background: var(--white);
}

.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Text Logo --- */
.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-text {
    display: flex;
    align-items: baseline;
    gap: 10px;
    transition: all 0.4s var(--ease-out);
}

.logo-gedney {
    font-family: var(--font-body);
    font-size: 38px;
    font-weight: 700;
    letter-spacing: 8px;
    color: var(--white);
    transition: color 0.4s var(--ease-out);
}

.logo-pools {
    font-family: var(--font-body);
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 6px;
    color: var(--teal-light);
    transition: color 0.4s var(--ease-out);
}

/* Logo stays white/teal in all nav states */

/* Footer logo */
.footer-logo-text {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 12px;
}

.footer-logo-text .logo-gedney {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 6px;
    color: var(--white);
}

.footer-logo-text .logo-pools {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 4px;
    color: var(--teal-light);
}

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

.nav-links a {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--white);
    transition: all 0.3s var(--ease-out);
    position: relative;
}

.nav-links a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s var(--ease-out);
}

.nav-links a:not(.nav-cta):hover::after {
    width: 100%;
}

.nav-cta {
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    padding: 10px 24px !important;
    letter-spacing: 1.5px !important;
}

.nav-cta:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white) !important;
}

/* Hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 10;
}

.nav-hamburger span {
    width: 28px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s var(--ease-out);
}

.nav-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.nav-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* ===================================================
   HERO
   =================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-slides {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 1.5s var(--ease-smooth), transform 8s linear;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(15, 26, 46, 0.4) 0%,
            rgba(15, 26, 46, 0.25) 40%,
            rgba(15, 26, 46, 0.55) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 0 24px;
}

/* Hero Brand Lockup */
.hero-brand {
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeUp 1.2s 0.3s var(--ease-out) forwards;
}

.hero-gedney {
    font-family: var(--font-body);
    font-size: clamp(3.75rem, 9vw, 6.75rem);
    font-weight: 700;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1;
    margin: 0;
}

.hero-pools-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 12px 0 16px;
}

.hero-rule {
    flex: 1;
    max-width: 90px;
    height: 1px;
    background: rgba(255, 255, 255, 0.4);
}

.hero-pools {
    font-family: var(--font-body);
    font-size: clamp(1.05rem, 2.6vw, 1.8rem);
    font-weight: 500;
    letter-spacing: 0.35em;
    color: var(--teal-light);
}

.hero-tagline {
    font-family: var(--font-body);
    font-size: clamp(0.55rem, 1.1vw, 0.72rem);
    font-weight: 400;
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

.hero-subtitle {
    font-size: 15px;
    font-weight: 300;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 48px;
    opacity: 0;
    animation: fadeUp 1s 0.7s var(--ease-out) forwards;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 1s 0.9s var(--ease-out) forwards;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 2;
    color: var(--text-light-muted);
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.hero-scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
    animation: scrollPulse 2s infinite;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

/* ===================================================
   SECTION TYPOGRAPHY
   =================================================== */
.section-eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 400;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 16px;
    font-weight: 300;
    color: var(--text-muted);
    max-width: 600px;
    line-height: 1.7;
}

/* ===================================================
   INTRO
   =================================================== */
.intro {
    padding: 140px 0;
    background: var(--off-white);
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.intro-eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 24px;
}

.intro-headline {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 400;
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: 32px;
}

.intro-text {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.9;
    color: var(--text-muted);
}

/* ===================================================
   SERVICES
   =================================================== */
.services {
    padding: 120px 0;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: 64px;
}

.service-card {
    padding: 48px 32px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.5s var(--ease-out);
}

.service-card:hover {
    border-color: var(--teal);
    transform: translateY(-8px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.06);
}

.service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 28px;
    color: var(--teal);
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.service-card p {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.8;
    color: var(--text-muted);
}

/* ===================================================
   PORTFOLIO
   =================================================== */
.portfolio {
    padding: 120px 0;
    background: var(--navy-deep);
    color: var(--white);
}

.portfolio .section-eyebrow {
    color: var(--teal-light);
}

.portfolio .section-title {
    color: var(--white);
}

.portfolio .section-subtitle {
    color: var(--text-light-muted);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin-top: 64px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.portfolio-item--wide {
    grid-column: span 2;
}

.portfolio-item--tall {
    grid-row: span 2;
    aspect-ratio: auto;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out);
}

.portfolio-item:hover img {
    transform: scale(1.06);
}

.portfolio-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 32px 32px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.5s var(--ease-out);
}

.portfolio-item:hover .portfolio-caption {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-location {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--teal-light);
    display: block;
    margin-bottom: 8px;
}

.portfolio-caption h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--white);
}

/* ===================================================
   PROCESS
   =================================================== */
.process {
    padding: 120px 0;
    background: var(--off-white);
}

.process-timeline {
    margin-top: 72px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.process-step {
    display: flex;
    gap: 40px;
    padding: 40px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.process-step:last-child {
    border-bottom: none;
}

.process-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 300;
    color: var(--teal);
    line-height: 1;
    min-width: 70px;
}

.process-content h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.process-content p {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.8;
    color: var(--text-muted);
}

/* ===================================================
   ABOUT
   =================================================== */
.about {
    padding: 120px 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

.about-content .section-title {
    margin-bottom: 28px;
}

.about-content p {
    font-size: 15px;
    font-weight: 300;
    line-height: 1.9;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.about-credentials {
    display: flex;
    gap: 32px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.credential {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.credential-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.credential-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
}

/* ===================================================
   AREAS
   =================================================== */
.areas {
    padding: 100px 0;
    background: var(--navy-deep);
    text-align: center;
}

.areas .section-eyebrow {
    color: var(--teal-light);
}

.areas .section-title {
    color: var(--white);
    margin-bottom: 48px;
}

.areas-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    max-width: 900px;
    margin: 0 auto;
}

.areas-list span {
    padding: 10px 24px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-light-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s var(--ease-out);
}

.areas-list span:hover {
    color: var(--white);
    border-color: var(--teal);
    background: rgba(74, 155, 181, 0.1);
}

/* ===================================================
   CONTACT
   =================================================== */
.contact {
    padding: 120px 0;
    background: var(--off-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info .section-title {
    margin-bottom: 24px;
}

.contact-info>p {
    font-size: 15px;
    font-weight: 300;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-detail {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.contact-detail a,
.contact-detail span {
    font-size: 16px;
    color: var(--text-dark);
    transition: color 0.3s;
}

.contact-detail a:hover {
    color: var(--teal);
}

/* Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-body);
    font-size: 16px;
    padding: 14px 18px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: var(--white);
    color: var(--text-dark);
    transition: all 0.3s var(--ease-out);
    border-radius: 0;
    -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px var(--teal-glow);
}

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

/* ===================================================
   FOOTER
   =================================================== */
.footer {
    background: var(--navy-deep);
    padding: 80px 0 40px;
    color: var(--text-light-muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}




.footer-brand p {
    font-size: 13px;
    line-height: 1.6;
}

.footer-licenses {
    margin-top: 8px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--teal-light);
    margin-bottom: 20px;
}

.footer-links a,
.footer-contact a,
.footer-contact p {
    display: block;
    font-size: 13px;
    color: var(--text-light-muted);
    margin-bottom: 10px;
    transition: color 0.3s;
}

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

.footer-service-areas {
    margin-top: 48px;
    padding: 44px 0 36px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-service-areas h3 {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--teal-light);
}

.footer-service-areas .service-area-intro {
    max-width: 720px;
    margin: 0 0 28px;
    text-align: left;
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.56);
}

.service-area-grid {
    display: grid;
    grid-template-columns: minmax(180px, 0.85fr) minmax(260px, 1.45fr) minmax(220px, 1fr);
    gap: 36px;
}

.service-area-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 16px;
    align-content: start;
}

.service-area-col h4 {
    grid-column: 1 / -1;
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
}

.service-area-col a {
    min-width: 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
    line-height: 1.35;
    text-decoration: none;
    transition: color 0.2s var(--ease-out);
}

.service-area-col a:hover {
    color: var(--white);
}

.footer-bottom {
    padding-top: 32px;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
}

/* ===================================================
   SCROLL REVEAL ANIMATION
   =================================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--ease-out);
}

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

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .portfolio-item--wide {
        grid-column: span 2;
    }

    .portfolio-item--tall {
        grid-row: span 1;
        aspect-ratio: 4/3;
    }

    .about-grid {
        gap: 48px;
    }

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

    .service-area-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }

    /* Nav mobile */
    .nav-hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--navy-deep);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s var(--ease-out);
    }

    .nav-links.open {
        opacity: 1;
        pointer-events: all;
    }

    .nav-links a {
        font-size: 16px !important;
        color: var(--white) !important;
        letter-spacing: 4px !important;
    }

    .nav-cta {
        margin-top: 16px;
    }

    /* Hero */
    .hero {
        min-height: 100vh;
        min-height: 100dvh;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 14px;
    }

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

    .hero-actions .btn {
        width: 260px;
    }

    /* Sections */
    .intro {
        padding: 80px 0;
    }

    .services {
        padding: 80px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .service-card {
        padding: 32px 24px;
    }

    .portfolio {
        padding: 80px 0;
    }

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

    .portfolio-item--wide {
        grid-column: span 1;
    }

    .portfolio-caption {
        opacity: 1;
        transform: translateY(0);
    }

    .process {
        padding: 80px 0;
    }

    .process-step {
        flex-direction: column;
        gap: 16px;
    }

    .process-number {
        font-size: 2rem;
    }

    .about {
        padding: 80px 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image img {
        height: 400px;
    }

    .about-credentials {
        flex-direction: column;
        gap: 20px;
    }

    .areas {
        padding: 60px 0;
    }

    .areas-list {
        gap: 6px;
    }

    .areas-list span {
        padding: 8px 16px;
        font-size: 11px;
    }

    .contact {
        padding: 80px 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

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

    .footer {
        padding: 60px 0 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-service-areas {
        margin-top: 36px;
        padding: 36px 0 28px;
    }

    .service-area-col {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    }

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-tagline {
        font-size: 10px;
        letter-spacing: 4px;
    }

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

    .intro-headline {
        font-size: 1.5rem;
    }

    .btn {
        padding: 14px 28px;
        font-size: 12px;
    }
}
/* === SEO RANKING FIX 2026-05-06: anchor-styled service cards + town links === */
a.service-card {
    display: block;
    text-decoration: none;
    color: inherit;
}
a.service-card:hover {
    text-decoration: none;
}
a.service-card h3 {
    text-decoration: none;
}

.areas-intro {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 32px auto;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-muted);
}

.areas-list a {
    padding: 10px 24px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-light-muted);
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 999px;
    transition: all 0.3s ease;
}
.areas-list a:hover {
    color: var(--teal);
    border-color: var(--teal);
    background: rgba(0, 128, 128, 0.03);
}

.services-cta {
    margin-top: 48px;
}

/* --- SEO mesh (bidirectional internal link block) --- */
.seo-mesh {
  background: #fafaf8;
  border-top: 1px solid #e8e5dd;
  border-bottom: 1px solid #e8e5dd;
  padding: 3rem 1.5rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.875rem;
  color: #555;
}
.seo-mesh-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
}
.seo-mesh-col h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1a1a1a;
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #d8d4ca;
}
.seo-mesh-col ul { list-style: none; padding: 0; margin: 0; }
.seo-mesh-col li { margin: 0.45rem 0; }
.seo-mesh-col a {
  color: #555;
  text-decoration: none;
  transition: color 0.15s ease;
}
.seo-mesh-col a:hover { color: #1a1a1a; text-decoration: underline; }
@media (max-width: 600px) {
  .seo-mesh { padding: 2rem 1rem; }
  .seo-mesh-inner { gap: 1.5rem; }
}

/* ===== Service Areas footer block (internal-link discovery, 2026-05-19) ===== */
.footer-service-areas {
  margin-top: 48px;
  padding: 44px 0 36px;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-service-areas > h3 {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal-light);
}
.footer-service-areas .service-area-intro {
  max-width: 720px;
  margin: 0 0 28px;
  text-align: left;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.56);
}
.service-area-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.85fr) minmax(260px, 1.45fr) minmax(220px, 1fr);
  gap: 36px;
}
.service-area-col h4 {
  grid-column: 1 / -1;
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 8px;
  color: rgba(255, 255, 255, 0.8);
}
.service-area-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 16px;
  align-content: start;
}
.service-area-col a {
  min-width: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  line-height: 1.35;
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}
.service-area-col a:hover {
  color: var(--white);
}
@media (max-width: 1024px) {
  .service-area-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 768px) {
  .service-area-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .service-area-col { grid-template-columns: 1fr; gap: 8px; }
}

/* ===== Portfolio grid (gap-fill pages, 2026-05-20) ===== */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}
.project-card {
  display: block;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
  background: #fff;
}
.project-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.1); transform: translateY(-2px); }
.project-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}
.project-card-body {
  padding: 1.35rem 1.5rem 1.5rem;
}
.project-card h3 { margin: 0 0 0.5rem 0; font-size: 1.15rem; }
.project-card p { margin: 0; font-size: 0.9rem; opacity: 0.72; line-height: 1.55; }
@media (max-width: 700px) { .project-grid { grid-template-columns: 1fr; } }

/* ===== Town-page hero image (2026-05-20) ===== */
.location-hero-img {
  margin: 0 0 2rem 0;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;          /* reserves space → no layout shift / CLS */
  background: #eef1f4;
}
.location-hero-img img,
.location-hero-img video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Poster-only on mobile (2026-06-05): skip autoplay-video decode on phones to cut LCP/TBT. */
.location-hero-img .hero-poster-mobile { display: none; }
@media (max-width: 700px) {
  .location-hero-img { aspect-ratio: 4 / 3; }
  .location-hero-img video { display: none; }
  .location-hero-img .hero-poster-mobile { display: block; }
}

/* ===== Town-page full-bleed hero (2026-05-24) =====
   Overrides the homepage .hero (100vh) when .hero-location is present.
   Per-page image goes in inline style="background-image: url(...)" on the section. */
.hero.hero-location {
  height: 60vh;
  min-height: 480px;
  max-height: 720px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  text-align: center;
  color: #fff;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hero.hero-location::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(15, 26, 46, 0.45) 0%,
    rgba(15, 26, 46, 0.25) 40%,
    rgba(15, 26, 46, 0.65) 100%);
  z-index: 1;
}
.hero.hero-location > * {
  position: relative;
  z-index: 2;
  max-width: 900px;
}
.hero.hero-location h1 {
  color: #fff;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.15;
  margin: 0 0 1rem 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.hero.hero-location p {
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  margin: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}
@media (max-width: 700px) {
  .hero.hero-location { height: 55vh; min-height: 420px; }
}

/* ===== Video/Poster Caption styling (2026-05-31) ===== */
.video-caption {
  font-size: 0.85rem;
  font-style: italic;
  color: rgba(15, 26, 46, 0.62);
  text-align: right;
  line-height: 1.4;
  margin: -1.25rem 0 2rem 0;
}
