/* ==========================================================================
   North York Tutoring Centre – Single-page site
   Palette (marketing + psychology informed):
   - Warm Canadian red #B91C1C : energy + trust
   - Soft gold #C9A227 : quality, family warmth
   - Cream #FBF7F0 : calm, inviting, reduces visual stress
   - Deep charcoal #1F2937 : readable text
   - Soft border #E8DFD0
   Typography: Cormorant Garamond (headings – classic, educational)
               Source Sans 3 (body – clear, modern, accessible)
   ========================================================================== */

:root {
  --red: #B91C1C;
  --red-dark: #991B1B;
  --gold: #C9A227;
  --gold-soft: #E8D48B;
  --cream: #FBF7F0;
  --cream-dark: #F3EDE3;
  --text: #1F2937;
  --text-muted: #4B5563;
  --border: #E8DFD0;
  --white: #FFFFFF;
  --shadow: 0 4px 20px rgba(31, 41, 55, 0.06);
  --radius: 12px;
  --header-h: 72px;
  --font-heading: "Cormorant Garamond", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--red);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--red-dark);
}

ul {
  list-style: none;
}

.container {
  width: min(1100px, 92%);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--red);
  color: white;
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  border-radius: 6px;
}

.skip-link:focus {
  top: 16px;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 247, 240, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
}

.logo-link:hover {
  color: var(--text);
}

.logo-img {
  width: 42px;
  height: auto;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--red);
}

.logo-sub {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: 0.25s;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.main-nav a {
  font-weight: 550;
  font-size: 0.95rem;
  color: var(--text);
}

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

.nav-cta {
  background: var(--red);
  color: white !important;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
}

.nav-cta:hover {
  background: var(--red-dark);
  color: white !important;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--red);
  color: white;
}

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

.btn-secondary {
  background: transparent;
  color: var(--red);
  border-color: var(--red);
}

.btn-secondary:hover {
  background: var(--red);
  color: white;
}

.btn-full {
  width: 100%;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  padding: 3.5rem 0 4.5rem;
  background: linear-gradient(165deg, var(--cream) 0%, var(--cream-dark) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 4.5vw, 3.15rem);
  font-weight: 700;
  line-height: 1.18;
  color: var(--text);
  margin-bottom: 1.15rem;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 36ch;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-trust li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-trust li::before {
  content: "✓";
  color: var(--red);
  font-weight: 700;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-logo {
  width: min(300px, 100%);
  height: auto;
  filter: drop-shadow(0 12px 28px rgba(185, 28, 28, 0.12));
}

/* --------------------------------------------------------------------------
   Sections common
   -------------------------------------------------------------------------- */
.section {
  padding: 4.5rem 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.85rem;
}

.section-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */
.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.about-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
}

.about-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--red);
  margin-bottom: 0.65rem;
}

.about-card p {
  font-size: 0.98rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Subjects
   -------------------------------------------------------------------------- */
.subjects {
  background: var(--cream);
}

.subjects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.subject-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.35rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow);
}

.subject-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(31, 41, 55, 0.09);
}

.subject-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.subject-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.subject-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */
.pricing {
  background: var(--white);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.price-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.price-card.featured {
  background: linear-gradient(160deg, #fff 0%, var(--cream) 100%);
  border-color: var(--gold);
  box-shadow: 0 8px 28px rgba(201, 162, 39, 0.15);
}

.price-card h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.price {
  margin-bottom: 0.5rem;
}

.price .amount {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--red);
}

.price .period {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.price-note {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.policies {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 2.25rem;
  max-width: 720px;
  margin: 0 auto;
}

.policies h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.policies ul {
  margin-bottom: 1.25rem;
}

.policies li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.55rem;
  color: var(--text-muted);
}

.policies li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

.policy-note {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: italic;
}

/* --------------------------------------------------------------------------
   Hours & Location
   -------------------------------------------------------------------------- */
.hours-location {
  background: var(--cream);
}

.hours-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: start;
}

.hours-card,
.location-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.hours-card h3,
.location-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  margin-bottom: 1.15rem;
  color: var(--red);
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.98rem;
}

.hours-list li:last-child {
  border-bottom: none;
}

.hours-list strong {
  color: var(--text);
}

.hours-list span {
  color: var(--text-muted);
  text-align: right;
}

.hours-note {
  margin-top: 1.15rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.location-card address {
  font-style: normal;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.location-note {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.map-embed {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.map-embed iframe {
  display: block;
  width: 100%;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact {
  background: var(--white);
}

.contact-simple {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
  max-width: 860px;
  margin: 0 auto;
}

.contact-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.contact-label {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

.contact-email {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  font-weight: 700;
  color: var(--red);
  word-break: break-all;
  margin-bottom: 1rem;
  transition: color 0.2s;
}

.contact-email:hover {
  color: var(--red-dark);
}

.contact-hint {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 32ch;
  margin: 0 auto;
}

.contact-benefits h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.contact-points {
  margin-bottom: 0;
}

.contact-points li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.6rem;
  color: var(--text-muted);
}

.contact-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--text);
  color: #E5E7EB;
  padding: 2.75rem 0 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.footer-brand {
  display: flex;
  gap: 0.85rem;
  align-items: center;
}

.footer-logo {
  width: 44px;
  height: auto;
  filter: brightness(1.1);
}

.footer-brand strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: white;
}

.footer-brand p {
  font-size: 0.85rem;
  color: #9CA3AF;
}

.footer-info p {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
  color: #D1D5DB;
}

.footer-legal p {
  font-size: 0.9rem;
  color: #9CA3AF;
}

.footer-small {
  margin-top: 0.35rem;
  font-size: 0.8rem !important;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-lead {
    max-width: 100%;
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-trust {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .hero-logo {
    width: 200px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .subjects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin-inline: auto;
  }

  .hours-grid {
    grid-template-columns: 1fr;
  }

  .contact-simple {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
  }

  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0.85rem;
  }

  .nav-cta {
    display: inline-block;
    text-align: center;
  }

  .subjects-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 2.5rem 0 3.5rem;
  }

  .section {
    padding: 3.25rem 0;
  }
}

/* Focus styles for accessibility */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
