/*
Theme Name: SimpliCity
Theme URI: https://nesimplicity.com
Author: Wade Bartels
Author URI: https://nesimplicity.com
Description: Editorial real estate theme for SimpliCity Real Estate. Cormorant Garamond serif + DM Sans body. Built for AI-engine citeability and modern aesthetic appeal.
Version: 2.1.0
License: Proprietary
Text Domain: simplicity
*/

/* ============================================================================
   SIMPLICITY — EDITORIAL DESIGN SYSTEM
   ============================================================================
   Aesthetic: editorial. Magazine-style typography. Cormorant Garamond
   serif headlines with italic green emphasis. DM Sans body. Sharp edges,
   minimal shadows, generous whitespace, uppercase letter-spaced labels.

   Color tokens:
     --green       #76bb51   primary accent
     --green-dark  #5a9a3c   hover/active
     --black       #000000
     --gray        #adadad   secondary text
     --gray-light  #f5f5f5   alt section background
     --white       #ffffff

   Typography tokens:
     --font-serif  'Cormorant Garamond', Georgia, serif      (headings, nums)
     --font-sans   'DM Sans', system-ui, sans-serif          (body, labels)
   ============================================================================ */

:root {
    --green: #76bb51;
    --green-dark: #5a9a3c;
    --black: #000000;
    --white: #ffffff;
    --gray: #adadad;
    --gray-light: #f5f5f5;
    --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --accent: var(--green); /* injected per-site by simplicity_inject_accent_css */
}

/* ============================================================================
   RESET + BASE
   ============================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-sans);
    background: var(--white);
    color: var(--black);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s, opacity 0.2s; }
a:hover { color: var(--black); }

ul, ol { list-style-position: inside; }

/* All headings use the editorial serif by default */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.1;
    color: var(--black);
    letter-spacing: -0.005em;
}
h1 { font-size: clamp(2.5rem, 5.5vw, 4.5rem); margin-bottom: 1.25rem; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin-bottom: 0.75rem; }
h4 { font-size: 1.05rem; margin-bottom: 0.5rem; }

/* Italic em inside headings = green editorial accent (mirrors source.html) */
h1 em, h2 em, h3 em {
    font-style: italic;
    font-weight: 400;
    color: var(--accent);
}

p { margin: 0 0 1em 0; }

/* ============================================================================
   LAYOUT — CONTAINERS + SECTIONS
   ============================================================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5rem;
}
.container-narrow {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 5rem;
}
.section {
    padding: 7rem 0;
}
.section-tight { padding: 4rem 0; }
.section-alt {
    background: var(--gray-light);
}

/* Section header — eyebrow label + title pattern */
.section-head {
    margin-bottom: 4rem;
}
.section-head h2 { margin-bottom: 1rem; }
.section-head p {
    color: #555;
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.8;
    max-width: 640px;
    margin: 0 auto;
}
.section-head.text-center { text-align: center; }
.section-head.text-center p { margin: 0 auto; }

/* Editorial section label — small uppercase, letter-spaced, green */
.section-label,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}
.eyebrow::before {
    content: '';
    width: 32px;
    height: 2px;
    background: var(--accent);
    flex-shrink: 0;
}

/* Divider — small green bar used between section title and body */
.divider {
    width: 64px;
    height: 3px;
    background: var(--accent);
    margin: 2rem 0;
    border: 0;
}

/* ============================================================================
   HEADER + NAV — fixed, backdrop blur, underline-on-hover
   ============================================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 2px solid var(--black);
    transition: padding 0.3s ease;
}
.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 3rem;
    max-width: none;
    margin: 0;
}
/* Push body content below the fixed header */
body { padding-top: 70px; }

