/* ============================================
   HomeRunBook - Global Styles
   ============================================ */

:root {
    --primary-dark: #1e3a5f;
    --primary-blue: #3b7dbd;
    --accent-cyan: #e8a84c;
    --accent-teal: #d4892e;
    --accent-orange: #d4892e;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --bg-light: #f9f7f4;
    --bg-warm: #fffbf5;
    --white: #ffffff;
    --border: rgba(0, 0, 0, 0.06);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }

/* ---- Typography ---- */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-accent {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-teal);
    margin-bottom: 1rem;
    padding: 0.35rem 1rem;
    background: rgba(212, 137, 46, 0.08);
    border-radius: 100px;
    border: 1px solid rgba(212, 137, 46, 0.15);
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--primary-dark);
    margin-bottom: 1.25rem;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-light);
    max-width: 680px;
    line-height: 1.7;
}

/* ---- Layout ---- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 7rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header .section-subtitle {
    margin: 0 auto;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
    color: white;
    box-shadow: 0 4px 14px rgba(212, 137, 46, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 137, 46, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-dark);
    border: 2px solid var(--primary-dark);
}

.btn-secondary:hover {
    background: var(--primary-dark);
    color: white;
}

.btn-outline-light {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
}

.btn-large {
    padding: 1.1rem 2.25rem;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
}

.btn-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

/* ---- Header ---- */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s;
}

header.scrolled {
    box-shadow: var(--shadow-sm);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.85rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo { height: 42px; }

nav {
    display: flex;
    gap: 1.75rem;
    align-items: center;
}

nav a {
    font-weight: 500;
    font-size: 0.92rem;
    color: var(--text-dark);
    transition: color 0.2s;
    position: relative;
}

nav a:hover, nav a.active {
    color: var(--accent-teal);
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-teal);
    border-radius: 1px;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-toggle svg {
    width: 24px;
    height: 24px;
    stroke: var(--text-dark);
    fill: none;
    stroke-width: 2;
}

/* ---- Cards ---- */
.card {
    padding: 2.25rem;
    border-radius: var(--radius-lg);
    background: var(--white);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.card-icon svg {
    width: 28px;
    height: 28px;
    stroke-width: 1.5;
    fill: none;
}

.card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
}

.card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* ---- Grids ---- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ---- Footer ---- */
footer {
    background: linear-gradient(180deg, var(--primary-dark) 0%, #0f2744 100%);
    color: rgba(255,255,255,0.85);
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    opacity: 0.75;
    margin-top: 1rem;
    max-width: 300px;
}

.footer-col h4 {
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
    color: var(--accent-cyan);
}

.footer-col a {
    display: block;
    font-size: 0.9rem;
    opacity: 0.75;
    margin-bottom: 0.65rem;
    transition: opacity 0.2s, color 0.2s;
}

.footer-col a:hover {
    opacity: 1;
    color: var(--accent-cyan);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    opacity: 0.6;
}

.footer-bottom a {
    margin-left: 1.5rem;
}

.footer-bottom a:hover { opacity: 1; }

/* ---- Comparison Table ---- */
.comparison-table {
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--white);
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: 1.1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.92rem;
}

.comparison-table th {
    background: var(--primary-dark);
    color: white;
    font-weight: 600;
}

.comparison-table th:first-child { border-radius: var(--radius-lg) 0 0 0; }
.comparison-table th:last-child { border-radius: 0 var(--radius-lg) 0 0; }
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:hover td { background: rgba(212, 137, 46, 0.03); }

.check { color: var(--accent-teal); font-weight: 700; }
.partial { color: #eab308; font-weight: 600; }
.miss { color: var(--text-muted); }

/* ---- Testimonial / Quote ---- */
.quote-block {
    background: linear-gradient(135deg, rgba(212, 137, 46, 0.05), rgba(212, 137, 46, 0.05));
    border-left: 4px solid var(--accent-teal);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 2rem 2.5rem;
    margin: 2rem 0;
}

.quote-block p {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--primary-dark);
    line-height: 1.7;
}

/* ---- Animations ---- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(212, 137, 46, 0.2); }
    50% { box-shadow: 0 0 40px rgba(212, 137, 46, 0.4); }
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .section-title { font-size: 2.2rem; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .section { padding: 4rem 0; }
    .section-title { font-size: 1.9rem; }
    .section-subtitle { font-size: 1rem; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: 1fr; }

    nav { display: none; }
    nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 1.5rem 2rem;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
    }
    .mobile-toggle { display: block; }

    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
    .footer-bottom a { margin-left: 0; margin-right: 1rem; }

    .comparison-table { font-size: 0.82rem; }
    .comparison-table th, .comparison-table td { padding: 0.75rem 0.65rem; }
}
