/* =========================================================
   Friends & Family Thrifting — Theme Stylesheet
   Aesthetic: warm editorial / community magazine
   ========================================================= */

:root {
    /* Palette — warm, grounded, with deep forest + clay accents */
    --c-cream:       #f7f1e6;   /* page background */
    --c-paper:       #fbf7ee;   /* cards / lifted surfaces */
    --c-ink:         #1a1612;   /* primary text */
    --c-ink-soft:    #4a4036;   /* secondary text */
    --c-forest:      #1e3a2f;   /* primary brand */
    --c-forest-dark: #142b22;
    --c-clay:        #b85a2c;   /* accent / hover */
    --c-clay-dark:   #8e3f17;
    --c-sand:        #e8dcc4;   /* dividers / tints */
    --c-line:        rgba(26,22,18,0.12);
    --c-line-strong: rgba(26,22,18,0.22);

    /* Type */
    --f-display: "Fraunces", "Georgia", serif;
    --f-body:    "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    /* Layout */
    --container: 1280px;
    --container-narrow: 760px;
    --header-h: 88px;
    --radius: 4px;

    --shadow-soft: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(26,22,18,0.06);
    --shadow-lift: 0 2px 6px rgba(0,0,0,0.06), 0 18px 40px rgba(26,22,18,0.1);
}

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

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

body {
    margin: 0;
    background: var(--c-cream);
    color: var(--c-ink);
    font-family: var(--f-body);
    font-size: 17px;
    line-height: 1.6;
    font-feature-settings: "ss01", "cv11";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: var(--c-forest);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover { color: var(--c-clay); }

p { margin: 0 0 1em; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-display);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 0.5em;
    color: var(--c-ink);
}

em { font-style: italic; font-family: var(--f-display); }

::selection { background: var(--c-clay); color: var(--c-cream); }

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

.skip-link {
    position: absolute;
    top: -40px; left: 0;
    background: var(--c-forest);
    color: var(--c-cream);
    padding: 8px 16px;
    z-index: 100;
}
.skip-link:focus { top: 0; }

/* ── Container ────────────────────────────────────────── */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 32px;
}
.container--narrow { max-width: var(--container-narrow); }

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

/* ── Buttons ──────────────────────────────────────────── */
.btn {
    display: inline-block;
    font-family: var(--f-body);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 14px 28px;
    border-radius: var(--radius);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
}

.btn + .btn { margin-left: 12px; }

.btn--primary {
    background: var(--c-forest);
    color: var(--c-cream);
    border-color: var(--c-forest);
}
.btn--primary:hover {
    background: var(--c-forest-dark);
    color: var(--c-cream);
    transform: translateY(-1px);
}

.btn--ghost {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255,255,255,0.6);
    backdrop-filter: blur(2px);
}
.btn--ghost:hover {
    background: rgba(255,255,255,0.15);
    color: #ffffff;
    border-color: #ffffff;
}

.btn--outline {
    background: transparent;
    color: var(--c-forest);
    border-color: var(--c-forest);
}
.btn--outline:hover {
    background: var(--c-forest);
    color: var(--c-cream);
}

/* ── Site Header ──────────────────────────────────────── */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    transition: background 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
    border-bottom: 1px solid transparent;
}

.site-header[data-transparent="true"]:not(.is-scrolled) {
    background: transparent;
}

.site-header[data-transparent="true"]:not(.is-scrolled) .site-title,
.site-header[data-transparent="true"]:not(.is-scrolled) .primary-menu > li > a,
.site-header[data-transparent="true"]:not(.is-scrolled) .menu-toggle__bar {
    color: #ffffff;
    background-color: #ffffff; /* for the bars */
}

.site-header[data-transparent="true"]:not(.is-scrolled) .site-title,
.site-header[data-transparent="true"]:not(.is-scrolled) .primary-menu > li > a {
    background-color: transparent;
}

