/* Dreams & Designs — digital brochure and course sheet (brochure.php)
   Look approved by Poornima on 9 Oct 2026 (fashion-school-brochure-sample.html).
   Phone-first, one column; courses fold into tabs and tap-open cards so the page stays short.
   --pink and --gold are set by the page from Admin → Settings (config defaults #BF1951 / #C9A227).
   Gold is decorative only (dashed lines), never text. */
:root {
  --bg: #FBF7F2;        /* studio cream */
  --surface: #FFFFFF;
  --tint: #F8E7EE;      /* soft pink wash */
  --ink: #1A1A1A;
  --muted: #5A4E54;
  --pink: #BF1951;
  --pink-ink: #FFFFFF;
  --gold: #C9A227;
  --line: #E8DCD3;
  --wa: #0F7A43;
  --display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --body: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #181214; --surface: #221A1D; --tint: #34202A; --ink: #F3ECE8; --muted: #C9BCC2;
    --pink: #F27BA5; --pink-ink: #1A0B11; --line: #3A2C32; --wa: #3FC07A; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #181214; --surface: #221A1D; --tint: #34202A; --ink: #F3ECE8; --muted: #C9BCC2;
  --pink: #F27BA5; --pink-ink: #1A0B11; --line: #3A2C32; --wa: #3FC07A; color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.wrap { max-width: 980px; margin: 0 auto; padding-inline: 16px; padding-block: 0 96px; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; text-wrap: balance; margin: 0; }
p { margin: 0; }
a { color: var(--pink); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; border-radius: 6px; }
a.ast { text-decoration: none; font-weight: 600; padding-inline: 1px; }
.dash { height: 0; border-top: 2px dashed var(--gold); opacity: .8; margin-block: 28px; }
.print-only { display: none; }

/* top */
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 16px; flex-wrap: wrap; }
.brand { font-family: var(--display); font-weight: 900; font-size: 20px; color: var(--pink); letter-spacing: .01em; text-decoration: none; }
.brand small { display: block; font-family: var(--body); font-weight: 500; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.top-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 14px/1.2 var(--body); padding: 13px 18px; min-height: 44px; border-radius: 10px; text-decoration: none; border: 2px solid var(--pink); cursor: pointer; transition: transform .15s ease, background-color .2s ease, color .2s ease; text-align: center; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-fill { background: var(--pink); color: var(--pink-ink); }
.btn-line { color: var(--pink); background: transparent; }
.btn-line:hover { background: var(--tint); }
.btn:hover { transform: translateY(-1px); }

/* hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center; padding-block: 8px 4px; }
.hero > * { min-width: 0; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--pink); }
.hero h1, .sheet h1 { font-size: clamp(30px, 5.2vw, 46px); font-weight: 900; margin-top: 8px; }
.lead { color: var(--muted); margin-top: 12px; max-width: 56ch; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.facts li { background: var(--tint); border-radius: 99px; padding: 6px 12px; font-size: 13px; font-weight: 500; }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.hero figure { margin: 0; }
.hero img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 16px; display: block; }
figcaption { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* sections */
.sec-h { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; margin-bottom: 14px; }
.sec-h h2 { font-size: clamp(24px, 3.6vw, 30px); }
.sec-h p { color: var(--muted); font-size: 13px; }

/* tabs: wrap onto a second line rather than scroll sideways */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab { flex: 0 0 auto; font: 500 13px/1.2 var(--body); padding: 10px 14px; min-height: 40px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; transition: background-color .2s ease; }
.tab:hover { background: var(--tint); }
.tab[aria-selected="true"] { background: var(--pink); border-color: var(--pink); color: var(--pink-ink); }
.panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; align-items: start; }

/* course cards */
.course { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: box-shadow .2s ease, transform .2s ease; }
.course:hover { box-shadow: 0 4px 14px rgba(0, 0, 0, .06); }
.course > summary { list-style: none; cursor: pointer; padding: 14px 16px; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: start; position: relative; }
.course > summary::-webkit-details-marker, .qa summary::-webkit-details-marker, .full > summary::-webkit-details-marker { display: none; }
.course h3 { font-size: 18px; font-weight: 700; }
.course .one { grid-column: 1 / -1; color: var(--muted); font-size: 13.5px; }
.fee { grid-column: 1 / -1; font-size: 13.5px; font-weight: 600; color: var(--pink); font-variant-numeric: tabular-nums; padding-right: 24px; }
.fee .gst { font-weight: 500; color: var(--muted); white-space: nowrap; }
.fee .gst a.ast { color: var(--muted); }
.course .chev { position: absolute; right: 16px; bottom: 14px; }
.chev { display: inline-block; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s ease; flex: 0 0 auto; margin-top: 4px; }
details[open] > summary .chev { transform: rotate(-135deg); }
.pill { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px; white-space: nowrap; }
.pill.open { background: var(--tint); color: var(--pink); }
.pill.new { background: var(--pink); color: var(--pink-ink); }
.pill.on-request { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.more { padding: 0 16px 16px; display: grid; gap: 10px; font-size: 13.5px; }
.more dl { margin: 0; display: grid; grid-template-columns: fit-content(40%) minmax(0, 1fr); gap: 6px 12px; } /* long labels wrap instead of squeezing the text */
.more dt { color: var(--muted); }
.more dd { margin: 0; min-width: 0; }
.more .note { color: var(--muted); font-size: 12.5px; }
.more .also b { font-weight: 600; }
.thumbs { display: flex; flex-wrap: wrap; gap: 6px; }
.thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; display: block; }
.full { border: 1px solid var(--line); border-radius: 10px; }
.full > summary { cursor: pointer; list-style: none; padding: 10px 12px; font-weight: 600; color: var(--pink); }
.full > summary::after { content: ' +'; }
.full[open] > summary::after { content: ' –'; }
.full-body { padding: 0 12px 12px; display: grid; gap: 8px; }
.full-body h4, .sheet h2.sub { font-size: 15px; font-family: var(--body); font-weight: 600; }
.full-body ul, .full-body ol { margin: 0; padding-left: 20px; }
.levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.level b { display: block; }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.ask { font: 600 13px/1.3 var(--body); color: var(--wa); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; min-height: 32px; }
.ask:hover, .sheet-link:hover { text-decoration: underline; }
.sheet-link { font-size: 13px; font-weight: 500; text-decoration: none; }

