/*
Theme Name:  Black Real Estate Agents USA
Theme URI:   https://blackrealestateagentusa.alestrastaging.com
Author:      Alestra
Author URI:  https://alestra.com
Description: Premium national real estate platform connecting homebuyers, sellers and investors with trusted Black real estate professionals across the United States.
Version:     1.0.0
Requires at least: 6.0
Tested up to:      6.5
Requires PHP:      8.0
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: brea-usa
Tags:        real-estate, custom-colors, custom-logo, full-width-template, custom-menu
*/

/* =========================================================
   GLOBAL RESET & BASE
========================================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--brea-font-body);
    font-size: var(--brea-font-size, 17px);
    color: var(--brea-charcoal);
    background-color: var(--brea-white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--brea-transition);
}

ul, ol {
    list-style: none;
}

button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

/* =========================================================
   CSS CUSTOM PROPERTIES (overridden by Customizer)
========================================================= */
:root {
    --brea-navy:     #0F2747;
    --brea-gold:     #D4A017;
    --brea-charcoal: #1C1C1C;
    --brea-ivory:    #F8F5EF;
    --brea-emerald:  #0F8A5F;
    --brea-white:    #FFFFFF;
    --brea-light-gray: #F0EDE6;
    --brea-mid-gray:   #888888;
    --brea-navy-light: #1a3a5c;

    --brea-font-heading: 'Montserrat', sans-serif;
    --brea-font-body:    'Inter', sans-serif;
    --brea-font-size:    17px;

    --brea-container:  1280px;
    --brea-gap:        32px;
    --brea-radius:     8px;
    --brea-radius-lg:  16px;
    --brea-transition: 0.3s ease;

    --brea-shadow-sm:  0 2px 8px rgba(15,39,71,0.08);
    --brea-shadow-md:  0 8px 30px rgba(15,39,71,0.12);
    --brea-shadow-lg:  0 20px 60px rgba(15,39,71,0.18);
}

/* =========================================================
   TYPOGRAPHY GLOBALS
========================================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--brea-font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--brea-navy);
}

p {
    line-height: 1.75;
    color: #444;
}

/* =========================================================
   GLOBAL LAYOUT UTILITIES
========================================================= */
.container {
    width: 100%;
    max-width: var(--brea-container);
    margin-inline: auto;
    padding-inline: 24px;
}

.container--narrow {
    max-width: 860px;
}

.container--mid {
    max-width: 1060px;
}

/* =========================================================
   GLOBAL BUTTON STYLES
========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--brea-font-heading);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.03em;
    padding: 14px 32px;
    border-radius: var(--brea-radius);
    transition: all var(--brea-transition);
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0);
    transition: background 0.2s ease;
}
.btn:hover::after {
    background: rgba(255,255,255,0.08);
}

.btn--gold {
    background-color: var(--brea-gold);
    color: var(--brea-navy);
    border-color: var(--brea-gold);
}
.btn--gold:hover {
    background-color: #c4911a;
    border-color: #c4911a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212,160,23,0.35);
}

.btn--navy {
    background-color: var(--brea-navy);
    color: var(--brea-white);
    border-color: var(--brea-navy);
}
.btn--navy:hover {
    background-color: var(--brea-navy-light);
    transform: translateY(-2px);
    box-shadow: var(--brea-shadow-md);
}

.btn--outline-white {
    background-color: transparent;
    color: var(--brea-white);
    border-color: rgba(255,255,255,0.6);
}
.btn--outline-white:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: var(--brea-white);
    transform: translateY(-2px);
}

.btn--outline-navy {
    background-color: transparent;
    color: var(--brea-navy);
    border-color: var(--brea-navy);
}
.btn--outline-navy:hover {
    background-color: var(--brea-navy);
    color: var(--brea-white);
    transform: translateY(-2px);
}

.btn--emerald {
    background-color: var(--brea-emerald);
    color: var(--brea-white);
    border-color: var(--brea-emerald);
}
.btn--emerald:hover {
    background-color: #0a7550;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15,138,95,0.35);
}

.btn--lg {
    font-size: 16px;
    padding: 17px 40px;
}

/* =========================================================
   SECTION LABEL / EYEBROW
========================================================= */
.eyebrow {
    display: block;
    font-family: var(--brea-font-heading);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brea-gold);
    margin-bottom: 14px;
}

