/*
Theme Name: Property Davao
Theme URI: https://propertydavao.com
Author: Property for Sale in Davao
Author URI: https://propertydavao.com
Description: A professional real estate theme for showcasing properties for sale in Davao City, Philippines. Features property listings, search functionality, and contact forms.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: property-davao
Tags: real-estate, one-column, custom-menu, featured-images, theme-options, translation-ready

Property Davao WordPress Theme, Copyright 2024 Property for Sale in Davao
Property Davao is distributed under the terms of the GNU GPL
*/

/* ===== CSS Variables ===== */
:root {
    --color-primary: #0891b2;
    --color-primary-dark: #0e7490;
    --color-primary-foreground: #ecfeff;
    --color-secondary: #334155;
    --color-secondary-foreground: #f8fafc;
    --color-background: #e8eff5;
    --color-foreground: #0f172a;
    --color-card: #f1f5f9;
    --color-card-foreground: #0f172a;
    --color-muted: #64748b;
    --color-muted-foreground: #0f172a;
    --color-border: #cbd5e1;
    --color-accent: #f8fafc;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
    --radius: 0.5rem;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-foreground);
    background-color: var(--color-background);
}

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

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

ul, ol {
    list-style: none;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-foreground);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

@media (max-width: 768px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.875rem; }
    h3 { font-size: 1.25rem; }
}

/* ===== Container ===== */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

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

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

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

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ===== Forms ===== */
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: var(--font-sans);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background-color: var(--color-background);
    color: var(--color-foreground);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-foreground);
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(241, 245, 249, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--color-foreground);
}

.navbar-brand svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--color-primary);
}

.navbar-menu {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .navbar-menu {
        display: flex;
    }
}

.navbar-menu a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-muted);
    transition: color 0.2s;
}

.navbar-menu a:hover {
    color: var(--color-primary);
}

.navbar-cta {
    display: none;
}

@media (min-width: 768px) {
    .navbar-cta {
        display: flex;
    }
}

.navbar-toggle {
    display: flex;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

@media (min-width: 768px) {
    .navbar-toggle {
        display: none;
    }
}

.navbar-mobile {
    display: none;
    padding: 1rem 0;
    border-top: 1px solid var(--color-border);
}

.navbar-mobile.active {
    display: block;
}

.navbar-mobile a {
    display: block;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-muted);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 4rem;
}

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

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(51, 65, 85, 0.7);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 5rem 0;
}

.hero h1 {
    color: var(--color-primary-foreground);
    margin-bottom: 1.5rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(236, 254, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Search Box ===== */
.search-box {
    background-color: rgba(241, 245, 249, 0.95);
    backdrop-filter: blur(8px);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    max-width: 56rem;
    margin: 0 auto;
}

.search-box-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .search-box-form {
        flex-direction: row;
    }
}

.search-input-wrapper {
    flex: 1;
    position: relative;
}

.search-input-wrapper svg {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    color: var(--color-muted);
}

.search-input-wrapper input {
    padding-left: 2.5rem;
    height: 3rem;
}

.search-box .form-select {
    height: 3rem;
}

/* ===== Stats ===== */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 32rem;
    margin: 3rem auto 0;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary-foreground);
}

@media (min-width: 768px) {
    .hero-stat-number {
        font-size: 2.5rem;
    }
}

.hero-stat-label {
    font-size: 0.875rem;
    color: rgba(236, 254, 255, 0.8);
}

/* ===== Section Styles ===== */
.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.section-title {
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--color-muted);
    max-width: 42rem;
    margin: 0 auto;
}

.section-alt {
    background-color: var(--color-card);
}

/* ===== Property Grid ===== */
.property-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .property-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .property-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== Property Card ===== */
.property-card {
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.property-card:hover {
    box-shadow: var(--shadow-lg);
}

.property-card-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

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

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

.property-badge {
    position: absolute;
    top: 1rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius);
}

.property-badge-new {
    left: 1rem;
    background-color: var(--color-primary);
    color: var(--color-primary-foreground);
}

.property-badge-type {
    right: 1rem;
    background-color: var(--color-secondary);
    color: var(--color-secondary-foreground);
}

.property-favorite {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(241, 245, 249, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.property-favorite:hover {
    background-color: var(--color-card);
    color: var(--color-primary);
}

.property-card-content {
    padding: 1.25rem;
}

.property-card-title {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.property-card-location {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: var(--color-muted);
    margin-bottom: 1rem;
}

.property-card-location svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.property-card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--color-muted);
    margin-bottom: 1rem;
}

.property-card-features span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.property-card-features svg {
    width: 1rem;
    height: 1rem;
}

.property-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.property-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

/* ===== About Section ===== */
.about-grid {
    display: grid;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

.about-features {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .about-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

.about-feature {
    display: flex;
    gap: 1rem;
}

.about-feature-icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(8, 145, 178, 0.1);
    border-radius: var(--radius);
}

.about-feature-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--color-primary);
}

.about-feature-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.about-feature-text {
    font-size: 0.875rem;
    color: var(--color-muted);
}

/* ===== Stats Card ===== */
.stats-card {
    background-color: var(--color-secondary);
    border-radius: 1rem;
    padding: 2rem;
}

@media (min-width: 768px) {
    .stats-card {
        padding: 3rem;
    }
}

.stats-card-title {
    font-size: 1.5rem;
    color: var(--color-secondary-foreground);
    margin-bottom: 2rem;
}

.stats-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stats-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.stats-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary);
}

.stats-label {
    font-weight: 600;
    color: var(--color-secondary-foreground);
}

.stats-sublabel {
    font-size: 0.875rem;
    color: rgba(248, 250, 252, 0.7);
}

.stats-divider {
    border: none;
    border-top: 1px solid rgba(248, 250, 252, 0.2);
}

/* ===== Contact Section ===== */
.contact-grid {
    display: grid;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info-item {
    display: flex;
    gap: 1rem;
}

.contact-info-icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(8, 145, 178, 0.1);
    border-radius: var(--radius);
}

.contact-info-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--color-primary);
}

.contact-info-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-info-text {
    font-size: 0.875rem;
    color: var(--color-muted);
}

/* ===== Contact Form ===== */
.contact-form-wrapper {
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    gap: 1rem;
}

@media (min-width: 640px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== Footer ===== */
.footer {
    background-color: var(--color-secondary);
    color: var(--color-secondary-foreground);
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.footer-brand svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--color-primary);
}

.footer-text {
    font-size: 0.875rem;
    color: rgba(248, 250, 252, 0.8);
    margin-bottom: 1rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(248, 250, 252, 0.1);
    border-radius: 50%;
    transition: all 0.2s;
}

.footer-social a:hover {
    background-color: var(--color-primary);
    color: var(--color-primary-foreground);
}

.footer-social svg {
    width: 1.25rem;
    height: 1.25rem;
}

.footer-title {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: rgba(248, 250, 252, 0.8);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(248, 250, 252, 0.2);
    text-align: center;
    font-size: 0.875rem;
    color: rgba(248, 250, 252, 0.7);
}

/* ===== Utilities ===== */
.text-center { text-align: center; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-12 { margin-top: 3rem; }
