/*
Theme Name: Devon Woods Kadence Child
Theme URI: https://greenvillespartanburgdevonwoods.realtor/
Description: Child theme for the Devon Woods Upstate South Carolina real estate website. Provides global design, page defaults, landing-page components, and post styling on top of Kadence.
Author: Devon Woods
Template: kadence
Version: 1.0.1
Text Domain: devon-kadence-child
*/

/* =========================================================
   Global design tokens
   ========================================================= */
:root {
    --dw-navy: #102a43;
    --dw-deep: #071a2b;
    --dw-blue: #1f4e79;
    --dw-gold: #c9973d;
    --dw-gold-dark: #9f7427;
    --dw-cream: #f7f4ee;
    --dw-mist: #eef3f7;
    --dw-white: #ffffff;
    --dw-ink: #17212b;
    --dw-muted: #52606d;
    --dw-border: #d9e2ec;
    --dw-success: #3f6b4f;
    --dw-shadow: 0 18px 45px rgba(7, 26, 43, 0.13);
    --dw-radius: 18px;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--dw-ink);
}

/* =========================================================
   Header and navigation
   ========================================================= */
.site-header {
    background: var(--dw-white);
    box-shadow: 0 1px 0 rgba(16, 42, 67, 0.10);
}

#masthead .site-header-row-container-inner > .site-container {
    max-width: 1480px !important;
    padding-left: 32px !important;
    padding-right: 32px !important;
}

#masthead .site-main-header-inner-wrap {
    align-items: center !important;
    column-gap: 36px !important;
}

#masthead .site-branding {
    max-width: none !important;
}

