/* ============================
   Frontier Real Estate Data
   Brand Tokens & Components
   ============================ */

:root {
    --trail-olive: #5A5C28;
    --dry-grass: #8C8C50;
    --harvest-amber: #C48A30;
    --sienna: #8C4C30;
    --charred-oak: #28200C;
    --linen: #F5EDD8;
}

/* Base */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Lora', Georgia, serif;
}

/* Links */
a {
    transition: color 0.2s ease;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    background-color: var(--harvest-amber);
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary:hover {
    background-color: var(--sienna);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    background-color: transparent;
    color: var(--charred-oak);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 0.5rem;
    border: 2px solid var(--dry-grass);
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

.btn-secondary:hover {
    background-color: var(--dry-grass);
    color: white;
    border-color: var(--dry-grass);
}

/* Cards */
.card {
    background: white;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(140, 140, 80, 0.15);
    transition: all 0.2s ease;
}

.card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Form Inputs */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid rgba(140, 140, 80, 0.3);
    border-radius: 0.5rem;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.95rem;
    background-color: white;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--harvest-amber);
    box-shadow: 0 0 0 3px rgba(196, 138, 48, 0.15);
}

.form-input::placeholder {
    color: #9ca3af;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--charred-oak);
    margin-bottom: 0.375rem;
}

/* Textarea */
textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

/* Hero section */
.hero-gradient {
    background: linear-gradient(135deg, var(--charred-oak) 0%, #3d3012 50%, var(--trail-olive) 100%);
}

/* Section divider */
.section-divider {
    width: 60px;
    height: 3px;
    background-color: var(--harvest-amber);
    border-radius: 2px;
}

/* Coming soon badge */
.badge-coming-soon {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--harvest-amber);
    background-color: rgba(196, 138, 48, 0.1);
    border: 1px solid rgba(196, 138, 48, 0.2);
    border-radius: 9999px;
}

/* Price tag */
.price-tag {
    font-family: 'Lora', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--charred-oak);
}

.price-tag .currency {
    font-size: 1.5rem;
    vertical-align: super;
    margin-right: 0.1em;
}

/* Alert / info box */
.info-box {
    background-color: rgba(196, 138, 48, 0.08);
    border-left: 4px solid var(--harvest-amber);
    border-radius: 0 0.5rem 0.5rem 0;
    padding: 1rem 1.25rem;
}

/* Success state */
.success-box {
    background-color: rgba(90, 92, 40, 0.08);
    border-left: 4px solid var(--trail-olive);
    border-radius: 0 0.5rem 0.5rem 0;
    padding: 1rem 1.25rem;
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Blog article prose */
.blog-prose {
    color: #2b2b2b;
    font-size: 1.05rem;
    line-height: 1.75;
}

.blog-prose p {
    margin: 0 0 1.25em 0;
}

.blog-prose h2 {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--charred-oak);
    margin: 2em 0 0.75em;
    line-height: 1.3;
}

.blog-prose h3 {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--charred-oak);
    margin: 1.75em 0 0.5em;
    line-height: 1.3;
}

.blog-prose h4 {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--charred-oak);
    margin: 1.5em 0 0.4em;
}

.blog-prose ul,
.blog-prose ol {
    margin: 0 0 1.25em 1.5em;
    padding: 0;
}

.blog-prose ul { list-style: disc; }
.blog-prose ol { list-style: decimal; }

.blog-prose li {
    margin: 0.3em 0;
}

.blog-prose blockquote {
    border-left: 4px solid var(--harvest-amber);
    background-color: rgba(196, 138, 48, 0.06);
    padding: 0.85em 1.25em;
    margin: 1.5em 0;
    border-radius: 0 0.5rem 0.5rem 0;
    font-style: italic;
    color: #3d3d3d;
}

.blog-prose pre {
    background-color: var(--charred-oak);
    color: var(--linen);
    padding: 1.1em 1.25em;
    border-radius: 0.5rem;
    overflow-x: auto;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    font-size: 0.9em;
    line-height: 1.55;
    margin: 1.5em 0;
}

.blog-prose code {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    font-size: 0.9em;
}

.blog-prose img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.5em 0;
}

.blog-prose figure {
    margin: 1.75em 0;
}

.blog-prose figure img {
    margin: 0 0 0.5em 0;
}

.blog-prose figcaption {
    font-size: 0.85em;
    color: #6b6b6b;
    text-align: center;
}

.blog-prose hr {
    border: none;
    border-top: 1px solid rgba(140, 140, 80, 0.3);
    margin: 2.5em auto;
    max-width: 100px;
}

.blog-prose a {
    color: var(--harvest-amber);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.blog-prose a:hover {
    color: var(--sienna);
}

.blog-prose .callout {
    background-color: rgba(196, 138, 48, 0.08);
    border-left: 4px solid var(--harvest-amber);
    padding: 0.85em 1.25em;
    margin: 1.5em 0;
    border-radius: 0 0.5rem 0.5rem 0;
}

/* Smooth page transitions */
.fade-in {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
