/* ============================================================================
   Robert Raine Career Services — Global Stylesheet
   Colors matched to current brainecorp.com branding
   ============================================================================ */

/* ─── CSS Variables ────────────────────────────────────────────────────────── */
:root {
    /* Primary palette — matched from live brainecorp.com */
    --primary:          #181C80;    /* Deep blue — headers, nav, buttons */
    --primary-dark:     #12155f;    /* Darker blue for hover states */
    --accent:           #59C3F9;    /* Light blue — accents, links, highlights */
    --accent-hover:     #35A8DB;    /* Medium blue — accent hover state */
    --dark:             #161616;    /* Near-black — body text, dark sections */
    --white:            #FFFFFF;
    --off-white:        #F6F6F6;    /* Light backgrounds */
    --gray-light:       #C0C0D0;    /* Borders, muted text */
    --gray-medium:      #666666;    /* Secondary text */
    --black:            #000000;

    /* Typography */
    --font-heading:     'Archivo Black', 'Poppins', sans-serif;
    --font-body:        'Gudea', 'Inter', Georgia, serif;
    --font-size-base:   16px;
    --line-height:      1.6;

    /* Spacing */
    --container-width:  1200px;
    --section-padding:  80px 0;
    --card-radius:      8px;
    --card-shadow:      0 2px 12px rgba(0, 0, 0, 0.08);

    /* Transitions */
    --transition:       0.3s ease;
}

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

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: var(--line-height);
    color: var(--dark);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
    color: var(--primary);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 0.5em;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1em;
}

ul, ol {
    list-style: none;
}

