/**
 * GRAYA – Design + Construct
 * Homepage styles. Reference: https://graya.com.au/
 * Organised in public/assets/css
 */

/* -------------------------------------------------------------------------
   Variables
   ------------------------------------------------------------------------- */
:root {
    --color-black: #0a0a0a;
    --color-white: #f5f5f5;
    --color-gray: #6b6b6b;
    --color-gray-light: #a3a3a3;
    --color-accent: #c9a962;
    --color-border: rgba(255, 255, 255, 0.12);

    --font-heading: "Cormorant Garamond", "Times New Roman", serif;
    --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --container-max: 1280px;
    --container-padding: 1.5rem;
    --header-height: 72px;
}

/* -------------------------------------------------------------------------
   Reset & base
   ------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

.page-body {
    margin: 0;
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-white);
    background-color: var(--color-black);
    -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
    text-decoration: underline;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* -------------------------------------------------------------------------
   Layout
   ------------------------------------------------------------------------- */
.page-main {
    min-height: 60vh;
}

/* -------------------------------------------------------------------------
   Header: black bar, logo left, Menu button right
   ------------------------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    background-color: #000;
}

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

.site-header__logo {
    display: flex;
    align-items: center;
}

.site-header__logo-img {
    width: 250px;
    height: auto;
}

/* Menu button: white, black text, rounded */
.site-header__menu-btn {
    padding: var(--space-sm) var(--space-lg);
    background-color: #fff;
    color: #1a1a1a;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.site-header__menu-btn:hover {
    background-color: #e5e5e5;
}

/* Full-screen overlay menu */
.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 1001;
    background-color: #0a0a0a;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s, opacity 0.3s;
    overflow-y: auto;
}

.nav-overlay.is-open {
    visibility: visible;
    opacity: 1;
}

.nav-overlay__inner {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    padding: var(--header-height) var(--container-padding) var(--space-xl);
}

.nav-overlay__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-2xl);
}

.nav-overlay__logo img {
    width: 250px;
    height: auto;
}

.nav-overlay__close {
    padding: var(--space-sm) var(--space-lg);
    background-color: #fff;
    color: #1a1a1a;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.nav-overlay__close:hover {
    background-color: #e5e5e5;
}

.nav-overlay__nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-overlay__list {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
}

.nav-overlay__list li {
    margin-bottom: var(--space-md);
}

.nav-overlay__list a {
    font-size: 1.25rem;
    letter-spacing: 0.02em;
    color: #e5e5e5;
}

.nav-overlay__list a:hover {
    color: #fff;
    text-decoration: none;
}

.nav-overlay__bottom {
    height: 1px;
    margin-top: var(--space-xl);
    background: rgba(255, 255, 255, 0.15);
}

/* Prevent body scroll when menu open */
.page-body.menu-open {
    overflow: hidden;
}

/* -------------------------------------------------------------------------
   Hero (video section – full-bleed video with overlaid text)
   ------------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--color-black);
}

.hero__media {
    position: absolute;
    inset: 0;
}

.hero__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.3) 0%, rgba(10, 10, 10, 0.5) 100%);
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 100vh;
    padding: var(--header-height) var(--container-padding) var(--space-2xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero__title {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: clamp(3rem, 12vw, 8rem);
    line-height: 1.05;
    margin: 0;
    letter-spacing: -0.02em;
    color: var(--color-white);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.hero__line {
    display: block;
}

.hero__line--2 {
    padding-left: 0.15em;
}

.hero__tagline {
    max-width: 38rem;
    margin: var(--space-lg) auto 0;
    padding: 0 var(--space-sm);
    font-family: var(--font-body);
    font-size: clamp(0.875rem, 2vw, 1.0625rem);
    font-weight: 400;
    line-height: 1.55;
    letter-spacing: 0.04em;
    text-transform: none;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.hero__label {
    position: absolute;
    bottom: var(--space-lg);
    right: var(--container-padding);
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-white);
    margin: 0;
    padding: var(--space-xs) var(--space-sm);
    background: rgba(10, 10, 10, 0.6);
}

/* -------------------------------------------------------------------------
   Sections
   ------------------------------------------------------------------------- */
.section {
    padding: var(--space-2xl) var(--container-padding);
}

