/* =========================================================
   RERA GLOBAL — Brand Stylesheet
   Navy: #1a2952 | Red: #c8102e | Light: #f5f6fa
   ========================================================= */

:root {
    --navy: #1a2952;
    --navy-dark: #11183a;
    --navy-light: #2a3a6c;
    --red: #c8102e;
    --red-dark: #9e0a22;
    --light: #f5f6fa;
    --gray: #6b7280;
    --gray-light: #e5e7eb;
    --white: #ffffff;
    --shadow-sm: 0 2px 6px rgba(26, 41, 82, 0.08);
    --shadow-md: 0 8px 24px rgba(26, 41, 82, 0.12);
    --shadow-lg: 0 16px 40px rgba(26, 41, 82, 0.18);
    --radius: 8px;
    --radius-lg: 16px;
    --transition: 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Open Sans', system-ui, -apple-system, sans-serif;
    color: #1f2937;
    line-height: 1.65;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--navy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red); }

h1, h2, h3, h4, h5 {
    font-family: 'Montserrat', sans-serif;
    color: var(--navy);
    line-height: 1.25;
    font-weight: 700;
}

h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 1rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.75rem; }

p { margin-bottom: 1rem; }

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

/* ---------- Top bar ---------- */
.topbar {
    background: var(--navy-dark);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    padding: 8px 0;
}
.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.topbar span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 18px;
}
.topbar svg { opacity: 0.85; }

/* ---------- Header / nav ---------- */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--navy);
}
.brand:hover { color: var(--navy); }
.brand-mark {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    border: 2px solid var(--red);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--navy);
    letter-spacing: 0.5px;
}
.brand-name em {
    font-style: normal;
    color: var(--navy);
    letter-spacing: 4px;
    font-weight: 600;
    border-top: 2px solid var(--red);
    padding-top: 2px;
    display: inline-block;
}
.brand-tag {
    font-size: 0.65rem;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-top: 2px;
}

.site-nav ul {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}
.site-nav a {
    padding: 10px 16px;
    font-weight: 600;
    color: var(--navy);
    border-radius: var(--radius);
    font-size: 0.95rem;
    transition: all var(--transition);
}
.site-nav a:hover { color: var(--red); }
.site-nav a.active { color: var(--red); }
.site-nav a.btn-cta {
    background: var(--red);
    color: var(--white);
    padding: 10px 22px;
}
.site-nav a.btn-cta:hover { background: var(--red-dark); color: var(--white); }
.site-nav a.btn-cta.active { background: var(--red-dark); color: var(--white); }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}
.nav-toggle span {
    width: 26px;
    height: 3px;
    background: var(--navy);
    border-radius: 2px;
    transition: var(--transition);
}

@media (max-width: 860px) {
    .nav-toggle { display: flex; }
    .site-nav {
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: var(--white);
        box-shadow: var(--shadow-md);
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition);
    }
    .site-nav.open { max-height: 500px; }
    .site-nav ul { flex-direction: column; padding: 12px 0; gap: 0; }
    .site-nav a { display: block; border-radius: 0; padding: 14px 24px; }
    .site-nav a.btn-cta { margin: 8px 24px; border-radius: var(--radius); text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
    font-family: 'Montserrat', sans-serif;
}
.btn-primary {
    background: var(--red);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--red-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}
.btn-outline:hover {
    background: var(--white);
    color: var(--navy);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    background:
        linear-gradient(135deg, rgba(26,41,82,0.92) 0%, rgba(17,24,58,0.95) 100%),
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='1600' height='800' viewBox='0 0 1600 800'><rect fill='%231a2952' width='1600' height='800'/><g opacity='0.3'><circle cx='200' cy='200' r='100' fill='%23c8102e'/><circle cx='1400' cy='600' r='150' fill='%231e2c5c'/></g></svg>");
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 100px 0 120px;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 50%;
    background: linear-gradient(225deg, rgba(200,16,46,0.15) 0%, transparent 70%);
    pointer-events: none;
}
.hero-content { max-width: 720px; position: relative; z-index: 2; }
.hero-eyebrow {
    display: inline-block;
    background: var(--red);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 20px;
}
.hero h1 {
    color: var(--white);
    font-weight: 800;
    margin-bottom: 20px;
}
.hero h1 span { color: #ff5f73; }
.hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 32px;
    max-width: 600px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* Page hero (smaller, used on inner pages) */
.page-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    color: var(--white);
    padding: 60px 0 70px;
    text-align: center;
    position: relative;
}
.page-hero::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    height: 6px;
    background: var(--red);
}
.page-hero h1 { color: var(--white); margin-bottom: 8px; }
.page-hero p { opacity: 0.85; margin: 0; }
.breadcrumb {
    margin-top: 14px;
    font-size: 0.9rem;
    opacity: 0.8;
}
.breadcrumb a { color: var(--white); }
.breadcrumb a:hover { color: #ff5f73; }

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.section-light { background: var(--light); }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .eyebrow {
    color: var(--red);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    margin-bottom: 8px;
    display: block;
}
.section-header p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--gray);
}

