/* =====================================
   MS HOCKEY - MAIN STYLESHEET
   ===================================== */

:root {
  color-scheme: dark;
  --primary: #38bdf8;
  --primary-dark: #0ea5e9;
  --dark: #f8fafc;
  --text: #e2e8f0;
  --muted: #a6b4c7;
  --light: #0b1220;
  --border: #263449;
  --white: #111c2d;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
  overflow-x: hidden;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--light);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(1152px, calc(100% - 40px));
  margin: auto;
}

/* HEADER */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 14, 24, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.nav-container {
  max-width: 1152px;
  height: 80px;
  margin: auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #17263a;
  color: #7dd3fc;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-name {
  display: block;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1;
  color: #f8fafc;
}

.brand-name span {
  color: var(--primary);
}

.brand-location {
  display: block;
  margin-top: 5px;
  color: #b6c4d5;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  font-weight: 700;
  color: #b6c4d5;
}

.desktop-nav > a:not(.nav-cta) {
  transition: color 0.2s;
}

.desktop-nav > a:not(.nav-cta):hover {
  color: var(--primary);
}

.social-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 16px;
  border-left: 1px solid var(--border);
}

.social-nav a {
  font-size: 23px;
  transition: transform 0.2s;
}

.social-nav a:hover {
  transform: scale(1.15);
  color: var(--primary);
}

.nav-cta {
  padding: 11px 19px;
  background: #0284c7;
  color: #ffffff;
  border-radius: 12px;
  transition: background 0.2s;
}

.nav-cta:hover {
  background: #0ea5e9;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #111c2d;
  cursor: pointer;
  padding: 10px;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: #f8fafc;
  margin: 5px 0;
  transition: 0.2s;
}

.mobile-nav {
  display: none;
}

/* HERO */

.hero {
  min-height: calc(100vh - 80px);
  min-height: calc(100svh - 80px);
  display: flex;
  align-items: center;
  text-align: left;
  padding: 80px max(24px, calc((100vw - 1152px) / 2));
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(90deg, rgba(5, 11, 20, 0.97) 0%, rgba(5, 11, 20, 0.88) 43%, rgba(5, 11, 20, 0.25) 100%),
    linear-gradient(0deg, rgba(5, 11, 20, 0.4), rgba(5, 11, 20, 0.05)),
    url("img/Slika_1.webp") center 48% / cover no-repeat;
}

.hero-content {
  width: min(760px, 100%);
  max-width: 760px;
  margin: 0;
}

.hero-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border-radius: 30px;
  background: #102b42;
  border: 1px solid #1b4d70;
  color: #bae6fd;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.hero h1 {
  max-width: 760px;
  margin: 0 0 22px;
  font-size: clamp(34px, 5.3vw, 64px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -1.7px;
  color: #f8fafc;
}

.hero h1 span {
  color: #38bdf8;
}

.hero-content > p {
  max-width: 630px;
  margin: 0 0 32px;
  color: #d0d9e5;
  font-size: 17px;
  font-weight: 500;
}

.hero-content > p strong {
  color: #ffffff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
}

.primary-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 15px 25px;
  border: none;
  border-radius: 12px;
  background: #0284c7;
  color: #ffffff;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s;
}

.primary-button:hover {
  background: #0ea5e9;
  transform: translateY(-2px);
}

.hero-socials {
  display: flex;
  gap: 10px;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 18px;
  border: 1px solid #42516a;
  border-radius: 12px;
  background: #111c2d;
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 800;
  transition: 0.2s;
}

.secondary-button:hover {
  background: #1a2a40;
  transform: translateY(-2px);
}

/* GENERAL SECTIONS */

.section {
  padding: 80px 20px;
  background: #0e1726;
  border-bottom: 1px solid var(--border);
}

.section-content {
  max-width: 850px;
  margin: auto;
  text-align: center;
}

.section-label {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 30px;
  background: #102b42;
  border: 1px solid #1b4d70;
  color: #7dd3fc;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.section h2 {
  margin-top: 15px;
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 900;
  color: #f8fafc;
  line-height: 1.2;
}

.about p {
  max-width: 800px;
  margin: 25px auto 0;
  color: #b9c6d6;
  font-size: 17px;
  line-height: 1.9;
}

/* COACHES */

.coaches {
  background: #0b1220;
}

.section-heading {
  text-align: center;
  margin-bottom: 50px;
}

.section-heading .section-label {
  background: transparent;
  border: none;
}

.coach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.coach-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px 26px 22px;
  background: #111c2d;
  border: 1px solid #293a50;
  border-radius: 17px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.coach-card:hover {
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.3);
  transform: translateY(-3px);
}

.coach-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(to right, #38bdf8, #0284c7);
}

.coach-card h3 {
  margin: 0 0 17px;
  font-size: 23px;
  font-weight: 900;
  color: #f8fafc;
}

.coach-description {
  color: #bdc9d8;
  font-size: 14px;
  line-height: 1.8;
}

.coach-description strong {
  color: #7dd3fc;
  font-weight: 800;
}

.coach-description p {
  margin-bottom: 12px;
}

