/*
Theme Name: Signature Property Group
Author: Forcefield Web Development
Author URI: https://forcefieldnc.com
Version: 1.0
Description: Custom theme for Signature Property Group, Inc.
*/

/* ── Tokens ── */
:root {
    --ink:        #212934;
    --ink-soft:   #3a434f;
    --accent:     #6796bf;
    --accent-dk:  #4f7ea6;
    --green:      #65bc7b;
    --muted:      #6b727b;
    --line:       #e3e6ea;
    --bg-soft:    #f6f7f9;
    --white:      #fff;
    --header-h:   96px;
    --header-h-sm: 68px;
}

/* ── Fonts ── */
@font-face {
    font-family: 'Work Sans';
    src: url('fonts/work-sans.woff2') format('woff2');
    font-weight: 300 800;
    font-style: normal;
    font-display: optional;
}
@font-face {
    font-family: 'Raleway';
    src: url('fonts/raleway.woff2') format('woff2');
    font-weight: 500 800;
    font-style: normal;
    font-display: optional;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; }

/* ── Base ── */
html {
    overscroll-behavior-y: none;
    background: var(--ink);
    scroll-behavior: smooth;
}

body {
    font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink-soft);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Raleway', 'Work Sans', sans-serif;
    line-height: 1.15;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.2rem; }

p + p { margin-top: 1em; }
a { text-decoration: none; }

/* ── Container ── */
.ff-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Buttons ── */
.ff-btn {
    display: inline-block;
    padding: 15px 34px;
    font-family: 'Raleway', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
}
.ff-btn-primary        { background: var(--accent); color: var(--white); border-color: var(--accent); }
.ff-btn-primary:hover  { background: var(--accent-dk); border-color: var(--accent-dk); }
.ff-btn-outline        { background: transparent; border-color: currentColor; color: var(--white); }
.ff-btn-outline:hover  { background: var(--white); color: var(--ink); border-color: var(--white); }

/* ── Skip link ── */
.ff-skip-link {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute; height: 1px; width: 1px; overflow: hidden;
}
.ff-skip-link:focus {
    clip: auto; height: auto; width: auto;
    position: fixed; top: 10px; left: 10px; z-index: 100000;
    padding: 15px 23px; background: var(--white); color: var(--ink);
    font-size: 14px; font-weight: 600; box-shadow: 0 0 2px 2px rgba(0,0,0,.6);
}
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute; height: 1px; width: 1px; overflow: hidden;
}

/* =====================================================
   HEADER
   ===================================================== */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 1px 0 var(--line);
    transition: box-shadow .25s;
}
.header-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 28px;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: height .25s ease;
}
.site-header.is-scrolled .header-container { height: var(--header-h-sm); }
.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(33,41,52,.08); }

.logo-wrap { display: block; }
.site-logo {
    width: auto;
    height: 44px;
    transition: height .25s ease;
}
.site-header.is-scrolled .site-logo { height: 34px; }

.nav-right { display: flex; align-items: center; align-self: stretch; gap: 34px; }
#site-navigation { display: flex; align-items: stretch; align-self: stretch; }
.main-nav {
    display: flex;
    align-items: stretch;
    align-self: stretch;
    gap: 30px;
}
.main-nav > li { position: relative; display: flex; align-items: center; }

/* Top accent tick, pinned to the header ceiling: shown on hover and the current page */
.main-nav > li::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--accent);
    opacity: 0;
    transition: opacity .2s ease;
}
.main-nav > li:hover::before,
.main-nav > .current-menu-item::before,
.main-nav > .current-menu-ancestor::before { opacity: 1; }
.main-nav a {
    font-family: 'Raleway', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: rgb(76, 76, 76);
    letter-spacing: 0.01em;
    position: relative;
    padding: 6px 0;
    transition: color .2s;
}
.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current-menu-ancestor > a { color: var(--accent); }

