/* ============================================
   ТЕНИС КЛУБ ПАЗАРДЖИК — Global Styles
   ============================================ */

/* --- CSS Variables --- */
:root {
  --green:       #1a5c38;
  --green-dark:  #134429;
  --green-light: #e8f5ee;
  --orange:      #e07b39;
  --orange-dark: #c5662a;
  --white:       #ffffff;
  --off-white:   #f5f5f5;
  --gray-light:  #e8e8e8;
  --gray:        #888888;
  --text:        #1e1e1e;
  --text-light:  #555555;
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:   0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg:   0 8px 40px rgba(0,0,0,0.16);
  --radius:      8px;
  --radius-lg:   16px;
  --max-width:   1200px;
  --nav-height:  70px;
  --transition:  0.25s ease;
}

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

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p  { color: var(--text-light); line-height: 1.75; }

/* --- Layout Helpers --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section--gray { background: var(--off-white); }
.section--green { background: var(--green); }

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

.section__header h2 { margin-bottom: 12px; }
.section__header p  { max-width: 600px; margin: 0 auto; font-size: 1.05rem; }

/* Section header on dark background */
.section--green .section__header h2,
.section--green .section__header p { color: var(--white); }

/* --- Utility --- */
.text-center { text-align: center; }
.text-green  { color: var(--green); }
.text-orange { color: var(--orange); }

.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

.hidden { display: none !important; }

/* --- Page Hero (inner pages) --- */
.page-hero {
  background: url('../images/courts-cover.jpg') center 60% / cover no-repeat;
  padding: 100px 0 60px;
  text-align: center;
  margin-top: var(--nav-height);
  position: relative;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(15,60,30,0.78), rgba(15,55,30,0.72));
}
.page-hero > * { position: relative; z-index: 1; }

.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p  { color: rgba(255,255,255,0.8); font-size: 1.1rem; max-width: 560px; margin: 0 auto; }

/* --- Breadcrumb --- */
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
}
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb span { color: rgba(255,255,255,0.4); }

/* --- Scroll Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: none;
}

/* --- Scroll to top --- */
#scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  z-index: 900;
}

#scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}

#scroll-top:hover { background: var(--green-dark); transform: translateY(-2px); }
