/* School website templates (step 2.3). "Classic" is the base; "Bold" (.site.bold, at the end) restyles the same
   markup. Phone first; wider screens get side-by-side layouts.
   Everything sits under .site so the admin styles in app.css don't leak in or out. */

.site {
    --accent: #1d5fd1;
    --accent-dark: #16469c;      /* accent for text/links on white */
    --accent-tint: #eef3fc;
    --on-accent: #fff;           /* text on an accent background */
    --ink: #14213d;
    --muted: #4f5b72;
    --line: #e6eaf0;
    background: #fff;
    color: var(--ink);
    line-height: 1.5;
    font-size: 16px;
    min-height: 100vh;
}
.site h1, .site h2, .site h3 { letter-spacing: -0.02em; margin: 0; }
.site p { margin: 0; }
.site a { color: var(--accent-dark); }
.site ul { list-style: none; margin: 0; padding: 0; }
.site .wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Buttons: 44px+ touch targets */
.site .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border-radius: 10px; font-weight: 700; font-size: 15px; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; }
.site .btn-lg { min-height: 52px; padding: 0 22px; font-size: 17px; border-radius: 12px; }
.site .btn-primary { background: var(--accent); color: var(--on-accent); }
.site .btn-primary:hover { filter: brightness(0.92); }
.site .btn-outline { background: #fff; color: var(--ink); border-color: #d5dbe6; }
.site .btn-outline-accent { background: #fff; color: var(--accent-dark); border-color: var(--accent); }
.site .btn-white { background: #fff; color: var(--accent-dark); }
.site .btn-on-dark { background: transparent; color: var(--on-accent); border: 2px solid var(--on-accent); }

/* Header. Stays at the top while the page scrolls (T-023), so the menu, Call and Book are always in reach.
   Phone/tablet: name + buttons, then the section links in a thin scrollable row. Desktop: all in one slim row. */
.site .top { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: #fff; }
.site .bar { display: flex; align-items: center; justify-content: space-between; column-gap: 12px; row-gap: 0; flex-wrap: wrap; padding-top: 8px; padding-bottom: 0; }
.site .brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 17px; flex: 1 1 0; min-width: 0; }
.site .brand-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site .bar .sections { order: 3; flex: 1 0 100%; }
@media (min-width: 1024px) {
    .site .bar { flex-wrap: nowrap; padding-top: 10px; padding-bottom: 10px; }
    .site .brand { flex: 0 1 auto; }
    .site .bar .sections { order: 0; flex: 1 1 auto; justify-content: center; padding-bottom: 0; }
}
/* Section titles land below the sticky header, not under it; smooth scroll unless the visitor prefers less motion. */
.site section[id], .site [id="check"] { scroll-margin-top: 120px; }
@media (min-width: 1024px) { .site section[id], .site [id="check"] { scroll-margin-top: 84px; } }
@media (prefers-reduced-motion: no-preference) { html:has(.site) { scroll-behavior: smooth; } }
.site .logo { width: 40px; height: 40px; border-radius: 10px; background: var(--accent); color: var(--on-accent); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; flex: none; }
.site .bar-actions { display: flex; gap: 8px; }
/* "Log in" / "My account": a quiet text link on tablet and desktop; on phones it's in the footer only, so the header keeps just Call and Book. */
.site .login-link { display: none; align-items: center; min-height: 44px; padding: 0 8px; color: var(--muted); font-weight: 600; font-size: 15px; text-decoration: none; }
.site .login-link:hover, .site .login-link:focus-visible { color: var(--ink); text-decoration: underline; }
@media (min-width: 768px) { .site .login-link { display: inline-flex; } }
.site .sections { display: flex; gap: 22px; overflow-x: auto; white-space: nowrap; padding-bottom: 8px; }
.site .sections a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 0; }

/* Hero */
.site .hero { background: var(--accent-tint); }
.site .hero-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 32px; padding-top: 36px; padding-bottom: 40px; }
.site .hero-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.site .eyebrow { font-size: 14px; font-weight: 700; color: var(--accent-dark); text-transform: uppercase; letter-spacing: 0.06em; }
.site .hero h1 { font-size: clamp(32px, 5vw, 54px); line-height: 1.08; font-weight: 800; }
.site .lead { font-size: clamp(16px, 1.6vw, 19px); color: #3b4660; max-width: 540px; }
.site .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.site .ticks { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; font-weight: 600; font-size: 15px; margin-top: 4px; }
.site .ticks li { display: flex; align-items: center; gap: 10px; }
.site .tick { width: 22px; height: 22px; border-radius: 11px; background: var(--accent); flex: none; position: relative; }
.site .tick::after { content: ""; position: absolute; left: 7px; top: 4px; width: 6px; height: 11px; border: solid var(--on-accent); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }

/* Suburb check */
.site .check { flex: 1 1 320px; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: 0 8px 24px rgba(20, 33, 61, 0.08); display: flex; flex-direction: column; gap: 10px; }
.site .check label { font-weight: 800; font-size: 18px; }
.site .check-row { display: flex; gap: 8px; }
.site .check input { flex: 1; min-width: 0; min-height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid #c9d1de; font: inherit; font-size: 16px; color: var(--ink); }
.site .answer { font-weight: 600; font-size: 15px; }
.site .answer.yes { color: #1b6532; }
.site .answer.no { color: #8a4105; }
.site .from { color: var(--muted); font-size: 15px; border-top: 1px solid var(--line); padding-top: 10px; }

/* Sections */
.site .block { padding-top: 56px; }
.site .block h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; margin-bottom: 6px; }
.site .sub { color: var(--muted); margin-bottom: 22px; }

/* Prices */
.site .prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.site .price-card { position: relative; border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.site .price-card.best { border: 2px solid var(--accent); }
.site .price-card h3 { font-size: 17px; font-weight: 700; letter-spacing: 0; }
.site .amount { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; }
.site .detail { color: var(--muted); font-size: 14px; flex: 1; }
.site .saving { align-self: flex-start; background: #e4f4e9; color: #1b6532; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.site .flag { position: absolute; top: -12px; left: 18px; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.site .price-card .btn { margin-top: 6px; min-height: 46px; }

/* Suburbs */
.site .chips { display: flex; flex-wrap: wrap; gap: 10px; }
.site .chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: #f2f5f9; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.site .chips a:hover { background: var(--accent-tint); }

/* Instructors */
.site .person { background: #f5f7fa; border-radius: 20px; padding: clamp(20px, 4vw, 40px); display: flex; flex-wrap: wrap; gap: 24px; align-items: center; margin-bottom: 16px; }
.site .avatar { width: 112px; height: 112px; border-radius: 56px; background: var(--accent); color: var(--on-accent); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 36px; flex: none; }
.site .person-text { flex: 1 1 320px; display: flex; flex-direction: column; gap: 10px; }
.site .person-text h2 { margin: 0; font-size: clamp(24px, 2.8vw, 32px); }
.site .bio { color: #3b4660; font-size: 17px; white-space: pre-line; }
.site .badges { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; font-weight: 600; }
.site .badges li { padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid #dce3ee; }

/* Call to action and footer */
.site .cta { background: var(--accent); color: var(--on-accent); border-radius: 20px; padding: clamp(24px, 5vw, 56px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.site .cta h2 { color: inherit; }
.site .cta p { opacity: 0.94; font-size: 17px; }
.site .cta .cta-question { flex-basis: 100%; margin: 0; font-size: 15px; }
.site .cta .cta-question a { color: inherit; font-weight: 700; text-decoration: underline; }
.site .foot { border-top: 1px solid var(--line); margin-top: 56px; }
.site .foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 24px; padding-bottom: 32px; font-size: 14px; color: var(--muted); }
.site .foot a { color: var(--muted); }

/* Coming soon */
.site .soon { max-width: 560px; margin: 0 auto; padding: 72px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.site .soon h1 { font-size: clamp(28px, 6vw, 40px); }
.site .soon p { color: var(--muted); font-size: 17px; }
.site .soon > .btn { width: 100%; max-width: 320px; }
.site .soon-footer { text-align: center; padding: 0 20px 32px; font-size: 14px; color: var(--muted); }
.site .soon-footer a { color: inherit; display: inline-block; padding: 12px; }

/* ---------- "Bold" template: same markup, dark top, big type, prices as a list ---------- */

.site.bold {
    --accent: #f97316;           /* orange: dark text on it reads well (contrast 7:1) */
    --accent-dark: #9a3412;      /* orange for links and text on white */
    --accent-tint: #fff4ec;
    --on-accent: #0e1a2b;
    --dark: #0e1a2b;
    --dark-line: #3a5580;
    --dark-muted: #c9d3e3;
}
.site.bold .btn { border-radius: 999px; }
.site.bold .logo { border-radius: 999px; }

/* Header and hero join into one dark band */
.site.bold .top { background: var(--dark); border-bottom: none; }
.site.bold .brand { color: #fff; }
.site.bold .sections a { color: var(--dark-muted); }
.site.bold .login-link { color: var(--dark-muted); }
.site.bold .login-link:hover, .site.bold .login-link:focus-visible { color: #fff; }
.site.bold .top .btn-outline,
.site.bold .hero .btn-outline { background: transparent; color: #fff; border: 2px solid var(--dark-line); }
.site.bold .hero { background: var(--dark); color: #fff; }
.site.bold .hero-grid { align-items: flex-end; padding-top: 28px; padding-bottom: 56px; }
.site.bold .eyebrow { align-self: flex-start; color: var(--dark-muted); text-transform: none; letter-spacing: 0; border: 1px solid var(--dark-line); border-radius: 999px; padding: 6px 12px; font-weight: 600; }
.site.bold .hero h1 { font-size: clamp(38px, 7vw, 80px); font-weight: 900; line-height: 0.98; letter-spacing: -0.03em; }
.site.bold .hero h1 .hl { color: var(--accent); display: block; }
.site.bold .lead { color: var(--dark-muted); }
.site.bold .check { color: var(--ink); border: none; border-radius: 20px; box-shadow: none; }
.site.bold .check input { border-width: 2px; border-radius: 12px; }

/* Headings */
.site.bold .block { padding-top: 64px; }
.site.bold .block h2 { font-size: clamp(30px, 4.2vw, 52px); font-weight: 900; line-height: 1; letter-spacing: -0.03em; margin-bottom: 10px; }

/* Prices as a list: name, saving, price, button on one row; description below */
.site.bold .prices { display: flex; flex-direction: column; gap: 0; }
.site.bold .price-card,
.site.bold .price-card.best { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 20px; border: none; border-top: 2px solid var(--dark); border-radius: 0; padding: 18px 0; }
.site.bold .price-card h3 { order: 1; flex: 1 1 200px; font-size: 20px; font-weight: 800; }
.site.bold .flag,
.site.bold .saving { order: 2; position: static; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; }
.site.bold .amount { order: 3; font-size: 30px; font-weight: 900; }
.site.bold .price-card .btn { order: 4; margin-top: 0; min-width: 96px; background: var(--dark); color: #fff; border: none; }
.site.bold .price-card.best .btn { background: var(--accent); color: var(--on-accent); }
.site.bold .detail { order: 5; flex-basis: 100%; font-size: 15px; }

/* Suburbs as a grid of tiles */
.site.bold .chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.site.bold .chips a { justify-content: space-between; min-height: 52px; border-radius: 12px; background: #fff; border: 2px solid var(--line); font-weight: 700; }
.site.bold .chips a::after { content: "›"; color: var(--muted); font-size: 20px; }

/* Instructor on dark */
.site.bold .person { background: var(--dark); color: #fff; border-radius: 24px; }
.site.bold .avatar { width: 140px; height: 140px; border-radius: 24px; font-size: 44px; }
.site.bold .bio { color: var(--dark-muted); }
.site.bold .badges li { background: transparent; border-color: var(--dark-line); color: #fff; }

/* Call to action and footer */
.site.bold .cta { border-radius: 24px; }
.site.bold .cta h2 { font-size: clamp(30px, 5vw, 56px); font-weight: 900; line-height: 1; }
.site.bold .btn-white { background: var(--dark); color: #fff; }
.site.bold .foot { background: var(--dark); border-top: none; }
.site.bold .foot-row,
.site.bold .foot a { color: var(--dark-muted); }

/* ---------- Theme settings (website step 2): fonts, about text, preview ---------- */
/* Colours and fonts arrive as CSS variables on .site (WebsiteThemes.CssVariables); the values above are fallbacks. */
.site { font-family: var(--font-body, system-ui, sans-serif); }
.site h1, .site h2, .site h3, .site .brand, .site .amount { font-family: var(--font-heading, inherit); }
.site.fonts-elegant h1, .site.fonts-elegant h2 { font-weight: 700; letter-spacing: -0.01em; }
.site .about-text { font-size: 17px; color: #3b4660; max-width: 760px; white-space: pre-line; }
.site .preview-bar { position: relative; background: #fdf0e1; color: #8a4105; border-bottom: 1px solid #f3d3ad; padding: 10px 20px; font-weight: 700; font-size: 14px; text-align: center; }

/* ---------- Photos and logo (website step 2b) ---------- */
.site .logo-img { height: 40px; width: auto; max-width: 160px; object-fit: contain; flex: none; }
.site .hero-photo { flex: 1 1 340px; min-width: 0; margin: 0; }
.site .hero-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; }
.site .check-below { padding-bottom: 32px; margin-top: -12px; }
.site .check-below .check { max-width: 640px; }
.site .avatar-photo { object-fit: cover; padding: 0; }
.site.bold .hero.has-photo { background: linear-gradient(rgba(14, 26, 43, 0.82), rgba(14, 26, 43, 0.9)), var(--hero-image) center / cover no-repeat, var(--dark); }

/* ---------- Reviews and FAQ (website step 3), all templates ---------- */
.site .section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 16px; margin-bottom: 20px; }
.site .section-head h2 { margin-bottom: 0; }
.site .more-link { color: var(--accent-dark); font-weight: 700; text-decoration: none; }
.site .more-link:hover { text-decoration: underline; }
.site .reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.site .review { margin: 0; border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.site .review blockquote { margin: 0; font-size: 16px; color: #26314a; white-space: pre-line; }
.site .review figcaption { font-size: 14px; color: var(--muted); }
.site .review figcaption strong { color: var(--ink); }
.site .stars { color: #b45309; font-size: 18px; letter-spacing: 2px; }
.site .stars-off { color: #d5dbe6; }
.site .faq { max-width: 820px; }
.site .faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.site .faq summary { cursor: pointer; font-weight: 700; font-size: 17px; min-height: 28px; }
.site .faq details p { margin-top: 10px; color: #3b4660; white-space: pre-line; }

.site.bold .review { background: var(--dark); border-color: var(--dark); color: #fff; border-radius: 18px; }
.site.bold .review blockquote { color: #e6ecf5; }
.site.bold .review figcaption, .site.bold .review figcaption strong { color: var(--dark-muted); }
.site.bold .stars { color: var(--accent); }
.site.bold .stars-off { color: var(--dark-line); }
.site.bold .faq details { border-bottom: none; border-top: 2px solid var(--dark); padding: 18px 0; }
.site.bold .faq summary { font-weight: 800; font-size: 19px; }

/* ---------- "Minimal" template: text-led, white, thin lines, no cards ---------- */
.site.minimal { --accent: #111827; --accent-dark: #111827; --accent-tint: #f6f7f8; --on-accent: #fff; --line: #e5e7eb; }
.site.minimal .btn { border-radius: 6px; }
.site.minimal .btn-outline { border-color: var(--ink); }
.site.minimal .logo { border-radius: 4px; }
.site.minimal .hero { background: #fff; border-bottom: 1px solid var(--line); }
.site.minimal .hero-grid { padding-top: 48px; padding-bottom: 48px; }
.site.minimal .eyebrow { color: var(--muted); letter-spacing: 0.12em; font-weight: 600; }
.site.minimal .hero h1 { font-weight: 600; letter-spacing: -0.03em; font-size: clamp(34px, 5.5vw, 60px); }
.site.minimal .tick { width: 14px; height: 2px; border-radius: 0; background: var(--ink); }
.site.minimal .tick::after { display: none; }
.site.minimal .check { box-shadow: none; border-radius: 8px; }
.site.minimal .hero-wide { margin-top: 0; margin-bottom: 40px; }
.site.minimal .hero-wide img { display: block; width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; border-radius: 8px; }
.site.minimal .block h2 { font-weight: 600; font-size: clamp(24px, 3vw, 32px); border-top: 1px solid var(--ink); padding-top: 16px; }
.site.minimal .section-head h2 { border-top: none; padding-top: 0; }
.site.minimal .section-head { border-top: 1px solid var(--ink); padding-top: 16px; }
.site.minimal .prices { display: flex; flex-direction: column; gap: 0; }
.site.minimal .price-card,
.site.minimal .price-card.best { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; border: none; border-bottom: 1px solid var(--line); border-radius: 0; padding: 16px 0; }
.site.minimal .price-card h3 { order: 1; flex: 1 1 200px; font-weight: 600; }
.site.minimal .flag,
.site.minimal .saving { order: 2; position: static; background: none; color: var(--muted); padding: 0; font-size: 13px; font-weight: 600; }
.site.minimal .amount { order: 3; font-size: 22px; font-weight: 600; }
.site.minimal .price-card .btn { order: 4; margin-top: 0; min-height: 40px; }
.site.minimal .detail { order: 5; flex-basis: 100%; }
.site.minimal .chips a { background: none; border: 1px solid var(--line); border-radius: 6px; }
.site.minimal .person { background: none; border: 1px solid var(--line); border-radius: 8px; }
.site.minimal .avatar { border-radius: 8px; }
.site.minimal .review { border: none; border-top: 1px solid var(--line); border-radius: 0; padding: 18px 0 0; }
.site.minimal .stars { color: var(--ink); }
.site.minimal .cta { background: none; color: var(--ink); border: 1px solid var(--ink); border-radius: 8px; }
.site.minimal .cta .btn-white { background: var(--accent); color: var(--on-accent); }
.site.minimal .cta .btn-on-dark { color: var(--ink); border-color: var(--ink); }