.section__inner {
    max-width: var(--container-max);
    margin: 0 auto;
}

.section__label {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gray-light);
    margin-bottom: var(--space-sm);
}

.section__title {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.2;
    margin: 0 0 var(--space-lg);
    max-width: 24ch;
}

.section__content {
    font-size: 1rem;
    color: var(--color-gray-light);
    max-width: 65ch;
}

.section__content p {
    margin: 0 0 var(--space-md);
}

.section__intro {
    margin-bottom: var(--space-md);
}

/* Our Story page: hero + content */
.story-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: flex-end;
    padding-top: var(--header-height);
    overflow: hidden;
}

.story-hero__bg {
    position: absolute;
    inset: 0;
}

.story-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
}

.story-hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--space-2xl) var(--container-padding);
}

.story-hero__label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 var(--space-sm);
}

.story-hero__title {
    font-family: var(--font-body);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 500;
    line-height: 1.15;
    color: #fff;
    margin: 0;
    max-width: 12ch;
}

.story-hero--compact {
    min-height: 42vh;
}

.story-content {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
}

.story-content__divider {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    margin: 0 0 var(--space-xl);
}

.story-content__heading {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0 0 var(--space-lg);
}

.story-content .section__content p {
    margin-bottom: var(--space-lg);
}

.story-content .section__content p:last-of-type {
    margin-bottom: 0;
}

/* Services grid on Our Story (left labels, right text) */
.services-grid {
    margin-top: var(--space-xl);
}

.services-grid__row {
    display: grid;
    grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
    column-gap: var(--space-xl);
    row-gap: var(--space-md);
    padding-block: var(--space-md);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.services-grid__row:last-of-type {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.services-grid__label {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    color: #1a1a1a;
}

.services-grid__text {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #3a3a3a;
}

@media (max-width: 768px) {
    .services-grid__row {
        grid-template-columns: 1fr;
    }
}

/* Inner pages: clear fixed header */
.section--page {
    padding-top: calc(var(--header-height) + var(--space-xl));
}

.section--about .section__title--small {
    font-size: 1.125rem;
    margin-bottom: var(--space-sm);
}

.contact-address {
    margin: 0;
}

.section--about {
    background-color: #fff;
    text-align: left;
}

.section--about .section__inner {
    max-width: var(--container-max);
}

.section--about .section__label {
    color: #1a1a1a;
    font-family: var(--font-body);
    margin-bottom: var(--space-md);
}

.section--about .section__title {
    color: #1a1a1a;
    font-family: var(--font-body);
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    font-weight: 500;
    max-width: none;
    margin-bottom: var(--space-lg);
    line-height: 1.5;
}

.section--about .section__content {
    color: #3a3a3a;
    max-width: 55ch;
}

.section--about .section__content p {
    margin-bottom: var(--space-lg);
}

.section--about .section__content p:last-of-type {
    margin-bottom: var(--space-xl);
}

/* Contact page: address / phone / Instagram bar under hero */
.contact-details-bar {
    background-color: #f5f5f5;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: var(--space-lg) var(--container-padding);
}

.contact-details-bar__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg) var(--space-2xl);
    align-items: flex-start;
    justify-content: center;
    text-align: center;
}

.contact-details-bar__item {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    min-width: min(100%, 200px);
}

.contact-details-bar__label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #666;
}

.contact-details-bar__value {
    font-size: 0.9375rem;
    color: #1a1a1a;
}

.contact-details-bar__link {
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}

.contact-details-bar__link:hover {
    color: var(--color-accent);
}

@media (min-width: 769px) {
    .contact-details-bar__inner {
        justify-content: space-between;
        text-align: left;
    }
}

/* Contact page layout (body is light-on-dark globally; this section is white) */
.contact-page {
    color: #1a1a1a;
    background-color: #fff;
}

.contact-page .section__inner {
    max-width: var(--container-max);
}

.contact-page .contact-info {
    color: #1a1a1a;
}

.contact-page .contact-info__heading {
    color: #333;
}

.contact-page .contact-info__text {
    color: #1a1a1a;
}

.contact-page .contact-form__intro {
    color: #3a3a3a;
}

.contact-page .contact-form__label {
    color: #1a1a1a;
}

