/* ========== RESET & BASE ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    /* Primary — Jockey Silks Red */
    --red-900: #5a0f0f;
    --red-800: #7a1518;
    --red-700: #9b1b1e;
    --red-600: #b92025;
    --red-500: #c0392b;
    --red-400: #d4524a;
    --red-300: #e07c75;
    --red-200: #f0b0aa;
    --red-100: #fce4e1;
    --red-50: #fef5f4;

    /* Secondary — Cap Blue */
    --blue-900: #0f1a3d;
    --blue-800: #1a2a5a;
    --blue-700: #243b7a;
    --blue-600: #2c3e9b;
    --blue-500: #3450b2;
    --blue-400: #5272cc;
    --blue-300: #8ba3e0;
    --blue-200: #b8ccf0;
    --blue-100: #e0e9fa;
    --blue-50: #f2f5fd;

    /* Neutrals */
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;

    --white: #ffffff;
    --cream: #fdfcfa;
    --gold: #c9a84c;
    --text-dark: #111827;
    --text-mid: #4b5563;
    --text-light: #6b7280;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.16);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--text-dark);
    background: var(--cream);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; line-height: 1.2; }

/* ========== NAVIGATION ========== */
nav {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: rgba(15, 26, 61, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: all 0.4s ease;
}

nav.scrolled {
    background: rgba(15, 26, 61, 0.97);
    box-shadow: 0 4px 30px rgba(0,0,0,0.25);
}

.nav-inner {
    max-width: 1280px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.6rem 2rem;
}

.nav-logo {
    display: flex; align-items: center; gap: 0.7rem;
    text-decoration: none;
}

.nav-logo img.silks-logo { height: 48px; width: auto; filter: drop-shadow(0 1px 3px rgba(0,0,0,0.3)); }

.nav-logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem; font-weight: 700;
    color: var(--white);
    line-height: 1.1;
}

.nav-logo-text span {
    display: block; font-size: 0.65rem;
    font-family: 'Inter', sans-serif;
    font-weight: 400; letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--red-300);
}

.nav-links { display: flex; gap: 2rem; align-items: center; list-style: none; }

.nav-links a {
    color: rgba(255,255,255,0.8); text-decoration: none;
    font-size: 0.82rem; font-weight: 500;
    letter-spacing: 1px; text-transform: uppercase;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 2px; background: var(--red-500);
    transition: width 0.3s;
}

.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.lang-toggle {
    background: transparent; border: 1px solid var(--red-400);
    color: var(--red-300); padding: 0.35rem 0.9rem;
    border-radius: 4px; cursor: pointer;
    font-size: 0.72rem; font-weight: 600;
    letter-spacing: 1.5px; text-transform: uppercase;
    transition: all 0.3s;
}

.lang-toggle:hover { background: var(--red-500); color: var(--white); border-color: var(--red-500); }

.hamburger {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span { width: 24px; height: 2px; background: var(--white); transition: all 0.3s; }

/* ========== HERO ========== */
.hero {
    position: relative; height: 100vh; min-height: 700px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute; inset: 0;
    background: url('https://images.unsplash.com/photo-1553284965-83fd3e82fa5a?w=1920&q=80') center/cover no-repeat;
}

.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(
        160deg,
        rgba(15, 26, 61, 0.9) 0%,
        rgba(90, 15, 15, 0.7) 50%,
        rgba(15, 26, 61, 0.8) 100%
    );
}

/* Subtle diagonal stripe accent inspired by jockey silks */
.hero-overlay::after {
    content: '';
    position: absolute; top: 0; right: 0;
    width: 45%; height: 100%;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 80px,
        rgba(192, 57, 43, 0.08) 80px,
        rgba(192, 57, 43, 0.08) 82px
    );
}

.hero-content {
    position: relative; z-index: 2;
    text-align: center; padding: 2rem;
    max-width: 900px;
}

.hero-logo-wrap {
    margin-bottom: 1.5rem;
    display: flex; justify-content: center;
}

.hero-logo-wrap img {
    height: 200px; width: auto;
    filter: drop-shadow(0 6px 30px rgba(0,0,0,0.4));
}

.hero-badge {
    display: inline-block;
    font-size: 0.72rem; letter-spacing: 4px;
    text-transform: uppercase; color: var(--red-300);
    border: 1px solid rgba(192, 57, 43, 0.4);
    padding: 0.5rem 1.5rem; border-radius: 2px;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

/* Full title — red/white/blue gradient spanning "Stud Mano Mora" */
.hero h1 .title-gradient {
    background: linear-gradient(
        135deg,
        #e74c3c 0%,
        #ff6b6b 15%,
        #ffffff 30%,
        #f8f8ff 42%,
        #ffffff 52%,
        #5b8def 68%,
        #2c3e9b 85%,
        #1a2a5a 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 20px rgba(0,0,0,0.4));
    display: inline-block;
}

.hero-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    color: rgba(255,255,255,0.75);
    font-style: italic;
    margin-bottom: 2.5rem;
}

.hero-cta { display: inline-flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

.btn {
    display: inline-block; padding: 0.9rem 2.2rem;
    font-size: 0.82rem; font-weight: 600;
    letter-spacing: 1.5px; text-transform: uppercase;
    text-decoration: none; border-radius: 3px;
    transition: all 0.3s; cursor: pointer;
}

.btn-primary {
    background: var(--red-500); color: var(--white);
    border: 2px solid var(--red-500);
}
.btn-primary:hover { background: var(--red-700); border-color: var(--red-700); }

.btn-outline {
    background: transparent; color: var(--white);
    border: 2px solid rgba(255,255,255,0.35);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }

.scroll-indicator {
    position: absolute; bottom: 2rem; left: 50%;
    transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center;
    color: rgba(255,255,255,0.5);
    animation: float 2.5s ease-in-out infinite;
}

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

.scroll-indicator span { font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 0.5rem; }

/* ========== JERSEY DIVIDER ========== */
.jersey-divider {
    height: 6px; display: flex;
}
.jersey-divider .stripe-red { flex: 2; background: var(--red-500); }
.jersey-divider .stripe-white { flex: 1; background: var(--white); }
.jersey-divider .stripe-blue { flex: 2; background: var(--blue-600); }

/* ========== SECTIONS ========== */
section { padding: 6rem 2rem; }

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

.section-label {
    font-size: 0.72rem; letter-spacing: 4px;
    text-transform: uppercase; color: var(--red-500);
    display: block; margin-bottom: 0.8rem;
    font-weight: 600;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--blue-900);
    margin-bottom: 1rem;
}

.section-line {
    width: 60px; height: 3px;
    background: linear-gradient(to right, var(--red-500), var(--blue-600));
    margin: 0 auto; border-radius: 2px;
}

.container { max-width: 1200px; margin: 0 auto; }

/* ========== ABOUT ========== */
.about { background: var(--white); }

.about-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 4rem; align-items: center;
}

.about-image {
    position: relative; border-radius: 8px; overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-image img { width: 100%; height: 500px; object-fit: cover; display: block; }

.about-image-accent {
    position: absolute; bottom: -15px; right: -15px;
    width: 180px; height: 180px;
    border: 3px solid var(--red-500);
    border-radius: 8px; z-index: -1;
}

.about-image-accent-blue {
    position: absolute; top: -15px; left: -15px;
    width: 120px; height: 120px;
    border: 3px solid var(--blue-600);
    border-radius: 8px; z-index: -1;
}

.about-text h3 {
    font-size: 1.8rem; color: var(--blue-900);
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--text-mid); margin-bottom: 1.2rem;
    font-size: 1rem; line-height: 1.8;
}

.jersey-inline {
    display: inline-flex; align-items: center; gap: 0.5rem;
    margin: 0.5rem 0;
}

.jersey-inline img { height: 60px; width: auto; }

.stats-row {
    display: flex; gap: 2.5rem; margin-top: 2rem;
    padding-top: 2rem; border-top: 1px solid var(--gray-200);
}

.stat-item { text-align: center; }

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem; font-weight: 700;
    color: var(--red-500); display: block;
}

.stat-label {
    font-size: 0.78rem; color: var(--text-light);
    text-transform: uppercase; letter-spacing: 1px;
}

/* ========== HORSES ========== */
.horses {
    background: linear-gradient(160deg, var(--blue-900) 0%, var(--blue-800) 100%);
    color: var(--white);
}
.horses .section-title { color: var(--white); }
.horses .section-label { color: var(--red-300); }

.horses-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    justify-items: center;
}

.horses-grid .horse-card:nth-child(4),
.horses-grid .horse-card:nth-child(5) {
    max-width: calc((100% * 3 / 2) - 1rem);
}

.horse-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px; overflow: hidden;
    transition: all 0.4s;
}

.horse-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    border-color: var(--red-500);
}

.horse-card img { width: 100%; height: 280px; object-fit: cover; display: block; object-position: center 20%; }

.horse-card-body { padding: 1.5rem; }

.horse-card-body h4 { font-size: 1.3rem; color: var(--white); margin-bottom: 0.3rem; }

.horse-card-body .horse-breed {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic; color: var(--red-300);
    font-size: 1rem; margin-bottom: 0.8rem;
}

.horse-card-body p { font-size: 0.9rem; color: rgba(255,255,255,0.65); line-height: 1.6; }

.horse-tag {
    display: inline-block; margin-top: 0.8rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.68rem; letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid var(--red-400);
    color: var(--red-300); border-radius: 3px;
}

/* ========== WINNERS ========== */
.winners { background: var(--gray-50); }

.timeline { position: relative; max-width: 800px; margin: 0 auto; }

.timeline::before {
    content: ''; position: absolute;
    left: 50%; top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--red-500), var(--blue-600));
    transform: translateX(-50%);
}

.timeline-item {
    display: flex; align-items: center;
    margin-bottom: 3rem; position: relative;
}

.timeline-item:nth-child(odd) { flex-direction: row-reverse; }

.timeline-content {
    width: 45%; padding: 1.8rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    border-top: 3px solid var(--red-500);
    transition: transform 0.3s;
}

.timeline-item:nth-child(even) .timeline-content {
    border-top-color: var(--blue-600);
}

.timeline-content:hover { transform: scale(1.03); }

.timeline-dot {
    position: absolute; left: 50%;
    transform: translateX(-50%);
    width: 18px; height: 18px;
    background: var(--red-500); border-radius: 50%;
    border: 3px solid var(--gray-50);
    z-index: 2;
}

.timeline-item:nth-child(even) .timeline-dot { background: var(--blue-600); }

.timeline-year {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem; font-weight: 700;
    margin-bottom: 0.3rem;
}

.timeline-item:nth-child(odd) .timeline-year { color: var(--red-500); }
.timeline-item:nth-child(even) .timeline-year { color: var(--blue-600); }

.timeline-content h4 { font-size: 1.1rem; color: var(--gray-800); margin-bottom: 0.3rem; }
.timeline-content p { font-size: 0.9rem; color: var(--text-mid); }

.trophy-icon { font-size: 1.3rem; margin-right: 0.3rem; }

/* ========== GALLERY ========== */
.gallery {
    background: var(--gray-900); color: var(--white);
    padding-bottom: 4rem;
}
.gallery .section-title { color: var(--white); }
.gallery .section-label { color: var(--red-300); }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    gap: 0.8rem;
}

.gallery-item {
    border-radius: 6px; overflow: hidden;
    position: relative; cursor: pointer;
}

.gallery-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img { transform: scale(1.1); }

.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }

/* ========== CONTACT ========== */
.contact { background: var(--gray-50); }

.contact-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 { font-size: 1.6rem; color: var(--blue-900); margin-bottom: 1.5rem; }

.contact-detail {
    display: flex; align-items: flex-start; gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 46px; height: 46px; flex-shrink: 0;
    background: var(--red-100);
    border-radius: 50%; display: flex;
    align-items: center; justify-content: center;
    color: var(--red-600); font-size: 1.1rem;
}

.contact-detail h5 {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem; letter-spacing: 1.5px;
    text-transform: uppercase; color: var(--text-light);
    margin-bottom: 0.2rem; font-weight: 600;
}

.contact-detail p { font-size: 1rem; color: var(--text-dark); }

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

.form-group label {
    display: block; font-size: 0.72rem;
    letter-spacing: 1px; text-transform: uppercase;
    color: var(--text-light); margin-bottom: 0.4rem; font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%; padding: 0.9rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: 6px; background: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem; color: var(--text-dark);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none; border-color: var(--blue-500);
    box-shadow: 0 0 0 3px rgba(52, 80, 178, 0.1);
}

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

.btn-submit {
    align-self: flex-start;
    background: var(--blue-600); color: var(--white);
    border: 2px solid var(--blue-600);
}
.btn-submit:hover {
    background: var(--red-500); border-color: var(--red-500);
}

/* ========== JERSEY COLORS BADGE ========== */
.colors-badge {
    display: inline-flex; align-items: center; gap: 0.6rem;
    margin-top: 1.5rem; padding: 0.8rem 1.2rem;
    background: var(--gray-50); border-radius: 8px;
    border: 1px solid var(--gray-200);
}

.colors-badge-label {
    font-size: 0.72rem; color: var(--text-light);
    text-transform: uppercase; letter-spacing: 1px; font-weight: 600;
}

.color-swatch {
    width: 22px; height: 22px; border-radius: 50%;
    border: 2px solid var(--white);
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

/* ========== FOOTER ========== */
footer {
    background: var(--blue-900);
    color: rgba(255,255,255,0.6);
    padding: 3rem 2rem 1.5rem;
}

.footer-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; justify-content: space-between;
    align-items: center; flex-wrap: wrap; gap: 1rem;
}

.footer-logo-wrap {
    display: flex; align-items: center; gap: 0.7rem;
}

.footer-logo-wrap img { height: 40px; width: auto; }

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem; color: var(--white);
}

.footer-links { display: flex; gap: 1.5rem; list-style: none; }
.footer-links a {
    color: rgba(255,255,255,0.5); text-decoration: none;
    font-size: 0.85rem; transition: color 0.3s;
}
.footer-links a:hover { color: var(--white); }

.footer-copy {
    width: 100%; text-align: center;
    padding-top: 1.5rem; margin-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.8rem;
}

.footer-stripe {
    height: 4px; display: flex;
}
.footer-stripe .s-r { flex: 2; background: var(--red-500); }
.footer-stripe .s-w { flex: 1; background: var(--white); }
.footer-stripe .s-b { flex: 2; background: var(--blue-500); }

/* ========== ANIMATIONS ========== */
.fade-in {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .horses-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }

    .nav-links.open {
        display: flex; flex-direction: column;
        position: absolute; top: 100%; left: 0; right: 0;
        background: rgba(15, 26, 61, 0.97);
        padding: 1.5rem 2rem; gap: 1.2rem;
    }

    .about-grid,
    .contact-grid { grid-template-columns: 1fr; }

    .horses-grid { grid-template-columns: 1fr; }
    .horse-card img { height: auto; aspect-ratio: 4/3; }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    .gallery-item img { height: auto; aspect-ratio: 4/3; }
    .gallery-item.tall { grid-row: span 1; }
    .gallery-item.wide { grid-column: span 1; }

    .timeline::before { left: 20px; }
    .timeline-item,
    .timeline-item:nth-child(odd) { flex-direction: row; padding-left: 50px; }
    .timeline-content { width: 100%; }
    .timeline-dot { left: 20px; }

    .stats-row { flex-wrap: wrap; gap: 1.5rem; }

    .hero-logo-wrap img { height: 140px; }
}
