/* =========================================================
   Indo Desi Fit — Karate Shorin Kai
   Theme: Terracotta / Gold / Charcoal black, on warm white
   ========================================================= */

:root {
    --idf-terracotta: #9C5031;
    --idf-terracotta-dark: #7A3B22;
    --idf-gold: #B97A4E;
    --idf-gold-bright: #D49A6A;
    --idf-black: #33383C;
    --idf-charcoal: #41474C;
    --idf-cream: #DDD9C3;
    --idf-white: #FFFFFF;
    --idf-font-display: 'Bebas Neue', sans-serif;
    --idf-font-body: 'Poppins', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--idf-font-body);
    color: var(--idf-charcoal);
    background-color: var(--idf-cream);
    overflow-x: hidden;
}

h1, h2, h3, h4, .idf-display {
    font-family: var(--idf-font-display);
    letter-spacing: 1px;
}

a { text-decoration: none; }

/* ---------- Preloader ---------- */
#idfPreloader {
    position: fixed; inset: 0;
    background: var(--idf-black);
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#idfPreloader.idf-preloader-hide {
    opacity: 0;
    visibility: hidden;
}

.idf-preloader-inner { text-align: center; }

.idf-preloader-logo {
    width: 90px; height: 90px;
    object-fit: contain;
    animation: idf-pulse 1.2s ease-in-out infinite;
}

.idf-preloader-bar {
    width: 160px;
    height: 4px;
    background: rgba(255,255,255,0.15);
    border-radius: 4px;
    margin: 1.4rem auto 0;
    overflow: hidden;
}

.idf-preloader-bar span {
    display: block;
    height: 100%;
    width: 40%;
    background: linear-gradient(90deg, var(--idf-terracotta), var(--idf-gold-bright));
    border-radius: 4px;
    animation: idf-loading-bar 1.1s ease-in-out infinite;
}

@keyframes idf-loading-bar {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(250%); }
}

@keyframes idf-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.75; }
}

/* ---------- Navbar ---------- */
.idf-navbar {
    background: linear-gradient(180deg, var(--idf-black) 0%, var(--idf-charcoal) 100%);
    padding: 1.1rem 0;
    box-shadow: 0 2px 16px rgba(0,0,0,0.3);
    transition: padding 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 2px solid var(--idf-terracotta);
}

.idf-navbar.idf-navbar-scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 22px rgba(0,0,0,0.4);
}

.idf-logo { height: 68px; width: 68px; object-fit: contain; transition: transform 0.4s ease, height 0.3s ease, width 0.3s ease; }
.idf-navbar-scrolled .idf-logo { height: 50px; width: 50px; }
.navbar-brand:hover .idf-logo { transform: rotate(12deg) scale(1.08); }
.idf-logo-footer { height: 42px; width: 42px; object-fit: contain; }

.idf-brand-main {
    font-family: var(--idf-font-display);
    font-size: 2rem;
    color: var(--idf-gold-bright);
    line-height: 1.1;
    letter-spacing: 1.5px;
}

.idf-brand-sub {
    font-size: 0.72rem;
    color: #cfa45a;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.idf-navbar .nav-link {
    position: relative;
    color: #e9ddc8 !important;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 1px;
    padding: 0.8rem 1.15rem !important;
    transition: color 0.2s ease;
}

.idf-navbar .nav-link::after {
    content: '';
    position: absolute;
    left: 1.15rem; right: 1.15rem; bottom: 0.4rem;
    height: 2px;
    background: linear-gradient(90deg, var(--idf-terracotta), var(--idf-gold-bright));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.idf-navbar .nav-link:hover {
    color: var(--idf-gold-bright) !important;
}

.idf-navbar .nav-link:hover::after {
    transform: scaleX(1);
}

.idf-contact-btn {
    background: linear-gradient(135deg, var(--idf-terracotta), var(--idf-gold));
    color: #fff !important;
    border-radius: 30px;
    padding: 0.8rem 1.6rem !important;
    margin-left: 0.5rem;
    font-size: 0.95rem !important;
    box-shadow: 0 4px 14px rgba(156,80,49,0.4);
    transition: all 0.25s ease;
}

.idf-contact-btn::after { display: none; }

.idf-contact-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(156,80,49,0.55);
}

/* ---------- Hero (video background) ---------- */
.idf-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--idf-black);
}

