/* style.css */
:root {
  --primary-maroon: #800000;
  --primary-hover: #5e0000;
  --bg-color: #f5f5f7; /* Apple Light Gray */
  --card-bg: #ffffff;
  --text-main: #1d1d1f;
  --text-secondary: #86868b;
  --radius: 18px;
  --transition: all 0.3s cubic-bezier(0,0,0.5,1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--primary-maroon);
  text-decoration: none;
}

a:hover {
  color: var(--primary-hover);
}

/* --- Glassmorphism Navigation --- */
nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.8); /* Translucent white */
  backdrop-filter: saturate(180%) blur(20px); /* The "Frost" effect */
  border-bottom: 1px solid rgba(0,0,0,0.1);
  padding: 0 20px;
}

nav ul {
  max-width: 1000px;
  margin: 0 auto;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 48px;
}

nav ul li a {
  font-size: 12px;
  color: var(--text-main); /* Dark text on light nav */
  text-decoration: none;
  opacity: 0.8;
  transition: var(--transition);
  padding: 10px;
}

nav ul li a:hover {
  opacity: 1;
  color: var(--primary-maroon);
}

/* Dropdown Menu */
nav ul li { position: relative; }
nav ul li ul {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  border-radius: 12px;
  padding: 10px;
  flex-direction: column;
  min-width: 180px;
  height: auto;
}

nav ul li:hover > ul { display: flex; }
nav ul li ul li a { 
  font-size: 14px; 
  display: block; 
  padding: 8px 12px; 
  text-align: center;
  color: var(--text-main);
}

/* --- Header / Hero Section --- */
header {
  text-align: center;
  padding: 30px 20px 20px;
  max-width: 980px;
  margin: 0 auto;
  background-color: transparent;
}

header h1 {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

#logo {
  height: 140px;
  width: auto;
  max-width: 100%;
  display: block;
  margin: 0 auto 20px;
  background-color: transparent;
}

#home-logo {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 16px;
}

/* --- Main Content --- */
main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  flex: 1;
  width: 100%;
}

h2 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 20px;
}

p {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* --- Apple Style Cards (Bento Grid) --- */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin: 40px 0;
}

.coaching-grid {
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 32px;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.04);
  transition: var(--transition);
  text-align: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.card img {
  border-radius: 12px;
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
}

.coach-card img {
  width: 100%;
  max-width: 520px;
}

.coach-card {
  padding: 36px;
}

/* --- Buttons --- */
.cta-button {
  display: inline-block;
  background-color: var(--primary-maroon);
  color: white;
  padding: 12px 24px;
  border-radius: 980px; /* Pill shape */
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.cta-button:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

/* --- Footer --- */
footer {
  background-color: #f5f5f7; /* Matches body */
  border-top: 1px solid #d2d2d7;
  padding: 12px 20px;
  margin-top: auto; /* Stick to bottom when content is short */
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

footer > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: 100%;
}

.social-icon {
  height: 24px;
  width: auto;
  opacity: 0.6;
  transition: opacity 0.2s;
}

footer a:hover .social-icon {
  opacity: 1;
}

/* --- Utility Embeds & Forms --- */
.embed-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  border-radius: 12px;
}

@media (max-width: 600px) {
  .embed-frame {
    aspect-ratio: 3 / 4;
  }
}

form {
  display: grid;
  gap: 12px;
}

label {
  font-weight: 600;
  color: var(--text-main);
}

input[type="text"],
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d2d2d7;
  border-radius: 12px;
  font-size: 16px;
  background: #fff;
}

textarea {
  resize: vertical;
  min-height: 160px;
}

input[type="submit"] {
  background-color: var(--primary-maroon);
  color: #fff;
  border: none;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

input[type="submit"]:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

.history-list {
  list-style: none;
  padding-left: 0;
  color: var(--text-secondary);
}

.history-list li {
  margin-bottom: 8px;
}

.schedule-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 24px;
  width: 100%;
  color: var(--text-main);
}

.schedule-list li {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid #e5e5e7;
  border-radius: 12px;
  background: #fafafa;
}

.schedule-date {
  font-weight: 700;
}

.schedule-opponent {
  text-align: left;
}

.schedule-location {
  font-weight: 700;
  color: var(--primary-maroon);
}

.schedule-note {
  display: block;
  color: var(--text-secondary);
  font-size: 13px;
  margin-top: 2px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  header h1 { font-size: 32px; }
  nav ul { display: flex; flex-wrap: wrap; justify-content: center; height: auto; padding: 10px; }
  nav ul li { margin: 5px 10px; }
  nav ul li ul {
    top: calc(100% + 52px); /* Drop further down on mobile so it doesn't cover nearby text */
    left: 50%;
    transform: translateX(-50%);
  }
  .schedule-list li { grid-template-columns: 90px 1fr auto; }
}