.contact-page .contact-form__checkbox-label {
    color: #333;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: var(--space-xl);
}

.contact-grid--single {
    grid-template-columns: minmax(0, 1fr);
    max-width: 640px;
    margin-inline: auto;
}

.contact-info__block {
    margin-bottom: var(--space-lg);
}

.contact-info__heading {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 var(--space-xs);
}

.contact-info__text {
    margin: 0;
    font-size: 0.9375rem;
}

.contact-info__text a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contact-info__text a:hover {
    color: var(--color-accent);
}

.contact-form__intro {
    font-size: 0.9375rem;
    margin: 0 0 var(--space-md);
}

.contact-form__form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--space-md);
}

.contact-form__field {
    margin-bottom: var(--space-md);
    grid-column: span 2;
}

.contact-form__field--half {
    grid-column: span 1;
}

.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;
}

.contact-form__label {
    display: block;
    font-size: 0.8125rem;
    margin-bottom: var(--space-xs);
}

.contact-form__input {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    border-radius: 999px;
    border: 1px solid #d4d4d4;
    font-size: 0.9375rem;
}

.contact-form__textarea {
    border-radius: 1rem;
    resize: vertical;
}

.contact-form__select {
    border-radius: 12px;
    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 fill='%23333' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.contact-form__file {
    width: 100%;
    padding: var(--space-sm);
    font-size: 0.875rem;
    border: 1px dashed #c4c4c4;
    border-radius: 12px;
    background: #fafafa;
}

.contact-form__field--checkbox {
    grid-column: span 2;
}

.contact-form__checkbox-label {
    font-size: 0.8125rem;
    color: #1a1a1a;
}

.contact-form__submit {
    grid-column: span 2;
    width: 100%;
    margin-top: var(--space-sm);
}

.contact-form__actions {
    grid-column: span 2;
    margin-top: var(--space-sm);
}

.contact-form__actions--split {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    align-items: center;
    justify-content: flex-start;
}

.contact-form__actions--split .contact-form__submit {
    width: auto;
    flex: 1 1 160px;
    margin-top: 0;
}

.contact-form__error {
    margin-top: var(--space-xs);
    font-size: 0.75rem;
    color: #dc2626;
}

.contact-form__message {
    font-size: 0.875rem;
    margin-bottom: var(--space-md);
}

.contact-form__message--success {
    color: #16a34a;
}

.contact-form__message--error {
    color: #dc2626;
}

/* Lead form (KSB website lead capture) */
.contact-grid--lead {
    align-items: start;
}

.lead-form__headline {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.35rem, 4vw, 1.75rem);
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.25;
    color: #1a1a1a;
    margin: 0 0 var(--space-sm);
    max-width: 28rem;
}

.lead-form__intro {
    margin-bottom: var(--space-lg);
    color: #4a4a4a;
}

.lead-form__section {
    border: none;
    margin: 0 0 var(--space-xl);
    padding: 0 0 var(--space-lg);
    border-bottom: 1px solid #ececec;
}

.lead-form__section:last-of-type {
    border-bottom: none;
}

.lead-form__section-title {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #1a1a1a;
    margin: 0 0 var(--space-md);
    padding: 0;
}

.lead-form__hint {
    font-size: 0.8125rem;
    color: #666;
    margin: calc(-1 * var(--space-xs)) 0 var(--space-md);
}

.lead-form__optional {
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    color: #666;
}

.lead-form__checkbox-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-sm);
}

.lead-form__checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.875rem;
    line-height: 1.4;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.lead-form__checkbox-item:hover {
    border-color: #ccc;
    background: #fafafa;
}

.lead-form__checkbox-input {
    margin-top: 0.2rem;
    flex-shrink: 0;
    accent-color: #1a1a1a;
}

.lead-form__inline-radios {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-top: var(--space-xs);
}

