/* ============================================================================= *
 * Ridge Runner Consultants — Stylesheet
 * Blue & white theme with West Virginia rolling hills motif
 * @version 2026.08.25_v001
 * ============================================================================= */

/* ── Design Tokens ──────────────────────────────────────────────────────────── */
:root {
    --primary:    #1a4480;
    --secondary:  #2d6a9f;
    --accent:     #5a7a8a;
    --bg-white:   #ffffff;
    --bg-off:     #f5f7fa;
    --text-dark:  #1a2a3a;
    --text-light: #ffffff;
    --border:     #d0dce8;
    --radius:     8px;
    --shadow:     0 2px 12px rgba(26, 68, 128, 0.08);
    --transition: 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: var(--text-dark);
    background: var(--bg-white);
    line-height: 1.6;
}

/* ── Layout ──────────────────────────────────────────────────────────────────── */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Header ──────────────────────────────────────────────────────────────────── */
.site-header {
    background: var(--primary);
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 48px;
    height: 20px;
}

.logo-text {
    color: var(--text-light);
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ── Hero Section ─────────────────────────────────────────────────────────────── */
.hero {
    background: linear-gradient(180deg, var(--bg-white) 0%, #e8f0fa 60%, var(--bg-off) 100%);
    padding: 80px 20px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 680px;
    margin: 0 auto;
    animation: fadeIn 1s ease-in;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.hero .tagline {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--secondary);
    margin-bottom: 8px;
    font-weight: 400;
}

.hero .location {
    font-size: 1rem;
    color: var(--accent);
    font-style: italic;
}

.hero-hills {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
}

.hero-hills svg {
    width: 100%;
    height: 80px;
}

/* ── Section Titles ──────────────────────────────────────────────────────────── */
.section-title {
    font-size: 2rem;
    color: var(--primary);
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 12px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
}

/* ── About Section ───────────────────────────────────────────────────────────── */
.about {
    background: var(--bg-white);
    padding: 60px 0;
}

.about-content {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-content p {
    margin-bottom: 1.5rem;
}

.about-content em {
    color: var(--primary);
    font-style: italic;
}

/* ── Section Divider (WV hills) ──────────────────────────────────────────────── */
.section-divider {
    width: 100%;
    line-height: 0;
}

.section-divider svg {
    width: 100%;
    height: 40px;
}

/* ── Contact Section ──────────────────────────────────────────────────────────── */
.contact {
    background: var(--bg-off);
    padding: 60px 0;
}

.contact-wrapper {
    display: flex;
    gap: 4rem;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 900px;
    margin: 0 auto;
}

.contact-info {
    flex: 1;
    min-width: 280px;
}

.contact-info h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.contact-info p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1.5rem;
}

.contact-details {
    margin-top: 2rem;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.contact-details a {
    display: inline-block;
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.contact-details a:hover {
    border-bottom-color: var(--primary);
}

.social-links {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-white);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.social-links a:hover svg path {
    fill: var(--text-light);
}

/* ── Contact Form ────────────────────────────────────────────────────────────── */
.contact-form-container {
    flex: 1.5;
    min-width: 280px;
}

.contact-form-container h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    background: var(--bg-white);
    color: var(--text-dark);
    transition: var(--transition);
}

#contact-form input:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 68, 128, 0.1);
}

#contact-form textarea {
    resize: vertical;
}

/* Honeypot — hidden from humans */
.honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
}

.btn {
    background: var(--primary);
    color: var(--text-light);
    border: 1px solid var(--primary);
    padding: 12px 28px;
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    align-self: flex-start;
}

.btn:hover {
    background: transparent;
    color: var(--primary);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Form feedback */
.form-feedback {
    margin-top: 1rem;
    font-size: 1rem;
    padding: 12px;
    border-radius: var(--radius);
    display: none;
}

.form-feedback.show {
    display: block;
}

.form-feedback.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.form-feedback.error {
    background: #fbe9e7;
    color: #c62828;
    border: 1px solid #ffccbc;
}

/* ── Footer ──────────────────────────────────────────────────────────────────── */
.site-footer {
    background: var(--primary);
    color: var(--text-light);
    padding: 30px 0;
    text-align: center;
}

.site-footer p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.dev-notice {
    margin-top: 4px;
    font-size: 0.8rem;
    opacity: 0.6;
}

/* ── Animations ─────────────────────────────────────────────────────────────── */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .contact-wrapper {
        flex-direction: column;
        gap: 3rem;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .hero {
        padding: 50px 20px 40px;
    }

    .section-title {
        font-size: 1.6rem;
    }
}