/* Nitro ACF blocks */
.nitro-block { position: relative; }

/* Hero */
.nitro-hero { overflow: hidden; color: #fff; background-color: var(--nitro-navy); background-position: center; background-size: cover; }
.nitro-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,5,35,.94) 0%, rgba(3,5,35,.72) 48%, rgba(3,5,35,.12) 100%); }
.nitro-hero--basketball::before { background: linear-gradient(90deg, rgba(3,5,35,.96), rgba(3,5,35,.58) 58%, rgba(3,5,35,.18)); }
.nitro-hero--rugby::before { background: linear-gradient(90deg, rgba(9,18,20,.96), rgba(9,18,20,.66) 55%, rgba(9,18,20,.16)); }
.nitro-hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr); align-items: center; min-height: clamp(660px, 82vh, 900px); gap: clamp(28px, 5vw, 84px); padding-block: clamp(80px, 9vw, 140px); }
.nitro-hero__content { max-width: 760px; }
.nitro-hero__eyebrow { margin: 0 0 18px; color: var(--nitro-orange); font-size: 14px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.nitro-hero__title { margin: 0; color: #fff; font-family: var(--wp--preset--font-family--display); font-size: clamp(54px, 7vw, 108px); font-weight: 900; line-height: .94; letter-spacing: -.055em; text-transform: uppercase; }
.nitro-hero__title mark, .nitro-hero__title span { color: var(--nitro-orange); background: transparent; }
.nitro-hero__text { max-width: 670px; margin: 26px 0 0; color: rgba(255,255,255,.78); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.7; }
.nitro-hero__buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.nitro-hero__media { position: relative; align-self: end; }
.nitro-hero__media img { display: block; width: 100%; max-height: 720px; object-fit: contain; object-position: bottom center; filter: drop-shadow(0 28px 45px rgba(0,0,0,.28)); }
.nitro-hero--no-media .nitro-hero__inner,
.nitro-hero--minimal .nitro-hero__inner { grid-template-columns: 1fr; min-height: 620px; text-align: center; }
.nitro-hero--no-media .nitro-hero__content { max-width: 900px; }
.nitro-hero--minimal .nitro-hero__content { margin-inline: auto; }
.nitro-hero--minimal .nitro-hero__buttons { justify-content: center; }
.nitro-hero--minimal .nitro-hero__media { display: none; }

/* Page hero */
.nitro-page-hero { overflow: hidden; min-height: clamp(300px, 42vw, 520px); display: grid; place-items: center; color: #fff; background-position: center; background-size: cover; }
.nitro-page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,5,35,.92), rgba(3,5,35,.56)); }
.nitro-page-hero__inner { position: relative; z-index: 2; width: min(1320px, calc(100% - 40px)); padding-block: 80px; }
.nitro-page-hero__title { max-width: 920px; margin: 0; color: #fff; font-size: clamp(48px, 7vw, 96px); line-height: .96; letter-spacing: -.045em; text-transform: uppercase; }
.nitro-page-hero__text { max-width: 720px; margin: 22px 0 0; color: rgba(255,255,255,.78); font-size: 19px; }

/* Editorial */
.nitro-editorial { background: #fff; }
.nitro-editorial--surface { background: var(--nitro-surface); }
.nitro-editorial--dark { background: var(--nitro-navy); color: #fff; }
.nitro-editorial__grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(40px,7vw,100px); align-items: center; }
.nitro-editorial--image-left .nitro-editorial__media { order: -1; }
.nitro-editorial__media { overflow: hidden; border-radius: 12px; min-height: 440px; }
.nitro-editorial__media img { width: 100%; height: 100%; min-height: 440px; object-fit: cover; }
.nitro-editorial__content .nitro-section-title { font-size: clamp(38px,5vw,68px); }
.nitro-editorial--dark .nitro-section-title, .nitro-editorial--dark .nitro-section-intro { color: #fff; }
.nitro-editorial__body { color: var(--nitro-muted); font-size: 18px; line-height: 1.8; }
.nitro-editorial--dark .nitro-editorial__body { color: rgba(255,255,255,.75); }
.nitro-editorial__body > :first-child { margin-top: 0; }
.nitro-editorial__body > :last-child { margin-bottom: 0; }
.nitro-editorial__button { margin-top: 28px; }

/* Players */
.nitro-player-card { position: relative; min-height: 460px; overflow: hidden; border-radius: 10px; background: var(--nitro-navy); }
.nitro-player-card__image { position: absolute; inset: 0; }
.nitro-player-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.nitro-player-card::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(180deg, transparent, rgba(3,5,35,.95)); }
.nitro-player-card:hover .nitro-player-card__image img { transform: scale(1.05); }
.nitro-player-card__content { position: absolute; z-index: 2; inset: auto 0 0; padding: 26px; color: #fff; }
.nitro-player-card__position { color: var(--nitro-orange); font-size: 13px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.nitro-player-card__title { margin: 7px 0 0; color: #fff; font-size: 27px; line-height: 1.08; }
.nitro-player-card__title a { color: inherit; text-decoration: none; }
.nitro-player-card__number { position: absolute; right: 18px; bottom: 8px; color: rgba(255,255,255,.14); font-family: var(--wp--preset--font-family--display); font-size: 92px; font-weight: 900; line-height: 1; }

/* Matches */
.nitro-matches { background: var(--nitro-surface); }
.nitro-match-card { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: clamp(18px,4vw,52px); padding: clamp(24px,4vw,42px); border: 1px solid var(--nitro-border); border-radius: 10px; background: #fff; box-shadow: 0 12px 38px rgba(3,5,35,.05); }
.nitro-match-card + .nitro-match-card { margin-top: 18px; }
.nitro-match-team { display: flex; align-items: center; gap: 16px; min-width: 0; }
.nitro-match-team--away { flex-direction: row-reverse; text-align: right; }
.nitro-match-team__logo { width: 74px; height: 74px; object-fit: contain; flex: 0 0 auto; }
.nitro-match-team__name { color: var(--nitro-navy); font-size: clamp(18px,2.2vw,30px); font-weight: 900; line-height: 1.1; }
.nitro-match-center { min-width: 150px; text-align: center; }
.nitro-match-status { color: var(--nitro-orange); font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.nitro-match-score { margin: 7px 0; color: var(--nitro-navy); font-family: var(--wp--preset--font-family--display); font-size: clamp(38px,5vw,66px); font-weight: 900; line-height: 1; }
.nitro-match-meta { color: var(--nitro-muted); font-size: 14px; }

/* Ranking */
.nitro-ranking { background: var(--nitro-navy); color: #fff; }
.nitro-ranking .nitro-section-title, .nitro-ranking .nitro-section-intro { color: #fff; }
.nitro-ranking-table-wrap { overflow-x: auto; border-radius: 10px; background: #fff; }
.nitro-ranking-table { width: 100%; min-width: 760px; border-collapse: collapse; color: var(--nitro-navy); }
.nitro-ranking-table th, .nitro-ranking-table td { padding: 17px 18px; border-bottom: 1px solid rgba(3,5,35,.09); text-align: center; }
.nitro-ranking-table th { background: var(--nitro-orange); color: #fff; font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.nitro-ranking-table th:nth-child(2), .nitro-ranking-table td:nth-child(2) { text-align: left; }
.nitro-ranking-table tbody tr:last-child td { border-bottom: 0; }
.nitro-ranking-club { display: flex; align-items: center; gap: 12px; font-weight: 800; }
.nitro-ranking-club img { width: 38px; height: 38px; object-fit: contain; }

/* News */
.nitro-news-card .nitro-card__image { aspect-ratio: 16/10; }
.nitro-news-card__date { display: inline-flex; margin-bottom: 10px; color: var(--nitro-orange); font-size: 13px; font-weight: 800; }

/* Sponsors */
.nitro-sponsors { background: #fff; }
.nitro-sponsors-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.nitro-sponsor-card { display: grid; place-items: center; min-height: 145px; padding: 24px; border: 1px solid var(--nitro-border); border-radius: 8px; background: #fff; }
.nitro-sponsor-card img { max-width: 160px; max-height: 76px; object-fit: contain; filter: grayscale(1); opacity: .72; transition: .25s ease; }
.nitro-sponsor-card:hover img { filter: none; opacity: 1; }
.nitro-sponsor-card__name { color: var(--nitro-navy); font-weight: 800; text-decoration: none; }

/* Gallery */
.nitro-gallery { background: var(--nitro-surface); }
.nitro-gallery-grid { columns: 3 280px; column-gap: 18px; }
.nitro-gallery-item { break-inside: avoid; margin: 0 0 18px; overflow: hidden; border-radius: 8px; background: #ddd; }
.nitro-gallery-item img { display: block; width: 100%; height: auto; transition: transform .4s ease; }
.nitro-gallery-item:hover img { transform: scale(1.035); }

/* Testimonials */
.nitro-testimonials { background: var(--nitro-surface); }
.nitro-testimonial-card { padding: 30px; border: 1px solid var(--nitro-border); border-radius: 10px; background: #fff; }
.nitro-testimonial-card__quote { color: var(--nitro-navy); font-size: 19px; line-height: 1.75; }
.nitro-testimonial-card__person { display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.nitro-testimonial-card__person img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; }
.nitro-testimonial-card__name { color: var(--nitro-navy); font-weight: 900; }
.nitro-testimonial-card__role { color: var(--nitro-muted); font-size: 14px; }

/* CTA */
.nitro-cta { overflow: hidden; background-position: center; background-size: cover; }
.nitro-cta::before { content: ""; position: absolute; inset: 0; background: rgba(3,5,35,.86); }
.nitro-cta__inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 40px; min-height: 360px; padding-block: 72px; }
.nitro-cta__content { max-width: 820px; }
.nitro-cta__title { margin: 0; color: #fff; font-size: clamp(40px,5vw,72px); line-height: 1; letter-spacing: -.04em; }
.nitro-cta__text { max-width: 700px; margin: 18px 0 0; color: rgba(255,255,255,.72); font-size: 18px; }
.nitro-cta__actions { flex: 0 0 auto; }

/* Contact */
.nitro-contact { background: var(--nitro-surface); }
.nitro-contact__grid { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: clamp(34px,6vw,80px); }
.nitro-contact__details { padding: 36px; border-radius: 10px; background: var(--nitro-navy); color: #fff; }
.nitro-contact__details .nitro-section-title { color: #fff; font-size: clamp(36px,4vw,58px); }
.nitro-contact__details .nitro-section-intro { margin-inline: 0; color: rgba(255,255,255,.72); }
.nitro-contact-list { margin: 30px 0 0; padding: 0; list-style: none; }
.nitro-contact-list li + li { margin-top: 18px; }
.nitro-contact-list strong { display: block; color: var(--nitro-orange); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.nitro-contact-form { padding: 36px; border: 1px solid var(--nitro-border); border-radius: 10px; background: #fff; }
.nitro-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.nitro-form-field--full { grid-column: 1 / -1; }
.nitro-form-field label { display: block; margin-bottom: 7px; color: var(--nitro-navy); font-weight: 800; }
.nitro-form-field input, .nitro-form-field textarea { width: 100%; border: 1px solid rgba(3,5,35,.16); border-radius: 5px; background: #fff; padding: 14px 16px; color: var(--nitro-ink); }
.nitro-form-field textarea { min-height: 160px; resize: vertical; }
.nitro-form-feedback { margin-bottom: 18px; padding: 14px 16px; border-radius: 5px; }
.nitro-form-feedback--success { background: #ecfdf3; color: #166534; }
.nitro-form-feedback--error { background: #fff1f2; color: #9f1239; }

/* Shortcode */
.nitro-shortcode-section { background: #fff; }

@media (max-width: 1024px) {
  .nitro-hero__inner { grid-template-columns: 1fr; min-height: auto; padding-top: 100px; }
  .nitro-hero__media { max-width: 680px; margin-inline: auto; }
  .nitro-editorial__grid, .nitro-contact__grid { grid-template-columns: 1fr; }
  .nitro-editorial__media { min-height: 360px; }
  .nitro-cta__inner { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 767px) {
  .nitro-hero::before { background: rgba(3,5,35,.82); }
  .nitro-hero__inner { padding-block: 72px; }
  .nitro-hero__title { font-size: clamp(48px,16vw,72px); }
  .nitro-hero__buttons { align-items: stretch; flex-direction: column; }
  .nitro-hero__buttons .nitro-button { width: 100%; }
  .nitro-match-card { grid-template-columns: 1fr; }
  .nitro-match-team, .nitro-match-team--away { flex-direction: column; text-align: center; }
  .nitro-match-center { order: -1; }
  .nitro-form-grid { grid-template-columns: 1fr; }
  .nitro-form-field--full { grid-column: auto; }
  .nitro-contact__details, .nitro-contact-form { padding: 26px; }
}
