/* ==========================================================================
   style.css — Mudased Käed ja Kiired Ringid
   Sections:
     1.  Reset & Base
     2.  Layout helpers
     3.  Buttons
     4.  Navbar
     5.  Showcase (index)
     6.  Features grid (index)
     7.  Tips (index)
     8.  About (index)
     9.  Page header
    10.  Guide sections (drivetech / maintenance)
    11.  Exercises grid (drivetech)
    12.  Equipment page
    13.  Gallery / slideshow
    14.  Footer
    15.  Media queries
   ========================================================================== */


/* 1. Reset & Base ---------------------------------------------------------- */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary-color:   #F9851F;
    --primary-dark:    #e67610;
    --primary-glow:    rgba(249, 133, 31, 0.25);
    --light-color:     #FFFFFF;
    --dark-color:      #171A1F;
    --grey-50:         #F9FAFB;
    --grey-100:        #F3F4F6;
    --grey-200:        #E5E7EB;
    --grey-500:        #6B7280;
    --grey-700:        #374151;
    --text-muted:      #4B5563;
    --card-text:       #55585d;
    --navbar-height:   72px;
    --radius-sm:       8px;
    --radius-md:       12px;
    --radius-lg:       16px;
    --shadow-sm:       0 2px 8px rgba(0,0,0,0.05);
    --shadow-md:       0 4px 20px rgba(0,0,0,0.07);
    --shadow-lg:       0 10px 32px rgba(0,0,0,0.10);
    --transition:      0.22s ease;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Roboto', sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #1a1a2e;
    background-image: url("img/race.webp");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding-top: var(--navbar-height);
}

.page-box {
    max-width: 1300px;
    margin: 0 auto;
    background: #FAFAFA;
    box-shadow: 0 8px 60px rgba(0,0,0,0.45);
    min-height: 100vh;
}

.page-box > header:first-child nav {
    border-top: 3px solid var(--primary-color);
}

a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { font-family: "Bebas Neue", sans-serif; }


/* 2. Layout helpers -------------------------------------------------------- */

.container    { margin: auto; max-width: 1440px; padding: 0 2rem; }
.text-primary { color: var(--primary-color); }


/* 3. Buttons --------------------------------------------------------------- */

.btn {
    display: inline-block;
    padding: 0.85rem 2.1rem;
    border: none;
    cursor: pointer;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 1px;
    transition: background var(--transition), border-color var(--transition),
    transform var(--transition), box-shadow var(--transition);
}
.btn:active { transform: translateY(1px); }

.btn-primary         { background: var(--primary-color); color: #fff; }
.btn-primary:hover   { background: var(--primary-dark); box-shadow: 0 6px 20px var(--primary-glow); transform: translateY(-1px); }

.btn-outline {
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.30);
    backdrop-filter: blur(6px);
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.20);
    border-color: rgba(255, 255, 255, 0.50);
    transform: translateY(-1px);
}


/* 4. Navbar ---------------------------------------------------------------- */

#navbar {
    background: #fff;
    border-bottom: 1px solid var(--grey-200);
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1300px;
    z-index: 999;
    transition: box-shadow var(--transition);
}
#navbar.scrolled {
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}

#navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--navbar-height);
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 0;
    transition: filter var(--transition);
}
.logo:hover { filter: brightness(1.1); }

.logo img {
    max-width: 60%;
    max-height: 60%;
    object-fit: contain;
}

.icon-box {
    background-color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 12px;
    flex-shrink: 0;
    transition: background var(--transition);
}

#navbar h1 a  { font-size: 30px; }
#navbar ul    { display: flex; }
#navbar ul li { margin-left: 6px; }

#navbar ul li a {
    font-size: 14px;
    font-weight: 500;
    height: 40px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background var(--transition), color var(--transition);
}

#navbar ul li a:hover,
#navbar ul li a.current {
    background: var(--grey-100);
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background var(--transition);
}
.menu-toggle:hover { background: var(--grey-100); }

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--dark-color);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* 5. Showcase (index) ------------------------------------------------------ */

#showcase {
    background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.70)),
    url("img/riding.webp") no-repeat center center / cover;
    min-height: 620px;
    display: flex;
    align-items: center;
}

.showcase-content {
    color: var(--light-color);
    padding: 80px 0 64px;
    max-width: 700px;
}

.showcase-content h1 {
    font-size: clamp(38px, 5.5vw, 70px);
    line-height: 1.1;
    letter-spacing: 1px;
}

.showcase-content h2 {
    padding-top: 22px;
    font-size: clamp(16px, 2vw, 20px);
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    line-height: 1.8;
    color: rgba(255,255,255,0.82);
}

