/* Kavouri Tennis Club - inspired by kavouritennisclub.gr */
:root {
  --green-dark: #1a4d2e;
  --green-mid: #2d6a4f;
  --green-light: #40916c;
  --green-bg: #d8f3dc;
  --white: #fff;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-700: #495057;
  --gray-900: #212529;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --radius: 8px;
  --font-head: 'Oswald', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-900);
  background: var(--white);
}

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

a {
  color: var(--green-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.header__top {
  background: var(--green-dark);
  color: var(--white);
  padding: 0.5rem 0;
  font-size: 0.9rem;
}

.header__top-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}

.header__lang-link {
  color: var(--white);
  opacity: 0.9;
}

.header__lang-link.is-active {
  opacity: 1;
  font-weight: 600;
}

.header__lang-sep {
  opacity: 0.6;
}

.header__social a {
  color: var(--white);
  margin-left: 0.5rem;
}

.btn {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn--cta {
  background: var(--green-light);
  color: var(--white);
}

.btn--cta:hover {
  background: var(--green-mid);
  text-decoration: none;
}

/* Nav */
.nav {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
}

.logo img {
  height: 50px;
  width: auto;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}

.nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--green-dark);
}

.nav__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.nav__menu > li > a {
  display: block;
  padding: 0.6rem 0.75rem;
  font-family: var(--font-head);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  color: var(--gray-900);
}

.nav__menu > li > a:hover {
  color: var(--green-dark);
  text-decoration: none;
}

.nav__dropdown {
  position: relative;
}

.nav__submenu {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.nav__dropdown:hover .nav__submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__submenu a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  color: var(--gray-700);
}

.nav__submenu a:hover {
  background: var(--gray-100);
  color: var(--green-dark);
}

@media (max-width: 900px) {
  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    box-shadow: var(--shadow);
    padding: 1rem;
  }

  .nav__menu.is-open {
    display: flex;
  }

  .nav__submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding-left: 1rem;
    margin-top: 0.25rem;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 50%, var(--green-light) 100%);
  color: var(--white);
  text-align: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,77,46,0.4) 0%, rgba(45,106,79,0.5) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 3rem 1.5rem;
}

.hero__title {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.15;
  margin: 0 0 1.5rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.hero__cta {
  margin-top: 1.5rem;
}

.hero__cta .btn {
  background: var(--white);
  color: var(--green-dark);
}

.hero__cta .btn:hover {
  background: var(--green-bg);
  color: var(--green-dark);
  text-decoration: none;
}

/* Slider dots (placeholder for multi-slide) */
.hero__dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}

.hero__dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
}

.hero__dots span.is-active {
  background: var(--white);
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section--alt {
  background: var(--gray-100);
}

.section__title {
  font-family: var(--font-head);
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--green-dark);
  margin: 0 0 2rem;
  text-align: center;
}

/* News */
.news-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .news-featured {
    grid-template-columns: 1fr;
  }
}

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

.news-featured__image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.news-featured__meta {
  font-size: 0.9rem;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}

.news-featured__title {
  font-family: var(--font-head);
  font-size: 1.75rem;
  margin: 0 0 1rem;
}

.news-featured__title a {
  color: var(--gray-900);
}

.news-featured__title a:hover {
  color: var(--green-dark);
}

.news-featured__excerpt {
  margin: 0 0 1rem;
  color: var(--gray-700);
}

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.news-list__item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.news-list__item:last-child {
  border-bottom: none;
}

@media (max-width: 600px) {
  .news-list__item {
    grid-template-columns: 1fr;
  }
}

.news-list__thumb {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  object-fit: cover;
}

.news-list__date {
  font-size: 0.85rem;
  color: var(--gray-700);
}

.news-list__title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  margin: 0;
}

.news-list__title a {
  color: var(--gray-900);
}

/* About */
.about__tagline {
  font-family: var(--font-head);
  font-size: 1.5rem;
  text-align: center;
  color: var(--green-dark);
  margin: 0 0 2rem;
}

.about__body {
  max-width: 720px;
  margin: 0 auto 2rem;
  text-align: center;
}

.about__body p {
  margin: 0 0 1rem;
}

.about__courts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.about__court {
  background: var(--white);
  padding: 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  border-top: 4px solid var(--green-light);
}

.about__court strong {
  display: block;
  color: var(--green-dark);
  margin-bottom: 0.25rem;
}

/* Sponsors */
.sponsors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 2rem 0;
}

.sponsors img {
  height: 60px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(30%);
  opacity: 0.85;
}

.sponsors img:hover {
  opacity: 1;
  filter: grayscale(0);
}

/* Footer */
.footer {
  background: var(--green-dark);
  color: var(--white);
  padding: 3rem 1.5rem 2rem;
  text-align: center;
}

.footer a {
  color: var(--white);
  opacity: 0.9;
}

.footer a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer__cta {
  margin-bottom: 1.5rem;
}

.footer__lang,
.footer__social {
  margin-bottom: 1rem;
}

.footer__lang a,
.footer__social a {
  margin: 0 0.5rem;
}

.footer__links {
  margin: 1rem 0;
  font-size: 0.9rem;
}

.footer__links a {
  margin: 0 0.5rem;
}

.footer__tagline {
  font-family: var(--font-head);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  margin: 1.5rem 0 0.5rem;
  opacity: 0.95;
}

.footer__copy {
  font-size: 0.85rem;
  opacity: 0.8;
  margin: 1rem 0 0;
}

/* Utility */
.main {
  min-height: 50vh;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