/* photos */
.photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.photos figure { margin: 0; min-width: 0; }
.photos img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 12px; display: block; }

/* steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: s; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; counter-increment: s; min-width: 0; }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--pink); color: var(--pink-ink); font-weight: 600; font-size: 13px; margin-bottom: 8px; }
.steps b { display: block; font-family: var(--display); font-size: 17px; }
.steps span { color: var(--muted); font-size: 13.5px; }
/* four steps (e.g. the bridal journey): one row on a computer, two by two on a tablet */
@media screen and (min-width: 761px) { .steps:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media screen and (min-width: 900px) { .steps:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* questions */
.qa { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.qa details { border-bottom: 1px solid var(--line); padding-block: 10px; min-width: 0; }
.qa summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 10px; min-height: 28px; }
.qa p { color: var(--muted); font-size: 13.5px; margin-top: 6px; }

/* library */
.library { background: var(--tint); border-radius: 18px; padding: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: center; }
.library > * { min-width: 0; }
.library h2 { font-size: clamp(22px, 3.4vw, 28px); margin-top: 6px; }
.lib-text { color: var(--muted); margin-top: 8px; font-size: 14px; }
.lib-fees { font-size: 13px; font-weight: 600; color: var(--pink); margin: 8px 0 4px; }
.library ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13.5px; }

/* course sheet */
.sheet { padding-block: 8px 0; }
.sheet-head { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.sheet .code { margin-top: 6px; color: var(--muted); font-size: 13px; }
.fee.big { font-size: 16px; margin-top: 12px; padding: 0; }
.sheet-body { padding: 0; font-size: 14px; }
.sheet h2.sub { margin: 4px 0 6px; font-size: 16px; }
.sheet .full-body { padding: 0; }
.steps-compact li { padding: 12px 14px; }

/* footer and phone bar */
.foot { font-size: 13px; color: var(--muted); display: grid; gap: 6px; }
.foot strong { color: var(--ink); }
.sticky { position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--surface); border-top: 1px solid var(--line); display: none; gap: 10px; z-index: 5; }
.sticky .btn { flex: 1; }

@media screen and (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: 16px; }
  .hero figure { order: -1; }
  .hero img { aspect-ratio: 16 / 9; object-position: center 30%; }
  .panel, .qa, .steps, .library { grid-template-columns: 1fr; }
  .photos { gap: 6px; }
  .photos figcaption { font-size: 10.5px; line-height: 1.3; }
  .steps li { padding: 12px 14px; display: grid; grid-template-columns: 28px 1fr; gap: 0 10px; }
  .steps li::before { margin: 0; grid-row: span 2; }
  .dash { margin-block: 22px; }
  .qa details { padding-block: 8px; }
  .sticky { display: flex; }
  .hero .ctas, .top-actions [data-print] { display: none; }
  .library { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .btn:hover { transform: none; }
}

/* ============ Print / "Download PDF": a clean A4 brochure or one-page course sheet ============ */
@media print {
  @page { size: A4; margin: 12mm 12mm 14mm; }
  :root, :root:not([data-theme="light"]), :root[data-theme="dark"] {
    --bg: #FFFFFF; --surface: #FFFFFF; --tint: #F8E7EE; --ink: #1A1A1A; --muted: #4A4046; --pink: #BF1951; --pink-ink: #FFFFFF; --line: #DDD0C6; --wa: #0F7A43; color-scheme: light;
  }
  body { font-size: 10.5pt; line-height: 1.45; background: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .wrap { max-width: none; padding: 0; }
  .sticky, .top-actions, .tabs, .ctas, .card-actions, .chev, .hero .ctas { display: none !important; }
  a.ast { color: inherit; }
  .print-only { display: block; }
  .dash { margin-block: 10px; }
  .top { padding-block: 0 6px; }
  .hero { grid-template-columns: 1.4fr .6fr; gap: 16px; }
  .hero img { aspect-ratio: 4 / 5; max-height: 70mm; }
  .hero h1 { font-size: 26pt; }
  .panel, .panel[hidden] { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
  .panel-title { grid-column: 1 / -1; font-size: 13pt; color: var(--pink); margin-top: 8px; }
  .course, .steps li, .qa details, .library, .photos figure, .level { break-inside: avoid; }
  .course > summary { padding: 8px 10px 4px; cursor: default; }
  .more { padding: 0 10px 8px; gap: 5px; font-size: 9.5pt; }
  .course h3 { font-size: 13pt; }
  .full { border: 0; }
  .full > summary { padding: 4px 0; }
  .full > summary::after, .full[open] > summary::after { content: ''; }
  .full-body { padding: 0; }
  .photos img { max-height: 40mm; }
  .qa details { padding-block: 5px; }
  .library { padding: 12px; }
  a { text-decoration: none; color: inherit; }
  .foot a { color: var(--pink); }
  .sheet h1 { font-size: 26pt; }
  .code.print-only { color: var(--muted); font-size: 9pt; }
  .steps li { padding: 10px; }
  .steps:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
