/*
Theme Name: REYYC Authority
Theme URI: https://reyyc.ca
Author: Rafiq Shaikh
Author URI: https://reyyc.ca
Description: Corporate, professional real estate theme for Calgary market leadership.
Version: 1.0
License: GPL v2 or later
Text Domain: reyyc-authority
*/

/* Corporate Color Palette */
:root {
    --primary: #003366;      /* Deep corporate blue */
    --primary-dark: #002244;  /* Darker blue for hover */
    --secondary: #4A6FA5;     /* Lighter blue for accents */
    --accent: #D4AF37;        /* Subtle gold for highlights */
    --black: #1A1A1A;
    --gray-dark: #4A4A4A;
    --gray-medium: #6B7280;
    --gray-light: #E5E7EB;
    --white: #FFFFFF;
    --bg-light: #F9FAFB;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    color: var(--black);
    background: var(--white);
}

/* Corporate Typography - Clean, Professional */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5em;
    color: var(--black);
    letter-spacing: -0.02em;
}

h1 { font-size: 48px; font-weight: 700; }
h2 { font-size: 32px; font-weight: 600; }
h3 { font-size: 24px; font-weight: 600; }
h4 { font-size: 20px; font-weight: 500; }

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover { color: var(--secondary); }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-light);
    z-index: 1000;
    padding: 16px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--primary);
}
.logo span { color: var(--primary-dark); }

.main-nav ul {
    display: flex;
    gap: 32px;
    list-style: none;
}
.main-nav a {
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-dark);
}
.main-nav a:hover { color: var(--primary); }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* App Banner */
.app-banner {
    background: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 12px;
    font-size: 14px;
}
.app-banner a {
    color: var(--accent);
    margin-left: 10px;
    font-weight: 600;
}
.app-banner a:hover { color: var(--white); }

/* Buttons - Corporate Style */
.btn, .btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    text-align: center;
}
.btn-primary {
    background: var(--primary);
    color: var(--white) !important;
    border: none;
}
.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--white) !important;
    transform: translateY(-1px);
}
.btn-secondary {
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary) !important;
}
.btn-secondary:hover {
    background: var(--primary);
    color: var(--white) !important;
}

/* Footer */
.site-footer {
    background: var(--bg-light);
    border-top: 1px solid var(--gray-light);
    padding: 48px 0 32px;
    margin-top: 60px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}
.footer-col h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--black);
}
.footer-col p, .footer-col a {
    font-size: 14px;
    color: var(--gray-medium);
    line-height: 1.8;
}
.footer-bottom {
    text-align: center;
    padding-top: 32px;
    margin-top: 32px;
    border-top: 1px solid var(--gray-light);
    font-size: 13px;
    color: var(--gray-medium);
}

/* Blog/Article Grid */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
    margin: 48px 0;
}
.article-card {
    border: 1px solid var(--gray-light);
    padding: 24px;
    transition: box-shadow 0.2s;
    background: var(--white);
}
.article-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}
.article-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}
.article-meta {
    font-size: 13px;
    color: var(--gray-medium);
    margin-bottom: 16px;
}
.read-more {
    display: inline-block;
    margin-top: 16px;
    font-weight: 500;
}