.site-header.is-scrolled,
.site-header[data-transparent="false"] {
    background: rgba(247, 241, 230, 0.92);
    backdrop-filter: saturate(140%) blur(12px);
    border-bottom-color: var(--c-line);
}

.site-header__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 18px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

/* Branding */
.site-title {
    font-family: var(--f-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--c-ink);
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    line-height: 1;
    letter-spacing: -0.02em;
}
.site-title:hover { color: var(--c-clay); }
.site-title__ampersand {
    font-style: italic;
    font-weight: 400;
    font-size: 1.8rem;
    color: var(--c-clay);
    line-height: 0.8;
}
.site-title__text { display: inline-flex; align-items: baseline; gap: 4px; }
.site-title__text em {
    font-style: italic;
    font-weight: 400;
    color: var(--c-clay);
    margin-left: 6px;
}
.site-title__small { font-size: 0.85em; opacity: 0.6; }

.custom-logo-link img { max-height: 56px; width: auto; }

/* Primary navigation */
.main-navigation { display: flex; align-items: center; }

.primary-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 4px;
    align-items: center;
}
.primary-menu > li > a {
    display: inline-block;
    padding: 10px 14px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--c-ink);
    letter-spacing: 0.01em;
    position: relative;
    border-radius: var(--radius);
    transition: color 0.2s ease;
}
.primary-menu > li > a::after {
    content: "";
    position: absolute;
    left: 14px; right: 14px;
    bottom: 4px;
    height: 1.5px;
    background: var(--c-clay);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s cubic-bezier(0.65,0,0.35,1);
}
.primary-menu > li > a:hover,
.primary-menu > li.current-menu-item > a {
    color: var(--c-clay);
}
.primary-menu > li > a:hover::after,
.primary-menu > li.current-menu-item > a::after {
    transform: scaleX(1);
}

/* Mobile toggle */
.menu-toggle {
    display: none;
    background: transparent;
    border: 0;
    padding: 12px;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    justify-content: center;
    align-items: center;
    width: 44px; height: 44px;
}
.menu-toggle__bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--c-ink);
    transition: transform 0.3s ease, opacity 0.2s ease;
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) {
    opacity: 0;
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── Hero ─────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
}

.hero__media {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero__video,
.hero__poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__placeholder {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(184,90,44,0.4), transparent 60%),
        radial-gradient(ellipse at 80% 70%, rgba(30,58,47,0.6), transparent 60%),
        linear-gradient(135deg, #2a2218, #1a1612);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: rgba(255,255,255,0.75);
    padding: 32px;
    font-size: 0.95rem;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.15) 35%, rgba(0,0,0,0.55) 100%);
    z-index: 2;
}

.hero__content {
    position: relative;
    z-index: 3;
    max-width: var(--container);
    width: 100%;
    margin: 0 auto;
    padding: calc(var(--header-h) + 40px) 32px 120px;
}

.hero__eyebrow {
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: rgba(255,255,255,0.85);
    margin-bottom: 28px;
    opacity: 0;
    animation: fadeUp 1s 0.2s ease forwards;
}

.hero__heading {
    font-family: var(--f-display);
    font-weight: 500;
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 0.95;
    letter-spacing: -0.035em;
    color: #fff;
    margin: 0 0 28px;
    max-width: 14ch;
    opacity: 0;
    animation: fadeUp 1.2s 0.4s ease forwards;
}

.hero__sub {
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
    line-height: 1.5;
    color: rgba(255,255,255,0.9);
    max-width: 52ch;
    margin: 0 0 40px;
    opacity: 0;
    animation: fadeUp 1.2s 0.65s ease forwards;
}

.hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 1.2s 0.9s ease forwards;
}

