/*
Theme Name: Susan Clark 2026 Theme
Theme URI: https://www.susclark.com/
Author: Sean R.
Description: Susan Clark WordPress theme.
Version: 1.4.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
Text Domain: susan-clark-realtor
Tags: blog, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, right-sidebar, one-column, two-columns
*/

:root {
    --cream: #f7f1e7;
    --cream-light: #fffaf4;
    --sand: #e7dccb;
    --taupe: #b7a186;
    --espresso: #3b2a20;
    --cocoa: #6e5644;
    --navy: #1f3448;
    --blue: #466f8f;
    --blue-soft: #dce8ee;
    --gold: #c8a668;
    --gold-deep: #a98542;
    --white: #ffffff;
    --text: #302922;
    --muted: #75695f;
    --max-width: 1180px;
    --radius-lg: 22px;
    --radius-md: 18px;
    --shadow-soft: 0 12px 34px rgba(59, 42, 32, 0.08);
    --shadow-hover: 0 18px 48px rgba(31, 52, 72, 0.13);
    --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --sans: 'Inter', Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(200, 166, 104, 0.18), transparent 28rem),
        radial-gradient(circle at 85% 5%, rgba(70, 111, 143, 0.12), transparent 30rem),
        linear-gradient(180deg, var(--cream-light) 0%, var(--cream) 48%, #fbf7f0 100%);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.68;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.site-title {
    font-family: var(--serif);
    font-weight: 700;
    line-height: 1.1;
    color: var(--espresso);
}

a { color: var(--blue); text-decoration: none; }
a:hover, a:focus { color: var(--gold-deep); text-decoration: underline; }
img { max-width: 100%; height: auto; }

.screen-reader-text,
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus {
    left: 20px;
    top: 20px;
    z-index: 9999;
    background: var(--navy);
    color: var(--white);
    padding: 10px 14px;
    border-radius: 999px;
}

.header-inner,
.site-main,
.footer-inner { width: min(var(--max-width), calc(100% - 42px)); margin: 0 auto; }

.site-header {
    position: relative;
    z-index: 1000;
    background: rgba(255, 250, 244, 0.86);
    border-bottom: 1px solid rgba(200, 166, 104, 0.34);
    box-shadow: 0 10px 35px rgba(59, 42, 32, 0.06);
    backdrop-filter: blur(16px);
}

.site-header::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, var(--navy), var(--blue), var(--gold), var(--taupe));
}

.header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 330px);
    gap: 26px;
    align-items: center;
    padding: 18px 0 14px;
}

.site-branding { max-width: 760px; }
.site-title {
    margin: 0;
    font-size: clamp(26px, 3.2vw, 42px);
    letter-spacing: -0.025em;
}
.site-title a { color: inherit; }
.site-title a:hover { text-decoration: none; color: var(--navy); }
.site-description {
    margin: 8px 0 0;
    color: var(--cocoa);
    font-family: var(--serif);
    font-size: clamp(15px, 1.5vw, 19px);
    font-style: italic;
}
.site-description::before {
    content: '';
    display: inline-block;
    width: 34px;
    height: 1px;
    margin-right: 10px;
    vertical-align: middle;
    background: var(--gold);
}
.custom-logo-link img { max-height: 110px; width: auto; }

.header-search .search-form {
    padding: 6px;
    background: var(--white);
    border: 1px solid rgba(200, 166, 104, 0.32);
    border-radius: 999px;
    box-shadow: 0 12px 30px rgba(59, 42, 32, 0.07);
}
.header-search .search-field { border: 0; border-radius: 999px; background: transparent; padding-left: 14px; }
.header-search input[type='submit'] { padding: 10px 17px; }

.main-navigation {
    position: sticky;
    top: 0;
    z-index: 1100;
    overflow: visible;
    padding: 0 20px 12px;
    background: linear-gradient(180deg, rgba(255,250,244,0.94), rgba(255,250,244,0));
}

.menu-wrap {
    width: min(var(--max-width), 100%);
    margin: 0 auto;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(200, 166, 104, 0.22);
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(59, 42, 32, 0.06);
    backdrop-filter: blur(18px);
    overflow: visible;
}

