/* ============================================
   162 Skate – Styles
   ============================================ */

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

/* Variables */
:root {
  --primary: #111111;
  --secondary: #333333;
  --light-grey: #F5F5F5;
  --border-grey: #E6E6E6;
  --white: #FFFFFF;
  --accent: #000000;
  --bg-alt: #F7F7F7;

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --header-height: 90px;

  --transition: 0.3s ease;
  --shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.06);
  --radius: 12px;

  --container: 1440px;
  --container-padding: 24px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-family);
  font-size: 18px;
  line-height: 1.6;
  color: var(--primary);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
  color: inherit;
}

/* Container */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 14px 36px;
  border: none;
  cursor: pointer;
  transition: background var(--transition);
  border-radius: 0;
}

.btn:hover {
  background: #333333;
}

.btn--hero {
  font-size: 14px;
  padding: 16px 40px;
}

.btn--full {
  width: 100%;
}

/* ============================================
   Header
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--white);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: box-shadow var(--transition);
}

.header--scrolled {
  box-shadow: var(--shadow);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header__logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.header__nav-list {
  display: flex;
  list-style: none;
  gap: 40px;
}

.header__nav-link {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  position: relative;
  padding-bottom: 4px;
  transition: color var(--transition);
}

.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition);
}

.header__nav-link:hover::after {
  width: 100%;
}

/* Hamburger */
.header__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.header__toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  transition: transform var(--transition), opacity var(--transition);
}

.header__toggle[aria-expanded="true"] .header__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__toggle[aria-expanded="true"] .header__toggle-bar:nth-child(2) {
  opacity: 0;
}

.header__toggle[aria-expanded="true"] .header__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  margin-top: 0;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 50%;
  max-width: 600px;
  padding-left: 80px;
  margin-left: 0;
  margin-right: 0;
}

.hero__title {
  font-size: clamp(1.5rem, 3.5vw, 2.75rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 20px;
}

.hero__text {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 400;
  line-height: 1.7;
  color: rgba(255,255,255,0.9);
  margin-bottom: 40px;
}

/* ============================================
   Sections
   ============================================ */
.section {
  padding: 100px 0;
}

.section:nth-child(even) {
  background: var(--white);
}

.section:nth-child(odd) {
  background: var(--white);
}

#courses {
  background: var(--bg-alt);
}

.section__title {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 60px;
  text-align: center;
}

/* ============================================
   Park Section
   ============================================ */
.park__layout {
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 80px;
  align-items: start;
}

.park__text {
  font-size: 18px;
  line-height: 1.8;
  color: var(--secondary);
  margin-bottom: 16px;
}

.park__text:last-of-type {
  margin-bottom: 40px;
}

.park__features {
  display: grid;
  grid-template-columns: 33% 33% 33%;
  gap: 16px;
  margin-bottom: 40px;
}

.park__feature {
  background: var(--light-grey);
  padding: 28px 20px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: default;
}

.park__feature-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 12px;
  color: var(--primary);
}

.park__feature-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.3;
}

/* Gallery */
.park__gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.park__gallery-item {
  overflow: hidden;
  position: relative;
}

.park__gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.park__gallery-item:hover img {
  transform: scale(1.05);
}

.park__gallery-grid--three {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  height: 100%;
  min-height: 500px;
}

.park__gallery-grid--three .park__gallery-item:first-child {
  grid-row: span 2;
}

.park__gallery-grid--three .park__gallery-item img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

/* ============================================
   Courses Section
   ============================================ */
.courses__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.courses__image {
  overflow: hidden;
  border-radius: var(--radius);
}

.courses__image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.courses__image:hover img {
  transform: scale(1.03);
}

.courses__cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.courses__card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform var(--transition), box-shadow var(--transition);
}

.courses__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.courses__card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.courses__card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-grey);
  border-radius: 50%;
  flex-shrink: 0;
}

.courses__card-title {
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.courses__card-time {
  font-size: 14px;
  font-weight: 600;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.courses__card-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--secondary);
  margin-bottom: 12px;
}