/* ─── Container ────────────────────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ─── Announcement Bar ─────────────────────────────────────────────────────── */
.announcement-bar {
    background-color: var(--accent);
    color: var(--white);
    text-align: center;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.announcement-bar a {
    color: var(--white);
    text-decoration: underline;
    font-weight: 700;
}

.announcement-bar a:hover {
    color: var(--off-white);
}

/* ─── Header ───────────────────────────────────────────────────────────────── */
.site-header {
    background-color: var(--white);
    border-bottom: 3px solid var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

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

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo img {
    height: 125px;
    width: auto;
}

.logo-name {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--primary);
    line-height: 1.1;
}

.logo-tagline {
    font-size: 0.8rem;
    color: var(--gray-medium);
    display: block;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-list a {
    display: block;
    padding: 8px 14px;
    color: var(--dark);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 4px;
    transition: background-color var(--transition), color var(--transition);
}

.nav-list a:hover,
.nav-list a.active {
    background-color: var(--primary);
    color: var(--white);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 16px;
}

/* ─── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

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

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

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

.btn-accent {
    background-color: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.btn-accent:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--white);
}

.btn-text {
    color: var(--gray-medium);
    font-size: 0.9rem;
    text-decoration: none;
}

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

/* ─── Hero Section ─────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    background-color: var(--dark);
    color: var(--white);
    padding: 120px 0;
    text-align: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: var(--white);
    font-size: 3.25rem;
    margin-bottom: 0.3em;
}

.hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 1.5em;
    color: var(--gray-light);
}

.hero .btn {
    font-size: 1.1rem;
    padding: 16px 40px;
}

/* ─── Sections ─────────────────────────────────────────────────────────────── */
.section {
    padding: var(--section-padding);
}

.section-alt {
    background-color: var(--off-white);
}

.section-dark {
    background-color: var(--dark);
    color: var(--white);
}

.section-dark h2,
.section-dark h3 {
    color: var(--white);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* ─── Social Icons ─────────────────────────────────────────────────────────── */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--white);
    font-size: 1.3rem;
    transition: all var(--transition);
    text-decoration: none;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: var(--white);
}

.social-icon[title="Facebook"]:hover    { background-color: #1877F2; }
.social-icon[title="Instagram"]:hover   { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-icon[title="LinkedIn"]:hover    { background-color: #0A66C2; }
.social-icon[title="TikTok"]:hover      { background-color: #000000; }
.social-icon[title="YouTube"]:hover     { background-color: #FF0000; }
.social-icon[title="Yelp"]:hover        { background-color: #d32323; }

.footer-social {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--gray-light);
    font-size: 1.1rem;
    transition: all var(--transition);
}

.footer-social a:hover {
    background-color: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
}

/* ─── Cards ────────────────────────────────────────────────────────────────── */
.card {
    background: var(--white);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    border-top: 4px solid var(--primary);
    padding: 2rem;
    transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

/* ─── Service Cards ────────────────────────────────────────────────────────── */
.service-card .price {
    font-size: 2rem;
    font-family: var(--font-heading);
    color: var(--primary);
    margin: 0.5em 0;
}

.service-card .price span {
    font-size: 1rem;
    color: var(--gray-medium);
}

.service-card ul {
    margin: 1em 0;
}

.service-card li {
    padding: 6px 0;
    padding-left: 1.5em;
    position: relative;
    color: var(--dark);
}

.service-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-hover);
    font-weight: 700;
}

/* ─── Service Card Icons ───────────────────────────────────────────────────── */
.service-icon {
    font-size: 2.5rem;
    color: var(--accent-hover);
    margin-bottom: 0.5em;
    text-align: center;
}

.service-card {
    display: flex;
    flex-direction: column;
}

.service-card-actions {
    margin-top: auto;
    padding-top: 1.5em;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.service-card-actions .btn {
    flex: 1;
    text-align: center;
    min-width: 120px;
}

/* ─── Video Embeds ─────────────────────────────────────────────────────────── */
.video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ─── Review Cards ─────────────────────────────────────────────────────────── */
.review-card {
    display: flex;
    flex-direction: column;
    gap: 0.75em;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 0.75em;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.review-avatar-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    letter-spacing: 0.05em;
}

.review-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.review-name {
    font-weight: 700;
    color: var(--dark);
    font-size: 1rem;
}

.review-info {
    display: flex;
    align-items: center;
    gap: 0.75em;
    font-size: 0.85rem;
}

.review-platform {
    font-weight: 600;
}

.review-platform i {
    margin-right: 3px;
}

.review-date {
    color: var(--gray-medium);
}

.review-stars {
    color: #f5a623;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.review-text {
    font-style: italic;
    color: var(--dark);
    line-height: 1.6;
    margin: 0;
}

/* ─── Tier Badge ───────────────────────────────────────────────────────────── */
.tier-badge {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ─── Forms ────────────────────────────────────────────────────────────────── */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 2px solid var(--gray-light);
    border-radius: 4px;
    transition: border-color var(--transition);
    background-color: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* ─── Status Badges ────────────────────────────────────────────────────────── */
.badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
}

.badge-active   { background: #e8f5e9; color: #2e7d32; }
.badge-inactive { background: #fce4ec; color: #c62828; }
.badge-prospect { background: #e3f2fd; color: #1565c0; }
.badge-draft    { background: var(--off-white); color: var(--gray-medium); }
.badge-sent     { background: #e3f2fd; color: #1565c0; }
.badge-paid     { background: #e8f5e9; color: #2e7d32; }
.badge-overdue  { background: #fff3e0; color: #e65100; }

/* ─── Footer ───────────────────────────────────────────────────────────────── */
.site-footer {
    background-color: var(--dark);
    color: var(--gray-light);
    padding: 60px 0 30px;
}

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

.site-footer h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 1em;
}

.site-footer h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 1em;
}

.site-footer a {
    color: var(--gray-light);
    transition: color var(--transition);
}

.site-footer a:hover {
    color: var(--accent);
}

.site-footer ul li {
    margin-bottom: 8px;
}

.footer-phone a {
    color: var(--accent);
    font-size: 1.1rem;
    font-weight: 700;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
}

/* ─── Mobile Hamburger ─────────────────────────────────────────────────────── */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 24px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
    transition: all var(--transition);
}

.hamburger {
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger::before { top: -8px; }
.hamburger::after  { top: 8px; }

/* ─── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        border-top: 1px solid var(--gray-light);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    }

    .main-nav.is-open {
        display: flex;
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
    }

    .nav-list a {
        padding: 12px 16px;
        width: 100%;
    }

    .nav-actions {
        margin-left: 0;
        margin-top: 12px;
        width: 100%;
        flex-direction: column;
    }

    .nav-actions .btn {
        width: 100%;
        text-align: center;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }

    .hero {
        padding: 80px 0;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header-inner {
        padding: 10px 16px;
    }

    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .section {
        padding: 50px 0;
    }
}