/* Dropdown submenus (desktop) */
.main-nav .menu-item-has-children { position: relative; }
.main-nav .menu-item-has-children > a { padding-right: 15px; }
.main-nav .menu-item-has-children > a::before {
    content: '';
    position: absolute;
    right: 0; top: 50%;
    width: 6px; height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-75%) rotate(45deg);
    transition: transform .2s;
}
.main-nav .menu-item-has-children:hover > a::before,
.main-nav .menu-item-has-children:focus-within > a::before {
    transform: translateY(-25%) rotate(225deg);
}
.main-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: -18px;
    min-width: 220px;
    background: var(--white);
    border-top: 3px solid var(--accent);
    box-shadow: 0 12px 30px rgba(33,41,52,.14);
    padding: 6px 0;
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    z-index: 10;
}
.main-nav .menu-item-has-children:hover > .sub-menu,
.main-nav .menu-item-has-children:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.main-nav .sub-menu li { display: block; }
.main-nav .sub-menu a {
    display: block;
    padding: 9px 22px;
    white-space: nowrap;
    font-weight: 500;
}
.main-nav .sub-menu a::after { display: none; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px; height: 44px;
    padding: 10px;
    background: none; border: none; cursor: pointer;
}
.hamburger span {
    display: block; height: 2px; width: 100%;
    background: var(--ink);
    transition: transform .3s, opacity .2s;
}
.hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-drawer {
    position: fixed;
    top: 0; right: 0;
    width: min(80vw, 340px);
    height: 100vh;
    background: var(--white);
    z-index: 1100;
    padding: 90px 32px 32px;
    transform: translateX(100%);
    visibility: hidden;
    /* Visibility flips instantly on open and only after the slide-out on close, so the
       drawer is focusable the moment it opens but still animates away when it closes. */
    transition: transform .3s ease, visibility 0s linear .3s;
    overflow-y: auto;
}
.mobile-drawer.is-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform .3s ease, visibility 0s linear 0s;
}
.drawer-close {
    position: absolute; top: 22px; right: 24px;
    width: 40px; height: 40px;
    background: none; border: none; font-size: 24px;
    color: var(--ink); cursor: pointer;
}
.drawer-nav { display: flex; flex-direction: column; gap: 4px; }
.drawer-nav a {
    display: block;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: rgb(76, 76, 76);
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}
.drawer-nav a:hover,
.drawer-nav .current-menu-item > a { color: var(--accent); }
.drawer-nav .sub-menu a {
    padding-left: 18px;
    font-size: 0.98rem;
    font-weight: 500;
    color: var(--ink-soft);
}
.drawer-overlay {
    position: fixed; inset: 0;
    background: rgba(33,41,52,.5);
    z-index: 1050;
    opacity: 0; visibility: hidden;
    transition: opacity .3s, visibility .3s;
}
.drawer-overlay.is-open { opacity: 1; visibility: visible; }

/* =====================================================
   HERO
   ===================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 560px;
}
.hero-slider,
.hero .splide__track,
.hero .splide__list,
.hero .splide__slide { height: 100%; }
.hero .splide__slide img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, rgba(33,41,52,.62) 0%, rgba(33,41,52,.25) 55%, rgba(33,41,52,.1) 100%);
    z-index: 5;
    pointer-events: none;
}
.hero-overlay .ff-container { pointer-events: auto; }
.hero-overlay h1 {
    color: var(--white);
    max-width: 16ch;
    margin-bottom: 28px;
    text-shadow: 0 2px 20px rgba(0,0,0,.25);
}
.hero .splide__pagination {
    bottom: 26px;
    z-index: 6;
}
.hero .splide__pagination__page {
    background: rgba(255,255,255,.5);
    width: 10px; height: 10px;
    opacity: 1;
    transition: background .2s, transform .2s;
}
.hero .splide__pagination__page.is-active {
    background: var(--white);
    transform: scale(1.3);
}

/* =====================================================
   INTRO
   ===================================================== */
.intro {
    padding: clamp(64px, 9vw, 120px) 0;
    text-align: center;
}
.intro-lead {
    max-width: 820px;
    margin: 0 auto;
    font-size: clamp(1.15rem, 2vw, 1.5rem);
    line-height: 1.6;
    color: var(--ink-soft);
}

/* =====================================================
   SECTIONS
   ===================================================== */
.section-title {
    text-align: center;
    margin-bottom: 12px;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px; height: 3px;
    background: var(--accent);
    margin: 18px auto 0;
}
.section-empty {
    text-align: center;
    color: var(--muted);
    margin-top: 24px;
}

/* Communities grid */
.communities {
    padding: clamp(56px, 8vw, 100px) 0;
    background: var(--bg-soft);
}
.property-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}
.property-card {
    background: var(--white);
    box-shadow: 0 2px 14px rgba(33,41,52,.06);
    transition: transform .25s, box-shadow .25s;
    display: flex;
    flex-direction: column;
}
.property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(33,41,52,.12);
}
.property-card__media {
    display: block;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}
