/* Basket Ballnice - Modern Basketball Training Website */

:root {
  --primary-bg: #ffffff;
  --secondary-bg: #f8f9fa;
  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --accent: #ff6b35;
  --accent-light: #ff8c42;
  --border: #e1e1e1;
  --border-light: #f0f0f0;
  --shadow: rgba(0, 0, 0, 0.08);
  --shadow-strong: rgba(0, 0, 0, 0.12);
  --max-width: 1200px;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--primary-bg);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: 3rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.25rem;
  letter-spacing: -0.01em;
  margin-bottom: var(--spacing-lg);
}

h3 {
  font-size: 1.75rem;
  margin-bottom: var(--spacing-md);
}

p {
  margin-bottom: var(--spacing-md);
  color: var(--text-secondary);
  font-size: 1.125rem;
  line-height: 1.7;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  background: var(--primary-bg);
  border-bottom: 1px solid var(--border-light);
  z-index: 100;
  backdrop-filter: blur(8px);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md) 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav {
  display: flex;
  gap: var(--spacing-lg);
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.2s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: var(--spacing-xs);
}

.mobile-menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.2s ease;
}

/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--secondary-bg) 0%, var(--primary-bg) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(var(--border-light) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-light) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.3;
  pointer-events: none;
}

.hero .container {
  position: relative;
  padding: var(--spacing-2xl) 0 var(--spacing-xl) 0;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.hero h2 {
  color: var(--text-secondary);
  font-weight: 400;
  font-size: 1.25rem;
  margin-bottom: 0;
}

/* Content Sections */
.content-section {
  padding: var(--spacing-2xl) 0;
}

.content-section:nth-child(even) {
  background: var(--secondary-bg);
}

.section-content {
  max-width: 900px;
  margin: 0 auto;
}

.section-content p {
  margin-bottom: var(--spacing-lg);
}

.section-content p:last-child {
  margin-bottom: 0;
}

/* Mixed Layout Sections */
.mixed-section {
  padding: var(--spacing-2xl) 0;
}

.image-text-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-2xl);
  align-items: center;
  margin-bottom: var(--spacing-2xl);
}

.image-text-pair.reverse {
  grid-template-columns: 1fr 1fr;
  direction: rtl;
}

.image-text-pair.reverse > * {
  direction: ltr;
}

.image-text-pair img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow:
    0 4px 12px var(--shadow),
    0 0 0 1px var(--border-light);
  position: relative;
}

.image-text-pair img::before {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  right: 8px;
  bottom: 8px;
  border: 2px solid var(--accent);
  border-radius: 8px;
  z-index: -1;
  opacity: 0.6;
}

.image-text-pair .text-content {
  padding: 0 var(--spacing-md);
}

.image-text-pair .text-content h3 {
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

.image-text-pair .text-content p {
  margin-bottom: var(--spacing-md);
  font-size: 1rem;
  line-height: 1.6;
}

.image-text-pair .text-content p:last-child {
  margin-bottom: 0;
}

/* Callout Blocks */
.callout {
  background: var(--primary-bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 4px;
  padding: var(--spacing-lg);
  margin: var(--spacing-xl) 0;
  box-shadow: 0 2px 8px var(--shadow);
  position: relative;
}

.callout::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  background: linear-gradient(135deg, transparent 0%, var(--accent-light) 50%, transparent 100%);
  border-radius: 4px;
  opacity: 0.05;
  z-index: -1;
}

/* Text-only Chapters */
.chapter {
  padding: var(--spacing-xl) 0;
  border-bottom: 1px solid var(--border-light);
}

.chapter:last-child {
  border-bottom: none;
}

.chapter .container {
  max-width: 700px;
}

.chapter h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-lg);
  color: var(--text-primary);
}

.chapter p {
  margin-bottom: var(--spacing-lg);
  font-size: 1.0625rem;
}

.chapter p:last-child {
  margin-bottom: 0;
}

/* Footer */
.footer {
  background: var(--text-primary);
  color: white;
  padding: var(--spacing-2xl) 0 var(--spacing-xl) 0;
  margin-top: var(--spacing-2xl);
}

.footer .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
}

.footer-section h4 {
  color: white;
  margin-bottom: var(--spacing-md);
  font-size: 1.125rem;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--spacing-sm);
  font-size: 0.9375rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-lg);
  margin-top: var(--spacing-lg);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

/* Page-specific styles */
.page-header {
  padding: var(--spacing-xl) 0;
  background: var(--secondary-bg);
  border-bottom: 1px solid var(--border-light);
}

.page-header .container {
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
}

.page-content {
  padding: var(--spacing-2xl) 0;
}

.page-content .container {
  max-width: 800px;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 500;
  color: var(--text-primary);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--spacing-md);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--primary-bg);
  transition: border-color 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-submit {
  background: var(--accent);
  color: white;
  border: none;
  padding: var(--spacing-md) var(--spacing-xl);
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}

.form-submit:hover {
  background: var(--accent-light);
}

/* Service Items */
.service-item {
  margin-bottom: var(--spacing-xl);
  padding: var(--spacing-lg);
  background: var(--secondary-bg);
  border-radius: 8px;
  border: 1px solid var(--border-light);
}

.service-item:last-child {
  margin-bottom: 0;
}

.service-item h3 {
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
  font-size: 1.125rem;
}

.service-item p {
  margin-bottom: var(--spacing-md);
  font-size: 1rem;
  line-height: 1.6;
}

.pricing {
  margin-top: var(--spacing-md);
}

.pricing p {
  margin-bottom: var(--spacing-xs);
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
}

.pricing p:last-child {
  margin-bottom: 0;
}

/* Contact Details */
.contact-details {
  margin-bottom: var(--spacing-xl);
  padding: var(--spacing-lg);
  background: var(--secondary-bg);
  border-radius: 8px;
  border: 1px solid var(--border-light);
}

.contact-details h3 {
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
  font-size: 1.125rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  padding: var(--spacing-sm) 0;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-text {
  font-size: 1rem;
  color: var(--text-primary);
}

.contact-text a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.contact-text a:hover {
  color: var(--accent-light);
}

.contact-form-section h3 {
  color: var(--text-primary);
  margin-bottom: var(--spacing-lg);
  font-size: 1.125rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .nav.mobile-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary-bg);
    border-bottom: 1px solid var(--border-light);
    flex-direction: column;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    box-shadow: 0 4px 12px var(--shadow);
  }

  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .image-text-pair {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .image-text-pair.reverse {
    direction: ltr;
  }

  .hero .container {
    padding: var(--spacing-xl) 0 var(--spacing-lg) 0;
  }

  .content-section,
  .mixed-section {
    padding: var(--spacing-xl) 0;
  }

  .footer .container {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--spacing-sm);
  }

  h1 {
    font-size: 1.875rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.375rem;
  }

  p {
    font-size: 1rem;
  }

  .hero .container {
    padding: var(--spacing-lg) 0 var(--spacing-md) 0;
  }
}