.hero__scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.85);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
}
.hero__scroll:hover { color: #fff; }
.hero__scroll-line {
    width: 1px;
    height: 56px;
    background: rgba(255,255,255,0.6);
    position: relative;
    overflow: hidden;
}
.hero__scroll-line::after {
    content: "";
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    animation: scrollPulse 2.2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%   { top: -100%; }
    50%  { top: 100%; }
    100% { top: 100%; }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Sections ─────────────────────────────────────────── */
.section {
    padding: 110px 0;
    position: relative;
}
.section + .section { padding-top: 0; }

.section-label {
    display: inline-block;
    font-family: var(--f-body);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    color: var(--c-clay);
    margin-bottom: 32px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--c-clay);
}

.display-heading {
    font-family: var(--f-display);
    font-weight: 500;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: -0.025em;
    margin: 0 0 0.4em;
    max-width: 22ch;
}
.display-heading em {
    color: var(--c-clay);
    font-style: italic;
    font-weight: 400;
}

.lede {
    font-size: 1.18rem;
    line-height: 1.6;
    color: var(--c-ink-soft);
    max-width: 60ch;
}

/* Intro section — asymmetric two-column */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    align-items: start;
}
.intro-grid__label { padding-top: 8px; }

/* ── Pillars (What We Do) ─────────────────────────────── */
.pillars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-top: 48px;
    border-top: 1px solid var(--c-line-strong);
    border-bottom: 1px solid var(--c-line-strong);
}
.pillars--count-1 { grid-template-columns: 1fr; }
.pillars--count-2 { grid-template-columns: repeat(2, 1fr); }
.pillars--count-3 { grid-template-columns: repeat(3, 1fr); }
.pillars--count-4 { grid-template-columns: repeat(4, 1fr); }
.pillar {
    display: block;
    padding: 48px 32px 40px;
    color: var(--c-ink);
    position: relative;
    border-right: 1px solid var(--c-line);
    transition: background 0.3s ease, transform 0.3s ease;
}
.pillar:last-child { border-right: 0; }
.pillar:hover {
    background: var(--c-paper);
    color: var(--c-ink);
}
.pillar__number {
    display: inline-block;
    font-family: var(--f-display);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--c-clay);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}
.pillar__title {
    font-size: 1.9rem;
    font-weight: 500;
    margin: 0 0 16px;
}
.pillar__text {
    color: var(--c-ink-soft);
    font-size: 0.98rem;
    margin: 0 0 24px;
}
.pillar__arrow {
    font-size: 1.4rem;
    color: var(--c-clay);
    transition: transform 0.3s ease;
    display: inline-block;
}
.pillar:hover .pillar__arrow { transform: translateX(6px); }

/* ── News grid ────────────────────────────────────────── */
.news-head {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 32px;
    margin-bottom: 56px;
}
.news-head > div .display-heading { margin: 0; }
.news-head__more {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--c-forest);
    letter-spacing: 0.02em;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
.news-card {
    background: transparent;
    transition: transform 0.3s ease;
}
.news-card:hover { transform: translateY(-4px); }
.news-card__media {
    display: block;
    overflow: hidden;
    border-radius: var(--radius);
    aspect-ratio: 4/3;
    margin-bottom: 20px;
}
.news-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.news-card:hover .news-card__media img { transform: scale(1.04); }

.news-card__date {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--c-ink-soft);
    display: block;
    margin-bottom: 8px;
}
.news-card__title {
    font-size: 1.4rem;
    font-weight: 500;
    margin: 0 0 10px;
    line-height: 1.2;
}
.news-card__title a { color: var(--c-ink); }
.news-card__title a:hover { color: var(--c-clay); }
.news-card__excerpt {
    color: var(--c-ink-soft);
    font-size: 0.95rem;
    margin: 0;
}