/* Brand lockup — serif name + green-accent City + uppercase agent below */
.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    line-height: 1;
    color: var(--black);
    text-decoration: none;
    flex-wrap: nowrap;
}
.site-brand:hover { text-decoration: none; opacity: 1; }
.site-brand .brand-mark {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--black);
    line-height: 1;
}
.site-brand .brand-accent {
    color: var(--accent);
    font-style: italic;
}
.site-brand .brand-sep {
    width: 1px;
    height: 16px;
    background: var(--gray);
    display: inline-block;
    margin: 0 0.25rem;
}
.site-brand .brand-agent {
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* Primary nav — uppercase letter-spaced links with underline reveal */
.site-nav {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}
.site-nav a {
    position: relative;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--black);
    text-decoration: none;
    transition: color 0.2s;
    padding: 0.25rem 0;
}
.site-nav a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.25s ease;
}
.site-nav a:hover { color: var(--accent); }
.site-nav a:hover::after { width: 100%; }

/* CTA pill in nav */
.site-nav .nav-cta {
    background: var(--black);
    color: var(--white);
    padding: 0.7rem 1.4rem;
    border-radius: 2px;
    letter-spacing: 0.16em;
}
.site-nav .nav-cta::after { display: none; }
.site-nav .nav-cta:hover {
    background: var(--accent);
    color: var(--white);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: 0;
    padding: 0.5rem;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--black);
}
@media (max-width: 900px) {
    .site-header-inner { padding: 1rem 1.75rem; }
    .site-nav { display: none; }
    .site-nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: var(--white);
        padding: 2rem 1.75rem;
        gap: 1.5rem;
        border-bottom: 2px solid var(--black);
        align-items: flex-start;
    }
    .nav-toggle { display: block; }
    body { padding-top: 64px; }
}

/* ============================================================================
   HERO — editorial, generous, eyebrow + serif headline + sub
   ============================================================================ */
.hero {
    padding: 8rem 0 6rem;
    background: var(--white);
}
.hero .container {
    /* allow narrower hero text column */
}
.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.75rem, 6.5vw, 5.5rem);
    font-weight: 600;
    line-height: 1.0;
    color: var(--black);
    margin-bottom: 1.75rem;
    letter-spacing: -0.005em;
}
.hero-headline em {
    font-style: italic;
    color: var(--accent);
    font-weight: 400;
}
.hero-subhead {
    font-family: var(--font-sans);
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    font-weight: 300;
    color: #555;
    max-width: 620px;
    line-height: 1.85;
    margin-bottom: 2.5rem;
}
.hero-subhead strong {
    color: var(--black);
    font-weight: 500;
}
/* Pre-hero eyebrow on subdomain pages */
.hero p.eyebrow {
    margin-bottom: 1.5rem;
}

/* ============================================================================
   BUTTONS — sharp edges (2px radius), uppercase, letter-spaced
   ============================================================================ */
.btn {
    display: inline-block;
    padding: 1.1rem 2.5rem;
    background: var(--black);
    color: var(--white) !important;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    border: 2px solid var(--black);
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    text-decoration: none;
    line-height: 1;
}
.btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white) !important;
    text-decoration: none;
}

.btn-secondary {
    background: var(--white);
    color: var(--black) !important;
    border-color: var(--black);
}
.btn-secondary:hover {
    background: var(--black);
    color: var(--white) !important;
    border-color: var(--black);
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

/* ============================================================================
   PROOF BAR — tight, dark, sub-line below hero
   ============================================================================ */
.proof-bar {
    background: var(--black);
    color: var(--white);
    padding: 1.25rem 0;
    text-align: center;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.proof-bar strong { color: var(--accent); font-weight: 600; }
.proof-bar .container { padding: 0 2rem; }

/* ============================================================================
   CARDS — agent cards, generic content cards, story cards
   ============================================================================ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2px;
}

.card {
    background: var(--white);
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease;
    border: 1px solid var(--gray-light);
}
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--accent);
    transition: height 0.4s ease;
}
.card:hover::before { height: 100%; }
.card:hover { background: #fafafa; }
.card h3 {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    color: var(--black);
}
.card p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.8;
    margin: 0;
}

/* Agent cards on root team landing — uppercase "name" eyebrow, serif title */
.agent-card {
    padding: 2.5rem 2rem;
    background: var(--white);
    border: 1px solid var(--gray-light);
    transition: background 0.3s, border-color 0.3s;
    position: relative;
    overflow: hidden;
}
.agent-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--accent);
    transition: height 0.4s ease;
}
.agent-card:hover::before { height: 100%; }
.agent-card:hover { background: #fafafa; border-color: #e5e5e5; }

/* ============================================================================
   METHOD STEPS — big serif numbers, editorial cards
   ============================================================================ */
.method-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
    margin-top: 2rem;
}
.method-step {
    position: relative;
    padding: 2.25rem 1.5rem;
    background: var(--white);
    border: 1px solid var(--gray-light);
    transition: background 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
}
.method-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--accent);
    transition: height 0.4s ease;
}
.method-step:hover::before { height: 100%; }
.method-step:hover { background: #fafafa; }
.method-step .method-num {
    font-family: var(--font-serif);
    font-size: 4rem;
    font-weight: 600;
    line-height: 1;
    color: rgba(0, 0, 0, 0.06);
    margin-bottom: 1rem;
    transition: color 0.3s;
    letter-spacing: -0.02em;
}
.method-step:hover .method-num { color: var(--accent); }
.method-step h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--black);
}
.method-step p {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0;
}
@media (max-width: 960px) { .method-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .method-steps { grid-template-columns: 1fr; } }

