/*
Theme Name: The Learning Shop
Theme URI: https://learningshopinc.com
Author: Go 4 It Media (for Panda Technology Group, Inc.)
Description: Custom theme for The Learning Shop, Inc. Menu-driven navigation, editable content, and reusable block patterns so staff can update the site without touching code.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: learningshop
*/

/* ===================================================
   The Learning Shop — design tokens & styles
   Palette: fire engine red (brand), warm paper white, ink navy, chalk gold accent
=================================================== */

:root {
  --brick: #ce2029;
  --brick-dark: #a01620;
  --brick-tint: #fbebec;
  --gold: #e2a63a;
  --ink: #232a36;
  --ink-soft: #55606f;
  --paper: #fbf8f3;
  --white: #ffffff;
  --line: #e7ddd2;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;

  --radius: 10px;
  --shadow: 0 10px 30px -14px rgba(35, 42, 54, 0.25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: inherit; }

.ls-container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  background: var(--ink);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 6px;
  z-index: 100;
}
.skip-link:focus { left: 24px; top: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Top strip */
.ls-top-strip {
  background: var(--ink);
  color: var(--white);
  font-size: 0.85rem;
}
.ls-top-strip .ls-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 24px;
  flex-wrap: wrap;
  gap: 6px;
}
.ls-top-strip a { color: var(--white); text-decoration: none; }
.ls-top-strip a:hover { color: var(--gold); }

/* Header */
.ls-site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.ls-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 20px;
  max-width: 1080px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.ls-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.ls-brand svg, .ls-brand img.custom-logo {
  width: 44px;
  height: auto;
  flex-shrink: 0;
  border-radius: 0;
}
.ls-brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--ink);
}

/* Nav menu (Appearance > Menus controls this content) */
.ls-main-nav ul {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.ls-main-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink-soft);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.ls-main-nav a:hover,
.ls-main-nav .current-menu-item > a {
  color: var(--brick);
  border-bottom-color: var(--brick);
}

.ls-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none !important;
  padding: 12px 22px;
  border-radius: 999px;
  border: 2px solid transparent;
}
.ls-btn-primary { background: var(--brick); color: var(--white) !important; }
.ls-btn-primary:hover { background: var(--brick-dark); }
.ls-btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink) !important; }
.ls-btn-ghost:hover { background: var(--ink); color: var(--white) !important; }
.ls-btn-small { padding: 9px 16px; font-size: 0.88rem; }

/* Page content wrapper (block editor content lives here) */
.ls-page-content {
  max-width: 1080px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}
.ls-page-content h1, .ls-page-content h2, .ls-page-content h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.ls-page-content > h1:first-child { font-size: clamp(2rem, 4vw, 2.8rem); margin-top:0; }

/* Hero pattern */
.ls-hero {
  background: radial-gradient(1100px 480px at 82% -10%, var(--brick-tint), transparent 60%), var(--paper);
  padding: 56px 40px;
  border-radius: var(--radius);
  margin-bottom: 8px;
}
.ls-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brick);
  margin-bottom: 10px;
}
.ls-hero h1 { font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.1; margin: 0 0 16px; }
.ls-hero p { font-size: 1.1rem; color: var(--ink-soft); max-width: 52ch; }

/* Credentials strip */
.ls-credentials {
  background: var(--ink);
  color: var(--white);
  padding: 26px 32px;
  border-radius: var(--radius);
}
.ls-credentials .wp-block-column { color: var(--white); }
.ls-credentials h3 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.05rem;
  margin: 0 0 4px;
}
.ls-credentials p { color: #c9cfd8; margin: 0; font-size: 0.88rem; }

/* Services grid */
.ls-services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.ls-service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
}
.ls-service-card:hover { box-shadow: var(--shadow); border-color: var(--brick); }
.ls-service-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 6px;
}
.ls-service-card p { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }

/* Why-us */
.ls-why {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 48px 32px;
  border-radius: var(--radius);
}
.ls-why h3 { font-family: var(--font-display); font-size: 1.1rem; margin: 0 0 8px; }
.ls-why p { color: var(--ink-soft); margin: 0; font-size: 0.96rem; }

/* Contact band */
.ls-contact {
  background: var(--brick);
  color: var(--white);
  padding: 48px 40px;
  border-radius: var(--radius);
}
.ls-contact h2 { font-family: var(--font-display); color: var(--white); margin: 0 0 12px; }
.ls-contact p { color: #f3ded9; margin: 0 0 20px; }
.ls-contact-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  padding: 24px;
}
.ls-contact-card p { color: var(--white); margin: 0 0 10px; font-weight: 600; }
.ls-contact-card a { color: var(--white); }

/* Staff card */
.staff-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.staff-card .wp-block-image img,
.staff-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--brick-tint);
}
.staff-name { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; margin: 0 0 10px; }
.staff-titles { list-style: none; margin: 0 0 14px; padding: 0; }
.staff-titles li { font-size: 0.95rem; color: var(--brick); font-weight: 600; margin-bottom: 4px; }
.staff-bio { color: var(--ink-soft); margin: 0; font-size: 0.98rem; }

/* Footer */
.ls-site-footer {
  background: var(--ink);
  color: #c9cfd8;
  padding: 40px 0 28px;
  font-size: 0.9rem;
}
.ls-footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}
.ls-footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}
.ls-footer-brand svg { width: 30px; height: auto; }
.ls-footer-nav ul { display: flex; gap: 20px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.ls-footer-nav a { color: #c9cfd8; text-decoration: none; }
.ls-footer-nav a:hover { color: var(--gold); }
.ls-footer-bottom {
  max-width: 1080px;
  margin: 28px auto 0;
  padding: 20px 24px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  color: #8b93a1;
  font-size: 0.82rem;
}

@media (max-width: 860px) {
  .ls-main-nav { display: none; }
  .ls-services { grid-template-columns: repeat(2, 1fr); }
  .ls-credentials .wp-block-columns,
  .ls-why .wp-block-columns { flex-wrap: wrap; }
  .staff-card.wp-block-group { flex-direction: column; text-align: center; }
}
@media (max-width: 560px) {
  .ls-services { grid-template-columns: 1fr; }
  .ls-footer-inner { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
