/* ============================================
   GLOBAL STYLES — Akademia Tenisa Gorzów
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;500;600;700&display=swap');

@font-face {
  font-family: 'MontserratSBI';
  src: url('../fonts/Montserrat-SemiBoldItalic.ttf') format('truetype');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

/* ---- Variables ---- */
:root {
  --primary:       #1a6b3c;
  --primary-dark:  #0f4a28;
  --accent:        #f5c842;
  --accent-dark:   #d4a82e;
  --dark:          #0f1923;   /* text / headings */
  --bg:            #ffffff;   /* main background */
  --bg-alt:        #f5f8fa;   /* alternate section background */
  --bg-deep:       #eaeff5;   /* inputs, deep cards */
  --light:         #ffffff;   /* reversed-text (on dark sections) */
  --text-muted:    #6b7e90;
  --border:        rgba(0, 0, 0, 0.09);
  --border-light:  rgba(255, 255, 255, 0.1);
  --nav-h:         72px;
  --radius:        14px;
  --radius-sm:     8px;
  --ease:          cubic-bezier(0.4, 0, 0.2, 1);
  --trans:         0.3s var(--ease);
  --shadow:        0 4px 24px rgba(0, 0, 0, 0.09);
  --shadow-sm:     0 2px 10px rgba(0, 0, 0, 0.06);
  --shadow-lg:     0 12px 40px rgba(0, 0, 0, 0.13);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--dark);
  line-height: 1.65;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: 'Bebas Neue', cursive;
  line-height: 1.05;
  letter-spacing: 0.025em;
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6%;
  z-index: 1000;
  transition: background var(--trans), box-shadow var(--trans);
}

/* On hero (dark SVG bg): nav is transparent with white text */
.nav.scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08), 0 6px 28px rgba(0,0,0,0.14);
}

/* Logo */
.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav__logo-img {
  height: 35px;
  width: auto;
  display: block;
}

.nav__logo-img--scrolled { display: none; }
.nav.scrolled .nav__logo-img--default { display: none; }
.nav.scrolled .nav__logo-img--scrolled { display: block; }


.nav__logo-icon {
  width: 38px;
  height: 38px;
  background: var(--accent);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.nav__logo-text {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-style: normal;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1;
  letter-spacing: 0.03em;
  color: #ffffff;
  white-space: nowrap;
  transition: color var(--trans);
}

.nav.scrolled .nav__logo-text { color: rgb(0, 45, 110); }
.footer .nav__logo-text { color: #ffffff; }

/* Desktop links */
.nav__links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.nav__links a {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);  /* white on hero */
  transition: color var(--trans);
  position: relative;
  padding-bottom: 4px;
}

.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width var(--trans);
}

.nav__links a:hover,
.nav__links a.active {
  color: #ffffff;
}

.nav__links a:hover::after,
.nav__links a.active::after {
  width: 100%;
}

/* Scrolled: dark text */
.nav.scrolled .nav__links a {
  color: rgba(15, 25, 35, 0.65);
}

.nav.scrolled .nav__links a:hover,
.nav.scrolled .nav__links a.active {
  color: var(--dark);
}

.nav.scrolled .nav__links a::after { background: var(--primary); }

/* CTA button */
.nav__cta {
  background: var(--accent) !important;
  color: var(--dark) !important;
  padding: 9px 22px !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  transition: transform var(--trans), box-shadow var(--trans) !important;
}

.nav__cta::after { display: none !important; }

.nav__cta:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(245, 200, 66, 0.45) !important;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  z-index: 1001;
  cursor: pointer;
}

.nav__hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: #ffffff;           /* white on hero */
  border-radius: 2px;
  transition: all var(--trans);
}

.nav.scrolled .nav__hamburger span { background: var(--dark); }

.nav__hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; transform: translateX(-8px); }
.nav__hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(24px);
  padding: 2.5rem 6% 3rem;
  flex-direction: column;
  gap: 1.8rem;
  z-index: 999;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.nav__mobile.open { display: flex; }