.primary-menu,
.primary-menu ul { margin: 0; padding: 0; list-style: none; }
.primary-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.primary-menu li { position: relative; }
.primary-menu a {
    position: relative;
    display: block;
    padding: 13px 10px 12px;
    color: var(--navy);
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.075em;
    border-radius: 12px;
    transition: color 170ms ease, background 170ms ease, transform 170ms ease;
}
.primary-menu a::after {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 7px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--blue));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 170ms ease;
}
.primary-menu a:hover,
.primary-menu a:focus,
.primary-menu .current-menu-item > a,
.primary-menu .current-menu-ancestor > a {
    color: var(--espresso);
    background: rgba(247, 241, 231, 0.52);
    text-decoration: none;
    transform: translateY(-1px);
}
.primary-menu a:hover::after,
.primary-menu a:focus::after,
.primary-menu .current-menu-item > a::after,
.primary-menu .current-menu-ancestor > a::after { transform: scaleX(1); }

.primary-menu ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 270px;
    padding: 10px;
    background: rgba(255, 250, 244, 0.98);
    border: 1px solid rgba(200, 166, 104, 0.34);
    border-radius: 18px;
    box-shadow: 0 16px 42px rgba(31, 52, 72, 0.14);
    z-index: 9999;
    backdrop-filter: blur(18px);
}
.primary-menu ul::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 32px;
    width: 14px;
    height: 14px;
    background: rgba(255, 250, 244, 0.98);
    border-left: 1px solid rgba(200, 166, 104, 0.34);
    border-top: 1px solid rgba(200, 166, 104, 0.34);
    transform: rotate(45deg);
}
.primary-menu li:hover > ul,
.primary-menu li:focus-within > ul,
.primary-menu ul:hover { display: block; }
.primary-menu ul a {
    padding: 11px 14px;
    color: var(--espresso);
    text-transform: none;
    letter-spacing: 0.01em;
    font-size: 15px;
    font-weight: 650;
    border-radius: 14px;
}
.primary-menu ul a::after { display: none; }
.primary-menu ul a:hover,
.primary-menu ul a:focus {
    background: linear-gradient(135deg, rgba(220,232,238,0.8), rgba(247,241,231,0.95));
    color: var(--navy);
}

.home-intro {
    position: relative;
    z-index: 1;
    padding: 34px 0 4px;
}
.home-intro-card {
    width: min(var(--max-width), calc(100% - 42px));
    margin: 0 auto;
    padding: 24px 28px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(200, 166, 104, 0.24);
    border-radius: 20px;
    box-shadow: 0 10px 28px rgba(59, 42, 32, 0.06);
}
.home-kicker {
    margin: 0 0 5px;
    color: var(--gold-deep);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.home-intro h1 {
    margin: 0;
    color: var(--espresso);
    font-size: clamp(28px, 3.4vw, 46px);
    letter-spacing: -0.025em;
}
.home-intro p {
    margin: 8px 0 0;
    max-width: 780px;
    color: var(--cocoa);
    font-family: var(--serif);
    font-size: clamp(17px, 1.7vw, 22px);
    font-style: italic;
}

.site-main {
    position: relative;
    z-index: 1;
    padding: 34px 0 50px;
}
.content-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 32px;
    align-items: start;
}

.post-card,
.page-card,
.sidebar-widget,
.comment-body {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(200, 166, 104, 0.27);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(10px);
}
.post-card,
.page-card {
    position: relative;
    overflow: hidden;
    padding: clamp(22px, 3.2vw, 34px);
    margin-bottom: 28px;
}
.post-card::before,
.page-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, var(--gold), var(--blue), var(--sand));
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); transition: 180ms ease; }
.post-card > a:first-child img,
.single .post-card > img {
    display: block;
    width: 100%;
    margin: -18px 0 28px;
    border-radius: 20px;
    box-shadow: 0 18px 42px rgba(59,42,32,0.14);
}
.post-card.sticky { border-top: 5px solid var(--gold); }

.entry-title,
.page-title {
    margin: 0 0 14px;
    font-size: clamp(26px, 3.2vw, 40px);
    letter-spacing: -0.025em;
}
.entry-title a { color: inherit; }
.entry-title a:hover { color: var(--navy); text-decoration: none; }
.entry-title::after,
.page-title::after {
    content: '';
    display: block;
    width: 68px;
    height: 2px;
    margin-top: 12px;
    background: var(--gold);
}
.entry-meta,
.entry-footer {
    color: var(--muted);
    font-family: var(--sans);
    font-size: 14px;
    letter-spacing: 0.03em;
}
.entry-content { margin-top: 22px; }
.entry-content h2,
.entry-content h3,
.entry-content h4 { color: var(--navy); letter-spacing: -0.015em; }
.entry-content blockquote {
    margin: 30px 0;
    padding: 18px 28px;
    background: linear-gradient(135deg, var(--cream), rgba(220,232,238,0.55));
    border-left: 4px solid var(--gold);
    border-radius: 0 18px 18px 0;
    font-family: var(--serif);
    font-size: 1.15em;
    font-style: italic;
    color: var(--espresso);
}

