/* ===== MAGESTIS SPORT - Global Styles ===== */

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

:root {
  --navy: #17324D;
  --navy-light: #23313D;
  --teal: #0F7C7B;
  --teal-light: #11908F;
  --white: #FFFFFF;
  --off-white: #F3F6F8;
  --gray-light: #E8ECF0;
  --gray: #6B7B8D;
  --gold: #C9A96E;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1200px;
  --transition: 0.3s ease;
}

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

body {
  font-family: var(--font-body);
  color: var(--navy-light);
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--teal);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--teal-light);
}

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

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- Header & Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(23, 50, 77, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}

.nav-logo span {
  color: var(--teal-light);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-cta {
  background: var(--teal);
  color: var(--white) !important;
  padding: 0.6rem 1.4rem;
  border-radius: 6px;
  font-weight: 600;
  transition: background var(--transition);
}

.nav-cta:hover {
  background: var(--teal-light) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
  padding: 10rem 0 6rem;
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a5c 50%, var(--navy-light) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(15, 124, 123, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  position: relative;
}

.hero-kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 1.5rem;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(15, 124, 123, 0.4);
  border-radius: 4px;
}

.hero h1 {
  color: var(--white);
  font-size: 3.5rem;
  max-width: 700px;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 600px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--teal);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  transition: all var(--transition);
}

.hero-cta:hover {
  background: var(--teal-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 124, 123, 0.3);
}

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

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

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

.section--navy h2,
.section--navy h3 {
  color: var(--white);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--gray);
  font-size: 1.1rem;
}

/* --- Flow Banner (VALIDATE → ENGAGE → SCALE) --- */
.flow-banner {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 2.5rem 2rem;
  border-radius: 12px;
  margin-bottom: 3rem;
}

.flow-banner h3 {
  color: var(--white);
  font-size: 1.6rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.flow-banner p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2.5rem;
  border: 1px solid var(--gray-light);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(23, 50, 77, 0.1);
  border-color: var(--teal);
}

.service-card-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--teal);
  color: var(--white);
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.service-card h3 {
  margin-bottom: 0.75rem;
}

.service-card .tagline {
  color: var(--teal);
  font-style: italic;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--gray);
  font-size: 0.95rem;
}

.service-card .learn-more {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.9rem;
}

/* --- Service Detail (full page) --- */
.service-detail {
  padding: 3rem 0;
  border-bottom: 1px solid var(--gray-light);
}

.service-detail:last-child {
  border-bottom: none;
}

.service-detail-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.service-detail-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--teal);
  color: var(--white);
  border-radius: 12px;
  font-size: 1.4rem;
  font-weight: 700;
  flex-shrink: 0;
}

.service-detail h2 {
  font-size: 1.8rem;
}

.service-detail .tagline {
  color: var(--teal);
  font-style: italic;
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.service-detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 1.5rem;
}

.deliverables h4,
.outcomes h4 {
  margin-bottom: 0.75rem;
  color: var(--navy);
}

.deliverables ul,
.outcomes ul {
  list-style: none;
  padding: 0;
}

.deliverables li,
.outcomes li {
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.95rem;
  color: var(--gray);
}

.deliverables li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

.outcomes li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* --- Approach Steps --- */
.approach-steps {
  display: grid;
  gap: 1.5rem;
}

.approach-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 1.5rem;
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--gray-light);
}

.approach-step-label {
  background: var(--off-white);
  color: var(--teal);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  white-space: nowrap;
}

.approach-step p {
  margin-bottom: 0;
  color: var(--gray);
}

/* --- Dashboard Table --- */
.dashboard-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
  border-radius: 12px;
  overflow: hidden;
}

.dashboard-table thead {
  background: var(--teal);
  color: var(--white);
}

.dashboard-table th {
  padding: 1rem 1.5rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
}

.dashboard-table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--gray-light);
  font-size: 0.95rem;
  color: var(--gray);
}

.dashboard-table tbody tr:hover {
  background: var(--off-white);
}

.dashboard-table td:first-child {
  font-weight: 600;
  color: var(--navy);
}

