/*
Theme Name: Umbrella Properties
Theme URI: https://umbrellaproperties.co.ke
Author: Umbrella Properties
Author URI: https://umbrellaproperties.co.ke
Description: A modern property management WordPress theme for Umbrella Properties, based in Nairobi, Kenya. Features property listings, search, and a rich landing page.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: umbrella-properties
Tags: real-estate, property-management, custom-header, custom-menu, featured-images
*/

/* ===== CSS Reset & Base ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --up-primary: #1a3c5e;
    --up-primary-light: #2a5a8a;
    --up-accent: #e8a838;
    --up-accent-hover: #d4952e;
    --up-dark: #0f2137;
    --up-text: #333333;
    --up-text-light: #666666;
    --up-light: #f8f9fa;
    --up-white: #ffffff;
    --up-border: #e0e0e0;
    --up-success: #28a745;
    --up-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --up-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
    --up-radius: 12px;
    --up-transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--up-text);
    line-height: 1.7;
    background: var(--up-white);
    overflow-x: hidden;
}

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

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

ul, ol {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--up-dark);
    line-height: 1.3;
}

h1 { font-size: 3.2rem; }
h2 { font-size: 2.4rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.3rem; }

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--up-transition);
    border: none;
    text-align: center;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: var(--up-accent);
    color: var(--up-white);
}

.btn-primary:hover {
    background: var(--up-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(232, 168, 56, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--up-white);
    border: 2px solid var(--up-white);
}

.btn-outline:hover {
    background: var(--up-white);
    color: var(--up-primary);
}

.btn-dark {
    background: var(--up-primary);
    color: var(--up-white);
}

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

/* ===== Header & Navigation ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: var(--up-transition);
    padding: 15px 0;
}

.site-header.scrolled {
    background: var(--up-white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

.site-header.scrolled .site-title a,
.site-header.scrolled .nav-menu a {
    color: var(--up-dark);
}

.site-header.scrolled .header-cta .btn-outline {
    color: var(--up-primary);
    border-color: var(--up-primary);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo img {
    height: 45px;
    width: auto;
}

.site-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.site-title a {
    color: var(--up-white);
}

.site-title .accent {
    color: var(--up-accent);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-menu a {
    color: var(--up-white);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--up-accent);
    transition: var(--up-transition);
}

.nav-menu a:hover::after,
.nav-menu .current-menu-item a::after {
    width: 100%;
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-phone {
    color: var(--up-white);
    font-weight: 600;
    font-size: 0.9rem;
}

.header-phone svg {
    margin-right: 5px;
    vertical-align: middle;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--up-white);
    margin: 5px 0;
    transition: var(--up-transition);
    border-radius: 2px;
}

.site-header.scrolled .menu-toggle span {
    background: var(--up-dark);
}

/* ===== Hero Section ===== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(15, 33, 55, 0.85), rgba(26, 60, 94, 0.75)),
                url('assets/images/hero-nairobi.jpg') center/cover no-repeat;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--up-white), transparent);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding-top: 80px;
}

.hero-badge {
    display: inline-block;
    background: rgba(232, 168, 56, 0.15);
    color: var(--up-accent);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 25px;
    border: 1px solid rgba(232, 168, 56, 0.3);
}

.hero-content h1 {
    color: var(--up-white);
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content h1 .highlight {
    color: var(--up-accent);
}

.hero-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.2rem;
    margin-bottom: 35px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 50px;
}

.hero-stats {
    display: flex;
    gap: 50px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-stat h3 {
    color: var(--up-accent);
    font-size: 2.2rem;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}

.hero-stat p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ===== Property Search Bar ===== */
.search-section {
    position: relative;
    z-index: 10;
    margin-top: -60px;
    margin-bottom: 80px;
}

.search-bar {
    background: var(--up-white);
    border-radius: var(--up-radius);
    box-shadow: var(--up-shadow-hover);
    padding: 30px 35px;
    display: flex;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
}

.search-field {
    flex: 1;
    min-width: 180px;
}

.search-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--up-text-light);
    margin-bottom: 8px;
}

.search-field select,
.search-field input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--up-border);
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--up-text);
    background: var(--up-light);
    transition: var(--up-transition);
    font-family: inherit;
}

.search-field select:focus,
.search-field input:focus {
    outline: none;
    border-color: var(--up-primary);
    background: var(--up-white);
}

.search-bar .btn {
    padding: 14px 40px;
    white-space: nowrap;
}

/* ===== Featured Properties ===== */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header .subtitle {
    display: inline-block;
    color: var(--up-accent);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-header h2 {
    margin-bottom: 15px;
}

.section-header p {
    color: var(--up-text-light);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.05rem;
}

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

.property-card {
    background: var(--up-white);
    border-radius: var(--up-radius);
    overflow: hidden;
    box-shadow: var(--up-shadow);
    transition: var(--up-transition);
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--up-shadow-hover);
}

.property-image {
    position: relative;
    height: 260px;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.property-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--up-accent);
    color: var(--up-white);
    padding: 5px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.property-badge.rent {
    background: var(--up-success);
}

.property-favorite {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--up-transition);
    border: none;
}

.property-favorite:hover {
    background: var(--up-accent);
    color: var(--up-white);
}

.property-details {
    padding: 25px;
}

.property-location {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--up-text-light);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.property-details h3 {
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.property-details h3 a:hover {
    color: var(--up-accent);
}

.property-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--up-primary);
    margin-bottom: 18px;
}

.property-price span {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--up-text-light);
}