.read-more,
.button,
.wp-block-button__link,
input[type='submit'],
button {
    display: inline-block;
    background: linear-gradient(135deg, var(--navy), var(--blue));
    color: var(--white);
    border: 0;
    border-radius: 999px;
    padding: 13px 24px;
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.055em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 14px 32px rgba(31,52,72,0.22);
    transition: transform 170ms ease, box-shadow 170ms ease, background 170ms ease;
}
.read-more:hover,
.button:hover,
.wp-block-button__link:hover,
input[type='submit']:hover,
button:hover {
    background: linear-gradient(135deg, var(--gold), var(--gold-deep));
    color: var(--espresso);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(168,133,66,0.24);
}

.sidebar-widget {
    position: relative;
    padding: 22px;
    margin-bottom: 22px;
    border-radius: 24px;
}
.sidebar-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 26px;
    right: 26px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), transparent);
}
.sidebar-widget h2,
.sidebar-widget h3 { margin-top: 0; font-size: 25px; }
.sidebar-widget ul { padding-left: 18px; }

.search-form { display: flex; gap: 8px; align-items: center; }
.search-field,
input[type='text'],
input[type='email'],
input[type='url'],
textarea {
    width: 100%;
    border: 1px solid rgba(110, 86, 68, 0.26);
    border-radius: 14px;
    padding: 12px 13px;
    background: var(--white);
    color: var(--text);
}
textarea { min-height: 170px; }
.search-field:focus,
input[type='text']:focus,
input[type='email']:focus,
input[type='url']:focus,
textarea:focus {
    outline: 0;
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(200,166,104,0.16);
}

.video-grid,
.city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}
.city-card,
.video-embed {
    background: linear-gradient(180deg, var(--white), var(--cream-light));
    border: 1px solid rgba(200,166,104,0.32);
    border-radius: 22px;
    padding: 22px;
    box-shadow: var(--shadow-soft);
}
.city-card h2,
.city-card h3 { margin-top: 0; color: var(--navy); }
.video-embed iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 16px; }

.comment-list { list-style: none; padding-left: 0; }
.comment-body { padding: 22px; margin-bottom: 22px; }
.comment-metadata,
.comment-author { font-family: var(--sans); font-size: 14px; }
.comment-form label { display: block; font-weight: 700; margin-bottom: 5px; }
.pagination,
.nav-links { display: flex; flex-wrap: wrap; gap: 12px; font-family: var(--sans); }
.nav-links a,
.nav-links span { padding: 9px 13px; border-radius: 999px; background: rgba(255,255,255,0.8); border: 1px solid rgba(200,166,104,0.25); }

.site-footer {
    background:
        linear-gradient(135deg, rgba(31,52,72,0.98), rgba(59,42,32,0.96)),
        var(--navy);
    color: var(--cream);
    padding: 54px 0;
    border-top: 4px solid var(--gold);
}
.site-footer a { color: var(--gold); }
.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
}

.footer-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    display: inline-block;
}

.site-footer p {
    margin: 0;
    text-align: center;
    font-size: 15px;
}

.footer-menu a { color: var(--cream); }
.footer-menu a:hover,
.footer-menu a:focus {
    color: var(--cream);
    text-decoration: none;
}

/* Force footer links to never show hover underline */
.site-footer a,
.site-footer a:hover,
.site-footer a:focus,
.site-footer a:active,
.site-footer a:visited {
    color: var(--cream) !important;
    text-decoration: none !important;
}

.alignwide { max-width: 100%; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

@media (max-width: 920px) {
    .header-inner,
    .footer-inner,
    .content-layout { display: block; }
    .header-inner { text-align: center; }
    .site-description::before { display: none; }
    .header-search { max-width: 420px; margin: 22px auto 0; }
    .main-navigation { position: relative; padding: 0 20px 16px; }
    .menu-wrap { border-radius: 26px; padding: 10px; }
    .primary-menu { display: grid; gap: 4px; }
    .primary-menu a { padding: 12px 14px; }
    .primary-menu a::after { display: none; }
    .primary-menu ul {
        position: static;
        display: block;
        min-width: 0;
        margin: 6px 0 4px 16px;
        box-shadow: none;
        background: rgba(247,241,231,0.70);
        border-radius: 18px;
    }
    .primary-menu ul::before { display: none; }
    .site-sidebar { margin-top: 34px; }
    .home-intro { padding-top: 22px; }
}