/* Swansea Dance Centre — base.css ("Marker Sunset": white + cream bands, orange→coral gradient, Space Grotesk, Caveat marker annotations) */
:root {
  --white: #ffffff; --cream: #f6f1e8; --ink: #101010; --muted: #565049;
  --orange: #ff6a13; --coral: #ff6a13; --grad: #ff6a13;
  --line: #101010; --soft-line: rgba(16,16,16,.14);
  --sans: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --hand: "Caveat", "Comic Sans MS", cursive;
  --gutter: clamp(18px, 4vw, 64px);
}
@font-face { font-family: "Space Grotesk"; src: url("../fonts/SpaceGrotesk-variable.woff2") format("woff2-variations"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("../fonts/Caveat-variable.woff2") format("woff2-variations"); font-weight: 400 700; font-display: swap; }
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); font-weight: 400; font-size: 16px; line-height: 1.62; color: var(--ink); background: #ece7dd; -webkit-font-smoothing: antialiased; }
.page { max-width: 1320px; margin: 0 auto; background: var(--white); box-shadow: 0 0 60px rgba(16,16,16,.09); }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font: inherit; }
::selection { background: var(--orange); color: #fff; }
.display, .h1, .h2, .h3 { font-family: var(--sans); font-weight: 600; letter-spacing: -.02em; line-height: 1.08; }
.h1 { font-size: clamp(32px, 4.2vw, 62px); }
.h2 { font-size: clamp(24px, 2.6vw, 40px); }
.h3 { font-size: clamp(17px, 1.5vw, 21px); }
.hand { font-family: var(--hand); font-weight: 700; letter-spacing: 0; }
.caps { font-weight: 700; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); }
.caps--ink { color: var(--ink); } .caps--dim { color: var(--muted); }
.lead { font-size: clamp(15.5px, 1.35vw, 18px); line-height: 1.66; color: var(--ink); }
.muted { color: var(--muted); }
/* buttons */
.btn { display: inline-flex; align-items: center; gap: 9px; background: var(--ink); color: #fff; border: 0; padding: 14px 24px; font-weight: 700; font-size: 13.5px; letter-spacing: .04em; cursor: pointer; border-radius: 3px; transition: transform .15s, opacity .2s; }
.btn:hover { transform: translateY(-1px); opacity: .92; }
.btn--grad { background: var(--grad); color: #fff; }
.btn--line { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn .arr { font-weight: 400; }
/* sections */
.sec { padding: clamp(44px, 6vw, 92px) var(--gutter); }
.sec--cream { background: var(--cream); }
.sec--tight { padding-top: clamp(28px, 4vw, 56px); }
.sec__head { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: clamp(22px, 3vw, 40px); }
/* marker annotations */
.mk-under { position: relative; white-space: nowrap; }
.mk-under::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: -.12em; height: .22em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M4 10 C 40 4, 78 12, 118 7 S 186 6, 196 9' fill='none' stroke='%23ff6a13' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%; }
.mk-circle { position: relative; white-space: nowrap; }
.mk-circle::before { content: ""; position: absolute; inset: -.28em -.42em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 80' preserveAspectRatio='none'%3E%3Cpath d='M28 14 C 84 2, 186 6, 193 34 C 198 62, 132 78, 62 74 C 14 70, 2 52, 12 32 C 20 16, 52 10, 96 8' fill='none' stroke='%23ff6a13' stroke-width='4.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%; }
.mk-strike { position: relative; }
.mk-strike::after { content: ""; position: absolute; left: -1%; right: -1%; top: 52%; height: .16em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M3 7 C 60 3, 140 9, 197 5' fill='none' stroke='%23ff6a13' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%; }
.mk-rewrite { font-family: var(--hand); font-weight: 700; color: var(--orange); font-size: 1.12em; line-height: 1; }
.spark { position: relative; }
.spark::before { content: "✦"; position: absolute; top: -.9em; right: -1em; color: var(--orange); font-size: .55em; }
/* gradient panel */
.gpanel { background: var(--grad); color: #fff; }
.gpanel .hand { color: #fff; }
/* photo card with chip label */
.pcard { position: relative; display: block; overflow: hidden; border-radius: 4px; }
.pcard img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .35s; }
.pcard:hover img { transform: scale(1.03); }
.pcard .chip { position: absolute; left: 0; bottom: 0; background: var(--white); color: var(--ink); font-weight: 700; font-size: 13.5px; padding: 9px 14px; border-radius: 0 4px 0 0; display: inline-flex; gap: 8px; align-items: center; }
.pcard .chip .arr { color: var(--orange); }
/* cream callout */
.callout { background: var(--cream); border-radius: 4px; padding: clamp(20px, 2.4vw, 34px); }
.callout .closer { font-weight: 700; margin-top: 12px; }
/* widget card (session picker / forms) */
.widget { background: var(--white); border-radius: 6px; box-shadow: 0 10px 40px rgba(16,16,16,.12); padding: clamp(20px, 2.2vw, 30px); }
.pillrow { display: flex; border: 1.5px solid var(--ink); border-radius: 999px; overflow: hidden; width: max-content; max-width: 100%; }
.pillrow .pill { padding: 9px 20px; font-weight: 700; font-size: 13px; letter-spacing: .04em; background: transparent; border: 0; cursor: pointer; }
.pillrow .pill.on { background: var(--ink); color: #fff; }
/* accordion */
.acc details { border-bottom: 1.5px solid var(--soft-line); }
.acc summary { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; cursor: pointer; list-style: none; padding: 17px 2px; font-weight: 600; font-size: clamp(15px, 1.3vw, 17.5px); }
.acc summary::-webkit-details-marker { display: none; }
.acc .plus { font-family: var(--hand); font-size: 24px; color: var(--orange); flex-shrink: 0; transition: transform .25s; }
.acc details[open] .plus { transform: rotate(45deg); }
.acc .body { padding: 0 2px 18px; max-width: 62ch; }
.acc .body p { font-size: 14.5px; color: var(--muted); }
/* forms — boxed inputs (house rule) */
.form-card { background: var(--white); border-radius: 6px; box-shadow: 0 10px 40px rgba(16,16,16,.12); padding: clamp(20px, 2.6vw, 34px); position: relative; }
.form-card::before { content: "fill this in ↓"; position: absolute; top: -15px; right: 18px; transform: rotate(-4deg); font-family: var(--hand); font-weight: 700; font-size: 19px; color: #fff; background: var(--grad); padding: 4px 14px; border-radius: 3px; box-shadow: 2px 2px 0 var(--ink); }
.form-intro { font-family: var(--hand); font-weight: 600; font-size: 19px; color: var(--ink); margin-top: 8px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; margin-top: 16px; }
.form-grid label { display: flex; flex-direction: column; gap: 5px; }
.form-grid label span { font-weight: 600; font-size: 13.5px; }
.form-grid .req { color: var(--coral); }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; min-width: 0; font-family: var(--sans); font-size: 14.5px; color: var(--ink); background: #fff; border: 1.5px solid var(--ink); border-radius: 3px; padding: 11px 12px; outline: none; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 2px rgba(255,106,19,.25); }
.form-grid select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.form-grid .full { grid-column: 1 / -1; }
.form-note { font-size: 12.5px; color: var(--muted); }
.form-actions { display: flex; align-items: center; gap: 16px; margin-top: 20px; flex-wrap: wrap; }
/* split layout */
.split2 { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: clamp(28px, 5vw, 76px); align-items: start; }
.serif-note { font-family: var(--hand); font-weight: 600; font-size: 19px; color: var(--muted); }
@media (max-width: 900px) {
  .sec { padding: 40px 18px 48px; }
  .split2 { grid-template-columns: minmax(0,1fr); gap: 32px; }
  .form-grid { grid-template-columns: minmax(0,1fr); }
  .form-grid input, .form-grid select, .form-grid textarea { width: 100%; min-width: 0; }
}

/* Swansea — nav.css: white masthead, centred handwritten brand, chip CTAs, slim dropdown nav */
.masthead { background: var(--white); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 12px var(--gutter); gap: 12px; }
.brand { font-family: var(--hand); font-weight: 700; font-size: 30px; color: var(--ink); line-height: 1; text-align: center; position: relative; z-index: 320; }
.brand small { display: block; font-family: var(--sans); font-weight: 700; font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.mast-note { font-size: 13px; color: var(--muted); }
.mast-cta { display: flex; justify-content: flex-end; gap: 10px; align-items: center; position: relative; z-index: 320; }
.btn--contact-desktop { background: var(--grad); padding: 11px 18px; font-size: 12.5px; border-radius: 3px; color:#fff; }
.nav { border-top: 1.5px solid var(--soft-line); border-bottom: 1.5px solid var(--soft-line); background: var(--white); position: relative; z-index: 300; }
.nav__list { display: flex; justify-content: center; }
.nav__item { position: relative; }
.nav__item + .nav__item { border-left: 0; }
.nav__link { display: flex; align-items: center; gap: 6px; padding: 13px 20px; font-weight: 700; font-size: 13.5px; color: var(--ink); }
.nav__link:hover, .nav__item--has-dropdown:hover > .nav__link { color: var(--orange); }
.nav__item--has-dropdown:hover > .nav__link .chev, .nav__item--has-dropdown.active > .nav__link .chev { transform: rotate(180deg); }
.chev { font-size: 9px; transition: transform .2s; color: var(--orange); }
.nav__item--has-dropdown::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; }
.nav__dropdown { position: absolute; top: calc(100% + 12px); left: 0; min-width: 250px; background: var(--white); border: 1.5px solid var(--ink); border-radius: 4px; box-shadow: 0 14px 40px rgba(16,16,16,.14); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .18s, transform .18s, visibility .18s; max-height: 62vh; overflow-y: auto; z-index: 310; }
.nav__item--has-dropdown:hover > .nav__dropdown, .nav__item--has-dropdown.active > .nav__dropdown { opacity: 1; visibility: visible; transform: none; }
.nav__dropdown li a { display: block; padding: 9px 16px; font-size: 13.5px; font-weight: 500; }
.nav__dropdown li a:hover { background: var(--cream); color: var(--orange); }
.nav__dropdown li:first-child a { font-weight: 700; color: var(--orange); border-bottom: 1.5px solid var(--soft-line); }
.nav__toggle { display: none; }
.nav__item--drawer-only { display: none; }
@media (max-width: 900px) {
  .masthead { grid-template-columns: 1fr auto; }
  .mast-note { display: none; }
  .btn--contact-desktop { display: none; }
  .brand { text-align: left; font-size: 26px; }
  .nav { position: fixed !important; inset: 0 !important; width: 100vw; height: 100dvh; background: var(--white); z-index: 290; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility .2s; padding: 96px 18px 28px; border: 0; }
  .nav.active { opacity: 1; visibility: visible; transform: none; }
  .nav.ribbon-nav { background: var(--white); }
  .nav__list { flex-direction: column; }
  .nav__item + .nav__item { border-top: 1.5px solid var(--soft-line); }
  .nav__link { padding: 16px 6px; font-size: 15px; justify-content: space-between; }
  .nav__item--has-dropdown.active > .nav__link .chev { transform: rotate(180deg); }
  .nav__dropdown { display: none; position: static; opacity: 1; visibility: visible; transform: none; border: 1.5px solid var(--ink); border-radius: 4px; max-height: 46vh; margin: 4px 0 12px; box-shadow: none; }
  .nav__item--has-dropdown.active > .nav__dropdown { display: block; }
  .nav__list { justify-content: flex-start; }
  .nav__item--drawer-only { display: block; }
  .nav__toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; background: var(--grad); border: 0; border-radius: 4px; cursor: pointer; padding: 0 11px; }
  .nav__toggle span { height: 2.5px; background: #fff; border-radius: 2px; transition: transform .25s, opacity .25s; }
  .nav__toggle.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav__toggle.active span:nth-child(2) { opacity: 0; }
  .nav__toggle.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

/* Swansea — footer.css: black footer, handwritten brand, orange links */
.footer { background: var(--ink); color: rgba(255,255,255,.82); padding: clamp(40px, 5vw, 72px) var(--gutter) 28px; }
.footer a:hover { color: var(--orange); }
.footer__join { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; border-bottom: 1px solid rgba(255,255,255,.18); padding-bottom: 28px; margin-bottom: 30px; }
.footer__join .hand { font-size: clamp(26px, 3vw, 40px); color: #fff; }
.footer__reach { font-size: 14.5px; line-height: 2; }
.footer__reach a { color: var(--orange); font-weight: 700; }
.footer__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer__cols > div { display: flex; flex-direction: column; gap: 9px; font-size: 13.5px; }
.footer__cols .caps { color: var(--orange); margin-bottom: 4px; }
.footer__social { display: flex; gap: 10px; margin-top: 8px; }
.footer__social a { width: 34px; height: 34px; border: 1.5px solid rgba(255,255,255,.4); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.footer__bar { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.18); margin-top: 34px; padding-top: 18px; font-size: 12px; color: rgba(255,255,255,.55); }
@media (max-width: 900px) { .footer__cols { grid-template-columns: 1fr 1fr; } }
