﻿/*
Theme Name: SM RACING V2
Theme URI: https://sm-racing.pl/
Author: SM RACING
Description: Prosty motyw strony klubowej SM RACING z sekcja Central Europe Supermoto Cup.
Version: 1.1.8
Text Domain: sm-racing
*/

    :root {
      --ink: #111111;
      --muted: #5b5f66;
      --line: #dedfe2;
      --paper: #f4f4f2;
      --white: #ffffff;
      --blue: #064bb3;
      --blue-dark: #032a66;
      --blue-soft: #e8f1ff;
      --red: #e30613;
      --accent: #ffffff;
      --charcoal: #151515;
      --graphite: #25272b;
    }

    * { box-sizing: border-box; }

    body {
      margin: 0;
      color: var(--ink);
      background: var(--paper);
      font-family: Arial, Helvetica, sans-serif;
      line-height: 1.5;
    }

    a { color: inherit; }

    .topbar {
      position: sticky;
      top: 0;
      z-index: 10;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      padding: 12px clamp(18px, 4vw, 56px);
      background: rgba(17, 17, 17, 0.94);
      border-bottom: 1px solid rgba(255,255,255,0.12);
      backdrop-filter: blur(10px);
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 14px;
      color: white;
      font-weight: 900;
      letter-spacing: 0;
      text-decoration: none;
    }

    .logo-object {
      display: block;
      width: clamp(95px, 12vw, 150px);
      height: auto;
      object-fit: contain;
    }

    .brand-name {
      display: none;
    }

    .menu-toggle {
      display: none;
      width: 44px;
      height: 44px;
      padding: 0;
      color: white;
      background: rgba(255,255,255,0.08);
      border: 1px solid rgba(255,255,255,0.18);
      border-radius: 8px;
      cursor: pointer;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      gap: 5px;
    }

    .menu-toggle span {
      display: block;
      width: 22px;
      height: 2px;
      background: currentColor;
      border-radius: 999px;
      transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .topbar.is-menu-open .menu-toggle span:nth-child(1) {
      transform: translateY(7px) rotate(45deg);
    }

    .topbar.is-menu-open .menu-toggle span:nth-child(2) {
      opacity: 0;
    }

    .topbar.is-menu-open .menu-toggle span:nth-child(3) {
      transform: translateY(-7px) rotate(-45deg);
    }

    nav {
      display: flex;
      flex-wrap: wrap;
      justify-content: flex-end;
      gap: 6px;
      font-size: 14px;
      font-weight: 700;
    }

    nav a {
      padding: 8px 10px;
      color: rgba(255,255,255,0.86);
      text-decoration: none;
      border-radius: 6px;
    }

    nav a:hover {
      color: white;
      background: rgba(6,75,179,0.42);
    }

    .lang-switch {
      display: inline-flex;
      gap: 4px;
      padding: 4px;
      background: rgba(255,255,255,0.08);
      border: 1px solid rgba(255,255,255,0.14);
      border-radius: 6px;
    }

    .lang-switch button {
      min-width: 38px;
      min-height: 32px;
      color: rgba(255,255,255,0.78);
      background: transparent;
      border: 0;
      border-radius: 4px;
      font: inherit;
      font-size: 13px;
      font-weight: 900;
      cursor: pointer;
    }

    .lang-switch button.is-active {
      color: white;
      background: var(--blue);
    }

    .hero {
      min-height: 82vh;
      display: grid;
      align-items: end;
      padding: clamp(28px, 5vw, 72px);
      color: white;
      background:
        linear-gradient(90deg, rgba(0,0,0,0.9), rgba(3,42,102,0.68), rgba(0,0,0,0.08)),
        url("assets/photos/hero.jpg") center / cover;
    }

    .hero-content {
      max-width: 860px;
      padding-bottom: 4vh;
    }

    .hero-logo {
      display: block;
      width: min(520px, 86vw);
      height: auto;
      margin-bottom: 18px;
      object-fit: contain;
      filter: drop-shadow(0 18px 28px rgba(0,0,0,0.35));
    }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 16px;
      font-size: 13px;
      font-weight: 800;
      text-transform: uppercase;
    }

    .eyebrow::before {
      content: "";
      width: 28px;
      height: 4px;
      background: var(--blue);
      border-radius: 999px;
    }

    h1, h2, h3, p { margin-top: 0; }

    h1 {
      margin-bottom: 14px;
      font-size: clamp(46px, 8vw, 104px);
      line-height: 0.95;
      letter-spacing: 0;
    }

    .lead {
      max-width: 700px;
      margin-bottom: 24px;
      color: rgba(255,255,255,0.88);
      font-size: clamp(18px, 2vw, 24px);
    }

    .actions {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
    }

    .button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 46px;
      padding: 12px 18px;
      color: white;
      background: var(--blue);
      border: 1px solid var(--blue);
      border-radius: 6px;
      font-weight: 800;
      text-decoration: none;
    }

    .button.secondary {
      background: rgba(255,255,255,0.1);
      border-color: rgba(255,255,255,0.45);
    }

    .button:hover {
      background: var(--blue-dark);
      border-color: var(--blue-dark);
    }

    section {
      padding: clamp(44px, 7vw, 92px) clamp(18px, 4vw, 56px);
    }

    .wrap {
      max-width: 1180px;
      margin: 0 auto;
    }

    .section-head {
      display: grid;
      grid-template-columns: minmax(0, 0.9fr) minmax(260px, 1.1fr);
      gap: 34px;
      align-items: end;
      margin-bottom: 30px;
    }

    h2 {
      margin-bottom: 0;
      font-size: clamp(30px, 4vw, 54px);
      line-height: 1.02;
      letter-spacing: 0;
    }

    .section-head p,
    .muted { color: var(--muted); }

    @media (min-width: 821px) {
      #klub .section-head {
        grid-template-columns: 1fr;
      }

      #klub .section-head p {
        max-width: 920px;
      }
    }

    .grid-3 {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 16px;
    }

    .info-card {
      min-height: 190px;
      padding: 22px;
      background: var(--white);
      border: 1px solid var(--line);
      border-top: 4px solid var(--blue);
      border-radius: 8px;
      box-shadow: 0 14px 28px rgba(3,42,102,0.06);
    }

    .info-card h3 {
      margin-bottom: 10px;
      font-size: 20px;
    }

    .calendar-card {
      grid-column: 1 / -1;
    }

    @media (min-width: 821px) {
      .grid-3 > .info-card:nth-child(2) {
        grid-column: 1 / -1;
      }
    }

    .calendar-intro {
      max-width: 920px;
      margin-bottom: 18px;
      color: var(--muted);
      font-size: 17px;
    }

    .calendar-columns {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(280px, 0.86fr);
      gap: 18px;
      align-items: start;
    }

    .calendar-card h4 {
      margin: 0 0 10px;
      font-size: 17px;
    }

    .calendar-list {
      display: grid;
      gap: 8px;
      margin: 0 0 18px;
      padding: 0;
      list-style: none;
    }

    .calendar-list li {
      padding: 11px 12px;
      background: #f6f8fb;
      border: 1px solid var(--line);
      border-radius: 6px;
    }

    .calendar-list strong {
      color: var(--blue);
    }

    .calendar-note {
      margin: 0;
      color: var(--muted);
    }

    .cup {
      color: white;
      background:
        linear-gradient(135deg, rgba(6,75,179,0.26), rgba(255,255,255,0.06) 36%, rgba(21,21,21,0) 62%),
        var(--charcoal);
    }

    .cup .section-head p { color: rgba(255,255,255,0.72); }

    @media (min-width: 821px) {
      .cup .section-head {
        grid-template-columns: 1fr;
      }
    }

    .cup-layout {
      display: grid;
      grid-template-columns: 1fr;
      gap: 28px;
      align-items: stretch;
    }

    .cup-copy {
      display: grid;
      gap: 14px;
    }

    @media (min-width: 981px) {
      .cup-copy {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
      }

      .cup-copy .cup-box:first-child {
        grid-column: 1 / -1;
      }

      .cup-copy .cup-box:nth-child(2) {
        grid-column: 1 / -1;
      }

      .cup-copy .cup-box:nth-child(3) {
        grid-column: 1 / -1;
      }

      .cup-copy .compact-classes {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .cup-copy .cup-box:nth-child(2) .compact-class {
        grid-template-columns: 132px minmax(0, 1fr);
        column-gap: 18px;
      }

      .photo-grid {
        grid-template-columns: 1.2fr 0.9fr 0.9fr;
        grid-template-rows: 260px;
      }

      .photo-grid img:first-child {
        grid-row: auto;
      }
    }

    .cup-box {
      padding: 22px;
      background: rgba(255,255,255,0.08);
      border: 1px solid rgba(255,255,255,0.18);
      border-radius: 8px;
    }

    .cup-box h3 { color: #9fc4ff; }

    .event-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-bottom: 18px;
    }

    .pill {
      display: inline-flex;
      align-items: center;
      min-height: 34px;
      padding: 7px 11px;
      color: white;
      background: rgba(6,75,179,0.34);
      border: 1px solid rgba(159,196,255,0.28);
      border-radius: 999px;
      font-size: 13px;
      font-weight: 800;
    }

    .schedule-title {
      margin: 22px 0 10px;
      color: #9fc4ff;
      font-size: 17px;
    }

    .schedule {
      display: grid;
      gap: 0;
      margin-top: 12px;
      overflow: hidden;
      background: rgba(255,255,255,0.08);
      border: 1px solid rgba(159,196,255,0.22);
      border-radius: 8px;
    }

    .schedule-item {
      padding: 18px;
    }

    .schedule-item + .schedule-item {
      border-top: 1px solid rgba(159,196,255,0.18);
    }

    .class-card {
      padding: 18px;
      background: rgba(255,255,255,0.08);
      border: 1px solid rgba(159,196,255,0.22);
      border-radius: 8px;
    }

    .schedule-item strong,
    .class-card strong {
      display: block;
      margin-bottom: 6px;
      color: #9fc4ff;
    }

    .schedule-item ul {
      display: grid;
      gap: 7px;
      margin: 10px 0 0;
      padding: 0;
      list-style: none;
    }

    .schedule-item li {
      position: relative;
      padding-left: 18px;
      color: rgba(255,255,255,0.9);
    }

    .schedule-item li::before {
      content: "";
      position: absolute;
      left: 0;
      top: 0.72em;
      width: 7px;
      height: 7px;
      background: #9fc4ff;
      border-radius: 50%;
      transform: translateY(-50%);
    }

    .class-meta {
      display: grid;
      gap: 7px;
      margin: 10px 0 0;
      padding: 0;
      list-style: none;
      color: rgba(255,255,255,0.82);
      font-size: 14px;
    }

    .class-meta li {
      display: grid;
      grid-template-columns: 86px minmax(0, 1fr);
      gap: 10px;
    }

    .class-meta span {
      color: #9fc4ff;
      font-weight: 800;
    }

    .compact-classes-title {
      margin: 24px 0 10px;
      color: #9fc4ff;
      font-size: 17px;
    }

    .compact-classes {
      display: grid;
      grid-template-columns: 1fr;
      gap: 12px;
    }

    .compact-class {
      display: grid;
      grid-template-columns: 104px minmax(0, 1fr);
      column-gap: 10px;
      align-items: center;
      padding: 18px 22px;
      border: 1px solid rgba(159,196,255,0.26);
      border-radius: 8px;
      background:
        linear-gradient(90deg, rgba(0,0,0,0.18), rgba(6,75,179,0.16)),
        rgba(255,255,255,0.07);
    }

    .compact-class strong {
      display: block;
      grid-row: 1 / span 2;
      margin: 0;
      color: #d7e7ff;
      font-size: 58px;
      line-height: 0.9;
      letter-spacing: 0;
      text-shadow: 0 3px 0 #061326, 0 0 18px rgba(159,196,255,0.28);
    }

    .compact-class strong.long-label {
      font-size: 29px;
      line-height: 1;
    }

    .compact-class strong.extra-long-label {
      font-size: 22px;
      line-height: 1;
    }

    .compact-class p {
      margin: 0 0 12px;
      color: rgba(255,255,255,0.92);
      font-size: 15px;
      line-height: 1.45;
    }

    .compact-class .class-meta {
      gap: 6px;
      margin-top: 0;
      font-size: 14px;
    }

    .compact-class .class-meta li {
      grid-template-columns: 92px minmax(0, 1fr);
    }

    .compact-class .fee {
      color: #9fc4ff;
      font-weight: 900;
    }

    .compact-class-note {
      margin: 12px 0 0;
      color: rgba(255,255,255,0.76);
      font-size: 14px;
    }

    .promo {
      background: white;
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
    }

    .promo-band {
      display: grid;
      grid-template-columns: minmax(0, 0.75fr) minmax(280px, 1.25fr);
      gap: 26px;
      align-items: center;
      padding: 30px;
      color: white;
      background:
        linear-gradient(135deg, rgba(6,75,179,0.96), rgba(17,17,17,0.96));
      border-radius: 8px;
    }

    .promo-band p {
      margin-bottom: 0;
      color: rgba(255,255,255,0.84);
    }

    @media (min-width: 821px) {
      .promo-band {
        grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1fr);
        align-items: start;
        gap: 46px;
      }

      .promo-band h2 {
        grid-row: 1 / span 2;
      }

      .promo-band p {
        max-width: 760px;
        font-size: 18px;
        line-height: 1.48;
      }

      .promo-band p + p {
        margin-top: 10px;
      }
    }

    .photo-grid {
      display: grid;
      grid-template-columns: 1.2fr 0.8fr;
      grid-template-rows: 220px 220px;
      gap: 12px;
    }

    .photo-grid img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: 8px;
    }

    .photo-grid img:first-child { grid-row: 1 / span 2; }

    .signup {
      background: white;
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
    }

    .signup-band {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 24px;
      align-items: center;
      padding: 30px;
      background:
        linear-gradient(90deg, rgba(6,75,179,0.12), rgba(232,241,255,0.76)),
        #f4f7fb;
      border: 1px solid var(--line);
      border-radius: 8px;
    }

    .sponsor-section {
      color: white;
      background: #050505;
      border-top: 1px solid rgba(255,255,255,0.1);
      border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .sponsor-section .section-head p {
      color: rgba(255,255,255,0.68);
    }

    .sponsor-board {
      width: 100%;
      display: block;
      border-radius: 8px;
      border: 1px solid rgba(255,255,255,0.12);
      background: #000;
    }

    .contact {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
      gap: 28px;
    }

    .contact-list {
      display: grid;
      gap: 10px;
      margin: 0;
      padding: 0;
      list-style: none;
    }

    @media (min-width: 821px) {
      .contact {
        grid-template-columns: 1fr;
      }

      .contact-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
      }

      .contact-list a {
        min-height: 72px;
      }
    }

    .contact-list a {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 16px;
      background: white;
      border: 1px solid var(--line);
      border-radius: 8px;
      text-decoration: none;
      font-weight: 800;
    }

    .contact-icon {
      display: inline-grid;
      place-items: center;
      width: 30px;
      height: 30px;
      color: white;
      background: var(--blue);
      border-radius: 50%;
      font-size: 16px;
      line-height: 1;
      flex: 0 0 auto;
    }

    .contact-icon svg {
      width: 17px;
      height: 17px;
      fill: currentColor;
      display: block;
    }

    .contact-icon.mail { background: #1f2937; }
    .contact-icon.facebook { background: #1877f2; }
    .contact-icon.instagram {
      background: linear-gradient(135deg, #f58529, #dd2a7b 45%, #8134af 75%, #515bd4);
    }
    .contact-icon.whatsapp { background: #25d366; }

    footer {
      padding: 24px clamp(18px, 4vw, 56px);
      color: rgba(255,255,255,0.72);
      background: #111111;
      font-size: 14px;
    }

    @media (max-width: 820px) {
      .topbar {
        display: grid;
        grid-template-columns: auto 44px;
        align-items: center;
        gap: 10px 14px;
      }
      .menu-toggle {
        display: inline-flex;
        justify-self: end;
      }
      nav {
        display: none;
        grid-column: 1 / -1;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 8px;
      }
      .topbar.is-menu-open nav {
        display: flex;
      }
      nav a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 11px 12px;
        background: rgba(255,255,255,0.07);
        border: 1px solid rgba(255,255,255,0.12);
      }
      .lang-switch {
        grid-column: 1 / -1;
        justify-content: center;
      }
      .section-head,
      .grid-3,
      .cup-layout,
      .compact-classes,
      .calendar-columns,
      .promo-band,
      .signup-band,
      .contact {
        grid-template-columns: 1fr;
      }
      .photo-grid {
        grid-template-columns: 1fr;
        grid-template-rows: 260px 200px 200px;
      }
      .photo-grid img:first-child { grid-row: auto; }
      .logo-object { width: min(150px, 52vw); }
    }

    @media (max-width: 560px) {
      .compact-class {
        grid-template-columns: 1fr;
        row-gap: 12px;
      }
      .compact-class strong {
        grid-row: auto;
        font-size: 48px;
      }
    }

