/*!
Theme Name: Horten Havnepark
Theme URI: http://underscores.me/
Author: Insite Media AS
Author URI: https://insitemedia.no
Description: Custom boilerplate for Horten Havnepark
Version: 1.0.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: im-hortenhavnepark
Tags: custom-background, custom-logo, custom-menu, featured-images, translation-ready

Horten Havnepark is based on Underscores https://underscores.me/, (C) 2012-2024 Automattic, Inc.
*/

/* =========================================
   FONTS — place woff2/woff files in /fonts/
========================================= */

/* Caesura (headings) and Gotham (body) are loaded via Adobe Fonts (Typekit)
   — see the <link> in header.php. No local @font-face needed. */


/* =========================================
   CUSTOM PROPERTIES
========================================= */

:root {
    /* Brand palette */
    --color-dark:        #1F2A35;
    --color-warm-light:  #E4E1DC;
    --color-warm-mid:    #C9BCAF;
    --color-grey:        #8E949A;
    --color-steel:       #576D85;
    --color-cream:       #FAF6F2;
    --color-silver:      #BBC3C8;
    --color-black:       #1F1F1F;
    --color-brown:       #6A3E2A;
    --color-white:       #ffffff;

    /* Semantic aliases */
    --c-bg:          var(--color-cream);
    --c-text:        var(--color-black);
    --c-heading:     var(--color-dark);
    --c-accent:      var(--color-steel);
    --c-accent-warm: var(--color-brown);
    --c-border:      var(--color-warm-light);
    --c-muted:       var(--color-grey);

    /* Typography */
    --font-heading: "caesura", sans-serif;
    --font-body:    "gotham", 'Helvetica Neue', Arial, sans-serif;
    --fw-light:   300;
    --fw-regular: 400;
    --fw-medium:  500;
    --fw-bold:    700;

    /* Fluid type scale */
    --text-xs:   clamp(0.75rem,  1.2vw,  0.8125rem);
    --text-sm:   clamp(0.875rem, 1.5vw,  0.9375rem);
    --text-base: clamp(1rem,     1.5vw,  1.0625rem);
    --text-lg:   clamp(1.125rem, 2vw,    1.25rem);
    --text-xl:   clamp(1.25rem,  2.5vw,  1.5rem);
    --text-2xl:  clamp(1.5rem,   3vw,    2rem);
    --text-3xl:  clamp(2rem,     3.5vw,  2.75rem);
    --text-4xl:  clamp(2.5rem,   5vw,    4rem);
    --text-5xl:  clamp(3rem,     6vw,    5.5rem);
    --text-hero: clamp(3.5rem,   7vw,    7rem);

    /* Line heights */
    --leading-tight:  1.1;
    --leading-snug:   1.25;
    --leading-normal: 1.5;
    --leading-loose:  1.75;

    /* Letter spacing */
    --tracking-tight:   -0.02em;
    --tracking-normal:   0em;
    --tracking-wide:     0.05em;
    --tracking-widest:   0.15em;

    /* Spacing scale */
    --sp-1:  0.25rem;
    --sp-2:  0.5rem;
    --sp-3:  0.75rem;
    --sp-4:  1rem;
    --sp-5:  1.25rem;
    --sp-6:  1.5rem;
    --sp-8:  2rem;
    --sp-10: 2.5rem;
    --sp-12: 3rem;
    --sp-16: 4rem;
    --sp-20: 5rem;
    --sp-24: 6rem;
    --sp-32: 8rem;

    /* Section rhythm */
    --section-py: clamp(4rem, 8vw, 8rem);
    --section-px: clamp(1.5rem, 5vw, 4rem);

    /* Containers */
    --container-max:    1440px;
    --container-wide:   1280px;
    --container-text:   860px;
    --container-narrow: 680px;

    /* Border radius */
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 8px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgb(0 0 0 / 0.08);
    --shadow-md: 0 4px 16px rgb(0 0 0 / 0.12);
    --shadow-lg: 0 8px 32px rgb(0 0 0 / 0.18);

    /* Transitions */
    --ease-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --ease-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --ease-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Layout */
    --header-height: 72px;

    /* Z-index layers */
    --z-base:   1;
    --z-raised: 10;
    --z-header: 100;
    --z-modal:  200;
}


/* =========================================
   MODERN RESET
========================================= */

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

html {
    font-size: 100%;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    hanging-punctuation: first last;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: var(--fw-regular);
    line-height: var(--leading-normal);
    color: var(--c-text);
    background-color: var(--c-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    /* Push content below fixed header */
    padding-top: var(--header-height);
}

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

img { object-fit: cover; }

input, button, textarea, select {
    font: inherit;
}

button {
    cursor: pointer;
    background: none;
    border: none;
}

a {
    color: inherit;
    text-decoration-skip-ink: auto;
}

ul, ol { list-style: none; }

p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

address { font-style: normal; }

/* Remove default WP body padding */
.wp-site-blocks { padding: 0 !important; }


/* =========================================
   ACCESSIBILITY
========================================= */

/* Skip to main content */
.skip-link {
    position: absolute;
    top: -100%;
    left: var(--sp-4);
    z-index: 9999;
    padding: var(--sp-3) var(--sp-6);
    background: var(--color-dark);
    color: var(--color-cream);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--fw-medium);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: top var(--ease-fast);
}

.skip-link:focus {
    top: var(--sp-4);
}

/* Focus ring — visible for keyboard, hidden for mouse */
:focus-visible {
    outline: 2px solid var(--color-steel);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

:focus:not(:focus-visible) {
    outline: none;
}

/* Screen-reader only utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* High-contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --c-text:   #000000;
        --c-bg:     #ffffff;
        --c-border: #000000;
    }
}


/* =========================================
   TYPOGRAPHY
========================================= */

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-heading);
    font-weight: var(--fw-bold);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    color: var(--c-heading);
}

