/*
Theme Name:  ODO Sport
Theme URI:   https://sport.odo.si
Description: ODO Sport — WordPress child tema za merjenje organizacijskega wellbeing-a v slovenskih športnih organizacijah. Zgrajena na osnovi GeneratePress starševske teme.
Author:      ODO Lab
Author URI:  https://odo.si
Template:    generatepress
Version:     1.0.0
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: odo-sport
Tags:        wellbeing, sport, slovenija, odo-lab

Barve:
  --navy:       #0B2D5E  (primarna / dominantna)
  --navy-mid:   #1C4F8C  (sekundarna modra)
  --blue:       #2AA0F8  (akcent modra)
  --mint:       #5DBF8A  (zelena akcent — Varianta A)
  --mint-light: #EDFAF3  (ozadje sekcij)
  --mint-mid:   #3da06d  (temnejša zelena za tekst/hover)
*/

/* ================================================
   DESIGN TOKENS — vse barve na enem mestu
   ================================================ */
:root {
  --navy:       #0B2D5E;
  --navy-mid:   #1C4F8C;
  --blue:       #2AA0F8;
  --blue-light: #DCEEFB;
  --mint:       #5DBF8A;
  --mint-light: #EDFAF3;
  --mint-mid:   #3da06d;
  --white:      #FFFFFF;
  --off:        #F7F9FC;
  --text:       #0B2D5E;
  --text-mid:   #4A6080;
  --text-light: #8FA8C8;
  --border:     rgba(11, 45, 94, 0.1);

  /* Tipografija */
  --font-serif: 'DM Serif Display', Georgia, serif;
  --font-sans:  'DM Sans', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --section-pad: 100px 80px;
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
}

/* ================================================
   GLOBALNI RESET & BASE
   ================================================ */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--mint-mid);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--navy);
}

/* ================================================
   TIPOGRAFIJA
   ================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h1 { font-size: clamp(36px, 5vw, 56px); }
h2 { font-size: clamp(28px, 3.5vw, 40px); }
h3 { font-size: clamp(20px, 2.5vw, 28px); }
h4 { font-size: 20px; }

p {
  color: var(--text-mid);
  font-weight: 300;
  line-height: 1.7;
}

/* ================================================
   NAVIGACIJA
   ================================================ */
.site-header,
#site-header {
  position: fixed !important;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 64px;
}

.inside-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 48px;
  max-width: 100%;
}

/* Logo */
.site-logo img,
.custom-logo {
  height: 36px;
  width: auto;
}

.site-title {
  font-family: var(--font-serif) !important;
  font-size: 20px !important;
  color: var(--navy) !important;
  letter-spacing: -0.02em;
}

.site-title a {
  color: var(--navy) !important;
}

.site-title span.sport-accent {
  color: var(--mint);
}

/* Nav links */
.main-navigation a,
.nav-primary a {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-mid) !important;
  font-weight: 400;
  letter-spacing: 0.01em;
  padding: 8px 16px;
  transition: color 0.2s;
}

.main-navigation a:hover,
.nav-primary a:hover,
.main-navigation .current-menu-item > a {
  color: var(--navy) !important;
}

/* Nav CTA gumb */
.nav-cta-button a,
.menu-item-nav-cta a {
  background: var(--navy) !important;
  color: white !important;
  font-size: 13px;
  font-weight: 500;
  padding: 9px 20px !important;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}

.nav-cta-button a:hover,
.menu-item-nav-cta a:hover {
  background: var(--navy-mid) !important;
}

/* Body offset za fixed nav */
body {
  padding-top: 64px;
}

/* ================================================
   GUMBI
   ================================================ */
.btn,
.wp-block-button__link,
button[type="submit"] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  letter-spacing: 0.01em;
}

/* Primarni — navy */
.btn-primary,
.wp-block-button.is-style-primary .wp-block-button__link {
  background: var(--navy);
  color: white;
}

.btn-primary:hover,
.wp-block-button.is-style-primary .wp-block-button__link:hover {
  background: var(--navy-mid);
  transform: translateY(-1px);
  color: white;
}

/* Mint — zeleni */
.btn-mint,
.wp-block-button.is-style-mint .wp-block-button__link {
  background: var(--mint);
  color: var(--navy);
  font-weight: 600;
}

