/* DanceFind — main.css */
/* Minimal, fast-loading, readable. No framework. */

:root {
  --color-bg: #ffffff;
  --color-text: #1a1a1a;
  --color-muted: #666666;
  --color-link: #1a5276;
  --color-link-hover: #0e3a54;
  --color-border: #e0e0e0;
  --color-surface: #f8f8f8;
  --color-accent: #2980b9;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  --max-width: 1120px;
}

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

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  font-size: 16px;
}

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

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

a:hover {
  color: var(--color-link-hover);
  text-decoration: underline;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
}

.site-logo:hover {
  text-decoration: none;
}

.site-nav a {
  margin-left: 1.5rem;
  font-size: 0.9rem;
}

/* Breadcrumbs */

.breadcrumbs {
  background: var(--color-surface);
  padding: 0.5rem 0;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.breadcrumb-sep {
  margin: 0 0.35rem;
}

/* Main */

main {
  padding: 2rem 0 3rem;
}

h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

p {
  margin-bottom: 0.75rem;
}

ul {
  margin-left: 1.25rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.3rem;
}

/* Hero */

.hero {
  margin-bottom: 2rem;
}

.hero p {
  color: var(--color-muted);
  font-size: 1.05rem;
}

/* Category filters */

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.category-filter {
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-bg);
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--color-text);
  transition: background 0.15s, border-color 0.15s;
}

.category-filter:hover,
.category-filter.active {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

/* School card grid */

.school-grid-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

/* School cards */

.school-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  background: var(--color-bg);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.school-card:hover {
  border-color: #d8b4fe;
  box-shadow: 0 2px 8px rgba(107, 33, 168, 0.06);
}

.school-card-location {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: 0.5rem;
}

.school-card-desc {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.school-card-styles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin-left: 0;
  margin-bottom: 0.5rem;
}

.school-card-styles li {
  background: #f3eaff;
  color: #6b21a8;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
}

.school-card-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Card action buttons */

.school-card-actions {
  margin-top: auto;
  padding-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.card-btn {
  display: block;
  width: 100%;
  padding: 0.55rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

.card-btn:hover {
  background: var(--color-surface);
  border-color: #d8b4fe;
  text-decoration: none;
}

.card-btn-primary {
  background: #6b21a8;
  color: #fff;
  border-color: #6b21a8;
}

.card-btn-primary:hover {
  background: #581c87;
  border-color: #581c87;
  color: #fff;
}

/* Tags */

.tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  background: #f3eaff;
  color: #6b21a8;
}

.tag-trial {
  background: #e8f5e9;
  color: #2e7d32;
}

/* City hub page */

.city-intro {
  color: var(--color-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.suburb-nav {
  margin-bottom: 2rem;
}

.suburb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin-left: 0;
}

.suburb-list li {
  margin-bottom: 0;
}

.suburb-list li a {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.9rem;
  transition: background 0.15s, border-color 0.15s;
}

.suburb-list li a:hover {
  background: #6b21a8;
  color: #fff;
  border-color: #6b21a8;
  text-decoration: none;
}

.suburb-count {
  font-size: 0.8rem;
  color: var(--color-muted);
}

/* School detail — redesigned card layout */

.school-detail {
  padding-bottom: 1rem;
}

/* Hero header */

.school-hero {
  margin-bottom: 2rem;
}

.school-name {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}

.school-detail .school-location {
  color: var(--color-muted);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.school-tagline {
  color: var(--color-text);
  font-size: 1.05rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

/* Purple style tags */

.style-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0 0 1rem 0;
  padding: 0;
}

.style-tag {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: #f3eaff;
  color: #6b21a8;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* Quick-fact badges */

.quick-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.quick-badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--color-muted);
  font-weight: 500;
}

/* Two-column grid */

.school-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.5rem;
  align-items: start;
}

/* Cards */

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  color: var(--color-text);
}

/* Info table inside card */

.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0;
}

.info-table th,
.info-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  font-size: 0.95rem;
}

.info-table tr:last-child th,
.info-table tr:last-child td {
  border-bottom: none;
}

.info-table th {
  width: 120px;
  color: var(--color-muted);
  font-weight: 500;
}

.trial-yes {
  color: #2e7d32;
  font-weight: 500;
}

/* Description text */

.school-description-text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-text);
  margin-bottom: 0;
}

/* Sidebar cards */

.school-sidebar .card {
  margin-bottom: 1.25rem;
}

/* Highlights card */

.card-highlight {
  background: #faf8ff;
  border-color: #e8dff5;
}

.highlight-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.highlight-list li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.4rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--color-text);
  margin-bottom: 0.15rem;
}

.highlight-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: #6b21a8;
  font-size: 0.75rem;
  top: 0.5rem;
}

/* Contact card */

.contact-btn {
  display: block;
  width: 100%;
  padding: 0.65rem 1rem;
  margin-bottom: 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-link);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

.contact-btn:hover {
  background: var(--color-surface);
  border-color: var(--color-accent);
  text-decoration: none;
}

.contact-btn-primary {
  background: #6b21a8;
  color: #fff;
  border-color: #6b21a8;
}

.contact-btn-primary:hover {
  background: #581c87;
  border-color: #581c87;
  color: #fff;
}

.contact-btn:last-child {
  margin-bottom: 0;
}

/* Browse-more card */

.browse-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.browse-links li {
  margin-bottom: 0.5rem;
}

.browse-links li:last-child {
  margin-bottom: 0;
}

.browse-links a {
  font-size: 0.9rem;
}

/* Location nav (used on non-school pages) */

.location-nav {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 1.5rem 0;
  color: var(--color-muted);
  font-size: 0.85rem;
  text-align: center;
}

/* Responsive */

@media (max-width: 960px) {
  .school-grid-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .school-grid {
    grid-template-columns: 1fr;
  }
  .school-name {
    font-size: 1.75rem;
  }
  .card {
    padding: 1.25rem;
  }
}

@media (max-width: 600px) {
  h1 { font-size: 1.4rem; }
  .school-name { font-size: 1.5rem; }
  .school-grid-list {
    grid-template-columns: 1fr;
  }
  .info-table th { width: 100px; }
}