h1, .h1 { font-size: var(--text-5xl); }
h2, .h2 { font-size: var(--text-4xl); }
h3, .h3 { font-size: var(--text-3xl); }
h4, .h4 { font-size: var(--text-2xl); }
h5, .h5 { font-size: var(--text-xl); }
h6, .h6 { font-size: var(--text-lg); }

p {
    line-height: var(--leading-loose);
    max-width: 70ch;
}

.eyebrow {
    display: block;
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: var(--fw-medium);
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: var(--c-muted);
}

.lead {
    font-size: var(--text-lg);
    line-height: var(--leading-loose);
}

/* Text utilities */
.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }
.text-dark    { color: var(--color-dark); }
.text-cream   { color: var(--color-cream); }
.text-muted   { color: var(--c-muted); }
.text-steel   { color: var(--color-steel); }
.text-brown   { color: var(--color-brown); }
.text-white   { color: var(--color-white); }
.text-silver  { color: var(--color-silver); }


/* =========================================
   LAYOUT
========================================= */

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

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

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

.section--sm  { padding-block: calc(var(--section-py) * 0.5); }
.section--lg  { padding-block: calc(var(--section-py) * 1.5); }
.section--flush { padding-block: 0; }

/* Background variants */
.bg-cream      { background-color: var(--color-cream); }
.bg-dark       { background-color: var(--color-dark); }
.bg-warm-light { background-color: var(--color-warm-light); }
.bg-warm-mid   { background-color: var(--color-warm-mid); }
.bg-white      { background-color: var(--color-white); }

.bg-dark h1, .bg-dark h2, .bg-dark h3,
.bg-dark h4, .bg-dark h5, .bg-dark h6 {
    color: var(--color-cream);
}

.bg-dark p,
.bg-dark .eyebrow {
    color: var(--color-silver);
}


/* =========================================
   ARTICLE / PAGE PROSE
   Standard pages — privacy policy, text-heavy
   content, etc. (page.php → content-page.php)
========================================= */

.page-article .section {
    padding-block: clamp(3rem, 6vw, 6rem);
}

/* ---- Title block ---- */

.page-article .entry-header {
    margin-bottom: var(--sp-10);
}

.page-article .entry-title {
    font-size: var(--text-3xl);
    line-height: var(--leading-tight);
    margin: 0;
}

/* Featured image */
.page-article .post-thumbnail {
    display: block;
    margin-bottom: var(--sp-10);
}

.page-article .post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

/* ---- Prose body ---- */

.entry-content {
    font-size: var(--text-base);
    line-height: var(--leading-loose);
    color: var(--c-text);
}

/* Vertical rhythm — consistent gap between blocks */
.entry-content > * + * {
    margin-top: var(--sp-6);
}

.entry-content p {
    max-width: none;
    line-height: var(--leading-loose);
}

/* Headings inside content — sized for reading, not display */
.entry-content h2 {
    font-size: var(--text-2xl);
    line-height: var(--leading-snug);
    margin-top: var(--sp-12);
}

.entry-content h3 {
    font-size: var(--text-xl);
    line-height: var(--leading-snug);
    margin-top: var(--sp-10);
}

.entry-content h4 {
    font-size: var(--text-lg);
    line-height: var(--leading-snug);
    margin-top: var(--sp-8);
}

.entry-content h5,
.entry-content h6 {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: var(--fw-bold);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    color: var(--c-heading);
    margin-top: var(--sp-8);
}

/* First block never carries top margin */
.entry-content > :first-child {
    margin-top: 0;
}

/* ---- Links ---- */

.entry-content a {
    color: var(--c-accent);
    text-decoration: underline;
    text-underline-offset: 0.15em;
    text-decoration-thickness: 1px;
    transition: color var(--ease-fast);
}

.entry-content a:hover {
    color: var(--c-accent-warm);
}

/* ---- Lists (the global reset strips markers — restore here) ---- */

.entry-content ul,
.entry-content ol {
    padding-left: var(--sp-6);
}

.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }

.entry-content li + li {
    margin-top: var(--sp-2);
}

.entry-content li::marker {
    color: var(--c-muted);
}

.entry-content li > ul,
.entry-content li > ol {
    margin-top: var(--sp-2);
}

/* ---- Emphasis ---- */

.entry-content strong,
.entry-content b {
    font-weight: var(--fw-bold);
    color: var(--c-heading);
}

/* ---- Blockquote ---- */

.entry-content blockquote {
    margin-inline: 0;
    padding-left: var(--sp-6);
    border-left: 3px solid var(--c-accent);
    font-size: var(--text-lg);
    font-style: italic;
    line-height: var(--leading-normal);
    color: var(--c-heading);
}

/* ---- Figures & images ---- */

.entry-content img {
    border-radius: var(--radius-md);
}

.entry-content figure {
    margin-block: var(--sp-8);
}

.entry-content figcaption {
    margin-top: var(--sp-3);
    font-size: var(--text-sm);
    color: var(--c-muted);
    text-align: center;
}

/* ---- Tables ---- */

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
}

.entry-content th,
.entry-content td {
    padding: var(--sp-3) var(--sp-4);
    border-bottom: 1px solid var(--c-border);
    text-align: left;
}

.entry-content th {
    font-family: var(--font-body);
    font-weight: var(--fw-bold);
    color: var(--c-heading);
}

/* ---- Code ---- */

.entry-content code {
    font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    font-size: 0.9em;
    background-color: var(--color-warm-light);
    padding: 0.15em 0.4em;
    border-radius: var(--radius-sm);
}

.entry-content pre {
    background-color: var(--color-dark);
    color: var(--color-cream);
    padding: var(--sp-6);
    border-radius: var(--radius-md);
    overflow-x: auto;
}

.entry-content pre code {
    padding: 0;
    background: none;
    color: inherit;
}

/* ---- Misc ---- */

.entry-content hr {
    border: none;
    border-top: 1px solid var(--c-border);
    margin-block: var(--sp-12);
}

