/* ==========================================================================
   Alliance Property Management — Stylesheet
   Palette: navy #35406D + red #C8102E on cream #FAFAF7
   Font: Montserrat (Google Fonts)
   ========================================================================== */

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

:root {
    --navy: #35406D;
    --navy-dark: #1A1F3A;
    --navy-light: #4C5A92;
    --red: #C8102E;
    --red-dark: #A00C24;
    --cream: #FAFAF7;
    --white: #FFFFFF;
    --text: #1A1F3A;
    --text-muted: #5B6478;
    --border: #E5E7EB;
    --shadow-sm: 0 1px 2px rgba(26, 31, 58, 0.05);
    --shadow-md: 0 4px 16px rgba(26, 31, 58, 0.08);
    --shadow-lg: 0 12px 32px rgba(26, 31, 58, 0.12);
    --max-width: 1200px;
    --radius: 4px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--red); }

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy-dark);
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
p { margin-bottom: 1rem; }

/* Layout helpers
   -------------------------------------------------------------------------- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-alt { background: var(--white); }
.section-dark { background: var(--navy-dark); color: var(--cream); }
.section-dark h2, .section-dark h3 { color: var(--white); }

.eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 0.75rem;
}

.section-header { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-header p { color: var(--text-muted); font-size: 1.05rem; }

/* Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    white-space: nowrap;
}
.btn-primary { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); }
.btn-secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: var(--white); }
.btn-ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn-ghost-light:hover { background: var(--white); color: var(--navy-dark); border-color: var(--white); }

/* Header / Navigation
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; }
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 48px; width: auto; }
.nav-logo-text { margin-left: 0.75rem; }
.nav-logo-text .brand { font-weight: 800; color: var(--navy-dark); font-size: 1rem; line-height: 1.1; }
.nav-logo-text .brand-sub { font-size: 0.7rem; color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase; }

.nav-links { display: flex; list-style: none; gap: 2rem; align-items: center; }
.nav-links a {
    color: var(--navy-dark);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    position: relative;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 0; height: 2px; background: var(--red);
    transition: width 0.25s ease;
}
.nav-links a:hover { color: var(--navy-dark); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta { margin-left: 1rem; }

.nav-toggle {
    display: none; background: none; border: 0; cursor: pointer;
    width: 40px; height: 40px; position: relative;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy-dark); margin: 5px auto; transition: all 0.2s; }

/* Hero
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 560px;
    display: flex; align-items: center;
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
    color: var(--white);
    overflow: hidden;
}
.hero-image {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(26,31,58,0.85), rgba(53,64,109,0.75)),
                var(--navy) url('../assets/hero-placeholder.jpg') center/cover no-repeat;
    z-index: 0;
}
.hero-image::after {
    /* subtle pattern overlay for texture without an image */
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(circle at 20% 30%, rgba(200,16,46,0.08) 0%, transparent 40%),
                      radial-gradient(circle at 80% 70%, rgba(255,255,255,0.04) 0%, transparent 40%);
}
.hero-content { position: relative; z-index: 1; max-width: 720px; padding: 6rem 0; }
.hero .eyebrow { color: var(--white); opacity: 0.85; }
.hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero-lede { font-size: 1.15rem; color: rgba(255,255,255,0.9); margin-bottom: 2rem; max-width: 600px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Pillars (4 services)
   -------------------------------------------------------------------------- */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.pillar {
    background: var(--white);
    padding: 2rem 1.75rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.25s ease;
    position: relative;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--navy); }
.pillar-number {
    display: inline-block;
    font-size: 0.75rem; font-weight: 700;
    color: var(--red);
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}
.pillar h3 { color: var(--navy-dark); margin-bottom: 0.5rem; }
.pillar p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 0; }

/* Feature rows (alternating image/text)
   -------------------------------------------------------------------------- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.feature-row.reverse > :first-child { order: 2; }
.feature-image {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    aspect-ratio: 4/3; border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.4); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.feature-content h2 { margin-bottom: 1rem; }
.feature-content p { color: var(--text-muted); margin-bottom: 1.25rem; }
.feature-list { list-style: none; }
.feature-list li {
    padding-left: 1.5rem; position: relative;
    color: var(--text); margin-bottom: 0.5rem; font-size: 0.95rem;
}
.feature-list li::before {
    content: ''; position: absolute; left: 0; top: 0.55rem;
    width: 8px; height: 8px; background: var(--red); border-radius: 50%;
}

/* Credential callout
   -------------------------------------------------------------------------- */
