/* ==========================================================================
   Thistle & Shamrock Dance Academy — custom theme
   Framework: Bulma (CDN). This file = brand colors, typography, small tweaks.
   Palette: thistle purple, Highland green, antique gold.
   ========================================================================== */

:root {
  --thistle: #4a1d5e;
  --thistle-light: #6b3185;
  --thistle-dark: #320d44;
  --highland: #1f6b46;
  --highland-light: #2c8a5b;
  --gold: #c8a13a;
  --gold-light: #ddbb5e;
  --parchment: #faf7f2;
  --parchment-2: #f2ece1;
  --ink: #241a2b;
  --ink-soft: #5a4f63;
  --line: #e3dccf;
  --shadow-sm: 0 4px 16px rgba(50, 13, 68, 0.08);
  --shadow-md: 0 14px 40px rgba(50, 13, 68, 0.14);
  --radius: 14px;
  --radius-lg: 22px;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  color: var(--ink);
  background: var(--parchment);
  line-height: 1.75;
  font-size: 1.04rem;
}
h1, h2, h3, h4, .title, .subtitle.is-heading {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--thistle);
  letter-spacing: -0.01em;
  line-height: 1.18;
}
h2 { font-size: 2rem; margin-top: 2.6rem; margin-bottom: 1rem; }
h3 { font-size: 1.4rem; margin-top: 1.8rem; margin-bottom: 0.6rem; color: var(--highland); }
a { color: var(--highland-light); transition: color .18s ease; }
a:hover { color: var(--thistle); }
img { max-width: 100%; height: auto; display: block; }
strong { color: var(--thistle-dark); }

.container { max-width: 1120px; }

/* decorative thistle divider */
.rule-thistle {
  width: 90px; height: 4px; border: 0; margin: 1.4rem 0 1.8rem;
  background: linear-gradient(90deg, var(--gold), var(--thistle-light));
  border-radius: 4px;
}
.rule-center { margin-left: auto; margin-right: auto; }

