/* GandGHomes landing page styles. Tailored to the brand teal + gold palette. */
:root {
    --bg: #ffffff;
    --text: #0f1724;
    --muted: #6b7280;
    --accent: #0b6b5b;      /* deep teal */
    --accent-dark: #074f42;
    --accent-2: #fde68a;   /* gold */
    --surface: #fbfcfd;
    --border: #eef2f6;
    --container: 1100px;
    --radius: 10px;
    font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* prevent accidental horizontal scroll caused by positioned hero media */
html, body {
    overflow-x: hidden;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(8px);
    position: sticky;
    top: 0;
    z-index: 120;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    position: relative;
    margin: 0px 50px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.brand-logo {
    height: 40px;
    width: auto;
}

.brand-name {
    font-weight: 700;
    letter-spacing: 0.2px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.main-nav a {
    margin-left: 10px;
    color: var(--muted);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.18s ease;
}

.main-nav a:hover {
    color: var(--accent);
}

.main-nav a.btn {
    color: #fff;
    margin-left: 14px;
}

.nav-link-login {
    border: 1px solid var(--border);
    padding: 8px 14px;
    border-radius: 8px;
}

/* Mobile nav toggle button */
.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
}

.nav-toggle .bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    margin: 4px 0;
    border-radius: 2px;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.mobile-menu {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    top: 64px;
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 18px;
    box-shadow: 0 12px 40px rgba(15, 23, 36, 0.08);
    z-index: 220;
    flex-direction: column;
    gap: 10px;
}

.mobile-menu a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    padding: 6px 0;
}

.mobile-open .mobile-menu {
    display: flex;
}

.mobile-open .nav-toggle .bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.mobile-open .nav-toggle .bar:nth-child(2) {
    opacity: 0;
}

.mobile-open .nav-toggle .bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 11px 18px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: transform 0.12s ease, background 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

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

.btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.btn-primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

.btn-accent {
    background: var(--accent-2);
    border-color: transparent;
    color: #111;
}

.btn-accent:hover {
    box-shadow: 0 8px 20px rgba(253, 230, 138, 0.5);
}

.btn-outline {
    background: #fff;
    color: var(--accent);
    border: 1px solid var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: #fff;
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-sm {
    padding: 8px 14px;
    font-size: 13px;
}

.btn-dark {
    background: #0b1f1a;
    color: #fff;
    border-color: #0b1f1a;
}

.btn-dark:hover {
    background: #06231d;
}

/* ---------- Hero ---------- */
.hero {
    padding: 64px 0;
    background: linear-gradient(120deg, rgba(11, 107, 91, 0.06) 0%, rgba(245, 251, 250, 0.6) 40%);
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 40px;
    align-items: center;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(11, 107, 91, 0.08);
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.hero-content h1 {
    font-size: 40px;
    line-height: 1.15;
    margin: 0 0 12px;
}

.lead {
    color: var(--muted);
    margin: 0 0 18px;
    font-size: 17px;
}

.search-form {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 18px 0;
}

.search-form input,
.search-form select {
    padding: 12px 14px;
    border: 1px solid #e6eef0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
}

.search-form input {
    flex: 1;
    min-width: 0;
}

/* Media card layout on hero right */
.hero-media {
    display: flex;
    justify-content: center;
    align-items: center;
}

.media-card {
    position: relative;
    width: 100%;
    max-width: 420px;
}

.media-card .main-photo {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 14px;
    display: block;
    box-shadow: 0 20px 50px rgba(11, 107, 91, 0.06);
    transform: translateZ(0);
}

.media-card .thumb {
    position: absolute;
    right: -12px;
    width: 120px;
    height: 88px;
    object-fit: cover;
    border-radius: 12px;
    border: 6px solid #fff;
    box-shadow: 0 12px 30px rgba(11, 107, 91, 0.09);
}

.media-card .thumb-top {
    top: 12px;
    transform: rotate(-6deg);
    right: -12px;
}

.media-card .thumb-bottom {
    bottom: 12px;
    right: -12px;
    transform: rotate(6deg);
}

.media-card .media-gradient {
    position: absolute;
    left: -40px;
    top: -30px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(11, 107, 91, 0.12), rgba(11, 107, 91, 0.02));
    filter: blur(16px);
    z-index: 0;
}

.media-card img {
    position: relative;
    z-index: 2;
}

@media (min-width: 1100px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1fr) 520px;
    }

    .media-card {
        max-width: 520px;
    }

    .media-card .main-photo {
        height: 420px;
        border: 6px solid #fff;
    }

    .media-card .thumb {
        width: 200px;
        height: 120px;
        right: -18px;
    }

    .media-card .thumb-top {
        top: -15px;
        right: -25px;
    }

    .media-card .thumb-bottom {
        bottom: -15px;
        right: -25px;
    }
}

/* ---------- Stats band ---------- */
.stats-band {
    background: var(--accent);
    color: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 28px 20px;
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 26px;
    font-weight: 700;
}

.stat-label {
    font-size: 13px;
    opacity: 0.85;
}

/* ---------- Sections ---------- */
.section {
    padding: 64px 0;
}

.bg-light {
    background: var(--surface);
}

