/* TenisGo - Global Styles */

:root {
  --color-primary: #2E7D32;
  --color-dark: #2D3436;
  --color-gray-light: #636E72;
  --color-background: #F5F5F5;
  --color-border: #E8E8E8;
  --color-success: #27AE60;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-dark);
  background-color: #ffffff;
}

/* Typography System */

h1 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
}

h2 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 12px;
}

h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 12px;
}

p {
  color: var(--color-gray-light);
  line-height: 1.6;
}

/* Hero Display Text */
.display-text {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.subtext {
  font-size: 18px;
  color: var(--color-gray-light);
  line-height: 1.6;
  margin-top: 8px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 200ms ease-in-out;
  white-space: nowrap;
}

.btn-primary {
  padding: 16px 40px;
  background-color: var(--color-primary);
  color: white;
  min-width: 180px;
}

.btn-primary:hover {
  background-color: #1b5e20;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  padding: 12px 32px;
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
  background-color: #f1f5f2;
  box-shadow: 0 2px 8px rgba(46, 125, 50, 0.15);
}

.btn-link {
  color: var(--color-primary);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: all 200ms ease-in-out;
}

.btn-link:hover {
  border-bottom-color: var(--color-primary);
}

/* Containers */

.container {
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 32px;
  }
}

/* Sections */

.section {
  padding: 32px 0;
}

@media (min-width: 768px) {
  .section {
    padding: 48px 0;
  }
}

.section-with-divider {
  border-top: 1px solid var(--color-border);
  padding-top: 48px;
}

@media (max-width: 767px) {
  .section-with-divider {
    border-top: none;
    padding-top: 32px;
  }
}

/* Cards */

.card {
  background-color: white;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  transition: all 200ms ease-in-out;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: #c8e6c9;
  transform: translateY(-4px);
}

.card-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-dark);
}

.card-text {
  font-size: 14px;
  color: var(--color-gray-light);
  margin-bottom: 16px;
  flex-grow: 1;
}

/* Grid Layout */

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

@media (min-width: 640px) {
  .grid {
    gap: 24px;
  }
}

/* Icons */

.icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-background);
  border-radius: 8px;
  margin-bottom: 12px;
  transition: all 200ms ease-in-out;
}

.card:hover .icon {
  transform: scale(1.1);
  background-color: #f1f5f2;
}

/* Links */

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Lists */

.list-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--color-gray-light);
}

.list-item::before {
  content: '✓';
  color: var(--color-primary);
  font-weight: 700;
  margin-right: 8px;
  margin-top: 2px;
}

/* Mobile First Adjustments */

@media (max-width: 639px) {
  .display-text {
    font-size: 36px;
  }

  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 18px;
  }

  .subtext {
    font-size: 16px;
  }

  .btn-primary {
    width: 100%;
    padding: 14px 32px;
    font-size: 15px;
  }

  .btn-secondary {
    width: 100%;
    padding: 14px 32px;
  }

  .btn-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  @media (min-width: 640px) {
    .btn-stack {
      flex-direction: row;
      gap: 16px;
    }
  }
}

/* Utility Classes */

.text-center {
  text-align: center;
}

.text-primary {
  color: var(--color-primary);
}

.text-gray {
  color: var(--color-gray-light);
}

.mt-2 {
  margin-top: 8px;
}

.mt-3 {
  margin-top: 12px;
}

.mt-4 {
  margin-top: 16px;
}

.mb-2 {
  margin-bottom: 8px;
}

.mb-3 {
  margin-bottom: 12px;
}

.mb-4 {
  margin-bottom: 16px;
}

.gap-1 {
  gap: 8px;
}

.gap-2 {
  gap: 16px;
}

.gap-3 {
  gap: 24px;
}

/* Animations */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 300ms ease-in;
}

/* Smooth Scrolling */
@supports (scroll-behavior: smooth) {
  html {
    scroll-behavior: smooth;
  }
}

/* ===== HERO SECTION ===== */

.hero-section {
  position: relative;
  overflow: hidden;
  padding: 64px 0 56px;
  background:
    linear-gradient(110deg, #ffffff 0%, #ffffff 36%, rgba(255, 255, 255, 0.86) 52%, rgba(232, 245, 233, 0.58) 100%),
    linear-gradient(180deg, #ffffff 0%, #f7fbf8 100%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

.hero-text {
  order: 1;
  position: relative;
  z-index: 2;
}

.hero-image {
  order: 2;
  display: block;
  position: relative;
  min-height: 260px;
  margin: 0 -20px -24px;
  overflow: hidden;
}

.hero-image::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.1) 42%, rgba(255, 255, 255, 0.9) 100%),
    linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.18) 42%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  object-position: 68% center;
  filter: saturate(1.03) contrast(1.02);
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 460px;
  }

  .hero-image {
    align-self: stretch;
    min-height: 460px;
    margin: -64px calc((100vw - 100%) / -2) -56px -170px;
  }

  .hero-image::before {
    background:
      linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.96) 24%, rgba(255, 255, 255, 0.56) 44%, rgba(255, 255, 255, 0) 70%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.72) 100%);
  }

  .hero-image img {
    min-height: 460px;
    object-position: 72% center;
  }
}

/* ===== FEATURES SECTION ===== */

.section-features {
  border-top: 1px solid var(--color-border);
  background-color: #ffffff;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  text-align: center;
  padding: 24px;
  border-radius: 12px;
  background-color: #f9fbfa;
  border: 1px solid #e8f5e9;
  transition: all 200ms ease-in-out;
}

.feature-card:hover {
  border-color: #c8e6c9;
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.1);
  transform: translateY(-2px);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background-color: #e8f5e9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--color-gray-light);
  line-height: 1.5;
}

/* ===== SERVICES SECTION ===== */

.section-services {
  border-top: 1px solid var(--color-border);
  background-color: #ffffff;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--color-gray-light);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.service-card {
  background-color: white;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 200ms ease-in-out;
}

.service-card:hover {
  border-color: #c8e6c9;
  box-shadow: 0 8px 24px rgba(46, 125, 50, 0.12);
  transform: translateY(-4px);
}

.service-icon {
  width: 72px;
  height: 72px;
  background-color: #f1f5f2;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-dark);
  margin: 0;
}

.service-card p {
  font-size: 15px;
  color: var(--color-gray-light);
  margin: 0;
  line-height: 1.6;
}

/* ===== CTA SECTION ===== */

.section-cta {
  background-color: #f1f5f2;
  border-top: 1px solid var(--color-border);
}

.cta-content {
  text-align: center;
}

.cta-content h2 {
  font-size: 28px;
  color: var(--color-dark);
  margin-bottom: 12px;
}

.cta-content .subtext {
  margin-bottom: 24px;
}
