/* Global Styles */
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background-color: #f9f9f9;
  color: #333;
}

/* Header */
header {
  background-color: #2980b9;
  color: white;
  text-align: center;
  padding: 1rem;
}
header h1 {
  margin: 0;
  font-size: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}
header h1 img {
  height: 5rem;
  margin-right: 1rem;
}

/* Navigation */
nav {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  background-color: #1f5f94;
  padding: 0.5rem;
  position: relative;
}
nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}
nav a:hover {
  text-decoration: underline;
}
nav .lang-toggle {
  background-color: white;
  color: #2980b9;
  border: 2px solid #2980b9;
  padding: 0.5rem 1rem;
  font-weight: bold;
  cursor: pointer;
  border-radius: 5px;
}
nav .lang-toggle:hover {
  color: #1f5f94;
}

.nav-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.social-icons {
  display: flex;
  gap: 0.5rem;
}
.social-icons img {
  height: 1.5rem;
}

/* Hero Section */
.hero {
  background: url('https://images.unsplash.com/photo-1605280462335-08904d93b3e6') center/cover no-repeat;
  height: 20vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  text-align: center;
  padding: 0 1rem;
}
.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: #2980b9;
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}
.btn:hover {
  background-color: #1f5f94;
}

/* Sections */
section {
  padding: 2rem 2rem;
  max-width: 900px;
  margin: auto;
}
.court-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: block;
  margin: auto;
}
.about-padel {
  background-color: #f0f9ff;
}
.about-padel p,
.extras p {
  text-align: justify;
}
.extras {
  background-color: #fff;
}

/* Footer */
footer {
  background-color: #eee;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: #666;
}
footer img {
  height: 1.5rem;
  margin: 0 0.5rem;
}

/* Hamburger button - hidden by default */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 2rem;
  height: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  margin-left: auto;
  margin-right: 0;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: white;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animate hamburger to X */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Responsive for mobile */
@media (max-width: 768px) {
	
  nav a {
    display: none;
  }
  .hamburger {
    display: flex;
    margin-left: auto;
    margin-right: 0;
	
  }
  nav.open .nav-top {
  display: flex;
  flex-direction: column; /* <<< important: stack vertically */
  align-items: center;
  gap: 1rem;
  width: 100%;
  margin-top: 1rem;
}
  nav.open {
    flex-direction: column;
    align-items: stretch;
  }
  nav.open a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.75rem 0;
    background-color: #1f5f94;
  }
nav.open .social-icons {
  display: flex; /* <<< very important */
  justify-content: space-evenly; /* <<< spreads icons across */
  align-items: center;
  width: 100%; /* <<< make sure it takes full width */
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

nav.open .social-icons img {
  height: 3rem;
}
}