/* ── CTA section ──────────────────────────────────────── */
.section--cta { padding-bottom: 140px; }
.cta {
    background: var(--c-forest);
    color: var(--c-cream);
    padding: 80px 64px;
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
}
.cta::before {
    content: "&";
    position: absolute;
    right: -60px;
    bottom: -120px;
    font-family: var(--f-display);
    font-style: italic;
    font-size: 28rem;
    line-height: 1;
    color: rgba(255,255,255,0.06);
    pointer-events: none;
}
.cta__heading {
    color: var(--c-cream);
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin: 0 0 16px;
    position: relative;
}
.cta__text {
    color: rgba(247, 241, 230, 0.85);
    font-size: 1.1rem;
    max-width: 50ch;
    margin: 0 0 32px;
    position: relative;
}
.cta__buttons { position: relative; }
.cta__buttons .btn--outline {
    color: var(--c-cream);
    border-color: var(--c-cream);
}
.cta__buttons .btn--outline:hover {
    background: var(--c-cream);
    color: var(--c-forest);
}
.cta__buttons .btn--primary {
    background: var(--c-clay);
    border-color: var(--c-clay);
}
.cta__buttons .btn--primary:hover {
    background: var(--c-clay-dark);
    border-color: var(--c-clay-dark);
}

/* ── Page / Single posts ──────────────────────────────── */
.page-header {
    padding-top: calc(var(--header-h) + 40px);
    margin-bottom: 48px;
    text-align: center;
}
.page-title {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 500;
    margin: 0;
}
.single-header {
    padding-top: calc(var(--header-h) + 40px);
    margin-bottom: 40px;
    text-align: center;
}
.single-meta {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--c-ink-soft);
    margin-bottom: 16px;
}
.single-title {
    font-size: clamp(2rem, 4.5vw, 3.6rem);
    font-weight: 500;
    margin: 0;
    max-width: 22ch;
    margin: 0 auto;
}
.single-featured,
.page-featured {
    margin: 0 -32px 48px;
    border-radius: var(--radius);
    overflow: hidden;
}
.entry-content {
    font-size: 1.08rem;
    line-height: 1.75;
}
.entry-content h2 { font-size: 1.9rem; margin-top: 2em; }
.entry-content h3 { font-size: 1.4rem; margin-top: 1.6em; }
.entry-content p,
.entry-content ul,
.entry-content ol { margin-bottom: 1.2em; }
.entry-content blockquote {
    border-left: 3px solid var(--c-clay);
    padding: 12px 0 12px 24px;
    margin: 32px 0;
    font-family: var(--f-display);
    font-style: italic;
    font-size: 1.4rem;
    line-height: 1.4;
    color: var(--c-ink);
}
.entry-content img { border-radius: var(--radius); margin: 24px auto; }

.read-more {
    font-weight: 500;
    font-size: 0.95rem;
    border-bottom: 1px solid currentColor;
}

.post-list { display: flex; flex-direction: column; gap: 56px; }
.post-list__item {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    align-items: start;
}
.post-list__item:has(.post-list__media) .post-list__body { padding-top: 4px; }
.post-list__media {
    overflow: hidden;
    border-radius: var(--radius);
    aspect-ratio: 4/3;
}
.post-list__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.post-list__media:hover img { transform: scale(1.04); }
.post-list__date {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--c-ink-soft);
    display: block;
    margin-bottom: 8px;
}
.post-list__title { font-size: 1.7rem; margin: 0 0 12px; }
.post-list__title a { color: var(--c-ink); }
.post-list__title a:hover { color: var(--c-clay); }

.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-top: 64px;
    padding-top: 32px;
    border-top: 1px solid var(--c-line);
    font-family: var(--f-display);
    font-size: 1.05rem;
}

/* 404 */
.section--404 { padding-top: calc(var(--header-h) + 80px); }
.error-code {
    font-family: var(--f-display);
    font-style: italic;
    font-size: 8rem;
    line-height: 1;
    color: var(--c-clay);
    margin: 0 0 16px;
}

/* Search form */
.search-form {
    display: flex;
    gap: 8px;
    margin: 24px 0;
}
.search-field {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--c-line-strong);
    background: var(--c-paper);
    font-family: var(--f-body);
    font-size: 1rem;
    border-radius: var(--radius);
}
.search-field:focus {
    outline: none;
    border-color: var(--c-forest);
}
.search-submit {
    padding: 12px 24px;
    background: var(--c-forest);
    color: var(--c-cream);
    border: 0;
    border-radius: var(--radius);
    font-family: var(--f-body);
    font-weight: 600;
    cursor: pointer;
}