.nav__mobile a {
  font-family: 'Bebas Neue', cursive;
  font-size: 2.2rem;
  letter-spacing: 0.06em;
  color: rgba(15, 25, 35, 0.65);
  transition: color var(--trans);
}

.nav__mobile a:hover,
.nav__mobile a.active {
  color: var(--primary);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 34px;
  border-radius: 50px;
  font-family: 'Bebas Neue', cursive;
  font-size: 1rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--trans);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--dark);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(245, 200, 66, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--dark);
  border-color: rgba(15, 25, 35, 0.3);
}

.btn-outline:hover {
  border-color: var(--dark);
  background: rgba(15, 25, 35, 0.05);
  transform: translateY(-3px);
}

/* Outline button on dark background */
.btn-outline-light {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-outline-light:hover {
  border-color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

.btn-sm {
  padding: 10px 22px;
  font-size: 0.88rem;
}

/* ---- Section helpers ---- */
.section {
  padding: 110px 6%;
}

.section--alt { background: var(--bg-alt); }

.section__header {
  text-align: center;
  margin-bottom: 65px;
}

.section__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
  padding: 5px 14px;
  background: rgba(26, 107, 60, 0.08);
  border-radius: 50px;
  border: 1px solid rgba(26, 107, 60, 0.18);
}

/* Section tag on dark backgrounds */
.section__tag--light {
  color: var(--accent);
  background: rgba(245, 200, 66, 0.12);
  border-color: rgba(245, 200, 66, 0.25);
}

.section__title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  color: var(--dark);
  margin-bottom: 18px;
}

.section__subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
  font-weight: 400;
}

/* ---- Card base ---- */
.card {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(26, 107, 60, 0.2);
}

/* ---- Page Hero (subpages) ---- */
.page-hero {
  position: relative;
  min-height: 30vh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + 30px) 6% 40px;
  overflow: hidden;
  background: var(--dark);
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,25,35,0.92) 0%, rgba(15,25,35,0.65) 100%);
}

.page-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  column-gap: 2rem;
  row-gap: 12px;
}

.page-hero__breadcrumb {
  flex-basis: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.page-hero__breadcrumb a {
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--trans);
}

.page-hero__breadcrumb a:hover { color: rgba(255, 255, 255, 0.9); }
.page-hero__breadcrumb span { color: var(--accent); }

.page-hero__title {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  color: #ffffff;
  line-height: 1;
}

.page-hero__title span { color: var(--accent); }

.page-hero__subtitle {
  flex: 1 1 280px;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.65);
  max-width: 560px;
}

/* ---- Footer ---- */
.footer {
  background: #080d13;
  padding: 80px 6% 36px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 60px;
}

.footer__brand .nav__logo {
  margin-bottom: 18px;
  display: inline-flex;
}

.footer .nav__logo-text { color: #f8f9fa; }
.footer .nav__logo-text span { color: var(--accent); }

.footer__desc {
  font-size: 0.92rem;
  color: #7a8fa6;
  line-height: 1.8;
  max-width: 280px;
}

.footer__heading {
  font-family: 'Bebas Neue', cursive;
  font-size: 1rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 22px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer__links li,
.footer__links a {
  font-size: 0.9rem;
  color: #7a8fa6;
  transition: color var(--trans);
}

.footer__links a:hover { color: #f8f9fa; }

.footer__bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer__copy {
  font-size: 0.83rem;
  color: rgba(122, 143, 166, 0.55);
}

/* ---- Accent line ---- */
.accent-line {
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin: 0 auto 24px;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .section { padding: 80px 6%; }
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .section { padding: 65px 5%; }
  .page-hero { min-height: 24vh; padding-bottom: 30px; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .footer__desc { max-width: 100%; }
  .nav__logo { flex-direction: column; gap: 2px; align-items: center; }
  .nav__logo-text { font-size: 14px; letter-spacing: 0.04em; }
}

@media (max-width: 480px) {
  .section { padding: 50px 5%; }
  .btn { padding: 13px 26px; }
  .nav { padding: 0 5%; }
}