.site-branding .site-title,
.site-branding .site-title a {
    color: var(--dw-deep) !important;
    font-size: clamp(1rem, 1.35vw, 1.3rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

#masthead .site-header-main-section-right,
#masthead .site-header-section-right {
    min-width: 0 !important;
}

.main-navigation .primary-menu-container > ul {
    align-items: center;
    flex-wrap: nowrap;
    gap: clamp(10px, 1.2vw, 22px);
}

.main-navigation .primary-menu-container > ul > li > a {
    padding-left: 0 !important;
    padding-right: 0 !important;
    font-weight: 650;
    white-space: nowrap;
}

.main-navigation .primary-menu-container > ul > li > a:hover,
.main-navigation .primary-menu-container > ul > li.current-menu-item > a {
    color: var(--dw-gold-dark) !important;
}

.main-navigation .primary-menu-container > ul > li:last-child > a {
    padding: 10px 18px !important;
    border-radius: 999px;
    background: var(--dw-gold);
    color: #15202b !important;
}

/* =========================================================
   Default page design
   New pages receive this without per-page CSS.
   ========================================================= */
.page:not(.dw-custom-page) .entry-hero-container-inner {
    padding: clamp(52px, 7vw, 82px) 0;
    background:
        radial-gradient(circle at 82% 20%, rgba(201, 151, 61, 0.18), transparent 28%),
        linear-gradient(125deg, var(--dw-deep), var(--dw-navy));
}

.page:not(.dw-custom-page) .entry-hero-container-inner .entry-title {
    color: var(--dw-white) !important;
    font-size: clamp(2.3rem, 5vw, 4rem) !important;
    line-height: 1.06;
    letter-spacing: -0.035em;
}

.page:not(.dw-custom-page) .content-area {
    margin-top: clamp(42px, 6vw, 72px);
    margin-bottom: clamp(56px, 7vw, 92px);
}

.page:not(.dw-custom-page) .entry-content-wrap {
    width: min(920px, calc(100% - 32px));
    margin-inline: auto;
    padding: clamp(28px, 5vw, 62px);
    border: 1px solid var(--dw-border);
    border-radius: var(--dw-radius);
    background: var(--dw-white);
    box-shadow: 0 14px 38px rgba(16, 42, 67, 0.08);
}

.page:not(.dw-custom-page) .entry-content {
    font-size: 1.04rem;
    line-height: 1.82;
}

.page:not(.dw-custom-page) .entry-content h2 {
    margin-top: 2.15em;
    color: var(--dw-deep);
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    letter-spacing: -0.025em;
}

.page:not(.dw-custom-page) .entry-content h3 {
    color: var(--dw-navy);
}

.page:not(.dw-custom-page) .entry-content p,
.page:not(.dw-custom-page) .entry-content li {
    color: var(--dw-muted);
}

/* =========================================================
   Custom landing pages
   Pages containing .dw-page-layout receive dw-custom-page.
   ========================================================= */
body.dw-custom-page .entry-hero-container-inner,
body.dw-custom-page .entry-header,
body.dw-custom-page [class*="last-updated"] {
    display: none !important;
}

body.dw-custom-page .content-area,
body.dw-custom-page .site-main,
body.dw-custom-page .content-wrap {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
}

body.dw-custom-page .entry-content-wrap {
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.dw-custom-page .entry-content {
    margin: 0 !important;
}

.dw-page-layout > .alignfull,
.entry-content > .alignfull {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
}

.dw-shell {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.dw-section {
    padding: clamp(64px, 8vw, 104px) 0;
}

.dw-section--soft {
    background: var(--dw-cream);
}

.dw-section--mist {
    background: var(--dw-mist);
}

.dw-eyebrow {
    margin: 0 0 14px;
    color: var(--dw-gold-dark);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.dw-hero .dw-eyebrow,
.dw-panel .dw-eyebrow,
.dw-cta .dw-eyebrow,
.dw-page-hero .dw-eyebrow {
    color: #efc978;
}

.dw-display,
.dw-section-title {
    margin-top: 0;
    color: var(--dw-deep) !important;
    font-weight: 800 !important;
    letter-spacing: -0.035em;
    line-height: 1.06;
}

.dw-display {
    max-width: 900px;
    margin-bottom: 24px;
    font-size: clamp(2.55rem, 5.4vw, 4.75rem) !important;
}

.dw-section-title {
    margin-bottom: 18px;
    font-size: clamp(2rem, 4vw, 3.25rem) !important;
}

.dw-lead {
    max-width: 760px;
    margin: 0;
    color: var(--dw-muted);
    font-size: clamp(1.08rem, 1.8vw, 1.3rem);
    line-height: 1.75;
}

.dw-hero .dw-display,
.dw-panel h2,
.dw-panel h3,
.dw-cta h2 {
    color: var(--dw-white) !important;
}

.dw-hero .dw-lead,
.dw-panel p,
.dw-panel li,
.dw-cta p {
    color: rgba(255, 255, 255, 0.82);
}

.dw-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 610px;
    display: flex;
    align-items: center;
    padding: clamp(72px, 9vw, 116px) 0;
    background:
        radial-gradient(circle at 82% 18%, rgba(201, 151, 61, 0.26), transparent 28%),
        radial-gradient(circle at 18% 92%, rgba(31, 78, 121, 0.48), transparent 32%),
        linear-gradient(125deg, #071a2b 0%, #102a43 56%, #183f63 100%);
    color: var(--dw-white);
}

.dw-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: auto -8% -42% auto;
    width: min(720px, 68vw);
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 50%;
    box-shadow:
        0 0 0 70px rgba(255, 255, 255, 0.03),
        0 0 0 140px rgba(255, 255, 255, 0.02);
}

.dw-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.65fr);
    gap: clamp(42px, 6vw, 82px);
    align-items: center;
}

.dw-hero-card {
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--dw-radius);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.20);
    backdrop-filter: blur(12px);
}

.dw-hero-card h2 {
    margin: 0 0 12px;
    color: var(--dw-white) !important;
    font-size: 1.45rem !important;
}

.dw-hero-card p,
.dw-hero-card li {
    color: rgba(255, 255, 255, 0.80);
}