.lead-form__radio-item {
    font-size: 0.875rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.lead-form__consent-label {
    line-height: 1.5;
    max-width: 36rem;
}

.lead-form__form .contact-form__field--checkbox {
    margin-bottom: var(--space-sm);
}

.lead-form__validation-summary {
    padding: var(--space-md);
    margin-bottom: var(--space-lg);
    border: 1px solid #fecaca;
    border-radius: 12px;
    background: #fef2f2;
    color: #991b1b;
    font-size: 0.875rem;
}

.lead-form__validation-summary-title {
    margin: 0 0 var(--space-xs);
    font-weight: 600;
}

.lead-form__validation-summary-list {
    margin: 0;
    padding-left: 1.25rem;
}

.lead-form__details {
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: var(--space-sm) var(--space-md);
    margin-bottom: var(--space-xl);
    background: #fafafa;
}

.lead-form__details-summary {
    cursor: pointer;
    list-style: none;
    font-size: 0.875rem;
    line-height: 1.45;
}

.lead-form__details-summary::-webkit-details-marker {
    display: none;
}

.lead-form__section-title--inline {
    display: inline;
    margin-right: var(--space-xs);
    font-size: 0.6875rem;
}

.lead-form__details-body {
    padding-top: var(--space-md);
    border-top: 1px solid #ececec;
    margin-top: var(--space-md);
}

.lead-form__when-required {
    font-weight: 400;
    color: #666;
    font-size: 0.75rem;
}

@media (min-width: 520px) {
    .lead-form__checkbox-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

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

    .contact-form__field,
    .contact-form__field--checkbox,
    .contact-form__submit {
        grid-column: span 1;
    }

    .contact-form__field--half {
        grid-column: span 1;
    }
}

/* Buttons / links */
.btn {
    display: inline-block;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid currentColor;
}

.btn:hover {
    text-decoration: none;
    color: var(--color-accent);
}

/* Primary button: solid black, white text, rounded (About section) */
.btn--primary {
    padding: var(--space-sm) var(--space-lg);
    background-color: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 6px;
}

.btn--primary:hover {
    background-color: #333;
    color: #fff;
}

.btn--outline {
    display: inline-block;
    padding: var(--space-sm) var(--space-lg);
    background-color: transparent;
    color: #1a1a1a;
    border: 1px solid #1a1a1a;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
}

.btn--outline:hover {
    background-color: #1a1a1a;
    color: #fff;
}

/* Two-column section: Our Story (left) + architectural image (right), white bg */
.section--two-col {
    background-color: #fff;
    padding: var(--space-2xl) var(--container-padding);
}

.section__inner--relative {
    position: relative;
}

.two-col__grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 0;
    max-width: var(--container-max);
    margin: 0 auto;
    align-items: stretch;
}

.two-col__left {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.two-col__right {
    display: flex;
}

.two-col__btn {
    align-self: flex-start;
}

.two-col__img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    vertical-align: bottom;
}

.two-col__left .two-col__img {
    min-height: 400px;
    max-height: 85vh;
}

.two-col__right .two-col__img {
    min-height: 400px;
    max-height: 85vh;
}

.two-col__badge {
    position: absolute;
    bottom: var(--space-lg);
    right: var(--container-padding);
    margin: 0;
    padding: var(--space-xs) var(--space-sm);
    background-color: #1a1a1a;
    color: #fff;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border-radius: 6px;
}

a.two-col__badge--link,
a.feature-img__badge--link {
    text-decoration: none;
    color: #fff;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

a.two-col__badge--link:hover,
a.feature-img__badge--link:hover {
    opacity: 0.88;
    color: #fff;
}

@media (max-width: 768px) {
    .two-col__grid {
        grid-template-columns: 1fr;
    }

    .two-col__badge {
        position: static;
        margin-top: var(--space-md);
        text-align: right;
    }
}

/* Full-width feature image section (building / exclusive project + badge) */
.section--feature-img {
    padding: 0;
    background-color: #fff;
}

.feature-img__wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.feature-img__img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 85vh;
}

.feature-img__badge {
    position: absolute;
    bottom: var(--space-lg);
    right: var(--container-padding);
    margin: 0;
    padding: var(--space-xs) var(--space-sm);
    background-color: #1a1a1a;
    color: #fff;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border-radius: 6px;
}

@media (max-width: 768px) {
    .feature-img__badge {
        bottom: var(--space-md);
        right: var(--space-md);
    }
}

/* Collection / Projects section: white bg, grid of cards with overlay title */
/* Projects page hero */
.projects-hero {
    position: relative;
    height: 50vh;
    min-height: 320px;
    padding-top: var(--header-height);
    overflow: hidden;
}