.page-article .page-links {
    margin-top: var(--sp-8);
    font-size: var(--text-sm);
    font-weight: var(--fw-medium);
}

.page-article .entry-footer {
    margin-top: var(--sp-10);
    padding-top: var(--sp-6);
    border-top: 1px solid var(--c-border);
    font-size: var(--text-sm);
    color: var(--c-muted);
}


/* =========================================
   BUTTONS
========================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    padding: var(--sp-4) var(--sp-6);
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: var(--fw-bold);
    letter-spacing: 0;
    text-transform: none;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 5px;
    cursor: pointer;
    transition:
        background-color var(--ease-base),
        color var(--ease-base),
        border-color var(--ease-base);
    white-space: nowrap;
    -webkit-user-select: none;
    user-select: none;
    line-height: normal;
}

.btn:focus-visible {
    outline: 2px solid var(--color-steel);
    outline-offset: 3px;
}

.btn-primary {
    background: linear-gradient(rgba(0,0,0,0.20), rgba(0,0,0,0.20)), var(--color-dark);
    color: var(--color-cream);
    border-color: transparent;
}

.btn-primary:hover {
    background: linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)), var(--color-dark);
    border-color: transparent;
    color: var(--color-cream);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-dark);
    border-color: var(--color-dark);
}

.btn-secondary:hover {
    background-color: var(--color-dark);
    color: var(--color-cream);
}

.btn-ghost {
    background-color: transparent;
    color: var(--color-cream);
    border-color: rgba(255 255 255 / 0.6);
}

.btn-ghost:hover {
    background-color: var(--color-cream);
    color: var(--color-dark);
    border-color: var(--color-cream);
}

.btn-warm {
    background-color: var(--color-brown);
    color: var(--color-cream);
    border-color: var(--color-brown);
}

.btn-warm:hover {
    background-color: #5a3424;
    border-color: #5a3424;
    color: var(--color-cream);
}

/* Large variant */
.btn--lg {
    padding: var(--sp-4) var(--sp-12);
    font-size: var(--text-sm);
}


/* =========================================
   HEADER & NAVIGATION
========================================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-header);
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding-inline: var(--section-px);
    background-color: var(--color-dark);
    transition:
        background-color var(--ease-base),
        box-shadow var(--ease-base);
}

.site-header.is-scrolled {
    box-shadow: 0 1px 0 rgb(255 255 255 / 0.06);
}

/* =========================================
   WORDPRESS ADMIN BAR OFFSET
   32px on ≥782px · 46px on <782px
========================================= */

body.admin-bar .site-header {
    top: 32px;
}

body.admin-bar .mobile-menu {
    top: calc(var(--header-height) + 32px);
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }

    body.admin-bar .mobile-menu {
        top: calc(var(--header-height) + 46px);
    }
}

.header-inner {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: var(--sp-8);
}

.nav-left {
    display: flex;
    align-items: center;
}

.nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--sp-6);
}

/* Logo / site title */
.site-branding {
    text-align: center;
}

.site-branding a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.site-branding .custom-logo {
    height: 28px;
    width: auto;
    max-width: none;
}

.site-title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: var(--fw-bold);
    color: var(--color-cream);
    line-height: normal;
    text-transform: uppercase;
}

.site-title a {
    color: inherit;
    text-decoration: none;
}

.site-description { display: none; }

/* Nav menus */
.main-navigation .menu,
.main-navigation > ul,
.nav-right .menu,
.nav-right > ul {
    display: flex;
    align-items: center;
    gap: var(--sp-8);
}

.main-navigation a,
.nav-right .main-navigation a {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: var(--fw-medium);
    letter-spacing: var(--tracking-wide);
    color: var(--color-cream);
    text-decoration: none;
    position: relative;
    padding-block: var(--sp-1);
    transition: color var(--ease-fast);
}

.main-navigation a::after,
.nav-right .main-navigation a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: currentColor;
    transition: width var(--ease-base);
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item > a::after,
.nav-right .main-navigation a:hover::after {
    width: 100%;
}


/* Mobile hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: var(--sp-2);
    background: none;
    border: none;
    cursor: pointer;
    z-index: calc(var(--z-header) + 1);
}

.menu-toggle__bar {
    display: block;
    width: 24px;
    height: 1px;
    background-color: var(--color-cream);
    transition:
        transform var(--ease-base),
        opacity var(--ease-fast);
    transform-origin: center;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Mobile menu overlay */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    top: var(--header-height);
    background-color: var(--color-dark);
    z-index: calc(var(--z-header) - 1);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--sp-10);
    padding: var(--sp-12);
    overflow-y: auto;
}

.mobile-menu.is-open {
    display: flex;
}

.mobile-menu nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-6);
    text-align: center;
}

.mobile-menu nav a {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: var(--fw-light);
    color: var(--color-cream);
    text-decoration: none;
    transition: color var(--ease-fast);
}

.mobile-menu nav a:hover {
    color: var(--color-warm-mid);
}

.mobile-menu .btn {
    margin-top: var(--sp-4);
}


/* =========================================
   HERO MODULE
========================================= */

.module-hero {
    position: relative;
    min-height: 100dvh;
    display: grid;
    align-items: end;
    overflow: hidden;
    /* Pull hero back up behind the fixed header */
    margin-top: calc(-1 * var(--header-height));
}

.module-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.module-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.module-hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
	background: linear-gradient(180deg, #19222A 0%, rgba(25, 34, 42, 0) 60%);
    height: 314px;
}

.module-hero__content {
    position: relative;
    z-index: var(--z-raised);
    padding: var(--section-px);
    padding-bottom: var(--sp-20);
    max-width: var(--container-max);
    width: 100%;
    margin-inline: auto;
}

.module-hero__cta-card {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: var(--z-raised);
    width: 370px;
    /* Pattern shows as a decorative border/frame */
    background-color: var(--color-cream);
    background-image: url('images/footer-pattern.svg');
    background-repeat: repeat;
    background-size: 300px;
    padding: 16px; /* thickness of the visible pattern frame */
}