.dw-hero-card ul {
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.dw-hero-card li {
    position: relative;
    padding: 10px 0 10px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.dw-hero-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #efc978;
    font-weight: 800;
}

.dw-page-hero {
    padding: clamp(72px, 9vw, 116px) 0;
    background:
        radial-gradient(circle at 82% 18%, rgba(201, 151, 61, 0.22), transparent 28%),
        linear-gradient(125deg, var(--dw-deep), var(--dw-blue));
    color: var(--dw-white);
}

.dw-page-hero h1 {
    max-width: 980px;
    margin: 0 0 20px;
    color: var(--dw-white) !important;
    font-size: clamp(2.65rem, 5.5vw, 4.75rem) !important;
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.dw-page-hero p {
    max-width: 850px;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(1.05rem, 1.65vw, 1.25rem);
    line-height: 1.75;
}

.dw-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.dw-button,
.entry-content a.dw-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 13px 22px;
    border: 2px solid transparent;
    border-radius: 999px;
    text-decoration: none !important;
    font-weight: 800;
    line-height: 1.2;
    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        background 160ms ease,
        color 160ms ease;
}

.dw-button:hover,
.dw-button:focus-visible {
    transform: translateY(-2px);
}

.dw-button--gold {
    background: var(--dw-gold);
    color: #15202b !important;
    box-shadow: 0 10px 24px rgba(201, 151, 61, 0.24);
}

.dw-button--gold:hover,
.dw-button--gold:focus-visible {
    background: #ddb05a;
}

.dw-button--navy {
    background: var(--dw-navy);
    color: var(--dw-white) !important;
    box-shadow: 0 10px 24px rgba(16, 42, 67, 0.18);
}

.dw-button--outline {
    border-color: rgba(255, 255, 255, 0.56);
    color: var(--dw-white) !important;
    background: transparent;
}

.dw-button--outline:hover,
.dw-button--outline:focus-visible {
    border-color: var(--dw-white);
    background: rgba(255, 255, 255, 0.10);
}

.dw-button--light {
    border-color: var(--dw-border);
    color: var(--dw-navy) !important;
    background: var(--dw-white);
}

.dw-trust-strip {
    padding: 24px 0;
    border-bottom: 1px solid var(--dw-border);
    background: var(--dw-white);
}

.dw-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.dw-trust-item {
    padding: 4px 18px;
    border-left: 3px solid var(--dw-gold);
}

.dw-trust-item strong {
    display: block;
    color: var(--dw-deep);
    font-size: 0.98rem;
}

.dw-trust-item span {
    color: var(--dw-muted);
    font-size: 0.9rem;
}

.dw-grid-2,
.dw-grid-3,
.dw-grid-4 {
    display: grid;
    gap: 28px;
}

.dw-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dw-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dw-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dw-card {
    height: 100%;
    padding: 30px;
    border: 1px solid var(--dw-border);
    border-radius: var(--dw-radius);
    background: var(--dw-white);
    box-shadow: 0 12px 34px rgba(16, 42, 67, 0.07);
}

.dw-card--accent {
    border-top: 5px solid var(--dw-gold);
}

.dw-card h3 {
    margin: 0 0 12px;
    color: var(--dw-deep) !important;
    font-size: 1.35rem !important;
}

.dw-card p,
.dw-card li {
    color: var(--dw-muted);
    line-height: 1.7;
}

.dw-number {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 22px;
    border-radius: 50%;
    background: var(--dw-navy);
    color: var(--dw-white);
    font-weight: 800;
}

.dw-checklist {
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.dw-checklist li {
    position: relative;
    margin: 12px 0;
    padding-left: 30px;
}

.dw-checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--dw-success);
    font-weight: 900;
}

.dw-panel {
    padding: clamp(28px, 5vw, 48px);
    border-radius: var(--dw-radius);
    background: var(--dw-navy);
    color: var(--dw-white);
    box-shadow: var(--dw-shadow);
}

.dw-note {
    padding: 22px 24px;
    border-left: 5px solid var(--dw-gold);
    border-radius: 0 12px 12px 0;
    background: #fff8e8;
    color: var(--dw-ink);
}

.dw-area-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.dw-area-list li {
    padding: 9px 14px;
    border: 1px solid var(--dw-border);
    border-radius: 999px;
    background: var(--dw-white);
    color: var(--dw-navy);
    font-weight: 700;
}

.dw-link-list {
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--dw-border);
}

.dw-link-list li {
    margin: 0;
    border-bottom: 1px solid var(--dw-border);
}

.dw-link-list a {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
    color: var(--dw-navy) !important;
    text-decoration: none !important;
    font-weight: 750;
}

.dw-link-list a::after {
    content: "→";
    color: var(--dw-gold-dark);
}

.dw-kicker {
    color: var(--dw-muted);
    font-size: 0.92rem;
}