.projects-hero__bg {
    position: absolute;
    inset: 0;
}

.projects-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.projects-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
}

/* Collection filters (Multi-Residential, Residential, For Sale) */
.section--collection-page {
    padding-top: var(--space-2xl);
}

.collection-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.collection-header .section__label {
    margin-bottom: 0;
}

.collection-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.collection-filter {
    display: inline-block;
    padding: var(--space-sm) var(--space-md);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    border: 1px solid #1a1a1a;
    border-radius: 6px;
    color: #1a1a1a;
    background: #fff;
}

.collection-filter:hover {
    text-decoration: none;
    background: #f5f5f5;
    color: #1a1a1a;
}

.collection-filter.is-active {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

.project-card__badge {
    position: absolute;
    bottom: var(--space-md);
    right: var(--space-md);
    z-index: 2;
    padding: var(--space-xs) var(--space-sm);
    background: rgba(26, 26, 26, 0.85);
    color: #fff;
    font-size: 0.625rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border-radius: 4px;
}

.section--collection {
    background-color: #fff;
    text-align: left;
}

.section--collection .section__label {
    color: #8a8a8a;
    font-family: var(--font-body);
    margin-bottom: var(--space-xs);
}

.section--collection .section__title {
    color: #1a1a1a;
    font-family: var(--font-body);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 600;
    max-width: none;
    margin-bottom: var(--space-xl);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.projects-grid__action {
    margin-top: var(--space-xl);
    text-align: center;
}

.project-card {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 5;
}

/* Darken top of image so titles stay readable on bright skies */
.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 42%;
    min-height: 5rem;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.22) 50%,
        rgba(0, 0, 0, 0) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.project-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-card__title {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    right: auto;
    max-width: calc(100% - 2 * var(--space-md));
    z-index: 2;
    display: inline-block;
    padding: 0.45rem 0.7rem;
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    line-height: 1.3;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    background-color: rgba(26, 26, 26, 0.82);
    border-radius: 4px;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.2);
}

.project-card:hover .project-card__title {
    text-decoration: none;
    background-color: rgba(26, 26, 26, 0.92);
}

/* /projects listing: name on image + same name below (no KSB badge) */
.project-card.project-card--listing {
    display: flex;
    flex-direction: column;
    overflow: visible;
    aspect-ratio: auto;
    align-items: stretch;
}

.project-card.project-card--listing::before {
    display: none;
}

.project-card__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    width: 100%;
}

.project-card__media::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 42%;
    min-height: 5rem;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.22) 50%,
        rgba(0, 0, 0, 0) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.project-card--listing .project-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-card__caption {
    display: block;
    margin: var(--space-md) 0 0;
    padding: 0 var(--space-xs);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    color: #1a1a1a;
    line-height: 1.3;
}

.project-card--listing:hover .project-card__caption {
    color: var(--color-accent);
    text-decoration: none;
}

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

@media (max-width: 576px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* Home + /projects: exactly two items — one full row, 50% / 50% (not 4-col layout) */
.projects-grid.projects-grid--pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
}

@media (max-width: 420px) {
    .projects-grid.projects-grid--pair {
        grid-template-columns: 1fr;
    }
}

/* Home: more than two featured projects — responsive grid */
.projects-grid.projects-grid--home-many {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.collection-empty--home {
    text-align: center;
    padding: var(--space-xl) var(--space-md);
    color: #666;
    font-size: 0.9375rem;
    max-width: 40rem;
    margin-inline: auto;
}

/* Home: first two featured projects — image + name below (dynamic from DB) */
.section--home-spotlight .section__inner--relative {
    max-width: var(--container-max);
}

.home-spotlight__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    max-width: var(--container-max);
    margin: 0 auto;
    align-items: start;
}

.home-spotlight__grid--single {
    grid-template-columns: 1fr;
    max-width: 42rem;
}

.home-spotlight__card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.home-spotlight__card:hover .home-spotlight__name {
    color: var(--color-accent);
}

.home-spotlight__img-wrap {
    overflow: hidden;
    line-height: 0;
}

.home-spotlight__img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    min-height: 400px;
    max-height: 85vh;
}

.home-spotlight__name {
    margin: var(--space-md) 0 0;
    padding: 0 var(--space-xs);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: left;
    color: #1a1a1a;
}