/* --- Values / Philosophy --- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.value-card {
  padding: 2rem;
  border-left: 4px solid var(--teal);
  background: var(--off-white);
  border-radius: 0 10px 10px 0;
}

.value-card h4 {
  margin-bottom: 0.75rem;
}

.value-card p {
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* --- Contact Form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h3 {
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--gray);
  margin-bottom: 1.5rem;
}

.contact-details {
  list-style: none;
  margin-top: 2rem;
}

.contact-details li {
  padding: 0.75rem 0;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--navy-light);
}

.contact-details .label {
  font-weight: 600;
  min-width: 80px;
}

.contact-form {
  background: var(--off-white);
  padding: 2.5rem;
  border-radius: 12px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--teal);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border: none;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--teal-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 124, 123, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--teal);
  border: 2px solid var(--teal);
}

.btn-outline:hover {
  background: var(--teal);
  color: var(--white);
}

/* --- Footer --- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.9rem;
  max-width: 320px;
}

.footer-links h4 {
  color: var(--white);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
}

/* --- Page Header (inner pages) --- */
.page-header {
  padding: 9rem 0 4rem;
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a5c 100%);
  color: var(--white);
}

.page-header h1 {
  color: var(--white);
  margin-bottom: 1rem;
}

.page-header p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.15rem;
  max-width: 600px;
}

/* --- Proof Points --- */
.proof-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.proof-point {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
}

.proof-point::before {
  content: '';
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 0.5rem;
  border-radius: 50%;
  background: var(--teal);
}

.proof-point p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--gray);
}

/* --- Responsive --- */
@media (max-width: 968px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .service-detail-content {
    grid-template-columns: 1fr;
  }

  h1 { font-size: 2.5rem; }
  .hero h1 { font-size: 2.8rem; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 8rem 0 4rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .flow-banner h3 {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.25rem;
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  .service-detail-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}


/* ===== ENHANCEMENTS: Images & Icons ===== */

/* --- Hero with background image --- */
.hero--image {
  background: linear-gradient(135deg, rgba(23, 50, 77, 0.88) 0%, rgba(26, 58, 92, 0.85) 50%, rgba(35, 49, 61, 0.9) 100%),
              url('../images/hero-sports.jpg') center/cover no-repeat;
}

/* --- Image Cards --- */
.image-card {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

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

.image-card:hover img {
  transform: scale(1.05);
}

/* --- Icon Styles --- */
.icon {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex-shrink: 0;
}

.icon--sm {
  width: 18px;
  height: 18px;
}

.icon--lg {
  width: 32px;
  height: 32px;
}

.icon--xl {
  width: 40px;
  height: 40px;
}

/* --- Service card with icon --- */
.service-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  color: var(--white);
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

/* --- Hero split layout --- */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.hero-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero-image img {
    height: 250px;
  }
}

/* --- Feature row with image --- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 3rem 0;
}

.feature-row--reverse {
  direction: rtl;
}

.feature-row--reverse > * {
  direction: ltr;
}

.feature-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(23, 50, 77, 0.12);
}

.feature-image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.feature-content h3 {
  margin-bottom: 1rem;
}

.feature-content p {
  color: var(--gray);
}

@media (max-width: 768px) {
  .feature-row,
  .feature-row--reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
    direction: ltr;
  }
  .feature-image img {
    height: 220px;
  }
}

/* --- Stats bar --- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  padding: 3rem 0;
}

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

.stat-item .stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(15, 124, 123, 0.1);
  color: var(--teal);
  border-radius: 12px;
  margin-bottom: 0.75rem;
}

.stat-item h3 {
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.stat-item p {
  color: var(--gray);
  font-size: 0.9rem;
  margin: 0;
}

/* --- Contact details with icons --- */
.contact-details li .detail-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(15, 124, 123, 0.1);
  color: var(--teal);
  border-radius: 8px;
}

/* --- About hero image banner --- */
.about-banner {
  width: 100%;
  height: 300px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 3rem;
}

.about-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Gallery strip --- */
.gallery-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 3rem 0;
}

.gallery-strip img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.4s ease;
}

.gallery-strip img:hover {
  transform: scale(1.03);
}

@media (max-width: 768px) {
  .gallery-strip {
    grid-template-columns: 1fr;
  }
  .gallery-strip img {
    height: 180px;
  }
}

/* --- Approach step with icon --- */
.approach-step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(15, 124, 123, 0.1);
  color: var(--teal);
  border-radius: 10px;
  flex-shrink: 0;
}

/* --- Footer social --- */
.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--teal);
  color: var(--white);
}