.showcase-buttons {
    margin-top: 44px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}


/* 6. Features grid (index) ------------------------------------------------- */

#features            { padding: 80px 0; }
.features-heading    { margin-bottom: 52px; }
.features-heading h2 { font-size: 36px; letter-spacing: 1px; }

.section-bar {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    margin-top: 14px;
    border-radius: 2px;
}

.section-bar--sm {
    width: 40px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    margin: 14px 0 26px;
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.card {
    background: #fff;
    border: 1px solid var(--grey-200);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--grey-100);
}

.icon-wrapper {
    background-color: #fff9f5;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
}
.icon-wrapper img { width: 20px; height: 20px; object-fit: contain; }

.card h3 { font-size: 22px; margin-bottom: 14px; letter-spacing: 1px; }
.card p  {
    font-size: 15px;
    color: var(--card-text);
    line-height: 1.65;
    margin-bottom: 32px;
    flex-grow: 1;
}

.card-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    transition: color var(--transition), letter-spacing var(--transition);
}
.card:hover .card-link {
    color: var(--primary-dark);
    letter-spacing: 1px;
    text-decoration: underline;
}


/* 7. Tips (index) ---------------------------------------------------------- */

#tips-section {
    padding: 60px 0 80px;
    border-top: 1px solid var(--grey-200);
}

.tips-heading    { margin-bottom: 40px; }
.tips-heading h2 { font-size: 32px; margin-bottom: 8px; letter-spacing: 1px; }
.tips-heading p  { font-size: 16px; color: var(--grey-500); }

.tips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.tip-card {
    background: #fff;
    border: 1px solid var(--grey-200);
    border-radius: var(--radius-md);
    padding: 26px 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition);
}
.tip-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.tip-icon-box {
    background-color: #eff6ff;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}
.tip-icon-box img { width: 18px; height: 18px; object-fit: contain; }

.tip-card p { font-size: 15px; color: var(--grey-700); line-height: 1.75; }


/* 8. About (index) --------------------------------------------------------- */

#about-section {
    padding: 80px 0;
    border-top: 1px solid var(--grey-200);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

#about-section h2 {
    font-size: 40px;
    margin-bottom: 24px;
    letter-spacing: 1px;
}

#about-section p {
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 30px;
}

.about-list    { display: flex; flex-direction: column; gap: 14px; }
.about-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 17px;
    color: var(--dark-color);
}

.list-icon {
    background-color: #ffedd5;
    color: var(--primary-color);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 18px;
    flex-shrink: 0;
}

.about-image-box {
    width: 100%;
    height: 380px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.about-img { width: 100%; height: 100%; object-fit: cover; display: block; }


/* 9. Page header ----------------------------------------------------------- */

.page-header {
    background-color: #F8F9FA;
    padding: 60px 0 80px;
    border-bottom: 1px solid var(--grey-200);
}

.page-header h1 {
    font-size: clamp(36px, 4.5vw, 54px);
    color: var(--dark-color);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.page-lead {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 820px;
    line-height: 1.65;
    margin-bottom: 30px;
    font-weight: 400;
}

.safety-alert {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #FFF7ED;
    border: 1px solid #FFEDD5;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    color: #C2410C;
    font-size: 14px;
    font-weight: 500;
}
.safety-alert img { width: 22px; height: 22px; object-fit: contain; }


/* 10. Guide sections (drivetech / maintenance) ----------------------------- */

.guide-section { padding: 80px 0; }
.guide-section + .guide-section { border-top: 1px solid var(--grey-200); }

.guide-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 64px;
    align-items: flex-start;
}
.guide-grid--reversed { grid-template-columns: 1fr 1.2fr; }

.guide-text h2 {
    font-size: 40px;
    color: var(--dark-color);
    letter-spacing: 1px;
}

.section-intro {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 36px;
}

.numbered-list    { display: flex; flex-direction: column; }
.numbered-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 15px 0;
    border-bottom: 1px solid var(--grey-100);
}
.numbered-list li:last-child { border-bottom: none; }

.list-number {
    background-color: var(--primary-color);
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 3px 10px var(--primary-glow);
}

.list-text { font-size: 17px; color: var(--dark-color); line-height: 1.5; }

.guide-image {
    width: 100%;
    height: 420px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.guide-image img    { width: 100%; height: 100%; object-fit: cover; display: block; }
.guide-image iframe { width: 100%; height: 100%; display: block; border: none; }


/* 11. Exercises grid (drivetech) ------------------------------------------- */

#exercises-section {
    padding: 60px 0 100px;
    border-top: 1px solid var(--grey-200);
}