/* Inner solid-cream content area — covers the pattern in the middle */
.cta-card__content {
    background-color: var(--color-cream);
    padding: var(--sp-10) var(--sp-8);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.module-hero__cta-card .eyebrow {
    margin-bottom: var(--sp-3);
    color: var(--c-muted);
}

.module-hero__cta-card h2 {
    font-size: var(--text-xl);
    color: var(--color-dark);
    margin-bottom: var(--sp-4);
    line-height: var(--leading-snug);
}

.module-hero__cta-card p {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: var(--fw-regular);
    line-height: 1.4;
    color: var(--c-text);
    margin-bottom: var(--sp-8);
    max-width: none;
    line-height: var(--leading-normal);
}


/* =========================================
   TICKER MODULE
========================================= */

.module-ticker {
    background-color: var(--color-dark);
    overflow: hidden;
    padding-block: var(--sp-5);
}

.module-ticker__track {
    display: flex;
    gap: 0;
    width: max-content;
    animation: ticker-scroll 35s linear infinite;
    will-change: transform;
}

.module-ticker:hover .module-ticker__track {
    animation-play-state: paused;
}

.module-ticker__item {
    display: inline-flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: var(--fw-bold);
    line-height: normal;
    color: var(--color-warm-mid);
    flex-shrink: 0;
}

.module-ticker__separator {
    padding-inline: var(--sp-16);
    color: var(--color-warm-mid);
    flex-shrink: 0;
}

@keyframes ticker-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(var(--ticker-shift, -50%)); }
}


/* =========================================
   INTRO TEXT MODULE
========================================= */

.module-intro-text {
    background-color: var(--color-cream);
    text-align: center;
}

.module-intro-text:has(+ .module-milestones) {
    padding-bottom: 0;
}

.module-intro-text .container {
    max-width: var(--container-text);
}

.module-intro-text .eyebrow {
    margin-bottom: var(--sp-6);
}

.module-intro-text h2 {
    font-size: 35px;
    font-weight: var(--fw-bold);
    line-height: normal;
    letter-spacing: normal;
    margin-bottom: var(--sp-10);
}

.module-intro-text .lead {
    color: var(--c-text);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: var(--fw-regular);
    line-height: 1.4;
    margin-inline: auto;
    max-width: 62ch;
}


/* =========================================
   MILESTONES MODULE
========================================= */

.module-milestones {
    background-color: var(--color-cream);
    padding-block: var(--sp-16);
}

.module-milestones__grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.module-milestones__item {
    flex: 0 0 auto;
    padding-block: var(--sp-4);
    padding-inline: var(--sp-12);
    text-align: center;
    border-right: 1px solid var(--color-warm-light);
}

.module-milestones__item:last-child {
    border-right: none;
}

.milestone-label {
    display: block;
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: var(--fw-bold);
    color: var(--color-dark);
    line-height: var(--leading-tight);
    margin-bottom: var(--sp-2);
}

.milestone-value {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: var(--fw-regular);
    line-height: 1.4;
    color: var(--c-text);
}

.milestone-value small {
    display: block;
    font-family: var(--font-body);
    font-size: var(--text-xs);
    color: var(--c-muted);
    margin-top: var(--sp-1);
    font-weight: var(--fw-regular);
    letter-spacing: var(--tracking-normal);
}

.module-milestones__item--active .milestone-label {
    color: var(--color-steel);
}

.module-milestones__item--active .milestone-value {
    color: var(--color-brown);
}

.module-milestones__item--upcoming .milestone-label {
    color: var(--color-steel);
}


/* =========================================
   IMAGE CTA MODULE
========================================= */

.module-image-cta__carousel {
    position: relative;
    overflow: hidden;
    user-select: none;
    padding-block: var(--sp-6);
}

.module-image-cta__track {
    display: flex;
    align-items: center;
    transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.module-image-cta__slide {
    position: relative;
    flex: 0 0 60%;
    cursor: pointer;
    overflow: hidden;
    padding-inline: var(--sp-3);
}

/* Dark overlay on each slide — fades out on the active (centred) slide */
.module-image-cta__slide::after {
    content: '';
    position: absolute;
    inset: 0 var(--sp-3);
    background: rgba(0, 0, 0, 0.45);
    transition: opacity 0.65s ease;
    pointer-events: none;
    z-index: 1;
}

.module-image-cta__slide.is-active::after {
    opacity: 0;
}

.module-image-cta__slide img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.module-image-cta__content {
    padding-block: var(--sp-20);
    text-align: center;
}

.module-image-cta--bg-warm-light {
    background-color: var(--color-warm-light);
}

.module-image-cta--bg-silver {
    background-color: var(--color-silver);
}

.module-image-cta__content h2 {
    color: var(--color-dark);
    font-family: var(--font-heading);
    font-size: 35px;
    font-weight: var(--fw-bold);
    line-height: normal;
    margin-bottom: var(--sp-6);
}

.module-image-cta__content .lead {
    color: var(--c-text);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: var(--fw-regular);
    line-height: 1.4;
    margin-bottom: var(--sp-8);
}


/* =========================================
   PORTRAIT GALLERY MODULE
========================================= */

.module-portrait-gallery {
    background-color: var(--color-cream);
}

.module-portrait-gallery__carousel {
    position: relative;
    overflow: hidden;
    user-select: none;
    padding-top: 75px;
}

.module-portrait-gallery__track {
    display: flex;
    transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.module-portrait-gallery__slide {
    flex: 0 0 22%;
    cursor: pointer;
    overflow: hidden;
    padding-inline: var(--sp-2);
}

.module-portrait-gallery__slide img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

/* Stats row */
.module-portrait-gallery__footer {
    padding-block: var(--sp-16);
    text-align: center;
}

.pg-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--sp-10);
}

