/* ============================================
   Quainton FC - Static Mockup Stylesheet
   ============================================ */

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

:root {
  /* Brand */
  --primary: #004aa9;
  --primary-dark: #003d8a;
  --primary-darker: #00306b;
  --primary-darkest: #00234c;
  --primary-light: #3b82f6;
  --primary-lighter: #60a5fa;
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --accent: #f0b831;
  --accent-light: #f5cc5a;
  --dark: #1a1a2e;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --white: #ffffff;
  --red: #dc2626;
  --yellow-card: #facc15;
  --green: #16a34a;

  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;

  /* Spacing */
  --container: 1280px;
  --section-y: 5rem;
  --gap: 2rem;

  /* Transitions */
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--dark);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

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

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

/* --- Utility --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: var(--section-y) 0; }
.section--gray { background: var(--gray-50); }
.section--primary { background: var(--primary); color: var(--white); }
.section--dark { background: var(--dark); color: var(--white); }

.text-center { text-align: center; }
.text-white { color: var(--white); }
.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }
.text-muted { color: var(--gray-500); }
.text-sm { font-size: 0.875rem; }

.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 0.5rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn--primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn--primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
}

.btn--accent {
  background: var(--accent);
  color: var(--dark);
  border-color: var(--accent);
}
.btn--accent:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  color: var(--dark);
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn--outline:hover {
  background: var(--primary);
  color: var(--white);
}

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn--outline-white:hover {
  background: var(--white);
  color: var(--primary);
}

.btn--sm { padding: 0.5rem 1.25rem; font-size: 0.8125rem; }
.btn--lg { padding: 1rem 2.25rem; font-size: 1.0625rem; }

/* --- Header --- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}

.header__logo img { height: 4rem; width: auto; }

.header__nav { display: flex; align-items: center; gap: 0.25rem; list-style: none; }

.header__nav > li { position: relative; }

.header__nav a,
.header__nav button {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.875rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--white);
  border-radius: 0.375rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background var(--transition);
}

.header__nav a:hover,
.header__nav button:hover {
  background: var(--primary-dark);
  color: var(--white);
}

/* Dropdown */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--white);
  border-radius: 0.5rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  padding: 0.5rem 0;
  list-style: none;
  z-index: 110;
}

.dropdown-menu.active { display: block; }

.dropdown-menu a {
  display: block;
  padding: 0.625rem 1.25rem;
  color: var(--gray-700);
  font-size: 0.875rem;
}

.dropdown-menu a:hover {
  background: var(--gray-100);
  color: var(--primary);
}

/* Mobile hamburger */
.header__hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 0.5rem;
}

.header__hamburger svg { width: 1.5rem; height: 1.5rem; }

/* Mobile menu */
.mobile-menu {
  display: none;
  background: var(--primary);
  padding: 1rem 1.5rem 1.5rem;
}

.mobile-menu.active { display: block; }

.mobile-menu a {
  display: block;
  padding: 0.75rem 0.5rem;
  color: var(--white);
  font-size: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-menu a:hover { background: var(--primary-dark); }

.mobile-menu .sub-menu a {
  padding-left: 1.5rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.8);
}

/* --- Hero --- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary-darkest), var(--primary));
  color: var(--white);
  padding: 6rem 0;
  overflow: hidden;
}

.hero--large { padding: 8rem 0; }

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/background.png') center/cover no-repeat;
  opacity: 0.08;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero__content h1 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero__content p {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 2rem;
}

.hero__badge {
  display: inline-block;
  background: var(--accent);
  color: var(--dark);
  padding: 0.375rem 1rem;
  border-radius: 2rem;
  font-size: 0.8125rem;
  font-weight: 700;
  font-family: var(--font-heading);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Cards --- */
.card {
  background: var(--white);
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card__body { padding: 1.5rem; }
.card__body h3 { margin-bottom: 0.5rem; }
.card__body p { color: var(--gray-600); }

.card--bordered { border: 1px solid var(--gray-200); box-shadow: none; }
.card--bordered:hover { border-color: var(--primary); }

/* --- Match Report Card --- */
.match-card {
  background: var(--white);
  border-radius: 0.75rem;
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.match-card__header {
  background: var(--primary);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
}

.match-card__score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 1.5rem;
}

.match-card__team {
  text-align: center;
  font-weight: 600;
  font-family: var(--font-heading);
  flex: 1;
}

.match-card__team--home { text-align: right; }
.match-card__team--away { text-align: left; }

.match-card__result {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--primary);
  min-width: 6rem;
  text-align: center;
}

.match-card__details {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--gray-200);
  font-size: 0.875rem;
  color: var(--gray-600);
}

.match-card__details .goal { display: flex; align-items: center; gap: 0.375rem; margin-bottom: 0.25rem; }
.match-card__details .card-event { display: flex; align-items: center; gap: 0.375rem; margin-bottom: 0.25rem; }

.icon-goal { color: var(--green); }
.icon-yellow { display: inline-block; width: 0.75rem; height: 1rem; background: var(--yellow-card); border-radius: 1px; }
.icon-red { display: inline-block; width: 0.75rem; height: 1rem; background: var(--red); border-radius: 1px; }
.icon-sinbin { display: inline-block; width: 0.75rem; height: 1rem; background: var(--accent); border-radius: 1px; border: 1px solid #d97706; }

/* --- Table --- */
.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

th, td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}

th {
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

tbody tr:hover { background: var(--primary-50); }
tbody tr.highlight { background: var(--primary-100); font-weight: 600; }

td.num { text-align: center; }

/* --- Embed / iFrame --- */
.embed-wrap {
  background: var(--white);
  border-radius: 0.75rem;
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.embed-wrap__header {
  background: var(--primary);
  color: var(--white);
  padding: 1rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.125rem;
}

.embed-wrap iframe {
  width: 100%;
  min-height: 500px;
  border: none;
  display: block;
}

/* --- Sponsor Grid --- */
.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 2rem;
  align-items: center;
}

.sponsor-grid__item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: var(--white);
  border-radius: 0.5rem;
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
  min-height: 120px;
}