/* ============================================================================
   STORIES — editorial accent border on left, serif title
   ============================================================================ */
.story {
    padding: 2.5rem 2rem;
    background: var(--white);
    border-left: 3px solid var(--accent);
    margin-bottom: 1px;
    background-color: var(--gray-light);
}
.story-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--black);
}
.story-body {
    color: #444;
    line-height: 1.85;
    font-size: 0.95rem;
    margin: 0;
}

/* ============================================================================
   VALUE LIST — simple stack used inline on agent stub homepages
   ============================================================================ */
.value-list {
    margin-top: 2rem;
}
.value-item {
    padding: 1.75rem 0;
    border-bottom: 1px solid #e5e5e5;
}
.value-item:last-child { border-bottom: 0; }
.value-item h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.value-item p {
    color: #555;
    font-size: 1rem;
    line-height: 1.8;
    margin: 0;
}

/* ============================================================================
   VALUES GRID — root site core-values block, ported from source.html.
   Editorial numbered grid: big serif numbers fade to 6% opacity by default,
   pop to full green on hover. 5th card spans full row width.
   ============================================================================ */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    margin-top: 2rem;
}
.value-card {
    background: var(--white);
    padding: 2.75rem 2.25rem;
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease;
}
.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--accent);
    transition: height 0.4s ease;
}
.value-card:hover::before { height: 100%; }
.value-card:hover { background: #fafafa; }
.value-card:hover .value-num { color: var(--accent); }

.value-num {
    font-family: var(--font-serif);
    font-size: 4.5rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.06);
    line-height: 1;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
    transition: color 0.3s;
}
.value-name {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--black);
    margin-bottom: 0.75rem;
}
.value-desc {
    font-size: 0.95rem;
    font-weight: 300;
    color: #444;
    line-height: 1.85;
}

/* 5th card spans full row for the long-form value */
.value-card.span-full {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 2.5rem;
    padding: 2rem 2.5rem;
}
.value-card.span-full .value-num {
    margin-bottom: 0;
    font-size: 3.5rem;
    flex-shrink: 0;
}
.value-card.span-full .value-name {
    margin-bottom: 0.5rem;
}

@media (max-width: 900px) {
    .values-grid { grid-template-columns: 1fr; gap: 2px; }
    .value-card.span-full {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 2.75rem 2.25rem;
    }
    .value-card.span-full .value-num { margin-bottom: 1.25rem; }
}

/* ============================================================================
   FORMS — minimal, bottom-border-only inputs (editorial)
   ============================================================================ */