.property-card__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.property-card:hover .property-card__media img { transform: scale(1.05); }
.property-card__body { padding: 26px 26px 30px; }
.property-card__body h3 { margin-bottom: 6px; }
.property-card__addr {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 16px;
}
.property-card__link {
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--accent);
}
.property-card__link:hover { color: var(--accent-dk); }

/* Map band */
.map-band { padding: clamp(56px, 8vw, 100px) 0 0; }
.map-band .section-title { margin-bottom: 44px; }
.ff-map {
    height: 520px;
    width: 100%;
    background: var(--bg-soft);
}
.leaflet-container { font-family: inherit; }

/* Story CTA */
.story-cta {
    position: relative;
    padding: clamp(64px, 9vw, 120px) 0;
    background: var(--ink) url(images/our-story.webp) center / cover no-repeat;
    color: var(--white);
    text-align: center;
}
/* Ink wash keeps the white heading and outline button legible over the photo. */
.story-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(33, 41, 52, .62);
}
.story-cta .ff-container { position: relative; }
.story-cta h2 { color: var(--white); }
.story-cta p {
    max-width: 540px;
    margin: 16px auto 32px;
    color: rgba(255,255,255,.82);
    font-size: 1.15rem;
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer { background: var(--bg-soft); }
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding-top: 48px;
    padding-bottom: 48px;
    flex-wrap: wrap;
}
.footer-menu { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-menu a {
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ink);
}
.footer-menu a:hover { color: var(--accent); }
.footer-bottom {
    border-top: 1px solid var(--line);
    padding: 20px 0;
}
.footer-bottom p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--muted);
    text-align: center;
}

/* =====================================================
   PAGE / SINGLE
   ===================================================== */
.page-wrap {
    padding: calc(var(--header-h) + 60px) 0 80px;
}
.page-wrap h1 { margin-bottom: 24px; }

/* Open content field — prose defaults for standard pages */
.entry-content { font-size: 1.05rem; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2 { margin-top: 1.8em; font-size: 1.6rem; }
.entry-content h3 { margin-top: 1.6em; font-size: 1.3rem; }
.entry-content ul, .entry-content ol { margin-left: 1.4em; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li + li { margin-top: .4em; }
.entry-content a { color: var(--accent-dk); text-decoration: underline; }
.entry-content a:hover { color: var(--ink); }
.entry-content img { margin: 1.5em 0; }
/* WP image alignment classes — override the img{display:block} reset so
   inline/aligned images can sit side by side within a paragraph. */
.entry-content .alignleft {
    float: left;
    margin: .3em 1.5em .8em 0;
}
.entry-content .alignright {
    float: right;
    margin: .3em 0 .8em 1.5em;
}
.entry-content .aligncenter {
    display: block;
    margin: 1.5em auto;
}
.entry-content .alignnone {
    display: inline-block;
    vertical-align: bottom;
    margin: .3em 0;
}
.entry-content p::after { content: ""; display: table; clear: both; }
.entry-content blockquote {
    margin: 1.5em 0;
    padding: 6px 0 6px 22px;
    border-left: 3px solid var(--accent);
    color: var(--ink);
}

/* =====================================================
   PROPERTY SINGLE / ARCHIVE
   ===================================================== */
/* =====================================================
   PAGE BANNER — blue title bar under the header
   ===================================================== */
/* Blue page bg so the shrinking-header strip above the banner never
   flashes the black html/overscroll color mid-scroll. #main stays white
   so the blue only shows in that top strip, not behind the content. */
body.has-page-banner { background: var(--accent); }
body.has-page-banner #main { background: var(--white); }

.page-banner {
    margin-top: var(--header-h);
    background: var(--accent);
    padding: 34px 0;
}
.page-banner h1 {
    color: var(--white);
    font-size: 1.85rem;
    font-weight: 600;
    margin: 0;
}
.page-banner__addr {
    color: rgba(255,255,255,.85);
    font-size: 1rem;
    margin-top: 6px;
}
.page-banner__phone { margin-top: 4px; font-size: 1rem; }
.page-banner__phone a { color: var(--white); text-decoration: none; }
.page-banner__phone a:hover { text-decoration: underline; }
.breadcrumbs {
    font-size: 0.8rem;
    color: rgba(255,255,255,.7);
    margin-bottom: 10px;
}
.breadcrumbs a { color: rgba(255,255,255,.85); text-decoration: none; }
.breadcrumbs a:hover { color: var(--white); }
.breadcrumbs .breadcrumb_last { color: var(--white); }
/* Banner clears the fixed header, so the content below only needs breathing room. */
.has-page-banner .page-wrap { padding-top: 60px; }

.property-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.property-detail { max-width: 520px; }
.property-intro {
    font-size: 1.1rem;
    line-height: 1.7;
}
.property-cta { margin: 28px 0 0; }
.property-gallery {
    margin: 0;
    background: var(--bg-soft);
}
.property-gallery .splide__slide img,
.property-gallery--single img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}
.property-gallery--single img { display: block; }
.property-gallery .splide__arrow {
    background: var(--white);
    opacity: .92;
}
.property-gallery .splide__arrow svg { fill: var(--ink); }
.property-gallery .splide__pagination__page.is-active { background: var(--accent); }
.property-map { margin-top: 60px; }

.property-card__title { font-size: 1.4rem; margin-bottom: 6px; }
/* Map sits directly under the banner; grid follows below it. */
body.has-page-banner .page-wrap.property-archive { padding-top: 30px; }
.city-intro {
    max-width: 760px;
    font-size: 1.1rem;
    line-height: 1.7;
    margin: clamp(40px, 6vw, 70px) 0 0;
}
.city-intro + .property-grid { margin-top: 40px; }
.property-related { margin-top: clamp(56px, 8vw, 90px); }
.property-related__all { margin: 36px 0 0; text-align: center; }
.property-related__all .ff-btn-outline { color: var(--accent-dk); border-color: var(--accent); }
.property-related__all .ff-btn-outline:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }
.city-list { padding: 36px 0 clamp(56px, 8vw, 100px); }
.city-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 12px;
}
.city-list a {
    display: inline-block;
    padding: 8px 18px;
    border: 1px solid var(--accent);
    border-radius: 999px;
    color: var(--accent-dk);
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: background .2s, color .2s;
}
.city-list a:hover { background: var(--accent); color: var(--white); }
.property-archive .map-band { padding: 0; }
.property-archive .property-grid { margin-top: clamp(40px, 6vw, 70px); }