.btn-mint:hover,
.wp-block-button.is-style-mint .wp-block-button__link:hover {
  background: #6ed49a;
  transform: translateY(-1px);
}

/* Secondary — outline */
.btn-secondary,
.wp-block-button.is-style-secondary .wp-block-button__link {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border);
}

.btn-secondary:hover,
.wp-block-button.is-style-secondary .wp-block-button__link:hover {
  border-color: var(--navy);
}

/* Ghost — za temna ozadja */
.btn-ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
}

/* ================================================
   SEKCIJA LAYOUT
   ================================================ */
.odo-section {
  padding: var(--section-pad);
}

.odo-section-tag {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mint-mid);
  margin-bottom: 12px;
  display: block;
}

.odo-section-title {
  font-family: var(--font-serif);
  color: var(--navy);
  margin-bottom: 16px;
}

.odo-section-sub {
  font-size: 17px;
  color: var(--text-mid);
  font-weight: 300;
  max-width: 520px;
  line-height: 1.65;
  margin-bottom: 48px;
}

/* ================================================
   HERO SEKCIJA
   ================================================ */
.odo-hero {
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.odo-hero__left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 64px 80px 80px;
}

.odo-hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--mint-light);
  border: 1px solid rgba(93, 191, 138, 0.3);
  color: var(--mint-mid);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 28px;
  width: fit-content;
}

.odo-hero__tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

.odo-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.1;
  color: var(--navy);
  margin-bottom: 24px;
}

.odo-hero__title em {
  font-style: italic;
  color: var(--mint);
}

.odo-hero__sub {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-mid);
  font-weight: 300;
  max-width: 440px;
  margin-bottom: 40px;
}

.odo-hero__btns {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.odo-hero__stats {
  display: flex;
  gap: 32px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.odo-hero__stat-val {
  font-family: var(--font-serif);
  font-size: 32px;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1;
}

.odo-hero__stat-label {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 4px;
  line-height: 1.4;
}

.odo-hero__right {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

.odo-hero__right::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(93, 191, 138, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(42, 160, 248, 0.10) 0%, transparent 50%);
}

/* ================================================
   DASHBOARD CARD (Hero widget)
   ================================================ */
.odo-dashboard-card {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 28px;
  width: min(380px, 90%);
  backdrop-filter: blur(8px);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}

/* ================================================
   STORITVE GRID
   ================================================ */
.odo-services {
  padding: var(--section-pad);
  background: var(--off);
}

.odo-services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.odo-svc-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 32px;
  border: 1px solid var(--border);
  transition: all 0.25s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.odo-svc-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--mint);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.odo-svc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(11, 45, 94, 0.1);
}

.odo-svc-card:hover::after {
  transform: scaleX(1);
}

.odo-svc-card__icon {
  width: 48px;
  height: 48px;
  background: var(--mint-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.odo-svc-card__icon svg {
  width: 22px;
  height: 22px;
}

.odo-svc-card__name {
  font-size: 17px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 10px;
  font-family: var(--font-sans);
}

.odo-svc-card__desc {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.65;
  font-weight: 300;
}

.odo-svc-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--mint-mid);
  text-decoration: none;
  margin-top: 20px;
}

/* ================================================
   DIMENZIJE — 6 področij
   ================================================ */
.odo-dimensions {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-top: 40px;
}

.odo-dimension-pill {
  background: var(--mint-light);
  border: 1px solid rgba(93, 191, 138, 0.25);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  transition: all 0.2s;
}

.odo-dimension-pill:hover {
  background: var(--mint);
  transform: translateY(-2px);
}

.odo-dimension-pill:hover .odo-dimension-pill__label {
  color: white;
}

.odo-dimension-pill__emoji {
  font-size: 22px;
  margin-bottom: 8px;
  display: block;
}

.odo-dimension-pill__label {
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  font-family: var(--font-sans);
}

/* ================================================
   ODO INDEKS SEKCIJA
   ================================================ */
.odo-index-section {
  padding: var(--section-pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.odo-index-visual {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 48px;
  position: relative;
  overflow: hidden;
}

.odo-index-visual::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(93, 191, 138, 0.12);
}

.odo-scale-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 32px;
}

.odo-scale-pill {
  border-radius: 10px;
  padding: 14px 16px;
  border: 1px solid var(--border);
}

