/*
Theme Name: The Real Landmark
Theme URI: https://thereallandmark.com/
Author: The Real Landmark
Author URI: https://thereallandmark.com/
Description: Custom WordPress theme for The Real Landmark.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: thereallandmark
*/

/* =========================================================
   RESET
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: #ffffff;
    color: #171717;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

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

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

button,
input,
textarea,
select {
    font: inherit;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

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

.site-container {
    width: min(1200px, calc(100% - 40px));
    margin-left: auto;
    margin-right: auto;
}

.site-main {
    min-height: 60vh;
}

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

.site-header {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #eeeeee;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header-inner {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.site-logo {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.site-navigation {
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-navigation ul {
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-navigation a {
    font-size: 15px;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.site-navigation a:hover {
    opacity: 0.6;
}

.nav-toggle {
    display: none;
    border: none;
    background: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #171717;
    margin: 5px 0;
}

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

.hero {
    min-height: 680px;
    display: flex;
    align-items: center;
    background: #171717;
    color: #ffffff;
}

.hero-content {
    width: 100%;
    max-width: 760px;
}

.hero-eyebrow {
    margin: 0 0 18px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.7;
}

.hero h1 {
    margin: 0;
    font-size: clamp(48px, 7vw, 88px);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.hero p {
    max-width: 650px;
    margin: 28px 0 0;
    font-size: 19px;
    line-height: 1.6;
    opacity: 0.82;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 36px;
}

/* =========================================================
   PROPERTY SEARCH BAR
   ========================================================= */

.search-bar {
    margin-top: 48px;
    background: #ffffff;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 16px;
    align-items: end;
}

.search-field label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #888888;
    margin-bottom: 8px;
}

.search-field select,
.search-field input {
    width: 100%;
    height: 46px;
    border: 1px solid #dddddd;
    background: #ffffff;
    color: #171717;
    padding: 0 14px;
    font-size: 15px;
}

.search-bar .button {
    height: 46px;
    min-height: 46px;
    white-space: nowrap;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 24px;
    border: 1px solid currentColor;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        opacity 0.2s ease,
        background-color 0.2s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    background: #171717;
    color: #ffffff;
    border-color: #171717;
}

.hero .button-primary {
    background: #ffffff;
    color: #171717;
    border-color: #ffffff;
}

.button-secondary {
    background: transparent;
    color: #171717;
}

.hero .button-secondary {
    color: #ffffff;
}

/* =========================================================
   SECTIONS
   ========================================================= */

.section {
    padding: 100px 0;
}

.section-header {
    max-width: 700px;
    margin-bottom: 50px;
}

.section-header.center {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-label {
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.55;
}

.section h2 {
    margin: 0;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.section-intro {
    margin-top: 20px;
    font-size: 18px;
    color: #555555;
}

.section-alt {
    background: #f4f4f2;
}

/* =========================================================
   CARDS
   ========================================================= */

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    padding: 32px;
    border: 1px solid #e8e8e8;
    background: #ffffff;
}

.card h3 {
    margin: 0 0 12px;
    font-size: 22px;
}

.card p {
    margin: 0;
    color: #666666;
}

/* =========================================================
   PROPERTY LISTINGS
   ========================================================= */

.listing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.listing-card {
    border: 1px solid #e8e8e8;
    background: #ffffff;
}

.listing-image {
    aspect-ratio: 4 / 3;
    background: #e8e8e6 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" stroke="%23999999" stroke-width="1.5"><path d="M3 10l9-7 9 7v10a1 1 0 01-1 1h-5v-6H9v6H4a1 1 0 01-1-1z"/></svg>') center / 40px no-repeat;
}

.listing-body {
    padding: 24px;
}

.listing-price {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 6px;
}

.listing-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 6px;
}

.listing-location {
    font-size: 14px;
    color: #777777;
    margin: 0 0 16px;
}

.listing-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #555555;
    border-top: 1px solid #eeeeee;
    padding-top: 16px;
}

/* =========================================================
   ABOUT / INFO PAGE
   ========================================================= */

.page-hero {
    background: #171717;
    color: #ffffff;
    padding: 90px 0;
}

.page-hero-eyebrow {
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.7;
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(38px, 5vw, 60px);
    letter-spacing: -0.035em;
}

.entry-content {
    max-width: 800px;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
    line-height: 1.2;
}

.entry-content p {
    margin: 0 0 1.25rem;
    color: #444444;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.stat-item {
    border-top: 2px solid #171717;
    padding-top: 16px;
}

.stat-number {
    font-size: 42px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.stat-label {
    margin-top: 6px;
    font-size: 13px;
    color: #777777;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

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

.contact-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
}

.contact-info-item {
    padding: 24px 0;
    border-top: 1px solid #e8e8e8;
}

.contact-info-item:first-child {
    border-top: none;
}

.contact-info-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #999999;
    margin-bottom: 8px;
}

.contact-info-value {
    font-size: 18px;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    border: 1px solid #dddddd;
    padding: 14px;
    font-size: 15px;
    background: #ffffff;
    color: #171717;
}

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

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

.form-notice {
    padding: 16px;
    margin-bottom: 24px;
    font-size: 14px;
    border: 1px solid #171717;
}

.form-notice.success {
    background: #f4f4f2;
}

.form-notice.error {
    border-color: #b3261e;
    color: #b3261e;
}

/* honeypot field - hidden from real users */
.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
}

/* =========================================================
   CTA
   ========================================================= */

.cta {
    background: #f4f4f2;
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.cta h2 {
    max-width: 700px;
}

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

.site-footer {
    padding: 60px 0 30px;
    background: #171717;
    color: #ffffff;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.footer-brand {
    font-size: 20px;
    font-weight: 700;
}

.footer-nav {
    display: flex;
    gap: 24px;
}

.footer-nav a {
    font-size: 14px;
    color: #bdbdbd;
}

.footer-nav a:hover {
    color: #ffffff;
}

.footer-contact {
    color: #bdbdbd;
    font-size: 14px;
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #333333;
    color: #888888;
    font-size: 13px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .search-bar {
        grid-template-columns: 1fr;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 800px) {

    .site-container {
        width: min(100% - 28px, 1200px);
    }

    .site-header-inner {
        min-height: 70px;
    }

    .site-navigation {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .hero {
        min-height: 600px;
    }

    .hero p {
        font-size: 17px;
    }

    .section {
        padding: 70px 0;
    }

    .card-grid,
    .listing-grid {
        grid-template-columns: 1fr;
    }

    .cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-inner {
        flex-direction: column;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {

    .hero h1 {
        font-size: 46px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .button {
        width: 100%;
    }

    .stat-grid {
        grid-template-columns: 1fr;
    }
}