/* Our People archive */
.people-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 30px;
}
.person-card { text-align: center; }
.person-card__link { display: block; color: inherit; text-decoration: none; }
.person-card__media {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--bg-soft);
    border-radius: 5px;
    max-width: 220px;
    margin: 0 auto;
}
.person-card__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.person-card__link:hover .person-card__media img { transform: scale(1.04); }
.person-card__name {
    font-size: 1.25rem;
    margin: 18px 0 4px;
    transition: color .2s;
}
.person-card__link:hover .person-card__name { color: var(--accent); }
.person-card__title {
    color: var(--muted);
    font-size: 0.95rem;
    margin: 0;
}

/* Our People single */
.page-banner__back {
    display: inline-block;
    margin-bottom: 10px;
    color: rgba(255,255,255,.85);
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
}
.page-banner__back:hover { color: var(--white); }
.person-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 50px;
    align-items: start;
}
.person-photo {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--bg-soft);
    border-radius: 5px;
}
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person-detail__title {
    color: var(--accent);
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin: 0 0 22px;
}
.person-detail__bio { line-height: 1.7; }
.person-detail__bio p { margin: 0 0 1em; }
.person-detail__bio p:last-child { margin-bottom: 0; }

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

@media (max-width: 768px) {
    :root { --header-h: 72px; --header-h-sm: 62px; }
    .main-nav, .nav-divider { display: none; }
    .hamburger { display: flex; }
    .hero-overlay {
        background: linear-gradient(180deg, rgba(33,41,52,.35) 0%, rgba(33,41,52,.55) 100%);
        text-align: center;
        justify-content: center;
    }
    .hero-overlay h1 { max-width: 100%; margin-left: auto; margin-right: auto; }
    .property-grid { grid-template-columns: 1fr; gap: 24px; }
    .people-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 24px; }
    .property-layout { grid-template-columns: 1fr; gap: 30px; }
    .person-layout { grid-template-columns: 1fr; gap: 28px; }
    .person-photo { max-width: 260px; }
    .property-detail { max-width: 100%; }
    .footer-inner { flex-direction: column; text-align: center; }
    .ff-map { height: 400px; }
}

@media (max-width: 480px) {
    body { font-size: 16px; }
    .ff-container { padding: 0 18px; }
    .header-container { padding: 0 18px; }
}