.coach-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 22px;
  padding-top: 15px;
  border-top: 1px solid #263449;
  color: #8293aa;
  font-size: 11px;
  font-weight: 700;
}

.coach-footer span:first-child {
  color: #b3c1d2;
}

.coach-footer span:first-child::first-letter {
  color: var(--primary);
}

/* SCHEDULE */

.schedule-box {
  max-width: 850px;
  margin: auto;
  overflow: hidden;
  border: 1px solid #293a50;
  border-radius: 17px;
  background: #111c2d;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.schedule-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 25px;
  border-bottom: 1px solid #293a50;
}

.schedule-row:last-child {
  border-bottom: none;
}

.schedule-row:nth-child(2) {
  background: #142136;
}

.schedule-day {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #f8fafc;
}

.schedule-day span {
  color: var(--primary);
  font-size: 22px;
}

.schedule-time {
  color: #c2cede;
  font-size: 14px;
  font-weight: 600;
  text-align: right;
}

/* GALLERY */

.gallery {
  background: #0b1220;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: clamp(130px, 16vw, 210px);
  align-items: stretch;
  gap: 16px;
}

.gallery-item {
  position: relative;
  grid-column: span 2;
  overflow: hidden;
  min-height: 0;
  border: 1px solid #293a50;
  border-radius: 16px;
  background: #111c2d;
}

.gallery-item--feature {
  grid-column: span 4;
  grid-row: span 2;
}

.gallery-item:nth-child(2) {
  grid-row: span 2;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.045);
}

.gallery-link {
  margin-top: 40px;
  text-align: center;
}

.gallery-link a {
  max-width: 100%;
  line-height: 1.4;
}

/* APPLICATION */

.application {
  min-height: 600px;
}

.form-container {
  max-width: 600px;
  margin: auto;
}

.back-link {
  display: inline-block;
  margin-bottom: 15px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
}

.back-link:hover {
  color: var(--primary-dark);
}

.form-container > h2 {
  margin: 0;
  font-size: 31px;
  font-weight: 900;
  color: #f8fafc;
}

.form-container > p {
  margin-top: 5px;
  margin-bottom: 25px;
  color: #a6b4c7;
  font-size: 14px;
}

.form-card {
  padding: 32px;
  border: 1px solid #293a50;
  border-radius: 18px;
  background: #111c2d;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #d5deea;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  display: block;
  width: 100%;
  padding: 13px 15px;
  border: 1px solid #33445c;
  border-radius: 11px;
  outline: none;
  background: #0b1220;
  color: #f8fafc;
  font-size: 14px;
  transition: border 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.16);
  background: #101b2b;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #7f91a9;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.submit-button {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 11px;
  background: #0284c7;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: background 0.2s;
}

.submit-button:hover {
  background: #0ea5e9;
}

.submit-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-error {
  margin-bottom: 12px;
  color: #f87171;
  font-size: 13px;
  font-weight: 700;
}

.success-message {
  padding: 25px 5px;
  text-align: center;
}

.success-icon {
  width: 55px;
  height: 55px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #102b42;
  color: var(--primary);
  font-size: 30px;
  font-weight: 900;
}

.success-message h3 {
  margin-bottom: 10px;
  color: #f8fafc;
  font-size: 21px;
}