.credential {
    background: var(--navy-dark); color: var(--white);
    padding: 3rem 2rem; border-radius: var(--radius);
    text-align: center; max-width: 820px; margin: 0 auto;
    position: relative; overflow: hidden;
}
.credential::before {
    content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--red);
}
.credential .badge {
    display: inline-block; padding: 0.35rem 0.85rem;
    background: rgba(200,16,46,0.15); color: var(--red);
    border: 1px solid rgba(200,16,46,0.4); border-radius: 3px;
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    margin-bottom: 1rem;
}
.credential h2 { color: var(--white); margin-bottom: 0.75rem; }
.credential p { color: rgba(255,255,255,0.8); margin-bottom: 0; }

/* CTA Section
   -------------------------------------------------------------------------- */
.cta-section {
    background: var(--navy);
    color: var(--white);
    text-align: center;
    padding: 4rem 1.5rem;
}
.cta-section h2 { color: var(--white); margin-bottom: 0.75rem; }
.cta-section p { color: rgba(255,255,255,0.85); margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }

/* Services page — detailed list
   -------------------------------------------------------------------------- */
.service-group { margin-bottom: 3rem; padding-bottom: 3rem; border-bottom: 1px solid var(--border); }
.service-group:last-child { border-bottom: 0; margin-bottom: 0; }
.service-group h3 { color: var(--red); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.5rem; }
.service-group h2 { margin-bottom: 1.25rem; }
.service-items { list-style: none; }
.service-items li {
    padding: 1rem 0 1rem 2rem; border-top: 1px solid var(--border);
    position: relative; color: var(--text);
}
.service-items li:first-child { border-top: 0; }
.service-items li::before {
    content: '→'; position: absolute; left: 0; top: 1rem;
    color: var(--red); font-weight: 700;
}

/* Contact page
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact-info-block { padding: 2rem; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); }
.contact-info-block h3 { color: var(--navy-dark); font-size: 1rem; margin-bottom: 0.25rem; }
.contact-info-block p { color: var(--text-muted); margin-bottom: 0; }
.contact-info-block a { color: var(--red); font-weight: 600; }
.contact-info-block + .contact-info-block { margin-top: 1rem; }

.contact-form label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--navy-dark); margin-bottom: 0.35rem; margin-top: 1rem; }
.contact-form input, .contact-form textarea {
    width: 100%; padding: 0.75rem 1rem;
    font-family: inherit; font-size: 0.95rem;
    border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--white); color: var(--text);
    transition: border-color 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 0; border-color: var(--navy); }
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form button { margin-top: 1.25rem; }

/* Page hero (inner pages)
   -------------------------------------------------------------------------- */
.page-hero {
    background: var(--navy-dark); color: var(--white);
    padding: 4rem 0 3rem;
}
.page-hero h1 { color: var(--white); margin-bottom: 0.75rem; }
.page-hero p { color: rgba(255,255,255,0.8); max-width: 640px; margin-bottom: 0; }

/* Blog
   -------------------------------------------------------------------------- */
.blog-empty {
    text-align: center; padding: 4rem 2rem;
    background: var(--white); border: 1px dashed var(--border); border-radius: var(--radius);
}
.blog-empty h3 { color: var(--navy-dark); }
.blog-empty p { color: var(--text-muted); margin-bottom: 0; }

/* Footer
   -------------------------------------------------------------------------- */
.site-footer {
    background: var(--navy-dark); color: rgba(255,255,255,0.7);
    padding: 3.5rem 0 1.5rem; margin-top: 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 2.5rem; }
.footer-brand img { height: 44px; margin-bottom: 1rem; filter: brightness(0) invert(1); opacity: 0.9; }
.footer-brand p { font-size: 0.9rem; color: rgba(255,255,255,0.6); max-width: 320px; }
.footer-col h4 { color: var(--white); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: rgba(255,255,255,0.65); font-size: 0.9rem; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem; font-size: 0.8rem; color: rgba(255,255,255,0.5);
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}

/* Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
    .section { padding: 3.5rem 0; }
    .nav-links { display: none; }
    .nav-toggle { display: block; }
    .nav-cta { display: none; }
    .nav.nav-open .nav-links {
        display: flex; flex-direction: column;
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--white); padding: 1.5rem; gap: 1rem;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
    }
    .nav.nav-open .nav-cta { display: block; margin: 0.5rem 1.5rem 1.5rem; }
    .feature-row { grid-template-columns: 1fr; gap: 2rem; }
    .feature-row.reverse > :first-child { order: 0; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .hero { min-height: 460px; }
    .hero-content { padding: 4rem 0; }
}

@media (max-width: 480px) {
    .nav-logo-text { display: none; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { width: 100%; }
}
