/* Base styles for InTheRink.com */
:root {
  /* Custom colour palette for Private Label Sources */
  --primary: #274c5b; /* deep teal for headings */
  --secondary: #f18f01; /* warm orange for buttons */
  --accent: #00a38a; /* vibrant green accent */
  --light: #f5f9fc; /* light background */
  --dark: #1d2d35; /* dark text */
}

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

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background-color: #ffffff;
  scroll-behavior: smooth;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.8);
  color: #ffffff;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo .puck {
  font-size: 1.8rem;
  margin-right: 0.3rem;
}

.logo h1 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -1px;
}

.logo .accent {
  color: var(--accent);
}

/* Make the entire logo clickable */
.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 1.2rem;
}

.nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav a:hover {
  color: var(--accent);
}

/* Hero Section */
.hero {
  position: relative;
  height: 80vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content h2 {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  background: var(--secondary);
  color: #ffffff;
  padding: 0.7rem 1.4rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
  cursor: pointer;
  border: none;
}

.btn:hover {
  background: #005fa3;
}

.btn.secondary {
  background: var(--primary);
}

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

.section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--primary);
}

.section p {
  margin-bottom: 1.2rem;
  font-size: 1rem;
  line-height: 1.7;
}

.alt-bg {
  background-color: var(--light);
}

/* History Grid */
.history-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.history-text {
  flex: 1 1 55%;
}

.history-image {
  flex: 1 1 45%;
}

.history-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Teams Section */
.teams-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}

.team-image {
  flex: 1 1 40%;
}

.team-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.team-list {
  flex: 1 1 60%;
}

.team-list h3 {
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.accordion details {
  margin-bottom: 0.8rem;
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 0.8rem 1rem;
}

.accordion summary {
  font-weight: 600;
  cursor: pointer;
  outline: none;
  color: var(--primary);
}

.accordion ul {
  list-style: disc inside;
  margin-top: 0.5rem;
  margin-left: 1rem;
}

/* Players Section */
.players-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.player-image {
  flex: 1 1 40%;
}

.player-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.player-spotlight {
  flex: 1 1 60%;
}

.player-spotlight h3 {
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.player-spotlight #spotlight {
  min-height: 4rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 500;
}

/* Interactive Section */
.interactive-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.facts-box,
.timeline-box {
  flex: 1 1 45%;
  background: #ffffff;
  padding: 1.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.facts-box h3,
.timeline-box h3 {
  margin-bottom: 0.8rem;
  color: var(--primary);
}

.facts-box button {
  margin-top: 0.5rem;
}

.timeline {
  max-height: 360px;
  overflow-y: auto;
  padding-right: 1rem;
}

.timeline-item {
  position: relative;
  margin-bottom: 1.2rem;
  padding-left: 1.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 0.6rem;
  height: 0.6rem;
  background: var(--secondary);
  border-radius: 50%;
}

.timeline-item time {
  font-weight: 600;
  color: var(--primary);
}

.timeline-item p {
  margin-top: 0.3rem;
  font-size: 0.95rem;
}

/* Contact Section */
.contact-form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
}

.contact-form input[type='email'] {
  flex: 1 1 auto;
  padding: 0.7rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

.contact-form button {
  flex: 0 0 auto;
}

/* Footer */
footer {
  background: var(--primary);
  color: #ffffff;
  text-align: center;
  padding: 2rem 0;
}

footer p {
  margin-bottom: 0.5rem;
}

footer .small {
  font-size: 0.8rem;
  opacity: 0.8;
}

.back-to-top {
  display: inline-block;
  margin-top: 1rem;
  color: #ffffff;
  text-decoration: none;
}

.back-to-top:hover {
  text-decoration: underline;
}

/* Custom layouts for Private Label Sources */
.two-column {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}
.two-column .text {
  flex: 1 1 55%;
}
.two-column .image {
  flex: 1 1 45%;
}

.grid-2 {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}
.grid-2 > div {
  flex: 1 1 48%;
}

.checklist,
.crosslist,
.bullet-list,
.steps-list {
  list-style: none;
  padding-left: 0;
}
.checklist li::before {
  content: '✔️';
  margin-right: 0.5rem;
  color: var(--secondary);
}
.crosslist li::before {
  content: '⚠️';
  margin-right: 0.5rem;
  color: #d9534f;
}
.bullet-list li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.6rem;
}
.bullet-list li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--secondary);
  font-weight: bold;
}
.steps-list {
  counter-reset: step;
}
.steps-list li {
  counter-increment: step;
  margin-bottom: 0.8rem;
  padding-left: 1.8rem;
  position: relative;
}
.steps-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--secondary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* Category grid */
.category-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}
.category-item {
  flex: 1 1 calc(33% - 2rem);
  background: #ffffff;
  padding: 1.5rem;
  border: 1px solid #eee;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.category-item h3 {
  margin-bottom: 0.5rem;
  color: var(--primary);
}
.category-item p {
  font-size: 0.95rem;
}

/* Fact box */
.fact-box {
  margin-top: 2rem;
  text-align: center;
  background: #ffffff;
  padding: 1.5rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.fact-box h3 {
  margin-bottom: 0.5rem;
  color: var(--primary);
}
.fact-box button {
  margin-top: 0.8rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero {
    height: 70vh;
  }
  .hero-content h2 {
    font-size: 2rem;
  }
  .history-grid,
  .teams-wrapper,
  .players-grid,
  .interactive-grid {
    flex-direction: column;
  }
  .history-text,
  .history-image,
  .team-image,
  .team-list,
  .player-image,
  .player-spotlight,
  .facts-box,
  .timeline-box {
    flex: 1 1 100%;
  }
  .nav ul {
    flex-wrap: wrap;
    gap: 0.8rem;
  }
  .nav a {
    font-size: 0.9rem;
  }

  /* Stack two-column layouts on small screens */
  .two-column .text,
  .two-column .image {
    flex: 1 1 100%;
  }
  .grid-2 > div {
    flex: 1 1 100%;
  }
  .category-item {
    flex: 1 1 100%;
  }
}