@media (max-width: 768px) {
    .home-spotlight__grid {
        grid-template-columns: 1fr;
    }

    .home-spotlight__grid--single {
        max-width: none;
    }
}

/* Home collection: titles + optional badge below image (not overlaid) */
.project-card.project-card--stacked {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: visible;
    aspect-ratio: auto;
    align-items: stretch;
}

.project-card.project-card--stacked::before {
    display: none;
}

.project-card.project-card--stacked .project-card__img {
    aspect-ratio: 4 / 5;
    height: auto;
    width: 100%;
    flex-shrink: 0;
}

.project-card.project-card--stacked .project-card__title {
    position: static;
    margin: var(--space-md) 0 0;
    padding: 0 var(--space-sm);
    background: none;
    box-shadow: none;
    color: #1a1a1a;
    text-align: center;
    max-width: none;
    align-self: center;
    text-shadow: none;
}

.project-card.project-card--stacked:hover .project-card__title {
    background: none;
    color: var(--color-accent);
}

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */
/* Footer: dark theme, Contact + Mailing list + Office/Social/Exclusive Access */
.site-footer {
    padding: var(--space-xl) var(--container-padding) var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    background-color: #0a0a0a;
    color: #e5e5e5;
}

.site-footer__inner {
    max-width: var(--container-max);
    margin: 0 auto;
}

.site-footer__contact {
    padding-bottom: var(--space-xl);
    margin-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer__heading {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 var(--space-sm);
}

.site-footer__text {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #b0b0b0;
    margin: 0 0 var(--space-md);
    max-width: 42ch;
}

.site-footer__brand {
    margin-top: var(--space-xl);
}

.site-footer__logo {
    width: 80px;
    height: auto;
    opacity: 0.95;
}

.btn--footer {
    display: inline-block;
    padding: var(--space-sm) var(--space-lg);
    background-color: #fff;
    color: #1a1a1a;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: none;
    border-radius: 8px;
}

.btn--footer:hover {
    background-color: #e5e5e5;
    color: #1a1a1a;
    text-decoration: none;
}

/* Mailing list */
.site-footer__mailing {
    padding-bottom: var(--space-xl);
    margin-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer__message {
    font-size: 0.875rem;
    margin: 0 0 var(--space-sm);
}

.site-footer__message--success {
    color: #86efac;
}

.site-footer__message--info {
    color: #93c5fd;
}

.site-footer__message--error {
    color: #fca5a5;
}

.site-footer__form {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}

.site-footer__input {
    flex: 1;
    min-width: 200px;
    padding: var(--space-sm) var(--space-md);
    font-size: 0.9375rem;
    color: #fff;
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
}

.site-footer__input::placeholder {
    color: #888;
}

.site-footer__input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
}

/* Bottom: Office, Social, Exclusive Access */
.site-footer__bottom {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: var(--space-xl);
    align-items: start;
}

.site-footer__address {
    font-size: 0.9375rem;
    color: #b0b0b0;
    margin: 0;
    line-height: 1.5;
}

.site-footer__address--region {
    margin-bottom: var(--space-md);
}

.site-footer__office-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.site-footer__office-line {
    margin: 0;
    line-height: 1.5;
}

.site-footer__office-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 0.35rem;
}

.site-footer__office-value {
    font-size: 0.9375rem;
    color: #e5e5e5;
}

a.site-footer__office-link {
    color: #e5e5e5;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    transition: color 0.15s ease, border-color 0.15s ease;
}

a.site-footer__office-link:hover {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.55);
}

.site-footer__social-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer__social-list li {
    margin-bottom: var(--space-xs);
}

.site-footer__social-list a {
    font-size: 0.9375rem;
    color: #b0b0b0;
}

.site-footer__social-list a:hover {
    color: #fff;
    text-decoration: none;
}

.site-footer__col--access {
    text-align: right;
}

.site-footer__access {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #b0b0b0;
    margin: 0;
}

@media (max-width: 768px) {
    .site-footer__bottom {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .site-footer__col--access {
        text-align: left;
    }

    .site-footer__form {
        flex-direction: column;
    }

    .site-footer__input {
        min-width: 100%;
    }
}