.idf-hero-video {
    position: absolute;
    top: 50%; left: 50%;
    min-width: 100%; min-height: 100%;
    width: auto; height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

.idf-hero-overlay {
    position: absolute; inset: 0;
    background:
        linear-gradient(110deg, rgba(20,15,10,0.92) 0%, rgba(28,18,10,0.72) 45%, rgba(28,18,10,0.45) 100%);
    z-index: 1;
}

.idf-hero-content { padding: 4rem 0; position: relative; z-index: 2; }

.idf-eyebrow {
    display: inline-block;
    color: var(--idf-gold-bright);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    border-left: 3px solid var(--idf-gold-bright);
    padding-left: 0.7rem;
    opacity: 0;
    animation: idf-fade-up 0.8s ease forwards 0.2s;
}

.idf-hero h1 {
    font-size: clamp(2.6rem, 6vw, 5rem);
    color: #fff;
    line-height: 1.05;
    margin-bottom: 1rem;
    opacity: 0;
    animation: idf-fade-up 0.9s ease forwards 0.45s;
}

.idf-hero h1 span {
    color: var(--idf-gold-bright);
    position: relative;
    display: inline-block;
}

.idf-hero p.lead {
    color: #e9ddc8;
    max-width: 540px;
    font-size: 1.1rem;
    opacity: 0;
    animation: idf-fade-up 0.9s ease forwards 0.7s;
}

.idf-hero-content .d-flex.gap-3 {
    opacity: 0;
    animation: idf-fade-up 0.9s ease forwards 0.95s;
}

@keyframes idf-fade-up {
    from { opacity: 0; transform: translateY(26px); }
    to { opacity: 1; transform: translateY(0); }
}

.idf-scroll-cue {
    position: absolute;
    bottom: 28px; left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: #e9ddc8;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    opacity: 0.85;
    animation: idf-bounce 2s infinite;
}

.idf-scroll-cue i { display: block; font-size: 1.3rem; margin-top: 4px; }

@keyframes idf-bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 10px); }
}

.idf-btn {
    display: inline-block;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 0.85rem 2rem;
    border-radius: 4px;
    transition: all 0.25s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.idf-btn-primary {
    background: linear-gradient(135deg, var(--idf-terracotta), var(--idf-gold));
    color: #fff;
    border: none;
}

.idf-btn-primary:hover { filter: brightness(1.1); color: #fff; transform: translateY(-2px); }

.idf-btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid var(--idf-gold-bright);
}

.idf-btn-outline:hover { background: var(--idf-gold-bright); color: var(--idf-black); transform: translateY(-2px); }

/* ---------- Section helpers ---------- */
.idf-section { padding: 5.5rem 0; }
.idf-section-dark { background: var(--idf-black); color: #e9ddc8; }
.idf-section-cream { background: var(--idf-cream); }

.idf-section-tag {
    color: var(--idf-terracotta);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    font-size: 0.8rem;
}

.idf-section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 0.5rem;
}

.idf-section-dark .idf-section-tag { color: var(--idf-gold-bright); }

.idf-divider {
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, var(--idf-terracotta), var(--idf-gold));
    margin: 1rem 0 2rem;
    border-radius: 2px;
}

/* ---------- Cards ---------- */
.idf-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(26,20,16,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
}

.idf-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(26,20,16,0.16);
}

.idf-card-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--idf-terracotta), var(--idf-gold));
    color: #fff; font-size: 1.6rem;
    margin-bottom: 1rem;
}

/* ---------- Stats strip ---------- */
.idf-stats {
    background: linear-gradient(135deg, var(--idf-terracotta-dark), var(--idf-terracotta));
    color: #fff;
}

.idf-stat-num {
    font-family: var(--idf-font-display);
    font-size: 2.6rem;
    color: var(--idf-gold-bright);
}

/* ---------- Belt chips (Programs page) ---------- */
.idf-belt-card {
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(26,20,16,0.08);
    padding: 1.5rem;
    height: 100%;
    border-top: 6px solid var(--belt-color, #000);
}

.idf-belt-swatch {
    width: 28px; height: 28px;
    border-radius: 50%;
    display: inline-block;
    border: 2px solid rgba(0,0,0,0.15);
    margin-right: 0.6rem;
    vertical-align: middle;
}

/* ---------- Instructor cards ---------- */
.idf-instructor-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.idf-belt-tag {
    display: inline-block;
    background: var(--idf-black);
    color: var(--idf-gold-bright);
    font-size: 0.75rem;
    letter-spacing: 1px;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    text-transform: uppercase;
}

/* ---------- Schedule table ---------- */
.idf-schedule-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.idf-schedule-table tr {
    background: #fff;
    box-shadow: 0 4px 16px rgba(26,20,16,0.06);
}

.idf-schedule-table td, .idf-schedule-table th {
    padding: 1rem 1.2rem;
    vertical-align: middle;
}

.idf-schedule-table th {
    background: var(--idf-black);
    color: var(--idf-gold-bright);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.idf-schedule-table tr td:first-child { border-left: 4px solid var(--idf-terracotta); font-weight: 600; }

/* ---------- Gallery ---------- */
.idf-gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    height: 260px;
    group: gallery;
}

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

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

.idf-gallery-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.85) 100%);
    display: flex; align-items: flex-end;
    padding: 1rem;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
}

.idf-play-icon {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 56px; height: 56px;
    border-radius: 50%;
    background: rgba(185,122,78,0.9);
    color: #33383C;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
}

/* ---------- About page ---------- */
.idf-about-img {
    border-radius: 12px;
    width: 100%;
    box-shadow: 0 16px 40px rgba(26,20,16,0.2);
}

.idf-value-item {
    display: flex; gap: 1rem; align-items: flex-start;
    margin-bottom: 1.2rem;
}