.exercises-heading    { margin-bottom: 40px; }
.exercises-heading h2 { font-size: 36px; letter-spacing: 1px; margin-bottom: 8px; }
.exercises-heading p  { font-size: 16px; color: var(--grey-500); }

.exercises-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.badge {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 6px;
    letter-spacing: 1px;
}
.badge-beginner     { background-color: var(--grey-100);  color: var(--text-muted); }
.badge-intermediate { background-color: #FFF7ED; color: var(--primary-color); }

.duration {
    font-size: 13px;
    color: var(--grey-500);
    display: flex;
    align-items: center;
    gap: 5px;
}
.duration img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    opacity: 0.65;
}


/* 12. Equipment page ------------------------------------------------------- */

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 60px 0 100px;
}

.equipment-card {
    background: #fff;
    border: 1px solid var(--grey-200);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}
.equipment-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.equipment-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.equipment-card:hover .equipment-card-img { transform: scale(1.03); }

.equipment-card-body              { padding: 24px; }
.equipment-card-body h3           { font-size: 24px; margin-bottom: 10px; letter-spacing: 1px; }
.equipment-card-body p            { font-size: 15px; color: var(--card-text); line-height: 1.65; margin-bottom: 20px; }

.eq-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-transform: uppercase;
}
.eq-badge-critical    { background-color: #FEE2E2; color: #DC2626; }
.eq-badge-required    { background-color: #FFF7ED; color: var(--primary-color); }
.eq-badge-recommended { background-color: var(--grey-100); color: var(--text-muted); }

.eq-checklist {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}
.eq-checklist li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--grey-700);
}
.eq-checklist li::before {
    content: "✓";
    color: var(--primary-color);
    font-weight: 700;
    flex-shrink: 0;
}


/* 13. Gallery / slideshow -------------------------------------------------- */

.gallery-wrapper {
    background-color: #11141a;
    padding: 0 0 60px;
}

.gallery-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 32px 0 28px;
}

.gallery-tab {
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 9px 22px;
    border-radius: 30px;
    border: 2px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.50);
    cursor: pointer;
    transition: all var(--transition);
}
.gallery-tab:hover {
    border-color: rgba(255,255,255,0.28);
    color: rgba(255,255,255,0.80);
    background: rgba(255,255,255,0.07);
}
.gallery-tab.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 18px var(--primary-glow);
}

.slideshow {
    display: grid;
    grid-template-columns: 1fr 2fr;
    background: #1c2029;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.06);
}

.slideshow-meta {
    padding: 50px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(145deg, #1c2029 0%, #151820 100%);
    position: relative;
    z-index: 2;
}

.slide-category-tag {
    font-family: 'Roboto', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary-color);
    background: rgba(249,133,31,0.10);
    border: 1px solid rgba(249,133,31,0.25);
    display: inline-block;
    padding: 5px 12px;
    border-radius: 30px;
    margin-bottom: 18px;
    width: fit-content;
}

.slideshow-meta h2 {
    color: #fff;
    font-size: 38px;
    line-height: 1.08;
    margin-bottom: 18px;
    letter-spacing: 2px;
}

.slideshow-meta > p {
    color: rgba(160, 174, 192, 0.85);
    font-size: 15px;
    line-height: 1.75;
    flex-grow: 1;
}

.slide-read-more {
    display: none;
    margin-top: 14px;
    background: none;
    border: 1px solid rgba(255,255,255,0.20);
    color: rgba(255,255,255,0.65);
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 7px 18px;
    border-radius: 30px;
    cursor: pointer;
    transition: all var(--transition);
    flex-shrink: 0;
}
.slide-read-more:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.35);
    color: #fff;
}

.meta-desc-expanded {
    display: none;
    margin-top: 14px;
    background: rgba(249,133,31,0.07);
    border-left: 3px solid var(--primary-color);
    padding: 14px 16px;
    border-radius: 0 8px 8px 0;
    color: rgba(160,174,192,0.95);
    font-size: 15px;
    line-height: 1.75;
    flex-shrink: 0;
}

.meta-controls { display: flex; gap: 12px; margin-top: 36px; }

.slide-nav {
    background: rgba(255,255,255,0.04);
    border: 2px solid rgba(255,255,255,0.10);
    color: #fff;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.slide-nav:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(249,133,31,0.35);
}
.slide-nav:active { transform: translateY(0); }

.slideshow-meta-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
}

.slideshow-viewport {
    position: relative;
    height: 680px;
    overflow: hidden;
    background: #000;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.7s ease-in-out;
    pointer-events: none;
}

.slide[style*="display: block"] { pointer-events: auto; }
.slide.is-active { opacity: 1; }

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.07);
    transition: transform 7s cubic-bezier(0.1,1,0.1,1);
    display: block;
}
.slide.is-active img { transform: scale(1); }

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(22,25,32,0.65) 0%, transparent 45%);
    z-index: 1;
}