.bg-cta {
    background: linear-gradient(90deg, #0b6b5b12, #e9fff8);
    padding: 48px 0;
}

.section-title {
    font-size: 28px;
    margin: 0 0 8px;
}

.section-sub {
    color: var(--muted);
    margin: 0 0 8px;
}

.section-actions {
    text-align: center;
    margin-top: 24px;
}

/* ---------- Featured properties ---------- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 24px;
}

.card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(15, 23, 36, 0.08);
}

.card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-body {
    padding: 14px;
}

.card-title {
    margin: 0;
    font-size: 16px;
}

.card-meta {
    color: var(--muted);
    font-size: 13px;
    margin: 8px 0;
}

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

.price {
    font-weight: 700;
    color: var(--accent);
}

/* ---------- Agents ---------- */
.agents-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 20px;
}

.agent {
    background: #fff;
    padding: 22px 14px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--border);
}

.agent h4 {
    margin: 14px 0 4px;
}

/* ---------- Avatars (replace missing photos) ---------- */
.avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    background: var(--accent);
    font-size: 18px;
    letter-spacing: 0.5px;
}

.avatar-teal {
    background: var(--accent);
}

.avatar-gold {
    background: #d9a513;
}

.avatar-slate {
    background: #334155;
}

.avatar-lg {
    width: 120px;
    height: 120px;
    font-size: 26px;
}

.avatar-sm {
    width: 36px;
    height: 36px;
    font-size: 13px;
    vertical-align: middle;
    margin-right: 8px;
}

/* ---------- How it works ---------- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 24px;
}

.step {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px 20px;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(11, 107, 91, 0.1);
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 12px;
}

/* ---------- Who we are ---------- */
.who-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.who-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.who-highlights {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.who-highlights .highlight {
    flex: 1;
    min-width: 180px;
    padding: 1rem;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(20, 20, 40, 0.04);
}

.who-highlights .highlight h4 {
    margin: 0 0 6px;
}

.who-foot {
    margin-top: 0.75rem;
}

.who-cta {
    margin-top: 1rem;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ---------- Mission / Vision ---------- */
.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 8px;
}

.mv-card {
    padding: 1.25rem;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(20, 20, 40, 0.04);
}

.mv-card h3 {
    margin: 0 0 8px;
}

/* ---------- Founder ---------- */
.founder {
    border-radius: 8px;
    padding: 2rem;
}

.founder-grid {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1.5rem;
    align-items: center;
}

.founder blockquote {
    margin: 0.75rem 0;
    padding-left: 1rem;
    border-left: 3px solid var(--accent);
    color: #444;
    font-style: italic;
}

/* ---------- Testimonials ---------- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 24px;
}

.testimonial {
    margin: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
}

.testimonial blockquote {
    margin: 0 0 16px;
    font-size: 15px;
    color: #334155;
}

.testimonial figcaption {
    font-size: 14px;
    font-weight: 600;
}

/* ---------- Contact ---------- */
.contact-grid {
    display: flex;
    gap: 32px;
    align-items: center;
}

.contact-grid h2 {
    margin: 0 0 8px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    max-width: 460px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e6eef0;
    font-family: inherit;
    font-size: 14px;
}

.form-status {
    margin: 4px 0 0;
    font-size: 14px;
    min-height: 1em;
}

.form-status-success {
    color: var(--accent);
}

.form-status-error {
    color: #b91c1c;
}

/* ---------- Footer ---------- */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 40px 0 28px;
    margin-top: 40px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 24px;
}

.footer-col h4 {
    margin: 0 0 10px;
    font-size: 14px;
}

.footer-col a {
    display: block;
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-logo {
    height: 36px;
    margin-bottom: 10px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hero {
        padding: 48px 0;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .media-card .main-photo {
        height: 260px;
    }

    .media-card .thumb {
        display: none;
    }

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

    .cards-grid,
    .agents-grid,
    .steps-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .who-grid,
    .mv-grid,
    .founder-grid {
        grid-template-columns: 1fr;
    }

    .founder-grid {
        justify-items: center;
        text-align: center;
    }

    .contact-grid {
        flex-direction: column;
        align-items: stretch;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    /* Header stacks and shows hamburger */
    .header-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin: 0px 20px;
    }

    .main-nav {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
        position: absolute;
        right: 0px;
        /*top: 18px;*/
        z-index: 230;
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .brand-name {
        /*display: none;*/
    }

    .container {
        padding: 0 14px;
        margin-top: 50px;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .lead {
        font-size: 14px;
    }

    .search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .search-form input,
    .search-form select,
    .search-form button {
        width: 100%;
    }

    .card-image {
        height: 160px;
    }

    .card-title {
        font-size: 15px;
    }

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

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .who-highlights .highlight {
        padding: 0.75rem;
    }

    .avatar-lg {
        width: 96px;
        height: 96px;
        font-size: 22px;
    }
}

/* Categories strip */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    margin-top: 8px;
}
.cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 22px 16px;
    border-radius: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    font-weight: 600;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.cat-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(11, 107, 91, 0.12);
    color: var(--accent);
}
.cat-card i {
    font-size: 1.8rem;
    color: var(--accent);
}
