/* Wedding Dance Lessons UK — components.css
   Shared page components: price cards, trio columns, mosaics, dark block, region grid, FAQ, contact.
   Requires base.css. Used by the homepage and city/supporting pages. */

/* ---------- doodle placements (shared) ---------- */
.hero-copy, #prices .sec-head, .dark-copy, .faq-layout > div:first-child, .form-card { position: relative; }
.hero h1 em { position: relative; display: inline-block; }
.squig-under { left: -3%; bottom: -0.16em; width: 106%; color: var(--ink); stroke-width: 3; }
.squig-hero { right: clamp(1rem, 6%, 3rem); bottom: 2.6rem; width: clamp(70px, 8vw, 118px); transform: rotate(-6deg); }
.squig-prices { right: 3%; bottom: -2.6rem; width: 64px; transform: rotate(14deg); z-index: 1; }
.squig-dark { right: var(--pad); top: 2.4rem; width: 64px; color: var(--accent); }
.squig-faq { left: 0; bottom: -5rem; width: 128px; transform: rotate(-4deg); }
.squig-form { right: 1.6rem; top: 1rem; width: 84px; }
.foot-panel:first-child { position: relative; }
.squig-foot { right: 2.5rem; top: 38%; width: 110px; color: var(--accent); transform: rotate(-8deg); }

/* ---------- hero ---------- */
.hero-copy { display: flex; flex-direction: column; min-height: 100%; }
.hero h1 { max-width: 15ch; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .lede { max-width: 50ch; margin-top: 1.5rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 2rem; }
.scroll-hint { margin-top: auto; padding-top: 3rem; line-height: 1.5; }
.hero-media { display: flex; flex-direction: column; gap: 1.2rem; }
.media-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.hero-media img { border-radius: var(--radius); border: 1px solid var(--line); width: 100%; }

.facts-strip { display: grid; grid-template-columns: repeat(3, 1fr); }
.facts-strip > div { padding: 1.6rem var(--pad); display: flex; align-items: baseline; gap: 0.8rem; }
.facts-strip > div + div { border-left: 1px solid var(--line); }
.facts-strip b { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; line-height: 1; }
.facts-strip span { font-size: 0.9rem; color: var(--ink-2); }

/* ---------- prices ---------- */
.price-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.9rem; }
.price-card { grid-column: span 2; background: var(--sheet); border: 1px solid var(--line); border-radius: 12px; padding: 1.8rem 1.6rem; display: flex; flex-direction: column; position: relative; }
.price-card:nth-child(n+4) { grid-column: span 3; }
.price-card .p-name { display: block; }
.price-card .p-amount { font-family: var(--serif); font-size: 2.8rem; line-height: 1; margin: 1rem 0 0.45rem; display: block; }
.price-card .p-lessons { font-weight: 500; font-size: 0.92rem; color: var(--accent); }
.price-card ul { list-style: none; margin: 1.2rem 0 1.5rem; flex: 1; }
.price-card li { font-size: 0.92rem; color: var(--ink-2); padding: 0.5rem 0 0.5rem 1.2rem; position: relative; border-top: 1px solid var(--line); }
.price-card li::before { content: '\2013'; position: absolute; left: 0; color: var(--accent); }
.price-card .btn { width: 100%; }
.price-card.featured { background: var(--dark); border-color: var(--dark); color: #fff; }
.price-card.featured li { color: var(--dark-muted); border-top-color: var(--dark-line); }
.price-card.featured .label { color: var(--dark-muted); }
.price-card.featured .btn { background: #fff; color: var(--ink); border-color: #fff; }
.price-card.featured .btn::after { background: var(--sheet-soft); }
.price-card.featured .btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.price-flag { position: absolute; top: 1.4rem; right: 1.4rem; background: var(--accent); color: #fff; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.32rem 0.6rem; border-radius: 6px; }
.price-note { margin-top: 1.4rem; font-size: 0.92rem; color: var(--ink-2); max-width: var(--measure); }

/* ---------- trio + mosaic ---------- */
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); }
.cols-3 > div { padding: 0.4rem 2rem 0.4rem 0; }
.cols-3 > div + div { border-left: 1px solid var(--line); padding-left: 2rem; }
.cols-3 h3 { margin-bottom: 0.6rem; }
.cols-3 p { font-size: 0.95rem; color: var(--ink-2); }
.mosaic { display: grid; grid-template-columns: 1.45fr 1fr; gap: 0.6rem; padding: 0.6rem; }
.mosaic img { width: 100%; height: clamp(240px, 32vw, 460px); object-fit: cover; border-radius: 8px; }
.mosaic img:first-child { object-position: center 30%; }

/* ---------- dark block ---------- */
.dark-block { margin: 0 var(--gutter) var(--gutter); background: var(--dark); color: #fff; border-radius: 6px; display: grid; grid-template-columns: 1.05fr 0.95fr; overflow: hidden; }
.dark-copy { padding: clamp(3rem, 6vw, 5.5rem) var(--pad); display: flex; flex-direction: column; }
.dark-copy h2 { color: var(--dark-title); max-width: 18ch; }
.dark-copy .lede { color: var(--dark-muted); margin-top: 1.4rem; max-width: 50ch; }
.stat-row { display: grid; grid-template-columns: 1fr 1fr; margin-top: 2.6rem; border-top: 1px solid var(--dark-line); border-left: 1px solid var(--dark-line); }
.stat { padding: 1.3rem 1.4rem; border-right: 1px solid var(--dark-line); border-bottom: 1px solid var(--dark-line); }
.stat b { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1; display: block; }
.stat span { display: block; margin-top: 0.4rem; font-size: 0.86rem; color: var(--dark-muted); }
.dark-cta { margin-top: 2.2rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; background: var(--dark-2); border: 1px solid var(--dark-line); border-radius: 10px; padding: 1.2rem 1.2rem 1.2rem 1.5rem; text-decoration: none; color: var(--dark-title); font-size: 0.95rem; }
.dark-cta::after { content: '\2192'; flex: 0 0 auto; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--dark); border: 1px solid var(--dark-line); display: grid; place-items: center; color: var(--accent); }
.dark-cta:hover { color: #fff; }
.dark-mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; padding: 0.5rem; }
.dark-mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; min-height: 100%; }

