/**
 * Horizon Academy – Main Stylesheet
 * Primary: Goldenrod, Crimson, Black
 * Secondary: Rosewood, Warm Sand, Cool Gray
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ========== Variables ========== */
:root {
    --gold: #E09A23;
    --crimson: #BE262C;
    --black: #000000;
    --rosewood: #491A1A;
    --warm-sand: #DDBEAA;
    --cool-gray: #E5E5E5;
    --gold-light: rgba(224, 154, 35, 0.12);
    --crimson-light: rgba(190, 38, 44, 0.12);
}

/* ========== Base ========== */
* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.font-display {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background: #ffffff;
    color: #000000;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* ========== Layout ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

.section {
    padding: 5rem 0;
}

@media (min-width: 768px) {
    .section {
        padding: 6rem 0;
    }
}

/* ========== Buttons ========== */
.btn-primary {
    background: var(--crimson);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(190, 38, 44, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(190, 38, 44, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--gold);
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid var(--gold);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(224, 154, 35, 0.2);
}

.btn-secondary:hover {
    background: var(--gold);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(224, 154, 35, 0.3);
}

/* ========== Cards ========== */
.card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.card-featured {
    background: linear-gradient(135deg, white 0%, #fafafa 100%);
    border: 2px solid var(--gold);
}

/* ========== Typography ========== */
.text-lead {
    font-size: 1.25rem;
    line-height: 1.75;
    color: rgba(0, 0, 0, 0.7);
}

.section-title {
    font-size: 2.75rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3.5rem;
    }
}

/* ========== Animations ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* ========== Form & Inputs ========== */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(224, 154, 35, 0.1);
}

/* ========== Scrollbar ========== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--crimson);
}

/* ========== Utilities ========== */
.gradient-text {
    background: linear-gradient(135deg, var(--gold) 0%, var(--crimson) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.badge-gold {
    background: var(--gold);
    color: var(--black);
}

.badge-crimson {
    background: var(--crimson);
    color: white;
}

.nav.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Mini accent dash */
.mini-dash {
    display: block;
    width: 1.5rem;
    height: 3px;
    border-radius: 999px;
    background: var(--gold);
    margin-top: 0.75rem;
    margin-bottom: 1.5rem;
    transition: width 0.3s ease;
}

.mini-dash-center {
    margin-left: auto;
    margin-right: auto;
}

.mini-dash-crimson {
    background: var(--crimson);
}

.mini-dash-tight {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.group:hover .mini-dash {
    width: 2.5rem;
}

/* Nav mini-dash hover under the label */
.nav-link {
    position: relative;
    display: inline-block;
    padding-bottom: 0.4rem;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    border-radius: 999px;
    transform: translateX(-50%);
    transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link.is-active::after {
    width: 1.25rem;
}

.nav-link.is-active {
    color: var(--gold);
}

.nav-link-start::after {
    left: 0;
    transform: none;
}

#navbar {
    overflow: hidden;
}

#navbar .navbar-logo {
    height: 5.75rem;
    max-height: none;
    width: auto;
    object-fit: contain;
    object-position: left center;
}

@media (min-width: 768px) {
    #navbar .navbar-logo {
        height: 6.5rem;
    }
}

@media (max-width: 359px) {
    #navbar .navbar-logo {
        height: 5rem;
    }
}