.property-meta {
    display: flex;
    gap: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--up-border);
}

.property-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--up-text-light);
}

.property-meta-item svg {
    width: 16px;
    height: 16px;
    color: var(--up-primary);
}

/* ===== Neighborhoods / Areas ===== */
.areas-section {
    background: var(--up-light);
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 200px);
    gap: 20px;
}

.area-card {
    position: relative;
    border-radius: var(--up-radius);
    overflow: hidden;
    cursor: pointer;
}

.area-card:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

.area-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.area-card:hover img {
    transform: scale(1.1);
}

.area-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 33, 55, 0.8), transparent 60%);
}

.area-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 2;
    color: var(--up-white);
}

.area-info h3 {
    color: var(--up-white);
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.area-info p {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ===== Services Section ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    text-align: center;
    padding: 45px 30px;
    background: var(--up-white);
    border-radius: var(--up-radius);
    box-shadow: var(--up-shadow);
    transition: var(--up-transition);
    border: 1px solid transparent;
}

.service-card:hover {
    border-color: var(--up-accent);
    transform: translateY(-5px);
}

.service-icon {
    width: 75px;
    height: 75px;
    background: linear-gradient(135deg, var(--up-primary), var(--up-primary-light));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--up-white);
    font-size: 1.8rem;
}

.service-card h3 {
    margin-bottom: 12px;
}

.service-card p {
    color: var(--up-text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===== About / Why Choose Us ===== */
.about-section {
    background: var(--up-light);
}

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

.about-images {
    position: relative;
}

.about-img-main {
    border-radius: var(--up-radius);
    overflow: hidden;
    box-shadow: var(--up-shadow-hover);
}

.about-img-secondary {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 55%;
    border-radius: var(--up-radius);
    overflow: hidden;
    border: 5px solid var(--up-white);
    box-shadow: var(--up-shadow-hover);
}

.about-content .subtitle {
    color: var(--up-accent);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
}

.about-content h2 {
    margin-bottom: 20px;
}

.about-content > p {
    color: var(--up-text-light);
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 35px;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.about-feature-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: rgba(232, 168, 56, 0.12);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--up-accent);
}

.about-feature h4 {
    font-size: 1rem;
    margin-bottom: 3px;
    font-family: 'Inter', sans-serif;
}

.about-feature p {
    font-size: 0.85rem;
    color: var(--up-text-light);
}

/* ===== Testimonials ===== */
.testimonials-section {
    background: var(--up-primary);
    color: var(--up-white);
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(232, 168, 56, 0.08);
    border-radius: 50%;
}

.testimonials-section .section-header .subtitle {
    color: var(--up-accent);
}

.testimonials-section .section-header h2 {
    color: var(--up-white);
}

.testimonials-section .section-header p {
    color: rgba(255, 255, 255, 0.7);
}

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

.testimonial-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--up-radius);
    padding: 35px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonial-stars {
    color: var(--up-accent);
    margin-bottom: 18px;
    font-size: 1.1rem;
}

.testimonial-card blockquote {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 25px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--up-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.testimonial-author-info h4 {
    color: var(--up-white);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

.testimonial-author-info p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ===== CTA Section ===== */
.cta-section {
    background: linear-gradient(135deg, rgba(15, 33, 55, 0.9), rgba(26, 60, 94, 0.85)),
                url('assets/images/cta-bg.jpg') center/cover no-repeat;
    text-align: center;
    padding: 100px 0;
}

.cta-section h2 {
    color: var(--up-white);
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 35px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* ===== Footer ===== */
.site-footer {
    background: var(--up-dark);
    color: rgba(255, 255, 255, 0.7);
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-about .site-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.footer-about .site-title a {
    color: var(--up-white);
}

.footer-about p {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--up-transition);
}

.footer-social a:hover {
    background: var(--up-accent);
    color: var(--up-white);
}

.footer-column h4 {
    color: var(--up-white);
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    font-size: 0.9rem;
    transition: var(--up-transition);
}

.footer-column ul li a:hover {
    color: var(--up-accent);
    padding-left: 5px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
    font-size: 0.9rem;
}

.footer-contact-item svg {
    min-width: 18px;
    margin-top: 3px;
    color: var(--up-accent);
}

.footer-bottom {
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.footer-bottom-links {
    display: flex;
    gap: 25px;
}

.footer-bottom-links a:hover {
    color: var(--up-accent);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    h1 { font-size: 2.6rem; }
    .hero-content h1 { font-size: 2.8rem; }
    .properties-grid { grid-template-columns: repeat(2, 1fr); }
    .areas-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
    .areas-grid .area-card:first-child { grid-column: span 2; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .nav-menu, .header-cta {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--up-white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--up-shadow);
    }
    .nav-menu.active, .header-cta.active { display: flex; }
    .nav-menu a { color: var(--up-dark); padding: 10px 0; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-stats { flex-direction: column; gap: 20px; }
    .search-bar { flex-direction: column; }
    .search-field { min-width: 100%; }
    .properties-grid { grid-template-columns: 1fr; }
    .areas-grid { grid-template-columns: 1fr; }
    .areas-grid .area-card:first-child { grid-column: span 1; }
    .services-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-img-secondary { position: relative; bottom: auto; right: auto; width: 70%; margin-top: -40px; margin-left: auto; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .cta-section h2 { font-size: 2rem; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
    .hero-buttons { flex-direction: column; }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 1.8rem; }
    h2 { font-size: 1.8rem; }
    .about-features { grid-template-columns: 1fr; }
    .property-meta { flex-wrap: wrap; }
}