.odo-scale-pill__range {
  font-size: 11px;
  color: var(--text-light);
  margin-bottom: 4px;
}

.odo-scale-pill__label {
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-sans);
}

/* ================================================
   PROCES SEKCIJA
   ================================================ */
.odo-process {
  padding: var(--section-pad);
  background: var(--mint-light);
}

.odo-process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-top: 56px;
}

.odo-process__step {
  background: white;
  padding: 32px 28px;
  position: relative;
}

.odo-process__step:first-child { border-radius: 14px 0 0 14px; }
.odo-process__step:last-child  { border-radius: 0 14px 14px 0; }

.odo-process__num {
  font-family: var(--font-serif);
  font-size: 48px;
  color: var(--mint-light);
  line-height: 1;
  margin-bottom: 16px;
  -webkit-text-stroke: 1.5px var(--mint);
}

.odo-process__title {
  font-size: 16px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 10px;
  font-family: var(--font-sans);
}

.odo-process__desc {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.6;
  font-weight: 300;
}

/* ================================================
   CTA SEKCIJA
   ================================================ */
.odo-cta {
  padding: var(--section-pad);
  background: var(--navy);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.odo-cta::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(93, 191, 138, 0.12) 0%, transparent 70%);
}

.odo-cta * { position: relative; z-index: 1; }

.odo-cta h2,
.odo-cta h3 {
  color: white;
}

.odo-cta p {
  color: rgba(255, 255, 255, 0.55);
  margin: 16px auto 40px;
  max-width: 520px;
}

.odo-cta__btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ================================================
   FOOTER
   ================================================ */
.site-footer,
#site-footer {
  background: #071d3d !important;
  padding: 28px 80px;
  color: rgba(255, 255, 255, 0.3);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.3);
  font-size: 13px;
  transition: color 0.2s;
}

.site-footer a:hover {
  color: var(--mint);
}

.inside-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 100%;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 16px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-logo span {
  color: var(--mint);
}

.footer-sport-url {
  font-size: 13px;
  color: var(--mint);
  opacity: 0.7;
}

/* ================================================
   GUTENBERG BLOCK OVERRIDES
   ================================================ */

/* Align wide / full width */
.wp-block-group.alignfull {
  padding-left: 80px;
  padding-right: 80px;
}

/* Cover block */
.wp-block-cover {
  min-height: 100vh;
}

/* Columns */
.wp-block-columns {
  gap: 40px;
}

/* Image borders */
.wp-block-image img {
  border-radius: var(--radius-md);
}

/* Quote */
blockquote,
.wp-block-quote {
  border-left: 3px solid var(--mint);
  padding-left: 24px;
  font-style: italic;
  color: var(--text-mid);
}

/* ================================================
   FORMS (Contact Form 7, WPForms)
   ================================================ */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text);
  background: white;
  transition: border-color 0.2s;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(93, 191, 138, 0.15);
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1024px) {
  :root {
    --section-pad: 80px 48px;
  }

  .odo-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .odo-hero__right {
    min-height: 400px;
  }

  .odo-services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .odo-dimensions {
    grid-template-columns: repeat(3, 1fr);
  }

  .odo-index-section {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .odo-process__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .odo-process__step:nth-child(1) { border-radius: 14px 0 0 0; }
  .odo-process__step:nth-child(2) { border-radius: 0 14px 0 0; }
  .odo-process__step:nth-child(3) { border-radius: 0 0 0 14px; }
  .odo-process__step:nth-child(4) { border-radius: 0 0 14px 0; }
}

@media (max-width: 768px) {
  :root {
    --section-pad: 60px 24px;
  }

  .inside-header {
    padding: 0 24px;
  }

  .odo-hero__left {
    padding: 48px 24px;
  }

  .odo-services__grid {
    grid-template-columns: 1fr;
  }

  .odo-dimensions {
    grid-template-columns: repeat(2, 1fr);
  }

  .odo-hero__stats {
    gap: 20px;
  }

  .odo-process__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .odo-process__step {
    border-radius: var(--radius-md) !important;
  }

  .site-footer,
  #site-footer {
    padding: 28px 24px;
  }

  .wp-block-group.alignfull {
    padding-left: 24px;
    padding-right: 24px;
  }
}
