/*
Theme Name: Solaris Cup
Theme URI: https://www.solariscup.com
Author: DLEA.IT
Author URI: https://www.dlea.it
Description: Lightweight block theme for the Solaris Cup. No page builder.
Version: 0.2.2
Requires at least: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: solariscup
*/

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
:where(section[id]) { scroll-margin-top: 0; }

/* Small uppercase label, Rolls-Royce style */
.sc-kicker { font-size: 11px !important; font-weight: 400; letter-spacing: .32em; text-transform: uppercase; line-height: 1.4; }

/* ---------- Header: hamburger only ---------- */
.sc-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; color: #fff; min-height: 72px; box-sizing: border-box; transition: background .4s ease; }
.sc-header > * { position: relative; }
.sc-header.is-scrolled { background: rgba(13, 27, 38, .94); }
/* Logo: same mark as solariscup.com, white on the dark header */
.sc-header .sc-logo { margin: 0 !important; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.sc-header .sc-logo img { width: 96px; height: auto; display: block; transition: width .4s ease; }
.sc-header.is-scrolled .sc-logo img { width: 72px; }
/* Hamburger: same icon and label as Solaris Custom / Solaris Power */
.sc-header .wp-block-navigation__responsive-container-open { display: inline-flex !important; align-items: center; gap: 15px; padding: 0; color: #fff; }
.sc-header .wp-block-navigation__responsive-container-open svg { display: none; }
.sc-header .wp-block-navigation__responsive-container-open::before { content: ""; width: 24px; height: 24px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 75 75' fill='none' stroke='%23fff' stroke-width='6.25' stroke-linecap='round'%3E%3Cpath d='M13 19.2h50M13 38h37.5M13 56.7h18.8'/%3E%3C/svg%3E") center / contain no-repeat; }
.sc-header .wp-block-navigation__responsive-container-open::after { content: "Menu"; font-size: clamp(.75rem, .69rem + .25vh, .875rem); font-weight: 500; letter-spacing: .15em; text-transform: uppercase; }
.wp-block-navigation__responsive-container-close { display: inline-flex; align-items: center; gap: 12px; color: #fff; }
.wp-block-navigation__responsive-container-close::after { content: "Close"; font-size: .8rem; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; }
.sc-header .sc-year { margin: 0; min-width: 90px; text-align: right; font-size: 10px !important; letter-spacing: .2em; }
.wp-block-navigation__responsive-container.is-menu-open { position: fixed !important; inset: 0 !important; height: 100vh !important; background: #0D1B26 !important; color: #fff !important; padding: clamp(24px, 6vw, 80px) !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { align-items: flex-start !important; justify-content: center; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { font-size: clamp(34px, 5.5vw, 68px) !important; font-weight: 300; letter-spacing: .06em; line-height: 1.2; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a:hover { color: #E8D7B8; }

/* ---------- Hero ---------- */
.sc-hero { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px !important; background: #0D1B26; min-height: 100vh; box-sizing: border-box; margin: 0 !important; }
.sc-hero > .sc-hero__main { flex: 2 1 640px; min-height: 640px !important; margin: 0 !important; }
.sc-hero > .sc-tiles { flex: 1 1 440px; display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(200px, 1fr); gap: 6px; margin: 0 !important; }
.sc-hero__main .wp-block-cover__inner-container { text-align: center; }
.sc-hero__date { font-size: clamp(24px, 2.8vw, 44px) !important; letter-spacing: .14em !important; margin: 0 !important; }

.sc-countdown { display: flex; flex-wrap: nowrap; justify-content: center; gap: clamp(14px, 2.6vw, 48px); margin: 18px 0 10px; }
.sc-countdown > div { min-width: 1.3em; font-size: clamp(52px, 6.4vw, 120px); font-weight: 300; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.sc-countdown small { display: block; margin-top: 14px; font-size: 10px; font-weight: 400; letter-spacing: .32em; text-transform: uppercase; opacity: .8; }

.sc-tile { min-height: 200px !important; margin: 0 !important; position: relative; overflow: hidden; }
.sc-tile .wp-block-cover__image-background { transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.sc-tile:hover .wp-block-cover__image-background { transform: scale(1.06); }
.sc-tile .wp-block-cover__inner-container { align-self: flex-end; }
.sc-tile h3 { font-size: 19px !important; margin: 6px 0 0 !important; letter-spacing: .1em; }
.sc-tile h3 a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.sc-tile p { margin: 0 !important; }
.sc-tile .sc-more { color: #E8D7B8; margin-top: 12px !important; }

/* ---------- Sections ---------- */
.sc-section { padding-top: clamp(88px, 10vw, 144px) !important; padding-bottom: clamp(88px, 10vw, 144px) !important; margin: 0 !important; }
.sc-center { text-align: center; }
.sc-statement { font-size: clamp(28px, 3.4vw, 46px) !important; font-weight: 300; line-height: 1.32 !important; letter-spacing: .01em; max-width: 900px; margin-left: auto !important; margin-right: auto !important; }
.sc-reg { margin-top: 80px !important; padding-top: 64px; border-top: 1px solid #E6DED0; }
.sc-reg__date { max-width: none !important; font-size: clamp(36px, 4.6vw, 68px) !important; font-weight: 300; letter-spacing: .08em; text-transform: uppercase; line-height: 1.05 !important; margin: 18px 0 0 !important; }
.sc-reg__note { font-size: 11px !important; font-weight: 400; letter-spacing: .3em; text-transform: uppercase; color: #6B6152; margin-top: 18px !important; }

.sc-day { background: rgba(255, 255, 255, .55); border-radius: 4px; padding: 32px !important; text-align: left; height: 100%; box-sizing: border-box; }
.sc-day .sc-date { font-size: 30px !important; margin: 6px 0 12px !important; }
.sc-day p.sc-row { margin: 0 !important; padding: 13px 0; border-bottom: 1px solid rgba(20, 32, 43, .12); font-size: 15px; font-weight: 400; }
.sc-day p.sc-row strong { display: inline-block; width: 54px; font-weight: 400; color: #8A6B3F; }
.wp-block-button.is-style-fill .wp-block-button__link { background: #14202B; color: #fff; border-color: #14202B; }

.sc-collage { position: relative; min-height: 560px; }
.sc-collage figure { margin: 0 !important; position: absolute; }
.sc-collage figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sc-collage .sc-c1 { left: 0; top: 0; width: 74%; height: 76%; }
.sc-collage .sc-c2 { right: 0; bottom: 0; width: 54%; height: 50%; box-shadow: 0 30px 60px rgba(0, 0, 0, .28); }

.sc-gallery.wp-block-gallery { display: grid !important; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 64px; gap: 16px !important; }
.sc-gallery.wp-block-gallery > figure.wp-block-image { width: auto !important; margin: 0 !important; }
.sc-gallery.wp-block-gallery > figure img { width: 100%; height: 100% !important; object-fit: cover; }
.sc-gallery > figure:nth-child(1) { grid-column: 1 / 8; grid-row: 1 / span 7; }
.sc-gallery > figure:nth-child(2) { grid-column: 8 / 13; grid-row: 2 / span 4; }
.sc-gallery > figure:nth-child(3) { grid-column: 9 / 13; grid-row: 7 / span 5; }
.sc-gallery > figure:nth-child(4) { grid-column: 2 / 6; grid-row: 9 / span 4; }
.sc-gallery > figure:nth-child(5) { grid-column: 6 / 9; grid-row: 9 / span 3; }
.sc-gallery > figure:nth-child(6) { grid-column: 1 / 5; grid-row: 14 / span 4; }
.sc-gallery > figure:nth-child(7) { grid-column: 5 / 13; grid-row: 13 / span 6; }

.sc-prize { aspect-ratio: 4 / 5; border-radius: 4px; background: linear-gradient(180deg, #EFE7DB, #DCCBB2); display: flex; align-items: center; justify-content: center; color: #7A6A52; margin: 0 !important; }
.sc-logos { gap: 18px 44px !important; justify-content: center; align-items: center; }
.sc-logos figure { margin: 0 !important; }
.sc-logos img { height: 34px !important; width: auto !important; max-width: 150px; object-fit: contain; filter: grayscale(1) brightness(.35); opacity: .75; transition: opacity .3s, filter .3s; }
.sc-logos img:hover { opacity: 1; filter: none; }

.sc-footer a:hover { color: #E8D7B8; }
.sc-footer__logo { margin-left: auto !important; margin-right: auto !important; }
/* Footer bottom: same layout and type as Solaris Custom / Solaris Power */
.sc-divider.wp-block-separator { border: 0; border-bottom: .25px solid rgba(255, 255, 255, .35); width: 100%; max-width: none !important; opacity: 1; }
.sc-footer__bottom { gap: 12px 24px !important; padding-top: 14px; margin-top: 0 !important; text-align: left; }
.sc-footer__bottom .sc-legal { margin: 0 !important; font-size: 9.6px !important; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; line-height: 1.6; }
.sc-footer__bottom .sc-legal:first-child { flex: 1 0 auto; }

/* ---------- Mobile ---------- */
@media (max-width: 781px) {
  .sc-hero > .sc-hero__main { min-height: 88vh !important; }
  .sc-tiles { grid-auto-rows: 160px !important; }
  .sc-collage { min-height: 380px; }
  .sc-gallery.wp-block-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 160px; gap: 8px !important; }
  .sc-gallery > figure:nth-child(n) { grid-column: auto; grid-row: auto; }
  .sc-gallery > figure:nth-child(1), .sc-gallery > figure:nth-child(7) { grid-column: 1 / -1; grid-row: span 2; }
  .sc-header .sc-year { display: none; }
  .sc-header .sc-logo img { width: 72px; }
  .sc-footer__bottom { flex-direction: column; align-items: flex-start !important; }
  .sc-countdown { flex-wrap: wrap; row-gap: 28px; }
  .sc-countdown > div { flex: 0 0 42%; font-size: 64px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .sc-tile .wp-block-cover__image-background { transition: none; } }