.success-message p {
  margin-bottom: 22px;
  color: #a6b4c7;
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

/* Social icon hover effects */
.social-nav a,
.hero-socials a,
.gallery-link a,
.mobile-nav a,
.footer-links a {
  transition: color 0.25s ease, transform 0.25s ease;
}

.social-icon {
  transition: color 0.25s ease, transform 0.25s ease;
}

a[href*="instagram.com"]:hover {
  color: #e1306c;
}

a[href*="instagram.com"]:hover .social-icon {
  color: #e1306c;
  transform: scale(1.12);
}

a[href*="wa.me"]:hover {
  color: #25d366;
}

a[href*="wa.me"]:hover .social-icon {
  color: #25d366;
  transform: scale(1.12);
}

/* FOOTER - ALL IN ONE ROW ON DESKTOP */

.footer {
  padding: 28px 0;
  background: #070d16;
  color: #94a3b8;
  font-size: 13px;
}

.footer .container {
  width: min(1320px, calc(100% - 40px));
}

.footer-content {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.footer-brand strong {
  color: #ffffff;
  font-size: 15px;
}

.footer-brand span:nth-child(2) {
  color: #475569;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #cbd5e1;
  font-weight: 700;
  white-space: nowrap;
}

.footer-links a:hover {
  color: #ffffff;
}

.copyright {
  color: #64748b;
  white-space: nowrap;
}

.footer-credit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.footer-credit a {
  display: inline-flex;
  align-items: center;
}

.footer-credit img {
  display: block;
  width: 72px;
  height: 54px;
  border-radius: 10px;
  object-fit: contain;
}

/* RESPONSIVE */

@media (max-width: 1120px) {
  .footer-content {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    gap: 14px 22px;
  }

  .footer-brand,
  .footer-links,
  .footer-credit {
    justify-content: center;
  }
}

@media (max-width: 900px) {
  .desktop-nav {
    gap: 13px;
    font-size: 12px;
  }

  .nav-cta {
    padding: 10px 13px;
  }

  .coach-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .coach-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .nav-container {
    height: 66px;
    padding: 0 18px;
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-nav {
    display: none;
    padding: 15px 20px 22px;
    background: #0e1726;
    border-top: 1px solid #263449;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
  }

  .mobile-nav.active {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .mobile-nav > a {
    padding: 12px 3px;
    border-bottom: 1px solid #263449;
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 800;
  }

  .mobile-nav .mobile-cta {
    margin-top: 12px;
    padding: 13px;
    border: none;
    border-radius: 10px;
    background: #0284c7;
    color: #ffffff;
    text-align: center;
  }

  .hero {
    min-height: calc(100vh - 66px);
    min-height: calc(100svh - 66px);
    padding: 70px 22px;
    background-position: center, center, 58% center;
  }

  .hero-content {
    text-align: left;
  }

  .hero-label {
    font-size: 11px;
  }

  .section {
    padding: 65px 20px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
    gap: 12px;
  }

  .gallery-item,
  .gallery-item--feature,
  .gallery-item:nth-child(2) {
    grid-column: span 1;
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }

  .gallery-item--feature {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 520px) {
  .container {
    width: calc(100% - 28px);
  }

  .footer .container {
    width: calc(100% - 28px);
  }

  .hero {
    min-height: auto;
    padding: 54px 16px;
  }

  .hero h1 {
    font-size: clamp(30px, 9.2vw, 44px);
    letter-spacing: -1px;
  }

  .hero-content > p {
    font-size: 15px;
    margin-bottom: 24px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions > .primary-button {
    width: 100%;
  }

  .hero-socials {
    width: 100%;
    gap: 8px;
  }

  .hero-socials a {
    flex: 1;
  }

  .hero-socials .secondary-button {
    padding: 12px 10px;
    font-size: 12px;
  }

  .coach-grid {
    grid-template-columns: 1fr;
  }

  .coach-card:last-child {
    grid-column: auto;
  }

  .coach-card {
    padding: 24px 18px 18px;
  }

  .schedule-row {
    padding: 16px 14px;
    gap: 10px;
  }

  .schedule-day {
    gap: 8px;
    font-size: 13px;
  }

  .schedule-time {
    font-size: 12px;
  }

  .gallery-grid {
    gap: 10px;
  }

  .gallery-link .secondary-button {
    width: 100%;
    padding: 13px 14px;
    font-size: 12px;
  }

  .form-card {
    padding: 22px 16px;
  }

  .form-container > h2 {
    font-size: 26px;
  }

  .section-heading {
    margin-bottom: 32px;
  }

  /* Footer prilagoditev na majhnih zaslonih */
  .footer {
    padding: 26px 0;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .footer-brand,
  .footer-links,
  .copyright,
  .footer-credit {
    white-space: normal;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  .footer-brand {
    flex-direction: column;
    gap: 4px;
  }

  .footer-brand span:nth-child(2) {
    display: none;
  }

  .footer-links {
    gap: 10px 16px;
  }
}

/* ZELO OZKI ZASLONI (pod 400px, npr. 320px - 390px) */

@media (max-width: 400px) {
  .nav-container {
    padding: 0 14px;
  }

  .brand {
    gap: 9px;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .brand-name {
    font-size: 18px;
  }

  .brand-location {
    font-size: 10px;
    letter-spacing: 0.7px;
  }

  .hero {
    padding: 44px 14px;
  }

  .hero-top {
    margin-bottom: 16px;
  }

  .hero-label {
    padding: 6px 11px;
    gap: 6px;
    font-size: 10.5px;
  }

  .hero h1 {
    font-size: 28px;
    line-height: 1.14;
    letter-spacing: -0.7px;
    margin-bottom: 16px;
  }

  .hero-content > p {
    font-size: 14px;
    line-height: 1.65;
  }

  .primary-button {
    padding: 13px 16px;
    font-size: 13px;
  }

  .hero-socials {
    flex-direction: column;
  }

  .section {
    padding: 50px 14px;
  }

  .about p {
    font-size: 15px;
    line-height: 1.75;
    margin-top: 18px;
  }

  .schedule-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 14px;
  }

  .schedule-time {
    text-align: left;
    padding-left: 30px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .gallery-item,
  .gallery-item--feature,
  .gallery-item:nth-child(2) {
    grid-column: auto;
    aspect-ratio: 16 / 10;
  }

  .form-card {
    padding: 18px 14px;
    border-radius: 14px;
  }

  .form-group input,
  .form-group textarea {
    padding: 11px 12px;
  }

  .footer-brand span:last-child {
    font-size: 12px;
    line-height: 1.4;
  }

  .footer-links {
    font-size: 12px;
    gap: 8px 14px;
  }

  .copyright {
    font-size: 11.5px;
  }

  .footer-credit {
    font-size: 12.5px;
    gap: 8px;
  }

  .footer-credit img {
    width: 62px;
    height: 46px;
  }
}