.pg-stats__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-2);
    padding-inline: var(--sp-10);
    border-right: 1px solid var(--color-warm-light);
}

.pg-stats__item:last-child {
    border-right: none;
}

.pg-stats__number {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: var(--fw-bold);
    color: var(--color-dark);
    line-height: 1;
}

.pg-stats__label {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: var(--fw-regular);
    line-height: 1.4;
    color: var(--c-text);
}


/* =========================================
   INTEREST MODULE
========================================= */

.module-interest {
    padding-block: var(--sp-16);
    padding-inline: 50px;
    background-color: var(--color-cream);
}

/* Diamond-pattern frame — spans full width inside the 50px bleed, pattern shows in padding */
.module-interest__border-wrap {
    padding: 28px;
    background-color: var(--color-silver);
    background-image: url('images/footer-pattern.svg');
    background-repeat: repeat;
    background-size: 300px;
}

/* Inner panel — fills the full frame interior with flat colour */
.module-interest__panel {
    background-color: var(--color-silver);
    padding: var(--sp-16) var(--sp-8);
    text-align: center;
}

/* Content wrapper — keeps text/form at a readable width */
.module-interest__content {
    max-width: 520px;
    margin-inline: auto;
}

.module-interest .eyebrow {
    display: block;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: var(--fw-regular);
    line-height: 1.4;
    color: var(--c-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--sp-4);
}

.module-interest__content h2 {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: var(--fw-bold);
    line-height: normal;
    letter-spacing: normal;
    color: var(--color-dark);
    margin-bottom: var(--sp-6);
}

.module-interest__content p {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: var(--fw-regular);
    line-height: 1.4;
    color: var(--c-text);
    max-width: 52ch;
    margin-inline: auto;
    margin-bottom: var(--sp-10);
}

/* Form */
.interest-form {
    text-align: left;
}

.interest-form__field {
    margin-bottom: var(--sp-8);
}

.interest-form__field input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--color-dark);
    padding: var(--sp-2) 0;
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--color-dark);
    outline: none;
    transition: border-color var(--ease-fast);
}

.interest-form__field input::placeholder {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--color-dark);
    opacity: 1;
}

.interest-form__field input:focus {
    border-bottom-color: var(--color-steel);
}

.interest-form__consent {
    margin-bottom: var(--sp-8);
}

.interest-form__checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-3);
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: var(--fw-regular);
    color: var(--color-dark);
    line-height: 1.5;
    cursor: pointer;
}

.interest-form__checkbox-label input[type="checkbox"] {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--color-dark);
}

.interest-form__checkbox-label a {
    color: inherit;
    text-decoration: underline;
}

.interest-form__submit {
    width: 100%;
    margin-top: var(--sp-6);
}

/* Honeypot — kept in the DOM for bots, hidden from people & AT */
.interest-form__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Submission status message */
.interest-form__status {
    margin-top: var(--sp-4);
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: var(--fw-regular);
    line-height: var(--leading-normal);
    text-align: center;
    min-height: 1.5em;
}

.interest-form__status:empty {
    margin-top: 0;
}

.interest-form__status[data-state="success"] { color: var(--c-text); }
.interest-form__status[data-state="error"]   { color: var(--color-brown); }
.interest-form__status[data-state="pending"] { color: var(--c-text); }

/* On a successful submission, hide the fields and show only the confirmation */
.interest-form--sent > :not(.interest-form__status) {
    display: none;
}

.interest-form--sent .interest-form__status {
    margin-top: 0;
}


/* =========================================
   MAP MODULE
========================================= */

.module-map {
    width: 100%;
    display: block;
    line-height: 0;
}

.module-map--sm { height: 360px; }
.module-map--md { height: 520px; }
.module-map--lg { height: 680px; }

.module-map iframe {
    display: block;
}


/* =========================================
   TEAM MODULE
========================================= */

.module-team {
    background-color: var(--color-cream);
}

.module-team__header {
    text-align: center;
    margin-bottom: var(--sp-12);
}

.module-team__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-10);
    max-width: 860px;
    margin-inline: auto;
}

.module-team__image {
    overflow: hidden;
    margin-bottom: var(--sp-6);
}

/* Show the photo at its natural proportions — fill the column width,
   height follows the image's own aspect ratio (no forced crop). */
.module-team__image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Fallback keeps a visible square box when no photo is set */
.module-team__image-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: var(--color-warm-light);
}

.module-team__name {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: var(--fw-bold);
    color: var(--color-dark);
    line-height: var(--leading-snug);
    margin-bottom: var(--sp-1);
}

.module-team__role {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: var(--fw-regular);
    color: var(--c-muted);
    margin-bottom: var(--sp-4);
}

.module-team__contact {
    display: flex;
    flex-direction: column;
    gap: var(--sp-1);
}

.module-team__phone,
.module-team__email {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: var(--fw-regular);
    color: var(--color-dark);
    text-decoration: none;
    transition: color var(--ease-fast);
}

.module-team__phone:hover,
.module-team__email:hover {
    color: var(--color-steel);
}

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

@media (max-width: 480px) {
    .module-team__grid {
        grid-template-columns: 1fr;
        max-width: 320px;
    }
}


/* =========================================
   FEATURES MODULE
========================================= */

.module-features {
    background-color: var(--color-warm-light);
}

.module-features__header {
    text-align: center;
    margin-bottom: var(--sp-16);
    max-width: var(--container-text);
    margin-inline: auto;
    margin-bottom: var(--sp-16);
}

.module-features__header .eyebrow {
    margin-bottom: var(--sp-4);
}

.module-features__header h2 {
    max-width: 620px;
    margin-inline: auto;
}

.module-features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-6);
}

.feature-card {
    background-color: var(--color-cream);
    padding: var(--sp-10) var(--sp-8);
    display: flex;
    flex-direction: column;
}

.feature-card__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin-bottom: var(--sp-6);
}