/* ---------- Navbar ---------- */
.navbar.ts-nav {
  background: var(--thistle-dark);
  box-shadow: 0 2px 18px rgba(50,13,68,.25);
  min-height: 4rem;
}
.navbar.ts-nav .navbar-brand .brand-mark {
  display: flex; align-items: center; gap: .6rem;
  font-family: 'Playfair Display', serif; font-weight: 700;
  color: #fff; font-size: 1.28rem; padding: .4rem .9rem;
}
.navbar.ts-nav .brand-mark .thistle-em { color: var(--gold-light); }
.navbar.ts-nav .brand-mark .crest {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(140deg, var(--thistle-light), var(--highland));
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--gold-light); font-size: 1.1rem; box-shadow: inset 0 0 0 2px rgba(255,255,255,.18);
}
.navbar.ts-nav .navbar-item, .navbar.ts-nav .navbar-link {
  color: rgba(255,255,255,.86); font-family: 'Lora', serif; font-weight: 600; font-size: .98rem;
}
.navbar.ts-nav a.navbar-item:hover, .navbar.ts-nav a.navbar-item.is-active,
.navbar.ts-nav .navbar-link:hover {
  background: rgba(255,255,255,.08); color: #fff;
}
.navbar.ts-nav .navbar-item.is-active { box-shadow: inset 0 -3px 0 var(--gold); }
.navbar.ts-nav .navbar-burger { color: #fff; }
.navbar.ts-nav .navbar-dropdown {
  background: var(--thistle-dark); border-top: 3px solid var(--gold);
}
.navbar.ts-nav .navbar-dropdown a.navbar-item { color: rgba(255,255,255,.85); padding-right: 2.5rem; }
.navbar.ts-nav .navbar-dropdown a.navbar-item:hover { background: rgba(255,255,255,.1); color:#fff; }
@media (max-width: 1023px) {
  .navbar.ts-nav .navbar-menu { background: var(--thistle-dark); box-shadow: var(--shadow-md); }
}

/* ---------- Hero ---------- */
.ts-hero { position: relative; color: #fff; overflow: hidden; }
.ts-hero .hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.ts-hero .hero-veil {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(120deg, rgba(50,13,68,.86) 0%, rgba(50,13,68,.55) 55%, rgba(31,107,70,.45) 100%);
}
.ts-hero .hero-inner { position: relative; z-index: 2; padding: 6rem 0; }
.ts-hero.is-tall .hero-inner { padding: 8rem 0; }
.ts-hero h1 { color: #fff; font-size: clamp(2.3rem, 5vw, 3.8rem); }
.ts-hero .eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .22em;
  font-size: .78rem; font-weight: 700; color: var(--gold-light);
  background: rgba(0,0,0,.22); padding: .4rem .9rem; border-radius: 30px;
  margin-bottom: 1.2rem; font-family: 'Lora', serif;
}
.ts-hero .lead { font-size: 1.22rem; max-width: 640px; color: rgba(255,255,255,.94); }
.ts-hero .hero-actions { margin-top: 1.8rem; display: flex; gap: .9rem; flex-wrap: wrap; }

/* page sub-hero (interior pages) */
.page-head {
  background: linear-gradient(120deg, var(--thistle-dark), var(--thistle));
  color: #fff; padding: 3.4rem 0 2.8rem;
}
.page-head h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .4rem; }
.page-head .crumb { color: var(--gold-light); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; }

/* ---------- Buttons ---------- */
.btn-primary, a.btn-primary, button.btn-primary {
  display: inline-block; background: var(--gold); color: var(--thistle-dark);
  font-family: 'Lora', serif; font-weight: 700; border: 0;
  padding: .8rem 1.7rem; border-radius: 40px; cursor: pointer;
  box-shadow: var(--shadow-sm); transition: transform .16s ease, background .16s ease;
  text-decoration: none; font-size: 1rem;
}
.btn-primary:hover { background: var(--gold-light); color: var(--thistle-dark); transform: translateY(-2px); }
.btn-ghost, a.btn-ghost {
  display: inline-block; background: transparent; color: #fff;
  border: 2px solid rgba(255,255,255,.7); padding: .72rem 1.6rem;
  border-radius: 40px; font-family: 'Lora', serif; font-weight: 600; text-decoration: none;
  transition: background .16s ease, border-color .16s ease;
}
.btn-ghost:hover { background: rgba(255,255,255,.14); color:#fff; border-color:#fff; }

/* ---------- Content sections ---------- */
.section-prose { padding: 3.4rem 0; }
.prose p { margin-bottom: 1.1rem; }
.prose ul { margin: 1rem 0 1.4rem 1.4rem; }
.prose li { margin-bottom: .5rem; }
.prose .lead {
  font-size: 1.22rem; color: var(--ink-soft); font-style: italic;
  border-left: 4px solid var(--gold); padding-left: 1.1rem; margin-bottom: 1.8rem;
}

.bg-parchment { background: var(--parchment-2); }
.bg-thistle { background: var(--thistle-dark); color: #fff; }
.bg-thistle h2, .bg-thistle h3 { color: #fff; }
.bg-thistle .lead { color: rgba(255,255,255,.9); }

/* figure / inline image */
.figure-card {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md); background: #fff;
}
.figure-card img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.figure-cap { font-size: .85rem; color: var(--ink-soft); padding: .7rem 1rem; font-style: italic; }

/* feature cards */
.feature-card {
  background: #fff; border-radius: var(--radius); padding: 1.7rem 1.6rem;
  box-shadow: var(--shadow-sm); border-top: 4px solid var(--gold); height: 100%;
}
.feature-card .ico { font-size: 1.8rem; color: var(--highland); margin-bottom: .6rem; }
.feature-card h3 { margin-top: 0; }

/* teacher / bio cards */
.bio-card {
  background: #fff; border-radius: var(--radius); padding: 1.6rem 1.6rem;
  box-shadow: var(--shadow-sm); border-left: 5px solid var(--thistle-light); height: 100%;
}
.bio-card h3 { margin-top: 0; color: var(--thistle); }
.bio-role { color: var(--gold); font-weight: 700; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- Schedule table ---------- */
.schedule-table-wrap { overflow-x: auto; margin: 1.4rem 0 2rem; }
table.schedule-table {
  width: 100%; border-collapse: collapse; background: #fff;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
}
table.schedule-table thead th {
  background: var(--thistle); color: #fff; text-align: left;
  padding: .85rem 1rem; font-family: 'Playfair Display', serif; font-weight: 600; font-size: .98rem;
}
table.schedule-table td { padding: .8rem 1rem; border-top: 1px solid var(--line); }
table.schedule-table tbody tr:nth-child(even) { background: var(--parchment-2); }

/* ---------- Contact form ---------- */
.contact-form { max-width: 620px; margin-top: 1.4rem; }
.contact-form .form-row { margin-bottom: 1.1rem; display: flex; flex-direction: column; }
.contact-form label { font-weight: 700; color: var(--thistle); margin-bottom: .35rem; font-size: .95rem; }
.contact-form input, .contact-form select, .contact-form textarea {
  font-family: 'Lora', serif; font-size: 1rem; padding: .7rem .9rem;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--highland-light); box-shadow: 0 0 0 3px rgba(44,138,91,.15);
}

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--highland), var(--highland-light));
  color: #fff; padding: 3rem 0; text-align: center;
}
.cta-band h2 { color: #fff; margin-top: 0; }
.cta-band p { max-width: 620px; margin: 0 auto 1.4rem; color: rgba(255,255,255,.95); }

/* ---------- Footer ---------- */
.ts-footer {
  background: var(--thistle-dark); color: rgba(255,255,255,.78);
  padding: 3rem 0 1.6rem; font-size: .95rem;
}
.ts-footer h4 { color: var(--gold-light); font-family: 'Playfair Display', serif; margin-bottom: .8rem; font-size: 1.05rem; }
.ts-footer a { color: rgba(255,255,255,.78); text-decoration: none; }
.ts-footer a:hover { color: var(--gold-light); }
.ts-footer .foot-links li { margin-bottom: .45rem; list-style: none; }
.ts-footer .foot-brand { font-family: 'Playfair Display', serif; color: #fff; font-size: 1.25rem; }
.ts-footer .foot-bottom {
  border-top: 1px solid rgba(255,255,255,.14); margin-top: 2rem; padding-top: 1.2rem;
  text-align: center; font-size: .85rem; color: rgba(255,255,255,.6);
}

/* 404 */
.error-wrap { text-align: center; padding: 6rem 1rem; }
.error-wrap .big { font-family: 'Playfair Display', serif; font-size: 6rem; color: var(--thistle-light); line-height: 1; }

/* utilities */
.mt-section { margin-top: 2.6rem; }
.text-gold { color: var(--gold); }
.eyebrow-dark {
  display: inline-block; text-transform: uppercase; letter-spacing: .2em;
  font-size: .76rem; font-weight: 700; color: var(--highland);
  margin-bottom: .6rem; font-family: 'Lora', serif;
}
