/* ============================================
   United Consultants - Custom Theme CSS
   ============================================ */

:root {
    --ink: #1a1814;
    --paper: #f4f1ea;
    --paper-dim: #e8e3d8;
    --stone: #8a8275;
    --stone-light: #b5ac9c;
    --brass: #9c7c4a;
    --brass-bright: #bb9456;
    --charcoal: #26241f;
    --line: rgba(26, 24, 20, 0.14);
    --display: 'Fraunces', Georgia, serif;
    --body: 'Archivo', -apple-system, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.6;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ========== LAYOUT ========== */

.wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 640px) {
    .wrap {
        padding: 0 22px;
    }
}

main.main-content {
    padding: 80px 0;
}

/* ========== HEADER / NAV ========== */

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
    padding: 26px 0;
}

header.solid {
    background: rgba(244, 241, 234, 0.92);
    backdrop-filter: blur(12px);
    padding: 16px 0;
    box-shadow: 0 1px 0 var(--line);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    font-family: var(--display);
    font-size: 26px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--paper);
    transition: color 0.4s ease;
}

.brand-logo {
    display: inline-block;
    max-height: 50px;
}

.brand-logo img {
    height: auto;
}

header.solid .brand {
    color: var(--ink);
}

.brand span {
    color: var(--brass-bright);
}

.links {
    display: flex;
    gap: 38px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.links li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.links a {
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(244, 241, 234, 0.8);
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
    display: inline-block;
}

header.solid .links a {
    color: var(--stone);
}

.links a:hover {
    color: var(--brass-bright);
}

header.solid .links a:hover {
    color: var(--ink);
}

.links a.cta {
    border: 1px solid rgba(244, 241, 234, 0.4);
    padding: 10px 22px;
    color: var(--paper);
}

header.solid .links a.cta {
    border-color: var(--brass);
    color: var(--brass);
}

.links a.cta:hover {
    background: var(--brass);
    color: var(--paper);
    border-color: var(--brass);
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.burger span {
    width: 26px;
    height: 1.5px;
    background: var(--paper);
    transition: 0.3s;
}

header.solid .burger span {
    background: var(--ink);
}

@media (max-width: 860px) {
    .links {
        position: fixed;
        inset: 0;
        background: var(--charcoal);
        flex-direction: column;
        justify-content: center;
        gap: 34px;
        transform: translateX(100%);
        transition: transform 0.4s ease;
        padding: 0 40px;
        list-style: none !important;
    }

    .links.open {
        transform: translateX(0);
    }

    .links li {
        list-style: none !important;
    }

    .links a,
    header.solid .links a {
        color: var(--paper);
        font-size: 16px;
    }

    .burger {
        display: flex;
        z-index: 101;
    }
}

/* ========== HERO ========== */

.hero {
    position: relative;
    height: 100vh;
    min-height: 640px;
    display: flex;
    align-items: flex-end;
    color: var(--paper);
    overflow: hidden;
}

.hero-img {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 18, 14, 0.6) 0%, rgba(20, 18, 14, 0.15) 40%, rgba(20, 18, 14, 0.75) 100%);
}

.hero-content {
    padding-bottom: 8vh;
}

.eyebrow {
    font-size: 13px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--brass-bright);
    margin-bottom: 26px;
    display: flex;
    align-items: center;
    gap: 16px;
    opacity: 0;
    animation: rise 1s ease 0.3s forwards;
}

.eyebrow::before {
    content: '';
    width: 42px;
    height: 1px;
    background: var(--brass-bright);
}

.hero h1 {
    font-family: var(--display);
    font-weight: 300;
    font-size: clamp(42px, 7vw, 92px);
    line-height: 1.02;
    letter-spacing: -0.01em;
    max-width: 14ch;
    opacity: 0;
    animation: rise 1.1s ease 0.5s forwards;
}

.hero h1 em {
    font-style: italic;
    color: var(--brass-bright);
}

.hero-sub {
    margin-top: 28px;
    font-size: 18px;
    max-width: 46ch;
    color: rgba(244, 241, 234, 0.82);
    font-weight: 300;
    opacity: 0;
    animation: rise 1.1s ease 0.7s forwards;
}

