/*
Theme Name: Collier 2026
Theme URI: https://thecolliercompanies.com
Author: Devlin Yorker
Version: 2026.1.0
License: GNU General Public License v2
Text Domain: collier2026
*/

/* ── Brand tokens ── */
:root {
    --tcc-gray:       #3F5465;
    --tcc-gold:       #97825A;
    --tcc-gold-light: #b09a70;
    --tcc-off-white:  #f7f6f4;
    --tcc-dark:       #1e1e1e;
    --tcc-text:       #333333;
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html  { scroll-behavior: smooth; }
body  { font-family: 'Inter', sans-serif; color: var(--tcc-text); margin: 0; padding: 0; }
img   { max-width: 100%; height: auto; display: block; }
a     { transition: color 0.2s; }

/* ── Oswald utility ── */
.font-oswald { font-family: 'Oswald', sans-serif; }
h1, h2, h3, h4 {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.1;
    margin: 0;
}

/* ── Container ── */
.site-container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 28px;
}

/* ── Section spacing ── */
.section-pad    { padding: 100px 0; }
.section-pad-sm { padding: 64px 0; }

/* ── Gold rule accent ── */
.gold-rule         { display: block; width: 56px; height: 3px; background: var(--tcc-gold); margin: 16px 0 24px; }
.gold-rule-center  { margin-left: auto; margin-right: auto; }