.courses__card-text:last-child {
  margin-bottom: 0;
}

/* ============================================
   Location Section
   ============================================ */
.location__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.location__info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.location__address {
  font-size: clamp(1.2rem, 2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.location__map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.location__map iframe {
  display: block;
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
  background: var(--bg-alt) !important;
}

.contact__layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 40px;
}

.contact__text {
  font-size: 18px;
  line-height: 1.8;
  color: var(--secondary);
  margin-bottom: 16px;
}

.contact__text:last-child {
  margin-bottom: 0;
}

/* Form */
.contact__cta {
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn--contact {
  font-size: 16px;
  padding: 18px 48px;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: #111111;
  color: rgba(255,255,255,0.85);
  padding: 32px 0;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

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

.footer__boardriders {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.7);
}

.footer__contact {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  text-align: center;
}

.footer__link {
  color: rgba(255,255,255,0.85);
  transition: color var(--transition);
  white-space: nowrap;
}

.footer__link:hover {
  color: var(--white);
}

.footer__sep {
  color: rgba(255,255,255,0.3);
  font-size: 14px;
}

.footer__copy {
  text-align: right;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* ============================================
   Animations
   ============================================ */
[data-anim] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-anim].anim--visible {
  opacity: 1;
  transform: translateY(0);
}

[data-anim="fade-left"] {
  transform: translateX(-30px);
}

[data-anim="fade-left"].anim--visible {
  transform: translateX(0);
}

[data-anim="fade-right"] {
  transform: translateX(30px);
}

[data-anim="fade-right"].anim--visible {
  transform: translateX(0);
}

.card-hover {
  transition: transform 0.4s ease-out, box-shadow 0.4s ease-out;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* ============================================
   Responsive
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
  .park__layout,
  .courses__layout,
  .location__layout,
  .contact__layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .park__gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .courses__image img {
    height: 350px;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 16px;
  }

  .footer__copy {
    text-align: center;
  }

  .footer__contact {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --header-height: 70px;
    --container-padding: 16px;
  }

  body {
    font-size: 16px;
  }

  .section {
    padding: 64px 0;
  }

  .section__title {
    margin-bottom: 36px;
  }

  /* Header mobile */
  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    box-shadow: -4px 0 20px rgba(0,0,0,0.08);
    padding: 100px 32px 32px;
    transition: right 0.4s ease;
    z-index: 999;
  }

  .header__nav--open {
    right: 0;
  }

  .header__nav-list {
    flex-direction: column;
    gap: 24px;
  }

  .header__nav-link {
    font-size: 16px;
  }

  .header__toggle {
    display: flex;
  }

  /* Hero */
  .hero__content {
    width: 100%;
    max-width: 100%;
    padding-left: 20px;
  }

  .hero__overlay {
    background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 70%, rgba(0,0,0,0.1) 100%);
  }

  /* Park */
  .park__features {
    grid-template-columns: 1fr;
  }

  .park__gallery-grid,
  .park__gallery-grid--three {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    min-height: auto;
  }

  .park__gallery-grid--three .park__gallery-item:first-child {
    grid-row: auto;
  }

  .park__gallery-item img {
    height: 250px;
  }

  /* Courses */
  .courses__image img {
    height: 250px;
  }

  .courses__card {
    padding: 24px;
  }

  /* Contact */
  .contact__form {
    padding: 24px;
  }

  /* Buttons full width on mobile */
  .btn {
    width: 100%;
  }

  .btn--hero {
    width: auto;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .hero__title {
    font-size: 1.75rem;
  }

  .hero__text {
    font-size: 0.95rem;
  }

  .park__text {
    font-size: 16px;
  }

  .courses__card-header {
    flex-direction: column;
    text-align: center;
  }

  .footer__contact {
    flex-direction: column;
    gap: 8px;
  }

  .footer__sep {
    display: none;
  }
}

/* ============================================
   Focus & Accessibility
   ============================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-anim] {
    opacity: 1;
    transform: none;
  }
}