.hero-actions {
    margin-top: 40px;
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    opacity: 0;
    animation: rise 1.1s ease 0.9s forwards;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-hint {
    position: absolute;
    right: 40px;
    bottom: 8vh;
    z-index: 2;
    writing-mode: vertical-rl;
    font-size: 11px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(244, 241, 234, 0.7);
    display: flex;
    align-items: center;
    gap: 14px;
    opacity: 0;
    animation: rise 1.1s ease 1.1s forwards;
}

.scroll-hint::after {
    content: '';
    width: 1px;
    height: 54px;
    background: rgba(244, 241, 234, 0.4);
    animation: pulse 2s ease infinite;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

@media (max-width: 860px) {
    .scroll-hint {
        display: none;
    }
}

/* ========== BUTTONS ========== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 17px 34px;
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 500;
    transition: 0.35s ease;
    cursor: pointer;
    border: none;
    font-family: var(--body);
}

.btn-primary {
    background: var(--brass);
    color: var(--paper);
}

.btn-primary:hover {
    background: var(--brass-bright);
    transform: translateY(-2px);
}

.btn-ghost {
    border: 1px solid rgba(244, 241, 234, 0.5);
    color: var(--paper);
    background: transparent;
}

.btn-ghost:hover {
    background: var(--paper);
    color: var(--ink);
    border-color: var(--paper);
}

.btn-dark {
    background: var(--charcoal);
    color: var(--paper);
}

.btn-dark:hover {
    background: var(--brass);
    transform: translateY(-2px);
}

/* ========== INTRO / STATS ========== */

.intro {
    padding: 120px 0 100px;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 90px;
    align-items: center;
}

@media (max-width: 860px) {
    .intro-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

.section-label {
    font-size: 12px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--brass);
    margin-bottom: 28px;
    font-weight: 500;
}

.intro h2 {
    font-family: var(--display);
    font-weight: 300;
    font-size: clamp(30px, 3.6vw, 46px);
    line-height: 1.18;
    letter-spacing: -0.01em;
    margin-bottom: 26px;
}

.intro h2 em {
    font-style: italic;
    color: var(--brass);
}

.intro p {
    color: var(--stone);
    font-size: 17px;
    max-width: 52ch;
    margin-bottom: 18px;
}

.stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    background: var(--line);
    border: 1px solid var(--line);
}

.stat {
    background: var(--paper);
    padding: 38px 32px;
}

.stat .num {
    font-family: var(--display);
    font-size: 52px;
    font-weight: 300;
    color: var(--brass);
    line-height: 1;
}

.stat .lbl {
    margin-top: 12px;
    font-size: 13px;
    letter-spacing: 0.06em;
    color: var(--stone);
    text-transform: uppercase;
}

/* ========== PATHS ========== */

.paths {
    padding: 30px 0 110px;
}

.paths-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 860px) {
    .paths-grid {
        grid-template-columns: 1fr;
    }
}

.path {
    position: relative;
    height: 480px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    color: var(--paper);
}

.path img {
    position: absolute;
    inset: 0;
    transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: -2;
}

.path::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 18, 14, 0.1), rgba(20, 18, 14, 0.82));
    z-index: -1;
}

.path:hover img {
    transform: scale(1.06);
}

.path-body {
    padding: 46px;
}

.path-body .tag {
    font-size: 12px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--brass-bright);
    margin-bottom: 16px;
}

.path-body h3 {
    font-family: var(--display);
    font-weight: 400;
    font-size: 34px;
    line-height: 1.1;
    margin-bottom: 14px;
}

.path-body p {
    font-size: 15px;
    color: rgba(244, 241, 234, 0.82);
    max-width: 38ch;
    margin-bottom: 24px;
}

.path-link {
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--paper);
    font-weight: 500;
}

.path-link span {
    transition: transform 0.3s ease;
}

.path:hover .path-link span {
    transform: translateX(6px);
}

/* ========== PORTFOLIO ========== */

.portfolio {
    background: var(--charcoal);
    color: var(--paper);
    padding: 110px 0;
}

.portfolio .section-label {
    color: var(--brass-bright);
}

.pf-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 54px;
    flex-wrap: wrap;
    gap: 24px;
}

.pf-head h2 {
    font-family: var(--display);
    font-weight: 300;
    font-size: clamp(30px, 4vw, 52px);
    letter-spacing: -0.01em;
    max-width: 16ch;
}

.pf-head h2 em {
    font-style: italic;
    color: var(--brass-bright);
}

.pf-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}