/* Pagination */
.nav-links {
    margin-top: 48px;
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}
.page-numbers {
    padding: 8px 14px;
    border: 1px solid var(--c-line-strong);
    border-radius: var(--radius);
    color: var(--c-ink);
    font-weight: 500;
}
.page-numbers.current,
.page-numbers:hover { background: var(--c-forest); color: var(--c-cream); border-color: var(--c-forest); }

/* ── Footer ───────────────────────────────────────────── */
.site-footer {
    background: var(--c-ink);
    color: rgba(247, 241, 230, 0.78);
    padding: 96px 0 32px;
    position: relative;
}
.site-footer::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--c-clay), transparent);
}

.site-footer__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 56px;
}

.footer-col p { font-size: 0.95rem; line-height: 1.65; }
.footer-col a { color: var(--c-cream); }
.footer-col a:hover { color: var(--c-clay); }

.footer-heading {
    font-family: var(--f-display);
    font-weight: 500;
    font-size: 1.2rem;
    color: var(--c-cream);
    margin: 0 0 18px;
}
.footer-heading--spaced { margin-top: 32px; }

.footer-subheading {
    font-family: var(--f-body);
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--c-clay);
    margin: 24px 0 8px;
}

.footer-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-list li {
    padding: 6px 0;
    border-bottom: 1px dashed rgba(247, 241, 230, 0.15);
}
.footer-list li:last-child { border-bottom: 0; }

.footer-link {
    display: inline-block;
    margin-top: 16px;
    font-weight: 500;
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
}

.footer-address {
    font-style: normal;
    font-size: 0.95rem;
    line-height: 1.6;
}
.footer-mission {
    font-family: var(--f-display);
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.5;
    color: rgba(247, 241, 230, 0.92);
}

/* Social icons — pure CSS, no images required */
.social-links {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    display: flex;
    gap: 14px;
}
.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(247, 241, 230, 0.25);
    transition: all 0.25s ease;
}
.social-links a:hover {
    background: var(--c-clay);
    border-color: var(--c-clay);
    transform: translateY(-2px);
}
.social-icon {
    width: 18px;
    height: 18px;
    background-color: var(--c-cream);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}