.sponsor-grid__item:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.sponsor-grid__item img { max-height: 60px; opacity: 0.8; transition: opacity var(--transition); }
.sponsor-grid__item:hover img { opacity: 1; }

/* --- Forms --- */
.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.375rem;
  color: var(--gray-700);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  font-family: var(--font-body);
  border: 1px solid var(--gray-300);
  border-radius: 0.5rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 74, 169, 0.15);
}

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

.form-group .hint { font-size: 0.8125rem; color: var(--gray-500); margin-top: 0.25rem; }

/* --- Badge / Tag --- */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.badge--primary { background: var(--primary-100); color: var(--primary); }
.badge--accent { background: #fef3c7; color: #92400e; }
.badge--green { background: #dcfce7; color: #166534; }
.badge--red { background: #fee2e2; color: #991b1b; }

/* --- Profile / Roster Card --- */
.profile-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--white);
  border-radius: 0.75rem;
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.profile-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.profile-card__avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  background: var(--primary-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-heading);
}

.profile-card__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.profile-card__role {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.profile-card__qualifications {
  font-size: 0.8125rem;
  color: var(--gray-500);
}

/* --- Policy Card --- */
.policy-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--white);
  border-radius: 0.75rem;
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.policy-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.policy-card__icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  background: var(--primary-100);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.policy-card__icon svg { width: 1.5rem; height: 1.5rem; }

/* --- Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-card__image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 0.5rem 0.5rem 0 0;
}

/* --- Safeguarding Alert --- */
.alert {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
}

.alert--info {
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  color: var(--primary-dark);
}

.alert--warning {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  color: #92400e;
}

.alert--danger {
  background: #fef2f2;
  border: 1px solid #fee2e2;
  color: #991b1b;
}

.alert__icon { flex-shrink: 0; margin-top: 0.125rem; }
.alert__icon svg { width: 1.25rem; height: 1.25rem; }

/* --- Footer --- */
.footer {
  background: var(--primary-darkest);
  color: var(--white);
  padding: 3rem 0 0;
}

.footer h3 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1rem;
  font-family: var(--font-heading);
}

.footer a { color: rgba(255,255,255,0.75); }
.footer a:hover { color: var(--white); }

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer__about p {
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  line-height: 1.7;
}

.footer__links {
  list-style: none;
  font-size: 0.875rem;
}

.footer__links li { margin-bottom: 0.5rem; }

.footer__grassroots {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 0;
  margin-top: 3rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer__grassroots img { height: 48px; opacity: 0.85; }
.footer__grassroots p { font-size: 0.8125rem; color: rgba(255,255,255,0.6); }

.footer__bottom {
  text-align: center;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
}

/* --- Section Headers --- */
.section-header {
  margin-bottom: 3rem;
}

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

.section-header p {
  color: var(--gray-600);
  font-size: 1.0625rem;
  max-width: 600px;
}

.section-header--center {
  text-align: center;
}

.section-header--center p { margin: 0 auto; }

.section-header__accent {
  display: block;
  width: 3rem;
  height: 3px;
  background: var(--accent);
  margin-bottom: 1rem;
}

.section-header--center .section-header__accent { margin: 0 auto 1rem; }

/* --- Page Header (inner pages) --- */
.page-header {
  background: linear-gradient(135deg, var(--primary-darkest), var(--primary));
  color: var(--white);
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/background.png') center/cover no-repeat;
  opacity: 0.06;
}

.page-header__content { position: relative; z-index: 1; }
.page-header h1 { color: var(--white); font-size: 2.25rem; margin-bottom: 0.5rem; }
.page-header p { color: rgba(255,255,255,0.8); font-size: 1.0625rem; }

.breadcrumbs {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.75rem;
}

.breadcrumbs a { color: rgba(255,255,255,0.8); }
.breadcrumbs a:hover { color: var(--white); }
.breadcrumbs span { margin: 0 0.5rem; }

/* --- Tabs --- */
.tabs { display: flex; gap: 0.25rem; border-bottom: 2px solid var(--gray-200); margin-bottom: 2rem; }

.tabs button {
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--font-heading);
  background: none;
  border: none;
  color: var(--gray-500);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
}

.tabs button:hover { color: var(--primary); }
.tabs button.active { color: var(--primary); border-bottom-color: var(--primary); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* --- Sponsor Tier --- */
.sponsor-tier { margin-bottom: 3rem; }
.sponsor-tier__label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-400);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
}

/* --- Brand Assets --- */
.color-swatch {
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

.color-swatch__preview {
  height: 100px;
}

.color-swatch__info {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
}

.color-swatch__info strong { display: block; margin-bottom: 0.25rem; }
.color-swatch__info code { color: var(--gray-600); font-size: 0.8125rem; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root {
    --section-y: 3rem;
  }

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

  .header__nav { display: none; }
  .header__hamburger { display: flex; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }

  .hero__content h1 { font-size: 2.25rem; }
  .hero { padding: 4rem 0; }
  .hero--large { padding: 5rem 0; }

  .match-card__score { gap: 1rem; }
  .match-card__result { font-size: 1.75rem; min-width: 4rem; }

  .tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  .footer__grassroots { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .sponsor-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: 1fr; }
}

/* Under-construction notice */
.construction-banner { background: var(--accent); color: var(--dark); text-align: center; font-size: 0.875rem; font-weight: 600; padding: 0.5rem 1rem; }