.dw-cta {
    position: relative;
    overflow: hidden;
    padding: clamp(42px, 6vw, 72px);
    border-radius: 26px;
    background: linear-gradient(125deg, var(--dw-deep), var(--dw-blue));
    color: var(--dw-white);
    box-shadow: var(--dw-shadow);
}

.dw-cta::after {
    content: "";
    position: absolute;
    right: -110px;
    bottom: -150px;
    width: 330px;
    height: 330px;
    border: 55px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.dw-cta > * {
    position: relative;
    z-index: 1;
}

.dw-cta h2 {
    margin: 0 0 14px;
    color: var(--dw-white) !important;
    font-size: clamp(2rem, 4vw, 3.25rem) !important;
}

/* =========================================================
   Blog-post design
   ========================================================= */
.single-post .entry-hero-container-inner {
    padding: clamp(52px, 7vw, 84px) 0;
    background: linear-gradient(125deg, var(--dw-deep), var(--dw-navy));
}

.single-post .entry-hero-container-inner .entry-title {
    max-width: 900px;
    color: var(--dw-white) !important;
    font-size: clamp(2.2rem, 4.8vw, 3.9rem) !important;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.single-post .entry-hero-container-inner .entry-meta,
.single-post .entry-hero-container-inner .entry-meta a {
    color: rgba(255, 255, 255, 0.74) !important;
}

.single-post .content-area {
    margin-top: clamp(42px, 6vw, 72px);
    margin-bottom: clamp(56px, 7vw, 92px);
}

.single-post .entry-content-wrap {
    width: min(920px, calc(100% - 32px));
    margin-inline: auto;
    padding: clamp(30px, 5vw, 64px);
    border: 1px solid var(--dw-border);
    border-radius: var(--dw-radius);
    background: var(--dw-white);
    box-shadow: 0 14px 38px rgba(16, 42, 67, 0.08);
}

.single-post .entry-content {
    font-size: 1.04rem;
    line-height: 1.82;
}

.single-post .entry-content h2 {
    margin-top: 2.1em;
    color: var(--dw-deep);
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    letter-spacing: -0.025em;
}

.single-post .entry-content h3 {
    color: var(--dw-navy);
}

.single-post .entry-content p,
.single-post .entry-content li {
    color: var(--dw-muted);
}

.single-post .ez-toc-container,
.single-post #ez-toc-container {
    width: 100%;
    margin: 0 0 34px;
    padding: 22px 24px;
    border: 1px solid var(--dw-border);
    border-radius: 14px;
    background: var(--dw-mist);
    box-shadow: none;
}

.single-post .entry-tags a {
    border-color: var(--dw-border);
    border-radius: 999px;
    color: var(--dw-navy);
}

.single-post .post-navigation {
    width: min(920px, calc(100% - 32px));
    margin-inline: auto;
}

.single-post .related-posts {
    background: var(--dw-mist);
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
    background: var(--dw-deep) !important;
    color: rgba(255, 255, 255, 0.78);
}

.site-footer a {
    color: #efc978 !important;
}

/* =========================================================
   Responsive behavior
   ========================================================= */
@media (max-width: 1100px) {
    .site-branding .site-title,
    .site-branding .site-title a {
        font-size: 1rem !important;
    }

    .main-navigation .primary-menu-container > ul {
        gap: 12px;
    }
}

@media (max-width: 980px) {
    .dw-hero-grid {
        grid-template-columns: 1fr;
    }

    .dw-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dw-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 720px) {
    #masthead .site-header-row-container-inner > .site-container {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    .site-branding .site-title,
    .site-branding .site-title a {
        white-space: normal;
    }

    .dw-shell {
        width: min(100% - 28px, 1180px);
    }

    .dw-section {
        padding: 58px 0;
    }

    .dw-hero {
        min-height: auto;
        padding: 72px 0;
    }

    .dw-grid-2,
    .dw-grid-3,
    .dw-grid-4,
    .dw-trust-grid {
        grid-template-columns: 1fr;
    }

    .dw-actions {
        align-items: stretch;
    }

    .dw-button,
    .entry-content a.dw-button {
        width: 100%;
    }

    .dw-card {
        padding: 24px;
    }

    .page:not(.dw-custom-page) .entry-content-wrap,
    .single-post .entry-content-wrap {
        width: min(100% - 24px, 920px);
        padding: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .dw-button {
        transition: none;
    }
}