.pf-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.pf-item img {
    transition: transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.pf-item:hover img {
    transform: scale(1.05);
}

.pf-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(20, 18, 14, 0.85));
    opacity: 0.7;
    transition: opacity 0.4s;
}

.pf-item:hover::after {
    opacity: 0.95;
}

.pf-cap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 28px;
    z-index: 2;
    transform: translateY(8px);
    transition: transform 0.4s ease;
}

.pf-item:hover .pf-cap {
    transform: translateY(0);
}

.pf-cap .loc {
    font-size: 11px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--brass-bright);
    margin-bottom: 8px;
}

.pf-cap h4 {
    font-family: var(--display);
    font-weight: 400;
    font-size: 24px;
}

.pf-a {
    grid-column: span 7;
    height: 440px;
}

.pf-b {
    grid-column: span 5;
    height: 440px;
}

.pf-c {
    grid-column: span 4;
    height: 380px;
}

.pf-d {
    grid-column: span 4;
    height: 380px;
}

.pf-e {
    grid-column: span 4;
    height: 380px;
}

@media (max-width: 860px) {
    .pf-grid {
        grid-template-columns: 1fr;
    }

    .pf-a,
    .pf-b,
    .pf-c,
    .pf-d,
    .pf-e {
        grid-column: span 1;
        height: 320px;
    }
}

.pf-foot {
    margin-top: 54px;
    text-align: center;
}

/* ========== PROCESS ========== */

.process {
    padding: 115px 0;
}

.process .section-label {
    text-align: center;
}

.process h2 {
    font-family: var(--display);
    font-weight: 300;
    font-size: clamp(30px, 4vw, 48px);
    text-align: center;
    letter-spacing: -0.01em;
    margin-bottom: 70px;
}

.process h2 em {
    font-style: italic;
    color: var(--brass);
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid var(--line);
}

@media (max-width: 860px) {
    .steps {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 520px) {
    .steps {
        grid-template-columns: 1fr;
    }
}

.step {
    padding: 42px 30px 42px 0;
    border-right: 1px solid var(--line);
}

.step:last-child {
    border-right: none;
}

@media (max-width: 860px) {
    .step {
        border-right: none;
        border-bottom: 1px solid var(--line);
        padding-right: 30px;
    }
}

.step .n {
    font-family: var(--display);
    font-size: 18px;
    color: var(--brass);
    margin-bottom: 22px;
    font-weight: 500;
}

.step h4 {
    font-family: var(--display);
    font-weight: 500;
    font-size: 21px;
    margin-bottom: 12px;
}

.step p {
    font-size: 15px;
    color: var(--stone);
}

/* ========== WORDPRESS SPECIFIC STYLES ========== */

.wp-block-buttons {
    margin-bottom: 24px;
}

blockquote {
    border-left: 4px solid var(--brass);
    padding-left: 24px;
    margin-left: 0;
    color: var(--stone);
}

/* Ensure menu items display properly */
nav.links > ul,
nav.links > ol {
    display: flex;
    gap: 38px;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav.links > ul > li,
nav.links > ol > li {
    list-style: none;
    margin: 0;
    padding: 0;
}

nav.links > ul > li > a,
nav.links > ol > li > a {
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(244, 241, 234, 0.8);
    font-weight: 400;
    transition: color 0.3s ease;
    display: inline-block;
}

/* Ensure images display properly in all contexts */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.hero-img img,
.path img,
.pf-item img,
.contact img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fix for WordPress-generated content */
.wp-post-image {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Ensure proper spacing */
p {
    margin-bottom: 1rem;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.5rem;
    margin-top: 0;
}

/* Button reset */
button {
    font-family: inherit;
    cursor: pointer;
}

/* ========== TESTIMONIAL ========== */

.quote {
    background: var(--paper-dim);
    padding: 110px 0;
}

.quote-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.quote blockquote {
    font-family: var(--display);
    font-weight: 300;
    font-style: italic;
    font-size: clamp(26px, 3.4vw, 40px);
    line-height: 1.3;
    letter-spacing: -0.01em;
    border: none;
    padding-left: 0;
    margin: 0;
    color: var(--ink);
}

.quote .mark {
    font-family: var(--display);
    font-size: 80px;
    color: var(--brass);
    line-height: 0.5;
    margin-bottom: 10px;
}

.quote cite {
    display: block;
    margin-top: 34px;
    font-style: normal;
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--stone);
}

/* ========== CONTACT ========== */

.contact {
    position: relative;
    color: var(--paper);
    overflow: hidden;
    padding: 120px 0;
}

.contact img {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.contact::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(20, 18, 14, 0.92), rgba(20, 18, 14, 0.7));
    z-index: -1;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

@media (max-width: 860px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 46px;
    }
}

.contact .section-label {
    color: var(--brass-bright);
}

.contact h2 {
    font-family: var(--display);
    font-weight: 300;
    font-size: clamp(32px, 4.4vw, 56px);
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin-bottom: 24px;
}

.contact h2 em {
    font-style: italic;
    color: var(--brass-bright);
}

.contact .lead {
    font-size: 17px;
    color: rgba(244, 241, 234, 0.82);
    max-width: 42ch;
    margin-bottom: 36px;
}

.contact-detail {
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-size: 15px;
    color: rgba(244, 241, 234, 0.9);
}

.contact-detail b {
    color: var(--brass-bright);
    font-weight: 500;
    letter-spacing: 0.04em;
}

.form {
    background: rgba(244, 241, 234, 0.06);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(244, 241, 234, 0.16);
    padding: 42px;
}

.field {
    margin-bottom: 22px;
}

.field label {
    display: block;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--brass-bright);
    margin-bottom: 9px;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(244, 241, 234, 0.3);
    padding: 10px 0;
    color: var(--paper);
    font-family: var(--body);
    font-size: 15px;
    font-weight: 300;
    transition: border-color 0.3s;
}