.slide-counter {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 16px;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.50);
    display: flex;
    align-items: baseline;
    gap: 4px;
}
.counter-sep { font-size: 13px; color: rgba(255,255,255,0.25); margin: 0 1px; }
#current-num { color: var(--primary-color); font-size: 22px; }
#total-num   { font-size: 16px; }

.autoplay-indicator {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--primary-color);
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(0.7); }
}

.slide-dots  { text-align: center; margin-top: 28px; padding-bottom: 4px; }

.dot {
    cursor: pointer;
    height: 3px;
    width: 28px;
    margin: 0 3px;
    background-color: rgba(255,255,255,0.12);
    display: inline-block;
    border-radius: 2px;
    transition: all 0.35s ease;
}
.dot.active,
.dot:hover {
    background-color: var(--primary-color);
    width: 52px;
}


/* 14. Footer --------------------------------------------------------------- */

#main-footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 60px 0;
    margin-top: 60px;
}

main.gallery-wrapper + #main-footer { margin-top: 0; }

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.footer-brand h3 {
    color: var(--light-color);
    font-size: 22px;
    letter-spacing: 1px;
}

.icon-box-small {
    background-color: var(--primary-color);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 12px;
    flex-shrink: 0;
}
.icon-box-small img { max-width: 60%; max-height: 60%; object-fit: contain; }

.footer-brand p { font-size: 15px; line-height: 1.65; max-width: 360px; }

.footer-nav h4,
.footer-info h4 {
    color: var(--light-color);
    font-size: 16px;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.footer-nav ul        { display: flex; flex-direction: column; gap: 10px; }
.footer-nav ul li a   { font-size: 15px; transition: color var(--transition); }
.footer-nav ul li a:hover { color: var(--primary-color); }

.footer-info p           { font-size: 15px; margin-bottom: 8px; }
.footer-info .disclaimer { font-size: 12px; color: var(--light-color); margin-top: 12px; }


/* 15. Media queries -------------------------------------------------------- */

@media (max-width: 1300px) {
    .page-box { border-radius: 0; }
    #navbar   { max-width: 100%; }
}

@media (max-width: 992px) {
    .slideshow              { grid-template-columns: 1fr; }
    .slideshow-viewport     { height: 420px; order: 1; }
    .slideshow-meta         { padding: 36px 40px; order: 2; }
    .slideshow-meta h2      { font-size: 32px; }
    .slide-read-more        { display: inline-block; }
    #meta-desc              { display: none; }

    .features-grid          { grid-template-columns: repeat(2, 1fr); }

    .guide-grid,
    .guide-grid--reversed            { grid-template-columns: 1fr; }
    .guide-grid--reversed .guide-image { order: -1; }
    .guide-image                     { height: 300px; }

    .equipment-grid         { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 920px) {
    .menu-toggle { display: flex; }

    #navbar ul {
        display: none;
        position: absolute;
        top: var(--navbar-height);
        left: 0; right: 0;
        flex-direction: column;
        background: #fff;
        padding: 12px 16px 20px;
        border-bottom: 1px solid var(--grey-200);
        box-shadow: 0 8px 20px rgba(0,0,0,0.09);
        gap: 4px;
    }
    #navbar ul.nav-open { display: flex; }
    #navbar ul li       { margin-left: 0; }
    #navbar ul li a {
        justify-content: flex-start;
        padding: 12px 16px;
        height: auto;
        font-size: 15px;
    }
    #navbar h1 a { font-size: 20px; }

    .footer-grid,
    .about-grid,
    .guide-grid,
    .guide-grid--reversed,
    .tips-grid,
    .exercises-grid,
    .equipment-grid { grid-template-columns: 1fr; gap: 24px; }

    .features-grid   { grid-template-columns: repeat(2, 1fr); gap: 16px; }

    .about-image-box { height: 260px; }
    .guide-image     { height: 240px; }

    .showcase-buttons { flex-direction: column; gap: 12px; }
    .btn              { text-align: center; }

    .guide-grid--reversed .guide-image { order: -1; }
}

@media (max-width: 576px) {
    .features-grid      { grid-template-columns: 1fr; }
    .slideshow-viewport { height: 280px; }
    .slideshow-meta     { padding: 26px 24px; }
    .slideshow-meta h2  { font-size: 26px; }
    .page-header        { padding: 40px 0 56px; }
    .card               { padding: 24px 18px; }
    #navbar h1 a        { visibility: hidden; }
    .gallery-tabs       { gap: 8px; }
    .gallery-tab        { font-size: 12px; padding: 7px 16px; }
}