/* Homepage Specific */
.hero-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--white) 100%);
    text-align: center;
}
.hero-title {
    font-size: 52px;
    margin-bottom: 20px;
}
.hero-title .gold {
    color: var(--primary);
}
.hero-subtitle {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 32px;
    color: var(--gray-dark);
}
.trust-section {
    padding: 40px 0;
    background: var(--white);
    border-top: 1px solid var(--gray-light);
    border-bottom: 1px solid var(--gray-light);
}
.trust-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 40px;
    text-align: center;
}
.trust-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
}
.trust-label {
    font-size: 14px;
    color: var(--gray-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.about-section {
    padding: 80px 0;
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.services-section {
    padding: 80px 0;
    background: var(--bg-light);
}
.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 48px;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}
.service-card {
    background: var(--white);
    padding: 32px 24px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--gray-light);
    transition: transform 0.2s;
}
.service-card:hover {
    transform: translateY(-4px);
}
.service-card h3 {
    font-size: 20px;
    margin: 20px 0 12px;
}
.service-card p {
    color: var(--gray-medium);
    font-size: 14px;
    margin-bottom: 20px;
}
.guide-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    background: var(--bg-light);
    border-radius: 8px;
    padding: 48px;
}
.guide-image img {
    width: 100%;
    border-radius: 8px;
}
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}
.app-banner-section {
    padding: 80px 0;
    background: var(--primary);
    color: var(--white);
}
.app-banner-section .btn-primary {
    background: var(--white);
    color: var(--primary);
}
.app-banner-section .btn-primary:hover {
    background: var(--accent);
    color: var(--primary);
}
.snapshot-section {
    padding: 80px 0;
    background: var(--bg-light);
}
.snapshot-card {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    background: var(--white);
    padding: 48px;
    border-radius: 8px;
    border: 1px solid var(--gray-light);
}
.snapshot-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
}
.snapshot-form input {
    padding: 14px 16px;
    border: 1px solid var(--gray-light);
    border-radius: 4px;
    font-size: 15px;
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.testimonial-card {
    background: var(--bg-light);
    padding: 32px;
    border-radius: 8px;
    text-align: center;
}
.testimonial-author {
    font-weight: 600;
    color: var(--primary);
    margin-top: 16px;
}

/* Responsive */
@media (max-width: 992px) {
    .services-grid, .testimonials-grid, .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-grid, .guide-card, .app-banner-content {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 36px;
    }
    h1 { font-size: 36px; }
    h2 { font-size: 28px; }
}
@media (max-width: 768px) {
    .services-grid, .testimonials-grid, .articles-grid {
        grid-template-columns: 1fr;
    }
    .trust-grid {
        flex-direction: column;
        gap: 24px;
    }
    .mobile-menu-btn { display: block; }
    .main-nav {
        display: none;
        width: 100%;
        margin-top: 16px;
    }
    .main-nav.active { display: block; }
    .main-nav ul {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .container {
        padding: 0 20px;
    }
}

/* Hero section button fixes */
.hero-buttons .btn-primary,
.hero-buttons .btn-secondary {
    min-width: 200px;
}
.hero-buttons .btn-secondary {
    background: rgba(0, 51, 102, 0.1);
    border-color: var(--primary);
}

/* Fix dark text on dark backgrounds */
.app-banner-section,
.app-banner-section h2,
.app-banner-section p {
    color: var(--white);
}
.app-banner-section .btn-primary {
    background: var(--white);
    color: var(--primary) !important;
}
.app-banner-section .btn-primary:hover {
    background: var(--accent);
    color: var(--primary) !important;
}

/* Hero section text visibility */
.hero-section {
    background: linear-gradient(135deg, #F9FAFB 0%, #FFFFFF 100%);
}
.hero-title, .hero-subtitle {
    color: var(--black);
}

/* Trust section text */
.trust-number {
    color: var(--primary);
}
.trust-label {
    color: var(--gray-medium);
}

/* Service cards */
.service-card p {
    color: var(--gray-dark);
}

/* Guide card */
.guide-card {
    background: var(--bg-light);
}
.guide-card .guide-content h2,
.guide-card .guide-content p {
    color: var(--black);
}

/* Testimonials */
.testimonial-card p {
    color: var(--gray-dark);
}
.testimonial-author {
    color: var(--primary);
}

/* Snapshot card */
.snapshot-card {
    background: var(--white);
}
.snapshot-card h2,
.snapshot-card p {
    color: var(--black);
}
.snapshot-form input {
    color: var(--black);
    background: var(--white);
}
.snapshot-form input::placeholder {
    color: var(--gray-medium);
}
.success-message {
    background: #e8f5e9;
    color: #2e7d32;
}
.success-message a {
    color: #1a5a20;
}