.feature-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--ease-slow);
}

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

.feature-card__title {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: var(--fw-light);
    color: var(--color-dark);
    margin-bottom: var(--sp-4);
    line-height: var(--leading-snug);
}

.feature-card__text {
    font-size: var(--text-sm);
    color: var(--c-muted);
    line-height: var(--leading-loose);
    max-width: none;
    flex: 1;
}


/* =========================================
   IMAGE + TEXT MODULE
========================================= */

.module-image-text {
    overflow: hidden;
}

.module-image-text__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: clamp(500px, 60vw, 700px);
}

.module-image-text--image-right .module-image-text__image { order: 2; }
.module-image-text--image-right .module-image-text__text  { order: 1; }

.module-image-text__image {
    position: relative;
    overflow: hidden;
}

.module-image-text__image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--ease-slow);
}

.module-image-text:hover .module-image-text__image img {
    transform: scale(1.03);
}

.module-image-text__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(3rem, 6vw, 6rem) clamp(2rem, 5vw, 5rem);
    background-color: var(--color-cream);
}

.module-image-text--dark .module-image-text__text {
    background-color: var(--color-dark);
}

.module-image-text--dark .module-image-text__text h2 {
    color: var(--color-cream);
}

.module-image-text--dark .module-image-text__text p {
    color: var(--color-silver);
}

.module-image-text--dark .module-image-text__text .eyebrow {
    color: var(--color-grey);
}

.module-image-text__text .eyebrow {
    margin-bottom: var(--sp-4);
}

.module-image-text__text h2 {
    margin-bottom: var(--sp-6);
    max-width: 14ch;
}

.module-image-text__text p {
    margin-bottom: var(--sp-8);
    max-width: 52ch;
}


/* =========================================
   GALLERY MODULE
========================================= */

.module-gallery {
    background-color: var(--color-dark);
}

.module-gallery__header {
    text-align: center;
    margin-bottom: var(--sp-12);
}

.module-gallery__header .eyebrow {
    color: var(--color-grey);
    margin-bottom: var(--sp-4);
}

.module-gallery__header h2 {
    color: var(--color-cream);
}

.module-gallery__grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: clamp(200px, 25vw, 320px);
    gap: var(--sp-2);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--ease-slow);
}

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

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgb(31 42 53 / 0);
    transition: background-color var(--ease-base);
}

.gallery-item:hover::after {
    background-color: rgb(31 42 53 / 0.2);
}

/* Bento-style layout */
.gallery-item:nth-child(1) { grid-column: span 7; grid-row: span 2; }
.gallery-item:nth-child(2) { grid-column: span 5; }
.gallery-item:nth-child(3) { grid-column: span 5; }
.gallery-item:nth-child(4) { grid-column: span 4; }
.gallery-item:nth-child(5) { grid-column: span 4; }
.gallery-item:nth-child(6) { grid-column: span 4; }

/* Lightbox */
.gallery-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    background-color: rgb(0 0 0 / 0.92);
    align-items: center;
    justify-content: center;
    padding: var(--sp-8);
}

.gallery-lightbox.is-open {
    display: flex;
}

.gallery-lightbox__img {
    max-height: 90vh;
    max-width: 100%;
    object-fit: contain;
    box-shadow: var(--shadow-lg);
}

.gallery-lightbox__close {
    position: absolute;
    top: var(--sp-6);
    right: var(--sp-6);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-cream);
    font-size: var(--text-2xl);
    background: none;
    border: 1px solid rgba(255 255 255 / 0.3);
    cursor: pointer;
    transition: background-color var(--ease-fast);
}

.gallery-lightbox__close:hover {
    background-color: rgba(255 255 255 / 0.1);
}

/* Lightbox prev/next (gallery navigation) */
.gallery-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: var(--color-cream);
    background: none;
    border: 1px solid rgba(255 255 255 / 0.3);
    cursor: pointer;
    transition: background-color var(--ease-fast);
}

.gallery-lightbox__nav:hover {
    background-color: rgba(255 255 255 / 0.1);
}

.gallery-lightbox__nav[hidden] {
    display: none;
}

.gallery-lightbox__nav svg {
    width: 24px;
    height: 24px;
    display: block;
}

.gallery-lightbox__nav--prev { left: var(--sp-6); }
.gallery-lightbox__nav--next { right: var(--sp-6); }

@media (max-width: 768px) {
    .gallery-lightbox__nav--prev { left: var(--sp-3); }
    .gallery-lightbox__nav--next { right: var(--sp-3); }
}


/* =========================================
   CAROUSEL ARROWS (image-cta + portrait-gallery)
========================================= */

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: var(--color-dark);
    background-color: rgba(255 255 255 / 0.85);
    border: none;
    border-radius: 50%;
    box-shadow: var(--shadow-md, 0 2px 10px rgba(0 0 0 / 0.15));
    cursor: pointer;
    transition: background-color var(--ease-fast), transform var(--ease-fast);
}

.carousel-arrow:hover {
    background-color: #fff;
}

.carousel-arrow:active {
    transform: translateY(-50%) scale(0.94);
}

.carousel-arrow svg {
    width: 24px;
    height: 24px;
    display: block;
}

.carousel-arrow--prev { left: var(--sp-4); }
.carousel-arrow--next { right: var(--sp-4); }

/* Portrait carousel has 75px top padding — nudge arrows to the image centre */
.module-portrait-gallery__carousel .carousel-arrow {
    top: calc(50% + 37.5px);
}

/* Centred slide is clickable to open the lightbox */
.module-image-cta__slide.is-active,
.module-portrait-gallery__slide.is-active {
    cursor: zoom-in;
}

@media (max-width: 768px) {
    .carousel-arrow {
        width: 40px;
        height: 40px;
    }

    .carousel-arrow--prev { left: var(--sp-2); }
    .carousel-arrow--next { right: var(--sp-2); }
}


/* =========================================
   AREA / MAP MODULE
========================================= */