/* ---------- Services grid ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}
.service-card {
    background: var(--white);
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--navy);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--red);
}
.service-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    margin-bottom: 20px;
    transition: all var(--transition);
}
.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--red), var(--red-dark));
}
.service-icon svg { width: 32px; height: 32px; fill: currentColor; }
.service-card h3 { color: var(--navy); }
.service-card p { color: var(--gray); margin-bottom: 0; font-size: 0.95rem; }

/* ---------- About / Why us ---------- */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 40px; } }

.feature-list { list-style: none; margin-top: 24px; }
.feature-list li {
    padding: 14px 0 14px 36px;
    position: relative;
    border-bottom: 1px solid var(--gray-light);
}
.feature-list li:last-child { border-bottom: none; }
.feature-list li::before {
    content: '';
    position: absolute;
    left: 0; top: 18px;
    width: 22px; height: 22px;
    background: var(--red);
    border-radius: 50%;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'><path d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>");
    background-size: 14px;
    background-position: center;
    background-repeat: no-repeat;
}

.image-card {
    background: linear-gradient(135deg, var(--navy), var(--navy-dark));
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    color: var(--white);
    position: relative;
    overflow: hidden;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.image-card::before {
    content: 'R';
    position: absolute;
    right: -40px; top: -60px;
    font-size: 28rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    color: rgba(255,255,255,0.04);
    line-height: 1;
}
.image-card h3 { color: var(--white); }
.image-card p { opacity: 0.85; margin: 0; }

/* ---------- Stats / CTA strip ---------- */
.cta-strip {
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    color: var(--white);
    padding: 56px 0;
    text-align: center;
}
.cta-strip h2 { color: var(--white); margin-bottom: 12px; }
.cta-strip p { opacity: 0.95; margin-bottom: 24px; }

/* ---------- Contact form ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-form {
    background: var(--white);
    padding: 36px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
    font-size: 0.9rem;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--gray-light);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    background: var(--white);
    transition: border var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(26,41,82,0.1);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 22px;
    font-size: 0.95rem;
}
.alert-success {
    background: #e8f5e9;
    color: #1b5e20;
    border-left: 4px solid #2e7d32;
}
.alert-error {
    background: #ffebee;
    color: #b71c1c;
    border-left: 4px solid var(--red);
}

.contact-info {
    padding-top: 8px;
}
.contact-info-card {
    display: flex;
    gap: 16px;
    padding: 22px;
    background: var(--white);
    border-radius: var(--radius);
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--red);
}
.contact-info-card .icon {
    width: 44px; height: 44px;
    background: var(--navy);
    color: var(--white);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-info-card .icon svg { width: 22px; height: 22px; fill: currentColor; }
.contact-info-card h4 { margin-bottom: 4px; font-size: 1rem; }
.contact-info-card p { margin: 0; color: var(--gray); font-size: 0.95rem; }
.contact-info-card a { color: var(--gray); }
.contact-info-card a:hover { color: var(--red); }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--navy-dark);
    color: rgba(255,255,255,0.75);
    padding-top: 60px;
    margin-top: 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
    gap: 40px;
    padding-bottom: 40px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-col h4 {
    color: var(--white);
    margin-bottom: 18px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    position: relative;
    padding-bottom: 10px;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 36px; height: 3px;
    background: var(--red);
    border-radius: 2px;
}
.footer-blurb { font-size: 0.9rem; line-height: 1.7; margin-top: 16px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 0.92rem; }
.footer-links a:hover { color: var(--red); padding-left: 4px; }
.footer-contact { font-size: 0.9rem; line-height: 1.7; margin-bottom: 12px; }
.footer-contact a { color: rgba(255,255,255,0.85); }
.footer-contact a:hover { color: var(--red); }

.brand-footer .brand-mark {
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    border-color: var(--white);
}
.brand-footer .brand-name { color: var(--white); }
.brand-footer .brand-name em { color: var(--white); border-top-color: var(--red); }
.brand-footer .brand-tag { color: #ff5f73; }

.footer-bottom {
    background: rgba(0,0,0,0.25);
    padding: 18px 0;
    font-size: 0.85rem;
}
.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }
