/* Iqadi Horse Racing Association - 4Racing Architectural Theme */
:root {
    --r4-primary: #1b4d3e;
    --r4-primary-dark: #0f3026;
    --r4-secondary: #c5a15a;
    --r4-secondary-hover: #e5be70;
    --r4-dark: #0d1317;
    --r4-dark-surface: #131c22;
    --r4-card-bg: #1a252d;
    --r4-border: rgba(255, 255, 255, 0.08);
    --r4-border-hover: rgba(197, 161, 90, 0.4);
    --r4-text: #ffffff;
    --r4-text-muted: #94a3b8;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: all 0.25s ease-in-out;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body.iqadi-portal {
    background-color: var(--r4-dark);
    color: var(--r4-text);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* Top Strip */
.top-nav-strip {
    background: var(--r4-primary-dark);
    border-bottom: 1px solid rgba(197, 161, 90, 0.25);
    padding: 8px 0;
    font-size: 0.8rem;
}

.strip-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.badge-kznera {
    background: var(--r4-secondary);
    color: #0d1317;
    font-weight: 800;
    font-size: 0.68rem;
    padding: 2px 8px;
    border-radius: 3px;
    letter-spacing: 0.05em;
    margin-right: 8px;
}

.strip-links a {
    color: var(--r4-secondary);
    text-decoration: none;
    font-weight: 600;
}

.divider {
    color: rgba(255, 255, 255, 0.2);
    margin: 0 6px;
}

/* 4Racing Masthead */
.main-masthead {
    background: rgba(13, 19, 23, 0.95);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--r4-border);
}

.masthead-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 76px;
}

.brand-anchor {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}

.official-logo {
    height: 52px;
    width: auto;
    border-radius: 4px;
    object-fit: contain;
}

.logo-bold {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.05em;
}

.logo-gold {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--r4-secondary);
    letter-spacing: 0.05em;
}

.nav-links-bar {
    display: flex;
    gap: 24px;
}

.nav-btn {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: var(--transition);
}

.nav-btn:hover, .nav-btn.active {
    color: var(--r4-secondary);
}

.btn-primary-gold {
    background: var(--r4-secondary);
    color: #0d1317;
    padding: 10px 22px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary-gold:hover {
    background: var(--r4-secondary-hover);
    transform: translateY(-2px);
}

.menu-burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.menu-burger span {
    width: 24px;
    height: 2px;
    background: #fff;
}

/* 4Racing Hero Section */
.r4-hero {
    position: relative;
    padding: 110px 0 90px;
    background-color: #0f181e;
    background-image: radial-gradient(circle at 80% 30%, rgba(27, 77, 62, 0.45) 0%, transparent 60%);
    border-bottom: 1px solid var(--r4-border);
}

.r4-hero__inner {
    max-width: 860px;
}

.r4-hero__eyebrow {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--r4-secondary);
    margin-bottom: 16px;
}

.r4-hero__title {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 22px;
    letter-spacing: -0.02em;
}

.r4-hero__subtitle {
    font-size: 1.15rem;
    color: var(--r4-text-muted);
    line-height: 1.7;
    margin-bottom: 34px;
}

.r4-hero__ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.r4-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 28px;
    border-radius: 4px;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.r4-btn--primary {
    background: var(--r4-primary);
    color: #fff;
    border: 1px solid var(--r4-primary);
}

.r4-btn--primary:hover {
    background: #256653;
}

.r4-btn--ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
}

.r4-btn--ghost:hover {
    border-color: #fff;
}

/* 4Racing Intro */
.r4-intro {
    padding: 80px 0;
    border-bottom: 1px solid var(--r4-border);
}

.r4-intro__eyebrow {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--r4-secondary);
    margin-bottom: 12px;
}

.r4-intro__title {
    font-family: var(--font-heading);
    font-size: 2.3rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 20px;
    max-width: 900px;
}

.r4-intro__copy {
    font-size: 1.1rem;
    color: var(--r4-text-muted);
    line-height: 1.75;
    max-width: 900px;
}

/* 4Racing Grid Cards */
.r4-grid-section {
    padding: 80px 0;
    border-bottom: 1px solid var(--r4-border);
}

.r4-grid__head {
    margin-bottom: 40px;
}

.r4-grid__heading {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
}

.r4-grid__subhead {
    font-size: 1rem;
    color: var(--r4-text-muted);
    margin-top: 6px;
}

.r4-grid__items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.r4-card {
    background: var(--r4-card-bg);
    border: 1px solid var(--r4-border);
    border-radius: 6px;
    padding: 34px 28px;
    transition: var(--transition);
}

.r4-card:hover {
    border-color: var(--r4-border-hover);
    transform: translateY(-4px);
}

.r4-card__meta {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--r4-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.r4-card__title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.35;
    margin-bottom: 14px;
}

.r4-card__copy {
    font-size: 0.95rem;
    color: var(--r4-text-muted);
    line-height: 1.65;
}

/* 4Racing Milestones Track */
.r4-timeline-section {
    padding: 80px 0;
    border-bottom: 1px solid var(--r4-border);
    background: #0f161b;
}

.r4-timeline__track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.r4-milestone {
    border-top: 3px solid var(--r4-primary);
    padding-top: 20px;
    position: relative;
}

.r4-milestone__dot {
    position: absolute;
    top: -8px;
    left: 0;
    width: 13px;
    height: 13px;
    background: var(--r4-secondary);
    border-radius: 50%;
}

.r4-milestone__year {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--r4-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.r4-milestone__title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
}

.r4-milestone__copy {
    font-size: 0.88rem;
    color: var(--r4-text-muted);
    line-height: 1.6;
}

/* 4Racing Principles Grid */
.r4-principles-section {
    padding: 80px 0;
    border-bottom: 1px solid var(--r4-border);
}

.r4-principles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.r4-principle-card {
    background: var(--r4-card-bg);
    border-left: 4px solid var(--r4-primary);
    padding: 30px;
    border-radius: 0 6px 6px 0;
}

.r4-principle-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}

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

/* Venue Section */
.r4-venue-section {
    padding: 80px 0;
    border-bottom: 1px solid var(--r4-border);
}

.venue-showcase-box {
    background: linear-gradient(135deg, #13221c 0%, var(--r4-card-bg) 100%);
    border: 1px solid var(--r4-border);
    border-radius: 8px;
    padding: 45px;
}

.venue-info h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
}

.venue-info p {
    font-size: 1.05rem;
    color: var(--r4-text-muted);
    line-height: 1.7;
    margin-bottom: 24px;
}

.venue-specs {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.venue-specs li {
    font-size: 0.92rem;
    color: #e2e8f0;
}

.venue-specs li span {
    font-weight: 800;
    color: var(--r4-secondary);
}

/* Fixtures Table */
.r4-fixtures-section {
    padding: 80px 0;
    border-bottom: 1px solid var(--r4-border);
}

.table-container {
    background: var(--r4-card-bg);
    border: 1px solid var(--r4-border);
    border-radius: 6px;
    overflow-x: auto;
}

.fixtures-r4-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.fixtures-r4-table th {
    background: #0d1418;
    padding: 18px 24px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--r4-secondary);
    border-bottom: 1px solid var(--r4-border);
}

.fixtures-r4-table td {
    padding: 20px 24px;
    border-bottom: 1px solid var(--r4-border);
    font-size: 0.95rem;
}

.highlight-date {
    font-weight: 800;
    color: #fff;
}

.pill-status {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.pill-status.confirmed {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
}

.pill-status.open {
    background: rgba(197, 161, 90, 0.15);
    color: var(--r4-secondary);
}

/* Partnerships & Form */
.r4-partnerships-section {
    padding: 80px 0;
    border-bottom: 1px solid var(--r4-border);
}

.partners-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.partners-copy h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
}

.partners-copy p {
    font-size: 1.05rem;
    color: var(--r4-text-muted);
    line-height: 1.7;
    margin-bottom: 24px;
}

.partnership-pillars {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pillar-item {
    background: var(--r4-card-bg);
    border: 1px solid var(--r4-border);
    padding: 14px 18px;
    border-radius: 6px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #e2e8f0;
}

.partners-form-card {
    background: var(--r4-card-bg);
    border: 1px solid var(--r4-border);
    border-radius: 6px;
    padding: 34px;
}

.partners-form-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
}

.form-field {
    margin-bottom: 16px;
}

.form-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--r4-text-muted);
    margin-bottom: 6px;
}

.input-text, .input-select, .input-textarea {
    width: 100%;
    padding: 11px 14px;
    background: #0d1317;
    border: 1px solid var(--r4-border);
    border-radius: 4px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.9rem;
}

.input-text:focus, .input-select:focus, .input-textarea:focus {
    outline: none;
    border-color: var(--r4-secondary);
}

.btn-block {
    width: 100%;
}

.form-status {
    margin-top: 14px;
    padding: 12px;
    border-radius: 4px;
    font-size: 0.88rem;
    text-align: center;
}

/* Contact Box */
.r4-contact-section {
    padding: 80px 0;
}

.contact-box {
    background: var(--r4-card-bg);
    border: 1px solid var(--r4-border);
    border-radius: 6px;
    padding: 40px;
}

.contact-details h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}

.contact-details p {
    color: var(--r4-text-muted);
    font-size: 1rem;
    margin-bottom: 24px;
}

.contact-line {
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.c-label {
    color: var(--r4-text-muted);
    font-weight: 600;
    display: inline-block;
    width: 180px;
}

.c-val {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.c-val.gold {
    color: var(--r4-secondary);
}

.c-val.green {
    color: #2ecc71;
}

/* 4Racing Footer */
.r4-footer {
    background: #080c0f;
    border-top: 1px solid var(--r4-border);
    padding: 60px 0 30px;
}

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

.footer-brand-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.brand-col p {
    font-size: 0.88rem;
    color: var(--r4-text-muted);
    max-width: 440px;
    margin-bottom: 10px;
}

.kznera-statement {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

.footer-copy {
    font-size: 0.78rem;
    color: var(--r4-text-muted);
    margin-top: 20px;
}

.footer-col h4 {
    color: #fff;
    font-size: 0.92rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-col ul {
    list-style: none;
}

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

.footer-col a {
    color: var(--r4-text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--r4-secondary);
}

/* Floating WhatsApp */
.floating-wa-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 54px;
    height: 54px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
}

@media (max-width: 900px) {
    .r4-hero__title { font-size: 2.2rem; }
    .r4-grid__items, .r4-timeline__track, .r4-principles-grid, .partners-grid, .footer-grid, .venue-specs {
        grid-template-columns: 1fr;
    }
    .nav-links-bar { display: none; }
    .menu-burger { display: flex; }
    .c-label { width: auto; display: block; margin-bottom: 2px; }
}