.module-area {
    background-color: var(--color-warm-light);
}

.module-area__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-20);
    align-items: center;
}

.module-area__text .eyebrow {
    margin-bottom: var(--sp-4);
}

.module-area__text h2 {
    margin-bottom: var(--sp-6);
}

.module-area__text p {
    color: var(--c-muted);
    margin-bottom: var(--sp-6);
    max-width: 52ch;
}

.module-area__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-3);
    margin-top: var(--sp-6);
}

.area-tag {
    display: inline-flex;
    align-items: center;
    padding: var(--sp-2) var(--sp-4);
    background-color: var(--color-cream);
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: var(--fw-medium);
    letter-spacing: var(--tracking-wide);
    color: var(--color-dark);
    text-transform: uppercase;
}

.module-area__image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.module-area__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--ease-slow);
}

.module-area:hover .module-area__image img {
    transform: scale(1.02);
}


/* =========================================
   INTEREST / CTA MODULE
========================================= */

.module-interest {
    position: relative;
    overflow: hidden;
}

.module-interest__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.module-interest__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.module-interest__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgb(31 42 53 / 0.88);
}

.module-interest--no-image {
    background-color: var(--color-dark);
}

.module-interest__content {
    position: relative;
    z-index: var(--z-base);
    text-align: center;
    max-width: 640px;
    margin-inline: auto;
}

/* Generic form wrapper reset */
.module-interest .gform_wrapper,
.module-interest .wpforms-container,
.module-interest .nf-form-cont {
    max-width: 520px;
    margin-inline: auto;
}

.module-interest .gform_wrapper input,
.module-interest .gform_wrapper textarea,
.module-interest .gform_wrapper select {
    background-color: rgb(255 255 255 / 0.08);
    border: 1px solid rgb(255 255 255 / 0.2);
    color: var(--color-cream);
}

.module-interest .gform_wrapper input::placeholder,
.module-interest .gform_wrapper textarea::placeholder {
    color: var(--color-grey);
}


/* =========================================
   FOOTER
========================================= */

.site-footer {
    background-color: var(--color-dark);
}

/* ---- Zone 1: Nav repeat (mirrors header) ---- */

.footer-top {
    padding-block: clamp(3rem, 7vw, 6rem);
}

.footer-top__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: var(--sp-8);
}

.footer-top__left,
.footer-top__right {
    display: flex;
    align-items: center;
}

.footer-top__right {
    justify-content: flex-end;
}

/* Reuse main-navigation link styles in footer */
.footer-top__left .menu,
.footer-top__right .menu,
.footer-top__left ul,
.footer-top__right ul {
    display: flex;
    align-items: center;
    gap: var(--sp-8);
}

.footer-top__left .menu a,
.footer-top__right .menu a,
.footer-top__left ul a,
.footer-top__right ul a {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: var(--fw-medium);
    letter-spacing: var(--tracking-wide);
    color: var(--color-silver);
    text-decoration: none;
    position: relative;
    padding-block: var(--sp-1);
    transition: color var(--ease-fast);
}

.footer-top__left .menu a::after,
.footer-top__right .menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: currentColor;
    transition: width var(--ease-base);
}

.footer-top__left .menu a:hover,
.footer-top__right .menu a:hover {
    color: var(--color-cream);
}

.footer-top__left .menu a:hover::after,
.footer-top__right .menu a:hover::after {
    width: 100%;
}

.footer-top__brand {
    text-align: center;
}

.footer-top__brand a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.footer-top__brand .custom-logo {
    height: 28px;
    width: auto;
    max-width: none;
}

.footer-top__brand .site-title {
    font-size: 28px;
}

/* ---- Zone 2: Developer credit ---- */

.footer-developer-section {
    padding-block: clamp(6rem, 9vw, 10rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-4);
    padding-bottom: 0;
}

.footer-credit {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: var(--fw-regular);
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: var(--color-grey);
    white-space: nowrap;
}

.footer-developer {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-4);
    text-decoration: none;
    color: var(--color-cream);
    transition: opacity var(--ease-fast);
}

.footer-developer:hover {
    opacity: 0.75;
}

.footer-developer__logo {
    width: 151px;
    height: auto;
    flex-shrink: 0;
    object-fit: contain;
}

.footer-developer__name {
    font-family: var(--font-body);
    font-size: var(--text-xl);
    font-weight: var(--fw-medium);
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: inherit;
}

/* ---- Zone 3: Bottom bar ---- */

.footer-bar {
    padding-block: var(--sp-5);
}

.footer-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-8);
}

.footer-bar__social,
.footer-bar__legal {
    display: flex;
    align-items: center;
    gap: var(--sp-6);
}

.footer-bar__social a,
.footer-bar__legal a,
.footer-bar__legal .menu a {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: var(--fw-medium);
    letter-spacing: var(--tracking-wide);
    color: var(--color-silver);
    text-decoration: none;
    transition: color var(--ease-fast);
}

.footer-bar__social a:hover,
.footer-bar__legal a:hover,
.footer-bar__legal .menu a:hover {
    color: var(--color-cream);
}

.footer-bar__legal .menu {
    display: flex;
    gap: var(--sp-6);
}

/* ---- Zone 4: Pattern strip ---- */

.footer-pattern {
    height: 80px;
    background-color: var(--color-dark);
    background-image: url('images/footer-pattern.svg');
    background-repeat: repeat-x;
    background-size: 300px;
    background-position: top left;
}

/* Mobile */
@media (max-width: 768px) {
    .footer-top__inner {
        grid-template-columns: 1fr;
        gap: var(--sp-10);
        text-align: center;
    }

    .footer-top__left,
    .footer-top__right {
        justify-content: center;
    }

    .footer-top__left .menu,
    .footer-top__right .menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-bar__inner {
        flex-direction: column;
        gap: var(--sp-4);
        text-align: center;
    }
}


/* =========================================
   SCROLL REVEAL
========================================= */

