/*
Theme Name: Tri County Property Management (TCPM) Theme
Theme URI: https://tcpm-newlayout.abacusai.app/
Description: Clean, modern real estate and property management theme optimized for performance.
Version: 1.0.0
Author: Custom Development
Text Domain: tcpm
*/

:root {
    --primary: #f5b800; 
    --primary-foreground: #ffffff;
    --background: #ffffff;
    --foreground: #0f172a;
    --muted: #f1f5f9;
    --muted-foreground: #64748b;
    --card: #ffffff;
    --card-foreground: #0f172a;
    --border: #e2e8f0;
    --secondary: #1e293b;
    --secondary-foreground: #f8fafc;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.5;
}

/* Structural Layout Rules */
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-1200 { max-width: 1200px; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }

/* Flex/Grid Helper Framework */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }

@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:flex { display: flex; }
}
@media (min-width: 1024px) {
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Header Navbar Styling */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    height: 4rem;
}
.header-container { height: 100%; }
.logo-img { width: 48px; height: 48px; object-fit: contain; border-radius: 4px; }
.logo-text { font-size: 1.125rem; font-weight: 700; color: var(--primary); text-decoration: none; }

.main-nav ul { display: flex; list-style: none; gap: 0.25rem; }
.main-nav a { 
    padding: 0.5rem 0.75rem; font-size: 0.875rem; font-weight: 500; 
    color: var(--muted-foreground); text-decoration: none; border-radius: 6px; transition: all 0.2s;
}
.main-nav a:hover, .main-nav .current-menu-item a { color: var(--foreground); background: var(--muted); }
.main-nav .current-menu-item a { color: var(--primary); background: rgba(2, 132, 199, 0.1); }

/* Buttons styling */
.btn {
    inline-flex; align-items: center; justify-content: center; font-size: 0.875rem; font-weight: 500;
    padding: 0.5rem 1rem; border-radius: 6px; border: none; cursor: pointer; text-decoration: none; transition: 0.2s ease;
}
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { opacity: 0.9; }
.btn-secondary { background: var(--secondary); color: var(--secondary-foreground); }
.btn-secondary:hover { opacity: 0.9; }
.btn-outline { border: 1px solid rgba(255,255,255,0.5); background: rgba(255,255,255,0.1); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.2); }

/* Sections Styling */
.hero-section {
    position: relative; min-height: 600px; display: flex; align-items: center; color: #fff;
    background-size: cover; background-position: center;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,0,0,0.8), rgba(0,0,0,0.4)); }
.hero-content { position: relative; z-index: 10; max-width: 42rem; }
.hero-title { font-size: 2.5rem; font-weight: 700; line-height: 1.2; }
.hero-title span { color: var(--primary); }
.hero-desc { margin-top: 1.5rem; font-size: 1.125rem; color: rgba(255,255,255,0.8); }

.bg-muted-section { background-color: #f8fafc; }
.section-title { font-size: 1.875rem; font-weight: 700; text-align: center; }
.section-title span { color: var(--primary); }
.section-desc { text-align: center; color: var(--muted-foreground); margin-top: 1rem; margin-bottom: 3rem; }

/* Card Element System */
.service-card, .feature-card {
    background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s; text-decoration: none; color: inherit; display: block;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05); }
.icon-box { width: 3rem; height: 3rem; background: rgba(2, 132, 199, 0.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; color: var(--primary); }

.bg-secondary-section { background-color: var(--secondary); color: var(--secondary-foreground); }
.bg-secondary-section .icon-box { background: rgba(2, 132, 199, 0.2); }
.text-center { text-align: center; }

.cta-banner { background: #0f172a; color: #ffffff; border-radius: 12px; padding: 3rem; text-align: center; }

/* Footer Design */
.site-footer { background: #0f172a; color: #f8fafc; padding-top: 3rem; padding-bottom: 3rem; }
.footer-grid { display: grid; gap: 2rem; }
.footer-heading { font-size: 1.125rem; font-weight: 600; margin-bottom: 1rem; }
.footer-links { display: flex; flex-direction: col; gap: 0.5rem; list-style: none; }
.footer-links a { color: rgba(248,250,252,0.7); text-decoration: none; font-size: 0.875rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; font-size: 0.75rem; opacity: 0.5; }