/* ---------- locations / region grid ---------- */
.region-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }
.region { background: var(--sheet); border: 1px solid var(--line); border-radius: 12px; padding: 1.5rem 1.5rem 1.2rem; }
.region h3 { font-size: 1.05rem; padding-bottom: 0.8rem; margin-bottom: 0.6rem; border-bottom: 1px solid var(--line); }
.region ul { list-style: none; columns: 2; column-gap: 1.2rem; }
.region li { break-inside: avoid; }
.region a { text-decoration: none; font-size: 0.92rem; color: var(--ink-2); display: block; padding: 0.22rem 0; }
.region a:hover { color: var(--accent); }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr); gap: 2rem 4rem; align-items: start; }
.faq-layout h2 { font-size: clamp(1.4rem, 2.3vw, 1.9rem); max-width: 22ch; }
.faq-layout .side-note { margin-top: 1rem; font-size: 0.92rem; color: var(--ink-2); max-width: 36ch; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.1rem 0; font-size: 1.08rem; font-weight: 500; color: var(--ink-2); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: 0 0 auto; width: 2rem; height: 2rem; border-radius: 50%; background: var(--sheet-soft); display: grid; place-items: center; color: var(--accent); font-size: 1rem; }
.faq details[open] summary { color: var(--ink); }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { padding: 0 3.5rem 1.4rem 0; color: var(--ink-2); font-size: 0.96rem; max-width: var(--measure); }
.faq .btn { margin-top: 1.8rem; }

/* ---------- contact ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); }
.contact-layout > .cell:first-child { padding-left: 0; }
.contact-layout > .cell:last-child { padding-right: 0; }
.contact-layout h2 { max-width: 16ch; }
.contact-layout .lede { margin-top: 1.2rem; font-size: 0.98rem; max-width: 42ch; }
.contact-rows { margin-top: 2.4rem; display: grid; gap: 0.6rem; }
.contact-rows div { display: grid; grid-template-columns: 5rem minmax(0, 1fr); align-items: baseline; gap: 1rem; }
.contact-rows a, .foot-contact a { overflow-wrap: anywhere; }
.contact-rows a { text-decoration: none; font-size: 1rem; }
.contact-rows a:hover { color: var(--accent); }
.form-side-note { margin-top: 2rem; font-size: 0.9rem; color: var(--ink-2); max-width: 40ch; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .price-card, .price-card:nth-child(n+4) { grid-column: span 3; }
}
@media (max-width: 900px) {
  .contact-layout, .faq-layout, .dark-block { grid-template-columns: minmax(0, 1fr); }
  .facts-strip { grid-template-columns: 1fr; }
  .facts-strip > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .hero-media img { max-width: 34rem; }
  .contact-layout > .cell:first-child { padding-right: 0; }
  .contact-layout > .cell:last-child { padding-left: 0; }
  .cols-3 { grid-template-columns: 1fr; }
  .cols-3 > div { padding: 1.4rem 0; }
  .cols-3 > div + div { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .mosaic { grid-template-columns: 1fr 1fr; }
  .dark-mosaic img { aspect-ratio: 1; min-height: 0; }
  .region-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .price-grid { grid-template-columns: 1fr; }
  .price-card, .price-card:nth-child(n+4) { grid-column: auto; }
  .region-grid { grid-template-columns: 1fr; }
  .mosaic { grid-template-columns: 1fr; }
  .mosaic img { height: 240px; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .faq details p { padding-right: 0; }
  .contact-rows div { grid-template-columns: 1fr; gap: 0.15rem; }
  .contact-rows { gap: 1rem; }
}