[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity var(--ease-slow), transform var(--ease-slow);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

[data-reveal="fade"] {
    transform: none;
}

[data-reveal-delay="1"] { transition-delay: 100ms; }
[data-reveal-delay="2"] { transition-delay: 200ms; }
[data-reveal-delay="3"] { transition-delay: 300ms; }
[data-reveal-delay="4"] { transition-delay: 400ms; }
[data-reveal-delay="5"] { transition-delay: 500ms; }


/* =========================================
   RESPONSIVE — Tablet (≤1024px)
========================================= */

@media (max-width: 1024px) {
    .module-milestones__item:nth-child(n+4) {
        border-top: 1px solid var(--color-warm-light);
    }

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

    .module-image-text__text {
        padding: var(--sp-12) var(--sp-10);
    }

    .module-gallery__grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .gallery-item:nth-child(1) { grid-column: span 4; grid-row: span 2; }
    .gallery-item:nth-child(2) { grid-column: span 2; grid-row: span 1; }
    .gallery-item:nth-child(3) { grid-column: span 2; grid-row: span 1; }
    .gallery-item:nth-child(n+4) { grid-column: span 2; grid-row: span 1; }
}


/* =========================================
   RESPONSIVE — Mobile (≤768px)
========================================= */

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    .menu-toggle { display: flex; }
    .nav-left > .main-navigation,
    .nav-right { display: none; }

    .header-inner {
        grid-template-columns: 44px 1fr 44px;
        gap: var(--sp-4);
    }

    /* Logo — fit on one line beside the hamburger */
    .site-title {
        font-size: 17px;
        white-space: nowrap;
    }

    .site-branding .custom-logo {
        height: 20px;
    }

    /* Hero CTA — full-width, anchored to the bottom edge */
    .module-hero__cta-card {
        width: 100%;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 10px;
        background-size: 70px 70px;
    }

    .cta-card__content {
        padding: var(--sp-8) var(--sp-6);
    }

    /* Reduce oversized section headings on mobile */
    .module-intro-text h2 {
        font-size: 24px;
    }

    .module-image-cta__content h2 {
        font-size: 24px;
    }

    .module-interest__content h2 {
        font-size: 26px;
    }

    /* Ignore manual (textarea) line breaks in titles — let them wrap naturally */
    .module-intro-text h2 br,
    .module-image-cta__content h2 br {
        display: none;
    }

    /* Image Text */
    .module-image-text__inner {
        grid-template-columns: 1fr;
    }

    .module-image-text__image {
        min-height: 320px;
    }

    .module-image-text__image img {
        position: static;
        height: 320px;
        width: 100%;
    }

    .module-image-text--image-right .module-image-text__image { order: 1; }
    .module-image-text--image-right .module-image-text__text  { order: 2; }

    /* Image CTA — show a bit more of the side images */
    .module-image-cta__slide {
        flex: 0 0 82%;
    }

    /* Portrait gallery — 3 larger images visible */
    .module-portrait-gallery__slide {
        flex: 0 0 33.333%;
    }

    /* Interest form — slimmer bleed + border for more content room */
    .module-interest {
        padding-inline: var(--sp-4);
    }

    .module-interest__border-wrap {
        padding: 12px;
        background-size: 60px 60px;
    }

    .module-interest__panel {
        padding: var(--sp-12) var(--sp-4);
    }

    /* Milestones — wrap to 2 per row on small tablets */
    .module-milestones__item:nth-child(n+3) {
        border-top: 1px solid var(--color-warm-light);
    }

    /* Features */
    .module-features__grid {
        grid-template-columns: 1fr;
    }

    /* Area */
    .module-area__inner {
        grid-template-columns: 1fr;
        gap: var(--sp-10);
    }

    /* Gallery */
    .module-gallery__grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 220px;
    }

    .gallery-item:nth-child(n) {
        grid-column: span 1;
        grid-row: span 1;
    }

    .gallery-item:nth-child(1) {
        grid-column: span 2;
    }

}

@media (max-width: 480px) {
    .module-milestones__item {
        flex: 0 0 100%;
        border-right: none !important;
        border-top: none !important;
    }

    .module-milestones__item + .module-milestones__item {
        border-top: 1px solid var(--color-warm-light) !important;
    }
}


/* =========================================
   REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .module-ticker__track {
        animation: none;
    }
}


/* =========================================
   CookieYes banner — brand colour overrides
   (colours only; radius/fonts left to the plugin)
   Accept & Reject = equal weight (GDPR compliant)
========================================= */

/* Primary consent choices — both solid, equal emphasis */
.cky-btn.cky-btn-accept,
.cky-btn.cky-btn-reject {
    color: var(--color-cream) !important;
}

.cky-btn.cky-btn-accept,
.cky-btn.cky-btn-reject {
    background-color: var(--color-dark) !important;
    border-color: var(--color-dark) !important;
}
.cky-btn.cky-btn-accept:hover,
.cky-btn.cky-btn-reject:hover {
    background-color: var(--color-steel) !important;
    border-color: var(--color-steel) !important;
}

/* Secondary actions — outline, lower emphasis (settings, not a consent choice) */
.cky-btn.cky-btn-customize,
.cky-btn.cky-btn-preferences {
    background-color: transparent !important;
    color: var(--color-dark) !important;
    border-color: var(--color-dark) !important;
}
.cky-btn.cky-btn-customize:hover,
.cky-btn.cky-btn-preferences:hover {
    background-color: var(--color-dark) !important;
    color: var(--color-cream) !important;
    border-color: var(--color-dark) !important;
}

/* Floating revisit / reopen badge */
.cky-btn-revisit-wrapper,
.cky-btn-revisit-wrapper.cky-revisit-bottom-left {
    background-color: var(--color-dark) !important;
    color: var(--color-cream) !important;
}
.cky-btn-revisit-wrapper:hover {
    background-color: var(--color-steel) !important;
}