.field select option {
    color: var(--ink);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--brass-bright);
}

.field input::placeholder,
.field textarea::placeholder {
    color: rgba(244, 241, 234, 0.4);
}

.form .btn {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
    border: none;
}

/* ========== FOOTER ========== */

footer {
    background: var(--charcoal);
    color: var(--stone-light);
    padding: 60px 0 36px;
}

.foot-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(244, 241, 234, 0.1);
}

.foot-brand {
    font-family: var(--display);
    font-size: 28px;
    color: var(--paper);
    font-weight: 500;
}

.foot-brand span {
    color: var(--brass-bright);
}

.foot-cols {
    display: flex;
    gap: 64px;
    flex-wrap: wrap;
}

.foot-col h5 {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--brass-bright);
    margin-bottom: 16px;
}

.foot-col a {
    display: block;
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--stone-light);
    transition: color 0.3s;
}

.foot-col a:hover {
    color: var(--paper);
}

.foot-bot {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding-top: 28px;
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--stone);
}

/* ========== ANIMATION ========== */

.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

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

/* ========== PROPERTIES PAGE ========== */

.hero-alt {
    padding: 160px 40px 80px;
    background: var(--paper);
    text-align: center;
    margin-top: 60px;
}

.properties-section {
    padding: 60px 0;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.property-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.property-image {
    display: block;
    height: 280px;
    overflow: hidden;
}

.property-image img {
    transition: transform 0.3s ease;
}

.property-card:hover .property-image img {
    transform: scale(1.05);
}

.property-info {
    padding: 24px;
}

.property-info h3 {
    font-family: var(--display);
    margin-bottom: 8px;
}

.property-info h3 a {
    color: var(--ink);
}

.property-info h3 a:hover {
    color: var(--brass);
}

.property-location {
    color: var(--brass);
    font-size: 14px;
    margin-bottom: 12px;
}

.property-excerpt {
    font-size: 14px;
    color: var(--stone);
    margin-bottom: 16px;
}

.property-cta {
    text-align: center;
    padding: 60px 0;
    background: var(--paper-dim);
    margin: 60px 0;
}

.property-cta h2 {
    font-family: var(--display);
    font-size: 36px;
    margin-bottom: 12px;
}

.property-cta p {
    color: var(--stone);
    margin-bottom: 24px;
}

.related-properties {
    background: var(--paper);
    padding: 80px 0;
}

.related-properties h2 {
    font-family: var(--display);
    font-size: 32px;
    margin-bottom: 40px;
    text-align: center;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 10px 14px;
    border: 1px solid var(--line);
    background: white;
    color: var(--ink);
    display: inline-block;
    transition: all 0.3s;
}

.pagination a:hover {
    background: var(--brass);
    color: white;
    border-color: var(--brass);
}

.pagination .current {
    background: var(--brass);
    color: white;
    border-color: var(--brass);
}