/* ── Section labels / titles ── */
.section-label {
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--tcc-gold);
    display: block;
    margin-bottom: 10px;
}
.section-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(30px, 3.5vw, 48px);
    text-transform: uppercase;
    color: var(--tcc-gray);
}
.section-title-light { color: #fff; }

/* ── Buttons ── */
.btn-gold {
    display: inline-block;
    background: var(--tcc-gold);
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 14px 38px;
    text-decoration: none;
    transition: background 0.2s;
}
.btn-gold:hover { background: var(--tcc-gold-light); color: #fff; text-decoration: none; }

.btn-outline-white {
    display: inline-block;
    border: 2px solid rgba(255,255,255,0.85);
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 12px 36px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.btn-outline-white:hover { background: #fff; color: var(--tcc-gray); text-decoration: none; }

.btn-outline-gold {
    display: inline-block;
    border: 2px solid var(--tcc-gold);
    color: var(--tcc-gold);
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 12px 36px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.btn-outline-gold:hover { background: var(--tcc-gold); color: #fff; text-decoration: none; }

/* ── Navigation ── */
#navbar {
    background: transparent;
    transition: background 0.35s ease, box-shadow 0.35s ease;
}
#navbar.scrolled {
    background: rgba(63, 84, 101, 0.97);
    box-shadow: 0 2px 24px rgba(0,0,0,0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Desktop nav links */
.nav-desktop a,
a.nav-desktop-link {
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    padding: 10px 16px;
    display: block;
    transition: color 0.2s;
    white-space: nowrap;
}
.nav-desktop a:hover,
.nav-desktop .current-menu-item > a,
.nav-desktop .current-page-ancestor > a { color: var(--tcc-gold); text-decoration: none; }

/* Dropdown */
.nav-desktop li { position: relative; list-style: none; }
.nav-desktop ul { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; gap: 2px; }
.nav-desktop .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 210px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    z-index: 100;
    padding: 8px 0;
}
.nav-desktop li:hover > .sub-menu { display: block; }
.nav-desktop .sub-menu a {
    color: var(--tcc-gray);
    font-size: 12px;
    padding: 10px 20px;
    border-bottom: none;
}
.nav-desktop .sub-menu a:hover { color: var(--tcc-gold); background: #fafafa; }

/* Mobile menu */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: var(--tcc-gray);
}
#mobile-menu.open { max-height: 100vh; overflow-y: auto; }
.nav-mobile { list-style: none; margin: 0; padding: 16px 0 24px; }
.nav-mobile li { list-style: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
.nav-mobile a {
    font-family: 'Oswald', sans-serif;
    font-size: 15px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    padding: 14px 28px;
    display: block;
    transition: color 0.2s;
}
.nav-mobile a:hover { color: var(--tcc-gold); text-decoration: none; }
.nav-mobile .sub-menu { background: rgba(0,0,0,0.15); }
.nav-mobile .sub-menu a { padding-left: 44px; font-size: 13px; color: rgba(255,255,255,0.7); }

/* Hamburger animation */
.menu-open .bar-1 { transform: translateY(8px) rotate(45deg); }
.menu-open .bar-2 { opacity: 0; }
.menu-open .bar-3 { transform: translateY(-8px) rotate(-45deg); }

/* ── Hero ── */
.hero-section {
    min-height: 100vh;
    background-color: var(--tcc-gray);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(26,32,42,0.62) 0%, rgba(63,84,101,0.48) 100%);
}
.hero-content { position: relative; z-index: 1; }
.hero-eyebrow {
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--tcc-off-white);
    display: block;
    margin-bottom: 20px;
}
.hero-headline {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(44px, 7vw, 88px);
    font-weight: 400;
    text-transform: uppercase;
    color: #fff;
    line-height: 1.0;
    letter-spacing: 0.02em;
}
.hero-sub {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
    max-width: 540px;
    font-weight: 300;
    margin-top: 20px;
}
/* ── Hero glass panel ── */
.hero-glass {
    display: inline-block;
    max-width: 860px;
    padding: 28px 40px 36px;
    background: rgba(8, 16, 24, 0.32);
    backdrop-filter: blur(12px) saturate(1.3);
    -webkit-backdrop-filter: blur(12px) saturate(1.3);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-top: 2px solid var(--tcc-gold);
}

@media (max-width: 640px) {
    .hero-glass { padding: 20px 22px 26px; }
}

.hero-scroll-cue {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.5);
    font-family: 'Oswald', sans-serif;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    animation: bounce 2.4s infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(6px); }
}

/* ── Stats bar ── */
.stats-bar { background: var(--tcc-gray); padding: 56px 0; }
.stat-number {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(42px, 5vw, 68px);
    font-weight: 300;
    color: var(--tcc-off-white);
    line-height: 1;
    display: block;
}
.stat-divider {
    font-family: 'Oswald', sans-serif;
    font-size: 60px;
    font-weight: 100;
    color: rgba(255,255,255,0.12);
    line-height: 1;
}
.stat-label {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #fff;
    margin-top: 8px;
    display: block;
}

/* ── Portfolio / Property cards ── */
.property-card {
    background: #fff;
    overflow: hidden;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}
.property-card:hover { transform: translateY(-4px); text-decoration: none; color: inherit; }
.property-card-img { height: 230px; background-size: cover; background-position: center; overflow: hidden; position: relative; }
.property-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.property-card:hover .property-card-img img { transform: scale(1.04); }
.property-card-body { padding: 20px 24px 26px; }
.property-card-city {
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--tcc-gold);
    margin-bottom: 6px;
    display: block;
}
.property-card-name {
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    text-transform: uppercase;
    color: var(--tcc-gray);
    line-height: 1.2;
}
.property-card-meta {
    font-size: 13px;
    color: #888;
    margin-top: 8px;
}

/* ── News cards ── */
.news-card { background: #fff; overflow: hidden; transition: transform 0.25s ease; }
.news-card:hover { transform: translateY(-4px); }
.news-card-img { height: 210px; background-size: cover; background-position: center; overflow: hidden; }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.news-card:hover .news-card-img img { transform: scale(1.04); }
.news-card-body { padding: 22px 24px 28px; }
.news-card-date {
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #aaa;
    margin-bottom: 10px;
    display: block;
}
.news-card-title {
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    text-transform: uppercase;
    color: var(--tcc-gray);
    line-height: 1.3;
    margin-bottom: 10px;
}
.news-card-title a { color: inherit; text-decoration: none; transition: color 0.2s; }
.news-card-title a:hover { color: var(--tcc-gold); }
.news-card-excerpt { font-size: 14px; color: #666; line-height: 1.7; }

/* ── Culture / split section ── */
.split-section { display: flex; min-height: 560px; }
.split-text { flex: 0 0 50%; display: flex; align-items: center; background: var(--tcc-off-white); }
.split-text-inner { padding: 80px 72px; max-width: 560px; }
.split-image { flex: 0 0 50%; background-size: cover; background-position: center; position: relative; overflow: hidden; }
.split-image img { width: 100%; height: 100%; object-fit: cover; }

/* ── Property carousel ── */
.prop-carousel-outer {
    overflow: hidden;
    width: 100%;
}
.prop-carousel-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 24px;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}
/* Width is set in JS — flex: none prevents the browser from overriding it */
.prop-carousel-slide {
    flex: none;
    min-width: 0;
}

/* Side arrows — sit in padding outside the card area */
.carousel-with-arrows {
    position: relative;
    padding: 0 56px;
}
.carousel-side-arrow {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    z-index: 3;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: var(--tcc-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s, color 0.2s;
}
.carousel-side-arrow:hover  { opacity: 1; color: var(--tcc-gold); }
.carousel-side-arrow:focus-visible { outline: 2px solid var(--tcc-gold); outline-offset: 2px; opacity: 1; }
.carousel-arrow:focus-visible { outline: 2px solid var(--tcc-gold); outline-offset: 2px; }
.carousel-side-arrow:disabled { opacity: 0.2; cursor: default; }
.carousel-side-prev { left: 0; }
.carousel-side-next { right: 0; }

@media (max-width: 640px) {
    .carousel-with-arrows { padding: 0 36px; }
}


/* Arrow buttons */
.carousel-arrow {
    width: 44px;
    height: 44px;
    border: 2px solid var(--tcc-gold);
    background: transparent;
    color: var(--tcc-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, opacity 0.2s;
    flex-shrink: 0;
}
.carousel-arrow:hover:not(:disabled) {
    background: var(--tcc-gold);
    color: #fff;
}
.carousel-arrow:disabled { cursor: default; }

/* Dots */
.prop-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}
.prop-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: #ccc;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}
.prop-carousel-dot.active {
    background: var(--tcc-gold);
    transform: scale(1.3);
}


/* ── News category filter ── */
.news-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.news-filter-pill {
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 6px 16px;
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.news-filter-pill:hover { border-color: var(--tcc-gold); color: var(--tcc-gold); text-decoration: none; }
.news-filter-pill.active { background: var(--tcc-gold); border-color: var(--tcc-gold); color: #fff; }
.news-filter-select {
    display: none;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 7px 12px;
    cursor: pointer;
}
.news-filter-select option { color: #333; background: #fff; }
@media (max-width: 640px) {
    .news-filter-pills { display: none; }
    .news-filter-select { display: block; }
}


/* ── Philanthropy cards ── */
.phil-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 36px 32px 32px;
    display: flex;
    flex-direction: column;
    transition: background 0.25s, border-color 0.25s;
}
.phil-card:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--tcc-gold);
}
.phil-card-logo {
    height: 60px;
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}
.phil-card-body { flex: 1; display: flex; flex-direction: column; }
.phil-card-title {
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    text-transform: uppercase;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 14px;
    letter-spacing: 0.03em;
}
.phil-card-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    line-height: 1.8;
    flex: 1;
    margin-bottom: 24px;
}
.phil-card-link {
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--tcc-gold);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s, gap 0.2s;
    margin-top: auto;
}
.phil-card-link:hover { color: var(--tcc-gold-light); gap: 8px; text-decoration: none; }


/* ── Newsletter bar ── */
.newsletter-bar { background: var(--tcc-gray); padding: 64px 0; }
.newsletter-input {
    flex: 1;
    border: none;
    border-bottom: 2px solid rgba(255,255,255,0.35);
    background: transparent;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    padding: 12px 4px;
    outline: none;
    transition: border-color 0.2s;
}
.newsletter-input::placeholder { color: rgba(255,255,255,0.45); }
.newsletter-input:focus { border-color: var(--tcc-gold); }

/* ── Footer ── */
.footer-main { background: #2b3a48; color: rgba(255,255,255,0.75); padding: 72px 0 48px; }
.footer-bottom { background: #1e2a34; color: rgba(255,255,255,0.4); padding: 20px 0; font-size: 13px; }
.footer-heading {
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--tcc-gold);
    margin-bottom: 20px;
    display: block;
}
.footer-link {
    color: rgba(255,255,255,0.65);
    font-size: 14px;
    display: block;
    padding: 5px 0;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-link:hover { color: #fff; text-decoration: none; }
.footer-social { display: flex; flex-direction: row; align-items: center; gap: 18px; }
.footer-social a {
    color: rgba(255,255,255,0.5);
    transition: color 0.2s;
    text-decoration: none;
    display: flex;
    align-items: center;
}
.footer-social a:hover { color: var(--tcc-gold); }

/* ── Interior page header ── */
.page-header {
    background: var(--tcc-gray);
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 160px 0 80px;
    color: #fff;
}
.page-header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(26,32,42,0.55), rgba(63,84,101,0.5));
}
.page-header-content { position: relative; z-index: 1; }

/* ── Blog / single ── */
.entry-content p { line-height: 1.85; margin-bottom: 1.4em; font-size: 17px; color: #444; }
.entry-content h2, .entry-content h3 { color: var(--tcc-gray); margin: 1.8em 0 0.6em; }
.entry-content ul, .entry-content ol { padding-left: 1.6em; margin-bottom: 1.4em; }
.entry-content li { line-height: 1.75; margin-bottom: 0.4em; }
.entry-content a { color: var(--tcc-gold); }
.entry-content a:hover { color: var(--tcc-gray); }
.entry-content blockquote {
    border-left: 4px solid var(--tcc-gold);
    margin: 2em 0;
    padding: 8px 24px;
    color: #555;
    font-style: italic;
}
.entry-content img { border-radius: 0; margin: 1.5em 0; }

/* ── Pagination ── */
.page-numbers {
    display: inline-block;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    letter-spacing: 0.08em;
    padding: 9px 16px;
    margin: 0 3px;
    background: #eee;
    color: #444;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.page-numbers:hover, .page-numbers.current { background: var(--tcc-gold); color: #fff; }
.page-numbers-nav { display: flex; justify-content: center; padding: 48px 0; }

/* ── WordPress standards ── */
.alignleft  { float: left;  margin: 5px 20px 20px 0; max-width: 100%; }
.alignright { float: right; margin: 5px 0 20px 20px; max-width: 100%; }
.aligncenter { display: block; margin: 5px auto; max-width: 100%; }
.screen-reader-text { clip: rect(1px,1px,1px,1px); position: absolute !important; height: 1px; width: 1px; overflow: hidden; }
/* Visually hidden new-tab indicator for screen readers */
.sr-new-tab { clip: rect(1px,1px,1px,1px); position: absolute !important; height: 1px; width: 1px; overflow: hidden; white-space: nowrap; }
.sticky { position: relative; }
.bypostauthor { position: relative; }
/* Post tag links */
.post-tag-link { font-size:12px; background:#f0f0f0; color:#555; padding:5px 12px; text-decoration:none; transition:background 0.2s, color 0.2s; }
.post-tag-link:hover, .post-tag-link:focus-visible { background:var(--tcc-gold); color:#fff; outline:2px solid var(--tcc-gold); outline-offset:2px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: #888; margin-top: 4px; }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .split-section { flex-direction: column; }
    .split-text  { flex: none; width: 100%; }
    .split-image { flex: none; width: 100%; min-height: 360px; }
    .split-text-inner { padding: 60px 40px; max-width: 100%; }
}

@media (max-width: 768px) {
    .section-pad    { padding: 68px 0; }
    .section-pad-sm { padding: 44px 0; }
    .site-container { padding: 0 20px; }
    .hero-section   { min-height: 88vh; }
    .split-text-inner { padding: 48px 24px; }
    .stats-bar { padding: 44px 0; }
}

@media (max-width: 480px) {
    .hero-headline { font-size: 40px; }
    .stat-number   { font-size: 40px; }
    .section-pad   { padding: 52px 0; }
}