.idf-value-item i {
    color: var(--idf-terracotta);
    font-size: 1.4rem;
    margin-top: 0.2rem;
}

/* ---------- Contact ---------- */
.idf-form-control {
    background: #fff;
    border: 1px solid #e4d8c4;
    border-radius: 6px;
    padding: 0.75rem 1rem;
}

.idf-form-control:focus {
    border-color: var(--idf-terracotta);
    box-shadow: 0 0 0 3px rgba(193,99,47,0.15);
    outline: none;
}

.idf-contact-info-card {
    background: var(--idf-black);
    color: #e9ddc8;
    border-radius: 12px;
    padding: 2.5rem;
}

.idf-contact-info-card .icon-box {
    width: 46px; height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--idf-terracotta), var(--idf-gold));
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

/* ---------- Footer ---------- */
.idf-footer {
    background: var(--idf-black);
}

.idf-footer-heading {
    color: var(--idf-gold-bright);
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.idf-footer-links li { margin-bottom: 0.6rem; color: #c9bba2; }
.idf-footer-links a { color: #c9bba2; }
.idf-footer-links a:hover { color: var(--idf-gold-bright); }

.idf-social a {
    color: #c9bba2;
    transition: color 0.2s ease;
}
.idf-social a:hover { color: var(--idf-gold-bright); }

/* ---------- Back to top ---------- */
.idf-back-to-top {
    position: fixed;
    bottom: 24px; right: 24px;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--idf-terracotta);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}

.idf-back-to-top.show { opacity: 1; visibility: visible; }
.idf-back-to-top:hover { background: var(--idf-gold); color: #33383C; }

/* ---------- WhatsApp floating button ---------- */
.idf-whatsapp-float {
    position: fixed;
    bottom: 24px; left: 24px;
    width: 54px; height: 54px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    z-index: 999;
    box-shadow: 0 4px 14px rgba(0,0,0,0.3);
    position: fixed;
}

.idf-whatsapp-float:hover { color: #fff; transform: scale(1.08); }

.idf-whatsapp-ping {
    position: absolute; inset: 0;
    border-radius: 50%;
    background: #25D366;
    opacity: 0.6;
    animation: idf-ping 1.8s ease-out infinite;
    z-index: -1;
}

@keyframes idf-ping {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* ---------- Video modal ---------- */
.idf-video-modal video { width: 100%; border-radius: 8px; }

/* ---------- Stats counters ---------- */
.idf-counter-wrap { display: flex; align-items: baseline; justify-content: center; gap: 2px; }
.idf-counter { font-family: var(--idf-font-display); font-size: 2.6rem; color: var(--idf-gold-bright); }

/* ---------- Team photo section ---------- */
.idf-team-photo-wrap {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(26,20,16,0.25);
}

.idf-team-photo-wrap img {
    width: 100%;
    display: block;
    transition: transform 0.6s ease;
}

.idf-team-photo-wrap:hover img { transform: scale(1.05); }

.idf-team-photo-badge {
    position: absolute;
    bottom: 18px; left: 18px;
    background: rgba(20,15,10,0.82);
    backdrop-filter: blur(4px);
    color: #fff;
    padding: 0.6rem 1.1rem;
    border-radius: 8px;
    border-left: 3px solid var(--idf-gold-bright);
    font-size: 0.85rem;
}

/* ---------- Card hover polish ---------- */
.idf-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(26,20,16,0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    height: 100%;
}

.idf-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(26,20,16,0.18);
}

.idf-card-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--idf-terracotta), var(--idf-gold));
    color: #fff; font-size: 1.6rem;
    margin-bottom: 1rem;
    transition: transform 0.4s ease;
}

.idf-card:hover .idf-card-icon { transform: rotate(-8deg) scale(1.08); }

/* ---------- Parallax band ---------- */
.idf-parallax-band {
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

@media (max-width: 991.98px) {
    .idf-parallax-band { background-attachment: scroll; }
}
@media (max-width: 991.98px) {
    .idf-logo { height: 52px; width: 52px; }
    .idf-brand-main { font-size: 1.5rem; }
    .idf-brand-sub { font-size: 0.6rem; }
    .idf-navbar .navbar-nav { background: var(--idf-charcoal); border-radius: 10px; padding: 0.5rem; margin-top: 0.5rem; }
    .idf-contact-btn { margin: 0.5rem 0.5rem 0 0.5rem; display: inline-block; }
    .idf-hero { min-height: 80vh; text-align: center; }
    .idf-hero p.lead { margin-left: auto; margin-right: auto; }
    .idf-eyebrow { border-left: none; padding-left: 0; }
}

@media (max-width: 575.98px) {
    .idf-section { padding: 3.5rem 0; }
    .idf-instructor-img { height: 260px; }
    .idf-gallery-item { height: 200px; }
}

.footer-developer-link {
    color:#d49a6a;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-developer-link:hover {
    color: #c9bba2;
    text-decoration: underline;
}

.footer-admin-link {
    color: #e35d6a;
    text-decoration: none;
    font-weight: 500;
    transition: .3s;
}