.contact-form {
    margin-top: 2rem;
}
.contact-form label {
    display: block;
    margin-bottom: 1.5rem;
}
.contact-form label > span {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 0.5rem;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #e0e0e0;
    padding: 0.7rem 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 400;
    color: var(--black);
    outline: none;
    transition: border-color 0.2s;
    border-radius: 0;
    appearance: none;
    -webkit-appearance: none;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
}
.contact-form select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23adadad' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    padding-right: 1.5rem;
}
.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}
.contact-form button[type="submit"] {
    margin-top: 1.5rem;
    width: 100%;
    background: var(--accent);
    color: var(--white);
    border: 0;
    padding: 1.1rem 2.5rem;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.25s ease;
    border-radius: 2px;
}
.contact-form button[type="submit"]:hover {
    background: var(--black);
}

/* ============================================================================
   FAQ — open layout, no accordion (better for SEO/AI)
   ============================================================================ */
.faq-item {
    padding: 2rem 0;
    border-bottom: 1px solid #e5e5e5;
}
.faq-item:last-child { border-bottom: 0; }
.faq-q {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--black);
}
.faq-a {
    color: #444;
    font-size: 1rem;
    line-height: 1.85;
    margin: 0;
}

/* ============================================================================
   SIGNATURE LINE — Wade's "That's where I come in." voice mark
   ============================================================================ */
.signature-line {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--accent);
    margin-top: 2rem;
}

/* ============================================================================
   ENTRY CONTENT — long-form blog/page body
   ============================================================================ */
.entry-content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #333;
}
.entry-content h2 {
    margin-top: 2.5em;
    margin-bottom: 0.5em;
    font-family: var(--font-serif);
    font-size: 2rem;
}
.entry-content h3 {
    margin-top: 1.8em;
    font-family: var(--font-serif);
    font-size: 1.5rem;
}
.entry-content p { margin-bottom: 1.2em; }
.entry-content ul, .entry-content ol { padding-left: 1.5em; margin-bottom: 1.2em; }
.entry-content ul li, .entry-content ol li { margin-bottom: 0.5em; }
.entry-content blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 1.5rem;
    color: #555;
    font-style: italic;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    margin: 2em 0;
}
.entry-content a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
.entry-content a:hover { color: var(--black); }
.entry-content strong { font-weight: 600; color: var(--black); }

/* ============================================================================
   FOOTER — white background, top black border, editorial
   ============================================================================ */
.site-footer {
    background: var(--white);
    color: var(--black);
    padding: 4rem 0 2.5rem;
    border-top: 2px solid var(--black);
    font-size: 0.9rem;
}
.site-footer .container {
    padding: 0 5rem;
}
.site-footer a {
    color: var(--accent);
}
.site-footer a:hover { color: var(--black); }
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-col h4 {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--accent);
    margin-bottom: 1.25rem;
}
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-col li {
    margin-bottom: 0.6rem;
}
.footer-col li a {
    color: var(--black);
    font-size: 0.92rem;
}
.footer-col li a:hover { color: var(--accent); }

/* Footer brand lockup — same pattern as site-brand but bigger */
.footer-brand-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.footer-brand {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--black);
    letter-spacing: 0.01em;
}
.footer-brand-accent {
    color: var(--accent);
    font-style: italic;
}
.footer-brand-sep {
    width: 1px;
    height: 16px;
    background: var(--gray);
    display: inline-block;
}
.footer-brand-agent {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.footer-bottom {
    border-top: 1px solid #e8e8e8;
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.7rem;
    color: var(--gray);
    letter-spacing: 0.06em;
}

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.muted { color: var(--gray); }

/* Highlight cite quote in muted small text used in cards */
.muted {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    color: var(--gray);
}

/* ============================================================================
   RESPONSIVE — tighten padding at smaller widths
   ============================================================================ */
@media (max-width: 1100px) {
    .container { padding: 0 3rem; }
    .container-narrow { padding: 0 3rem; }
    .site-footer .container { padding: 0 3rem; }
}
@media (max-width: 720px) {
    .container { padding: 0 1.5rem; }
    .container-narrow { padding: 0 1.5rem; }
    .site-footer .container { padding: 0 1.5rem; }
    .section { padding: 4.5rem 0; }
    .hero { padding: 5rem 0 3rem; }
    .footer-grid { gap: 2rem; }
}