.social-icon--facebook  { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M22 12a10 10 0 1 0-11.56 9.88v-6.99H7.9V12h2.54V9.8c0-2.5 1.5-3.9 3.78-3.9 1.1 0 2.24.2 2.24.2v2.47h-1.26c-1.24 0-1.63.77-1.63 1.56V12h2.78l-.44 2.89h-2.34v6.99A10 10 0 0 0 22 12z'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M22 12a10 10 0 1 0-11.56 9.88v-6.99H7.9V12h2.54V9.8c0-2.5 1.5-3.9 3.78-3.9 1.1 0 2.24.2 2.24.2v2.47h-1.26c-1.24 0-1.63.77-1.63 1.56V12h2.78l-.44 2.89h-2.34v6.99A10 10 0 0 0 22 12z'/></svg>"); }
.social-icon--instagram { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 2.16c3.2 0 3.58.01 4.85.07 1.17.05 1.8.25 2.23.41.56.22.96.48 1.38.9.42.42.68.82.9 1.38.16.42.36 1.06.41 2.23.06 1.26.07 1.65.07 4.85s-.01 3.58-.07 4.85c-.05 1.17-.25 1.8-.41 2.23a3.7 3.7 0 0 1-.9 1.38c-.42.42-.82.68-1.38.9-.42.16-1.06.36-2.23.41-1.26.06-1.65.07-4.85.07s-3.58-.01-4.85-.07c-1.17-.05-1.8-.25-2.23-.41a3.7 3.7 0 0 1-1.38-.9 3.7 3.7 0 0 1-.9-1.38c-.16-.42-.36-1.06-.41-2.23C2.17 15.58 2.16 15.2 2.16 12s.01-3.58.07-4.85c.05-1.17.25-1.8.41-2.23.22-.56.48-.96.9-1.38.42-.42.82-.68 1.38-.9.42-.16 1.06-.36 2.23-.41C8.42 2.17 8.8 2.16 12 2.16zm0 1.8c-3.14 0-3.5.01-4.74.07-1.07.05-1.65.23-2.04.38-.51.2-.88.44-1.26.82-.38.38-.62.75-.82 1.26-.15.4-.33.97-.38 2.04-.06 1.24-.07 1.6-.07 4.74s.01 3.5.07 4.74c.05 1.07.23 1.65.38 2.04.2.51.44.88.82 1.26.38.38.75.62 1.26.82.4.15.97.33 2.04.38 1.24.06 1.6.07 4.74.07s3.5-.01 4.74-.07c1.07-.05 1.65-.23 2.04-.38.51-.2.88-.44 1.26-.82.38-.38.62-.75.82-1.26.15-.4.33-.97.38-2.04.06-1.24.07-1.6.07-4.74s-.01-3.5-.07-4.74c-.05-1.07-.23-1.65-.38-2.04a3.4 3.4 0 0 0-.82-1.26 3.4 3.4 0 0 0-1.26-.82c-.4-.15-.97-.33-2.04-.38-1.24-.06-1.6-.07-4.74-.07zm0 3.06a5 5 0 1 1 0 9.98 5 5 0 0 1 0-9.98zm0 8.24a3.24 3.24 0 1 0 0-6.48 3.24 3.24 0 0 0 0 6.48zm6.36-8.46a1.17 1.17 0 1 1-2.34 0 1.17 1.17 0 0 1 2.34 0z'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 2.16c3.2 0 3.58.01 4.85.07 1.17.05 1.8.25 2.23.41.56.22.96.48 1.38.9.42.42.68.82.9 1.38.16.42.36 1.06.41 2.23.06 1.26.07 1.65.07 4.85s-.01 3.58-.07 4.85c-.05 1.17-.25 1.8-.41 2.23a3.7 3.7 0 0 1-.9 1.38c-.42.42-.82.68-1.38.9-.42.16-1.06.36-2.23.41-1.26.06-1.65.07-4.85.07s-3.58-.01-4.85-.07c-1.17-.05-1.8-.25-2.23-.41a3.7 3.7 0 0 1-1.38-.9 3.7 3.7 0 0 1-.9-1.38c-.16-.42-.36-1.06-.41-2.23C2.17 15.58 2.16 15.2 2.16 12s.01-3.58.07-4.85c.05-1.17.25-1.8.41-2.23.22-.56.48-.96.9-1.38.42-.42.82-.68 1.38-.9.42-.16 1.06-.36 2.23-.41C8.42 2.17 8.8 2.16 12 2.16zm0 1.8c-3.14 0-3.5.01-4.74.07-1.07.05-1.65.23-2.04.38-.51.2-.88.44-1.26.82-.38.38-.62.75-.82 1.26-.15.4-.33.97-.38 2.04-.06 1.24-.07 1.6-.07 4.74s.01 3.5.07 4.74c.05 1.07.23 1.65.38 2.04.2.51.44.88.82 1.26.38.38.75.62 1.26.82.4.15.97.33 2.04.38 1.24.06 1.6.07 4.74.07s3.5-.01 4.74-.07c1.07-.05 1.65-.23 2.04-.38.51-.2.88-.44 1.26-.82.38-.38.62-.75.82-1.26.15-.4.33-.97.38-2.04.06-1.24.07-1.6.07-4.74s-.01-3.5-.07-4.74c-.05-1.07-.23-1.65-.38-2.04a3.4 3.4 0 0 0-.82-1.26 3.4 3.4 0 0 0-1.26-.82c-.4-.15-.97-.33-2.04-.38-1.24-.06-1.6-.07-4.74-.07zm0 3.06a5 5 0 1 1 0 9.98 5 5 0 0 1 0-9.98zm0 8.24a3.24 3.24 0 1 0 0-6.48 3.24 3.24 0 0 0 0 6.48zm6.36-8.46a1.17 1.17 0 1 1-2.34 0 1.17 1.17 0 0 1 2.34 0z'/></svg>"); }
.social-icon--tiktok    { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M19.6 6.3a5.7 5.7 0 0 1-4-1.5 5.7 5.7 0 0 1-1.7-3H10v12.6a2.9 2.9 0 1 1-2-2.8V8a6.3 6.3 0 1 0 5.5 6.2V9a8.4 8.4 0 0 0 4.7 1.5V6.3z'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M19.6 6.3a5.7 5.7 0 0 1-4-1.5 5.7 5.7 0 0 1-1.7-3H10v12.6a2.9 2.9 0 1 1-2-2.8V8a6.3 6.3 0 1 0 5.5 6.2V9a8.4 8.4 0 0 0 4.7 1.5V6.3z'/></svg>"); }
.social-icon--youtube   { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M23.5 7.2a3 3 0 0 0-2.1-2.1C19.5 4.5 12 4.5 12 4.5s-7.5 0-9.4.6A3 3 0 0 0 .5 7.2 31 31 0 0 0 0 12a31 31 0 0 0 .5 4.8 3 3 0 0 0 2.1 2.1c1.9.6 9.4.6 9.4.6s7.5 0 9.4-.6a3 3 0 0 0 2.1-2.1A31 31 0 0 0 24 12a31 31 0 0 0-.5-4.8zM9.6 15.6V8.4l6.3 3.6-6.3 3.6z'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M23.5 7.2a3 3 0 0 0-2.1-2.1C19.5 4.5 12 4.5 12 4.5s-7.5 0-9.4.6A3 3 0 0 0 .5 7.2 31 31 0 0 0 0 12a31 31 0 0 0 .5 4.8 3 3 0 0 0 2.1 2.1c1.9.6 9.4.6 9.4.6s7.5 0 9.4-.6a3 3 0 0 0 2.1-2.1A31 31 0 0 0 24 12a31 31 0 0 0-.5-4.8zM9.6 15.6V8.4l6.3 3.6-6.3 3.6z'/></svg>"); }
.social-icon--x         { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M18.9 2.25h3.3l-7.2 8.23L23.5 21.75h-6.65l-5.2-6.8-5.96 6.8H2.4l7.7-8.8L1.9 2.25h6.82l4.7 6.22 5.48-6.22zm-1.16 17.55h1.83L7.36 4.1H5.4l12.34 15.7z'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M18.9 2.25h3.3l-7.2 8.23L23.5 21.75h-6.65l-5.2-6.8-5.96 6.8H2.4l7.7-8.8L1.9 2.25h6.82l4.7 6.22 5.48-6.22zm-1.16 17.55h1.83L7.36 4.1H5.4l12.34 15.7z'/></svg>"); }

/* Footer memberships / affiliations */
.site-footer__memberships {
    max-width: var(--container);
    margin: 64px auto 0;
    padding: 32px 32px 0;
    border-top: 1px solid rgba(247, 241, 230, 0.12);
    text-align: center;
}
.memberships-heading {
    font-family: var(--f-body);
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    color: rgba(247, 241, 230, 0.55);
    margin: 0 0 20px;
}
.memberships-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px 56px;
}
.memberships-item img {
    max-height: 64px;
    width: auto;
    max-width: 200px;
    /* Dark footer + most chamber logos are dark — soften with subtle filter.
       If your logo is already light/white, override with .memberships-item--bright. */
    opacity: 0.85;
    filter: brightness(0) invert(1);
    transition: opacity 0.25s ease, filter 0.25s ease;
}
.memberships-item:hover img { opacity: 1; }
.memberships-item a { display: inline-block; }
.memberships-item--color img,
.memberships-item--bright img {
    filter: none;
    opacity: 1;
}

/* Footer bottom strip */
.site-footer__bottom {
    max-width: var(--container);
    margin: 56px auto 0;
    padding: 32px 32px 0;
    border-top: 1px solid rgba(247, 241, 230, 0.12);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: rgba(247, 241, 230, 0.55);
}
/* When memberships are shown directly above, no need for another big gap */
.site-footer__memberships + .site-footer__bottom {
    margin-top: 40px;
}
.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}
.footer-menu a {
    color: rgba(247, 241, 230, 0.7);
    font-size: 0.85rem;
}
.footer-menu a:hover { color: var(--c-clay); }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 1024px) {
    .pillars,
    .pillars--count-3,
    .pillars--count-4 { grid-template-columns: repeat(2, 1fr); }
    .pillars--count-1 { grid-template-columns: 1fr; }
    .pillar { border-right: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
    /* Reset all borders, then reapply for 2-col layout */
    .pillars--count-2 .pillar:nth-child(2n),
    .pillars--count-3 .pillar:nth-child(2n),
    .pillars--count-4 .pillar:nth-child(2n) { border-right: 0; }
    .pillars--count-2 .pillar:nth-last-child(-n+2),
    .pillars--count-4 .pillar:nth-last-child(-n+2) { border-bottom: 0; }
    .pillars--count-3 .pillar:last-child { border-bottom: 0; }

    .news-grid { grid-template-columns: 1fr 1fr; }
    .news-grid > :nth-child(3) { display: none; }

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

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

@media (max-width: 768px) {
    :root { --header-h: 72px; }

    .container,
    .site-header__inner,
    .site-footer__inner,
    .site-footer__bottom { padding-left: 24px; padding-right: 24px; }

    .menu-toggle { display: flex; }

    #primary-menu,
    .primary-menu {
        position: fixed;
        top: var(--header-h);
        left: 0; right: 0;
        background: var(--c-cream);
        flex-direction: column;
        padding: 24px;
        gap: 0;
        align-items: stretch;
        border-bottom: 1px solid var(--c-line);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.35s ease, opacity 0.3s ease;
        max-height: calc(100vh - var(--header-h));
        overflow-y: auto;
    }
    .main-navigation.is-open #primary-menu,
    .main-navigation.is-open .primary-menu {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .site-header[data-transparent="true"]:not(.is-scrolled) .menu-toggle__bar {
        background: #ffffff;
    }
    .main-navigation.is-open ~ * { /* placeholder, not used */ }
    .primary-menu li { width: 100%; }
    .primary-menu > li > a {
        display: block;
        font-size: 1.15rem;
        padding: 14px 0;
        font-family: var(--f-display);
        font-weight: 500;
        border-bottom: 1px solid var(--c-line);
        color: var(--c-ink) !important;
    }
    .primary-menu > li > a::after { display: none; }

    .section { padding: 72px 0; }
    .hero__content { padding: calc(var(--header-h) + 32px) 24px 100px; }

    .pillars { grid-template-columns: 1fr; }
    .pillar { border-right: 0 !important; border-bottom: 1px solid var(--c-line); }
    .pillar:last-child { border-bottom: 0; }

    .news-grid { grid-template-columns: 1fr; }
    .news-grid > :nth-child(2),
    .news-grid > :nth-child(3) { display: block; }

    .news-head { grid-template-columns: 1fr; }
    .news-head__more { justify-self: start; }

    .cta { padding: 56px 32px; }
    .cta::before { font-size: 16rem; right: -30px; bottom: -80px; }

    .post-list__item { grid-template-columns: 1fr; }
    .post-list__media { aspect-ratio: 16/9; }

    .site-footer__inner { grid-template-columns: 1fr; gap: 40px; }
    .site-footer__bottom { flex-direction: column; align-items: flex-start; }

    .btn + .btn { margin-left: 0; margin-top: 8px; }
    .hero__actions .btn,
    .cta__buttons .btn { width: 100%; max-width: 320px; }
}

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