/* ==========================================================================
   NEODUNK - Basketball Sports Club Website Template
   Base Stylesheet
   ========================================================================== */


/* ==========================================================================
   1. CSS RESET
   Modern minimal reset - strips browser defaults for consistent rendering
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}


/* ==========================================================================
   2. CSS CUSTOM PROPERTIES
   Design tokens - these defaults are overridden at runtime by JS from config
   ========================================================================== */

:root {
  /* --- Colors --- */
  --color-primary: #060606;
  --color-secondary: #FFFFFF;
  --color-accent: #060606;
  --color-accent-secondary: #F07D00;
  --color-background: #F3F3F3;
  --color-text: #4D4D4D;
  --color-white: #FFFFFF;
  --color-black: #000000;
  --color-dark-divider: rgba(255, 255, 255, 0.08);
  --color-divider: rgba(6, 6, 6, 0.08);

  /* --- Typography --- */
  --font-primary: 'Inter Tight', sans-serif;
  --heading-h1: 52px;
  --heading-h2: 38px;
  --heading-h3: 26px;
  --heading-h4: 20px;
  --body-size: 16px;
  --heading-weight: 500;
  --body-weight: 400;
  --heading-line-height: 1.2;
  --body-line-height: 1.5;

  /* --- Layout --- */
  --container-max-width: 1300px;
  --section-padding: 100px 0;
  --widget-spacing: 20px;
}


/* ==========================================================================
   3. BASE STYLES
   Core element styling applied globally
   ========================================================================== */

/* --- HTML & Body --- */

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

body {
  font-family: var(--font-primary);
  font-size: var(--body-size);
  font-weight: var(--body-weight);
  line-height: var(--body-line-height);
  color: var(--color-text);
  background-color: var(--color-background);
}

/* --- Typography --- */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--heading-weight);
  line-height: var(--heading-line-height);
  color: var(--color-primary);
}

h1 {
  font-size: var(--heading-h1);
}

h2 {
  font-size: var(--heading-h2);
}

h3 {
  font-size: var(--heading-h3);
}

h4 {
  font-size: var(--heading-h4);
}

h5 {
  font-size: 18px;
}

h6 {
  font-size: 16px;
}

p {
  margin-bottom: 1em;
}

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

/* --- Links --- */

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease, opacity 0.3s ease;
}

a:hover {
  color: var(--color-accent-secondary);
}

/* --- Images --- */

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

/* --- Lists --- */

ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* --- Container --- */

.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 20px;
}


/* ==========================================================================
   4. SECTION LAYOUTS
   Reusable section patterns for page structure
   ========================================================================== */

/* --- Section Base --- */

.section {
  padding: var(--section-padding);
}

/* --- Section Color Variants --- */

.section--dark {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--dark h5,
.section--dark h6 {
  color: var(--color-white);
}

.section--dark .section-description {
  color: rgba(255, 255, 255, 0.7);
}

.section--light {
  background-color: var(--color-background);
}

.section--white {
  background-color: var(--color-background);
}

/* --- Section Header --- */

.section-header {
  margin-bottom: 60px;
}

.section-header--center {
  text-align: center;
}

.section-header--center .section-description {
  margin-left: auto;
  margin-right: auto;
}

/* --- Section Subtitle --- */

.section-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  text-transform: capitalize;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  padding: 10px 20px;
  background-color: transparent;
  border: 1px solid rgba(6, 6, 6, 0.15);
  border-radius: 100px;
  line-height: 1;
}

.section-subtitle::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-accent-secondary);
  flex-shrink: 0;
}

/* Dark section subtitle variant */
.section--dark .section-subtitle {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--color-white);
}

/* --- Section Title --- */

.section-title {
  font-size: var(--heading-h2);
  font-weight: var(--heading-weight);
  line-height: var(--heading-line-height);
  color: inherit;
}

/* --- Section Description --- */

.section-description {
  font-size: var(--body-size);
  color: var(--color-text);
  max-width: 600px;
  margin-top: 20px;
  line-height: var(--body-line-height);
}


/* ==========================================================================
   5. GRID SYSTEM
   Lightweight grid and flex utilities for page layouts
   ========================================================================== */

/* --- CSS Grid --- */

.grid {
  display: grid;
  gap: 30px;
}

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

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

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

/* --- Flexbox --- */

.flex {
  display: flex;
  gap: 30px;
}

.flex--center {
  align-items: center;
}

.flex--between {
  justify-content: space-between;
}

.flex--wrap {
  flex-wrap: wrap;
}

.flex--column {
  flex-direction: column;
}


/* ==========================================================================
   6. UTILITY CLASSES
   Single-purpose helpers for quick layout adjustments
   ========================================================================== */

/* --- Text Alignment --- */

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

/* --- Margin Top --- */

.mt-1 {
  margin-top: 10px;
}

.mt-2 {
  margin-top: 20px;
}

.mt-3 {
  margin-top: 30px;
}

.mt-4 {
  margin-top: 40px;
}

.mt-5 {
  margin-top: 50px;
}

/* --- Margin Bottom --- */

.mb-1 {
  margin-bottom: 10px;
}

.mb-2 {
  margin-bottom: 20px;
}

.mb-3 {
  margin-bottom: 30px;
}

.mb-4 {
  margin-bottom: 40px;
}

.mb-5 {
  margin-bottom: 50px;
}


/* ==========================================================================
   7. ANIMATION BASE CLASSES
   Entry animations triggered by scroll via JS (.visible class)
   ========================================================================== */

/* --- Fade In (bottom to top) --- */

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Fade In Left --- */

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* --- Fade In Right --- */

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* --- Stagger Delay Helpers --- */

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

.delay-4 {
  transition-delay: 0.4s;
}

.delay-5 {
  transition-delay: 0.5s;
}


/* ==========================================================================
   8. RESPONSIVE BREAKPOINTS
   Mobile-first adjustments
   ========================================================================== */

/* --- Tablet (max 1024px) --- */

@media (max-width: 1024px) {
  :root {
    --heading-h1: 42px;
    --heading-h2: 32px;
    --heading-h3: 24px;
    --heading-h4: 18px;
    --section-padding: 80px 0;
  }

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

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

/* --- Mobile (max 768px) --- */

@media (max-width: 768px) {
  :root {
    --heading-h1: 34px;
    --heading-h2: 28px;
    --heading-h3: 22px;
    --heading-h4: 18px;
    --section-padding: 60px 0;
  }

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .flex {
    flex-wrap: wrap;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .container {
    padding: 0 16px;
  }
}

/* --- Small Mobile (max 480px) --- */

@media (max-width: 480px) {
  :root {
    --heading-h1: 28px;
    --heading-h2: 24px;
    --heading-h3: 20px;
    --section-padding: 48px 0;
  }
}