.eyebrow--light {
    color: rgba(212,160,23,0.85);
}

/* =========================================================
   SECTION HEADING ACCENT
========================================================= */
.section-heading {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    color: var(--brea-navy);
    margin-bottom: 20px;
    line-height: 1.18;
}

.section-heading--white {
    color: var(--brea-white);
}

.section-heading--center {
    text-align: center;
}

.section-subtext {
    font-size: 17px;
    color: #555;
    max-width: 600px;
    line-height: 1.75;
}

.section-subtext--white {
    color: rgba(255,255,255,0.82);
}

.section-subtext--center {
    text-align: center;
    margin-inline: auto;
}

/* =========================================================
   GOLD UNDERLINE ACCENT
========================================================= */
.heading-accent {
    position: relative;
    display: inline-block;
}

.heading-accent::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 56px;
    height: 3px;
    background: var(--brea-gold);
    border-radius: 2px;
}

.heading-accent--center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* =========================================================
   FORM GLOBALS
========================================================= */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--brea-navy);
    margin-bottom: 7px;
    text-transform: uppercase;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid #ddd;
    border-radius: var(--brea-radius);
    background: var(--brea-white);
    color: var(--brea-charcoal);
    font-size: 15px;
    transition: border-color var(--brea-transition), box-shadow var(--brea-transition);
    appearance: none;
    -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--brea-gold);
    box-shadow: 0 0 0 3px rgba(212,160,23,0.15);
}

.form-select {
    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='%230F2747' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-note {
    font-size: 13px;
    color: var(--brea-mid-gray);
    margin-top: 12px;
    text-align: center;
}

.form-success {
    display: none;
    background: rgba(15,138,95,0.1);
    border: 1px solid var(--brea-emerald);
    color: #0a6b49;
    padding: 16px 20px;
    border-radius: var(--brea-radius);
    font-size: 15px;
    font-weight: 500;
    margin-top: 16px;
    text-align: center;
}

.form-error {
    display: none;
    background: rgba(220,38,38,0.08);
    border: 1px solid rgba(220,38,38,0.3);
    color: #dc2626;
    padding: 16px 20px;
    border-radius: var(--brea-radius);
    font-size: 15px;
    margin-top: 16px;
    text-align: center;
}

/* =========================================================
   SCROLL REVEAL ANIMATION
========================================================= */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* =========================================================
   WHATSAPP FLOATING BUTTON
========================================================= */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 58px;
    height: 58px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,0.45);
    z-index: 9999;
    transition: transform var(--brea-transition), box-shadow var(--brea-transition);
}

.whatsapp-float:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 8px 28px rgba(37,211,102,0.55);
}

.whatsapp-float svg {
    width: 30px;
    height: 30px;
}

/* =========================================================
   PAGE HERO BANNER (inner pages)
========================================================= */
.page-banner {
    background: linear-gradient(135deg, var(--brea-navy) 0%, #1a3d66 100%);
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-banner .eyebrow {
    display: block;
    margin-bottom: 12px;
}

.page-banner h1 {
    font-size: clamp(36px, 5vw, 56px);
    color: var(--brea-white);
    position: relative;
    z-index: 1;
}

.page-banner p {
    color: rgba(255,255,255,0.78);
    font-size: 18px;
    max-width: 620px;
    margin: 16px auto 0;
}

/* =========================================================
   RESPONSIVE HELPERS
========================================================= */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    .btn {
        padding: 13px 24px;
        font-size: 14px;
    }
    .btn--lg {
        padding: 14px 28px;
        font-size: 15px;
    }
    .section-heading {
        font-size: clamp(28px, 7vw, 36px);
    }
    .page-banner {
        padding: 80px 0 60px;
    }
}

@media (max-width: 480px) {
    .container {
        padding-inline: 16px;
    }
}

/* =========================================================
   WORDPRESS CORE ALIGNMENT CLASSES
========================================================= */
.alignleft  { float: left; margin-right: 1.5em; }
.alignright { float: right; margin-left: 1.5em; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: var(--brea-mid-gray); text-align: center; margin-top: 6px; }
.screen-reader-text { clip: rect(1px,1px,1px,1px); height: 1px; overflow: hidden; position: absolute; width: 1px; }
