/* assets/css/style.css */
:root {
    /* Brand Colors */
    --primary-blue: #004aad;
    /* Royal Blue - Trust */
    --secondary-green: #2eb82e;
    /* Fresh Green - Growth/Nature */
    --accent-orange: #ff9f1c;
    /* Sun Orange - Warmth/Energy */

    /* Functional Colors */
    --whatsapp-green: #25d366;
    --text-dark: #1a1a2e;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border-color: #e0e0e0;

    /* Spacing & Layout */
    --spacing-unit: 1rem;
    --border-radius: 8px;
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    background-color: var(--bg-light);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--primary-blue);
    margin-bottom: 0.5em;
    font-weight: 600;
}

.tamil-text {
    font-family: 'Noto Sans Tamil', serif;
}

a {
    text-decoration: none;
    color: var(--primary-blue);
}

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

/* Header */
header {
    background-color: var(--white);
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-blue);
}

.logo span {
    color: var(--primary-yellow);
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 20px;
}

/* Mobile Sticky CTA */
.mobile-sticky-cta {
    display: none;
    /* Hidden on desktop */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 10px;
    justify-content: space-around;
}

.btn-cta {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 50px;
    background: var(--primary-blue);
    color: var(--white);
    font-weight: 600;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: var(--shadow-sm);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

.btn-loan {
    background: linear-gradient(135deg, var(--accent-orange), #f37b1d);
    color: var(--white);
}

/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/hero-bg.jpg');
    /* Need placeholder or generate */
    background-color: var(--primary-blue);
    /* Fallback */
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 100px 20px;
}

.hero h1 {
    color: var(--white);
    font-size: 2.5rem;
}

/* Property Grid */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 40px 0;
}

.property-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--bg-light);
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-color);
}

.property-img {
    height: 200px;
    background-color: #ddd;
    object-fit: cover;
}

.property-info {
    padding: 15px;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--accent-orange);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 10px;
}

/* Form Styles */
input,
select,
textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-sizing: border-box;

    box-sizing: border-box;
    /* Important for padding */
}

/* Icons */
.icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    display: inline-block;
    margin-right: 5px;
    fill: currentColor;
}

.icon-sm {
    width: 16px;
    height: 16px;
}

.icon-md {
    width: 24px;
    height: 24px;
}

.icon-lg {
    width: 32px;
    height: 32px;
}

.icon-primary {
    color: var(--primary-blue);
}

.icon-accent {
    color: var(--accent-orange);
}

button[type="submit"] {
    background: linear-gradient(to right, var(--primary-blue), #003380);
    color: var(--white);
    border: none;
    padding: 14px 20px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    border-radius: var(--border-radius);
    transition: opacity 0.2s;
}

button[type="submit"]:hover {
    opacity: 0.9;
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
    margin-bottom: 60px;
    /* Space for mobile sticky CTA */
}

/* Media Queries */
@media (max-width: 768px) {
    .mobile-sticky-cta {
        display: flex;
    }

    nav ul {
        flex-direction: column;
        display: none;
        /* Implement mobile menu toggle later */
    }
}