/* Aussie Ticket website kit. Sizes come from Chris's 1440px portal design and scale down fluidly. */
:root {
  --at-gold: #FACD4D; --at-bottle: #284D3F; --at-green: #52D137; --at-pale-gold: #FFE6A6; --at-white: #FFFFFF;
  --at-ink: #201F20; --at-grey: #686868; --at-line: #EFE9D6; --at-cream: #FFF7E0; --at-signal-red: #D81E3A;
  --at-font: "sets-grotesk", "Sets Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --at-margin: clamp(20px, 4.4vw, 63px);
  --at-r-tag: 6px; --at-r-chip: 18px; --at-r-card: 36px; --at-r-panel: 47px;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--at-font); color: var(--at-ink); background: var(--at-white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- themes: put data-theme on a section. Gold is the default. */
:root, [data-theme="gold"] {
  --ground: var(--at-gold); --on-ground: var(--at-ink); --sub-on-ground: var(--at-ink);
  --rib-tl: url(../img/ribbons/gold/hero-top-left.svg); --rib-br: url(../img/ribbons/gold/hero-bottom-right.svg);
  --close-l: url(../img/ribbons/gold/closing-left.svg); --close-r: url(../img/ribbons/gold/closing-right.svg);
  --cta-bg: var(--at-bottle); --cta-fg: var(--at-white); --cta-disc: var(--at-gold); --cta-arrow: var(--at-bottle);
  --tag-bg: var(--at-gold); --tag-fg: var(--at-ink); --deep: var(--at-bottle);
}
[data-theme="coral"] { --ground: #FFC2B6; --on-ground: var(--at-ink); --sub-on-ground: var(--at-ink); --cta-disc: #FF5B2F; --cta-arrow: #fff; --tag-bg: #52C3AC; --tag-fg: var(--at-bottle);
  --rib-tl: url(../img/ribbons/coral/hero-top-left.svg); --rib-br: url(../img/ribbons/coral/hero-bottom-right.svg); --close-l: url(../img/ribbons/coral/closing-left.svg); --close-r: url(../img/ribbons/coral/closing-right.svg); }
[data-theme="navy"] { --ground: #14284B; --on-ground: #E0A93B; --sub-on-ground: #fff; --cta-bg: #E0A93B; --cta-fg: var(--at-ink); --cta-disc: #14284B; --cta-arrow: #E0A93B; --tag-bg: #E0A93B; --tag-fg: #14284B; --deep: #14284B;
  --rib-tl: url(../img/ribbons/navy/hero-top-left.svg); --rib-br: url(../img/ribbons/navy/hero-bottom-right.svg); --close-l: url(../img/ribbons/navy/closing-left.svg); --close-r: url(../img/ribbons/navy/closing-right.svg); }
[data-theme="purple"] { --ground: #4B2A7B; --on-ground: #C9B1F5; --sub-on-ground: #fff; --cta-bg: #C9B1F5; --cta-fg: var(--at-ink); --cta-disc: #4B2A7B; --cta-arrow: #C9B1F5; --tag-bg: #C9B1F5; --tag-fg: #4B2A7B; --deep: #4B2A7B;
  --rib-tl: url(../img/ribbons/purple/hero-top-left.svg); --rib-br: url(../img/ribbons/purple/hero-bottom-right.svg); --close-l: url(../img/ribbons/purple/closing-left.svg); --close-r: url(../img/ribbons/purple/closing-right.svg); }
[data-theme="crimson"] { --ground: #D81E3A; --on-ground: #FFD3DA; --sub-on-ground: #fff; --cta-bg: #FFD3DA; --cta-fg: #5A0F1E; --cta-disc: #5A0F1E; --cta-arrow: #FFD3DA; --tag-bg: #FFD3DA; --tag-fg: #5A0F1E; --deep: #5A0F1E;
  --rib-tl: url(../img/ribbons/crimson/hero-top-left.svg); --rib-br: url(../img/ribbons/crimson/hero-bottom-right.svg); --close-l: url(../img/ribbons/crimson/closing-left.svg); --close-r: url(../img/ribbons/crimson/closing-right.svg); }
[data-theme="bottle"] { --ground: #284D3F; --on-ground: #DDFF55; --sub-on-ground: #fff; --cta-bg: #DDFF55; --cta-fg: var(--at-ink); --cta-disc: #284D3F; --cta-arrow: #DDFF55; --tag-bg: #DDFF55; --tag-fg: #284D3F;
  --rib-tl: url(../img/ribbons/bottle/hero-top-left.svg); --rib-br: url(../img/ribbons/bottle/hero-bottom-right.svg); --close-l: url(../img/ribbons/bottle/closing-left.svg); --close-r: url(../img/ribbons/bottle/closing-right.svg); }
[data-theme="ink"] { --ground: #201F20; --on-ground: var(--at-gold); --sub-on-ground: #fff; --cta-bg: var(--at-gold); --cta-fg: var(--at-ink); --cta-disc: var(--at-bottle); --cta-arrow: var(--at-gold);
  --rib-tl: url(../img/ribbons/ink/hero-top-left.svg); --rib-br: url(../img/ribbons/ink/hero-bottom-right.svg); --close-l: url(../img/ribbons/ink/closing-left.svg); --close-r: url(../img/ribbons/ink/closing-right.svg); }

/* ---------- type */
.at-display { font-size: clamp(40px, 6.3vw, 91px); line-height: 1.064; font-weight: 600; letter-spacing: -.03em; margin: 0; }
.at-h1 { font-size: clamp(30px, 3.75vw, 54px); line-height: 1.2; font-weight: 600; letter-spacing: -.03em; margin: 0; }
.at-h2 { font-size: clamp(22px, 2.36vw, 34px); line-height: 1.2; font-weight: 600; letter-spacing: -.02em; margin: 0; }
.at-h3 { font-size: 21px; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; margin: 0; }
.at-lead { font-size: clamp(18px, 2.08vw, 30px); line-height: 1.27; font-weight: 500; margin: 0; }
.at-body { font-size: 17px; line-height: 1.5; margin: 0; color: var(--at-grey); }
.at-small { font-size: 14px; line-height: 1.45; color: var(--at-grey); }

/* ---------- icons: one inline sprite at the top of each page, coloured by the text colour.
   <svg class="at-icon" aria-hidden="true"><use href="#i-search"/></svg> */
.at-icon { display: inline-block; width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.2em; }

/* ---------- buttons. Markup: <a class="at-btn" href="#">Sign up today<i><svg aria-hidden="true"><use href="#i-arrow"/></svg></i></a>  The <i> is the arrow disc. */
.at-btn { display: inline-flex; align-items: center; gap: 16px; height: 62px; padding: 0 9px 0 30px; border: 0; border-radius: 999px; font: 500 21px/1 var(--at-font); text-decoration: none; cursor: pointer; white-space: nowrap;
  background: var(--btn-bg, var(--at-bottle)); color: var(--btn-fg, #fff); }
.at-btn i { width: 44px; height: 44px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; background: var(--btn-disc, var(--at-gold)); }
.at-btn i svg { width: 42%; height: 42%; color: var(--btn-arrow, var(--at-bottle)); }
.at-btn--action { --btn-bg: var(--at-gold); --btn-fg: var(--at-ink); --btn-disc: var(--at-bottle); --btn-arrow: var(--at-gold); }
.at-btn--theme { --btn-bg: var(--cta-bg); --btn-fg: var(--cta-fg); --btn-disc: var(--cta-disc); --btn-arrow: var(--cta-arrow); }
.at-btn--small { height: 48px; font-size: 16px; padding: 0 7px 0 22px; gap: 12px; }
.at-btn--small i { width: 34px; height: 34px; }
.at-btn--outline { height: 46px; padding: 0 18px; gap: 10px; border-radius: 17px; background: transparent; color: var(--at-bottle); box-shadow: inset 0 0 0 1.5px var(--at-bottle); font-size: 16px; }
.at-btn--outline i { width: 16px; height: 13px; border-radius: 0; background: none; }
.at-btn--outline i svg { width: 100%; height: 100%; color: var(--at-bottle); }
.at-btn:focus-visible, .at-field:focus-within { outline: 3px solid var(--at-green); outline-offset: 3px; }

/* ---------- small parts */
.at-tag { display: inline-block; font-size: 13px; line-height: 24px; font-weight: 600; padding: 0 9px; border-radius: var(--at-r-tag); background: var(--tag-bg); color: var(--tag-fg); }
.at-tag--plain { background: var(--at-cream); color: var(--at-bottle); align-self: flex-start; }
.at-chip { display: inline-flex; flex-direction: column; gap: 5px; align-items: flex-start; padding: 12px 16px 13px; border-radius: var(--at-r-chip); background: #fff; box-shadow: 0 6px 22px rgba(32,31,32,.10); }
.at-chip strong { font-size: 23px; line-height: 1; font-weight: 600; letter-spacing: -.02em; }
.at-badge { display: inline-flex; align-items: center; gap: 12px; padding: 9px 16px 9px 9px; border-radius: var(--at-r-chip); background: #fff; font-size: 14.5px; line-height: 1.15; font-weight: 500; box-shadow: 0 6px 22px rgba(32,31,32,.10); }
.at-badge::before { content: ""; width: 36px; height: 36px; flex: none; background: url(../img/icons/tick.svg) center / contain no-repeat; }
.at-icon-disc { width: 56px; height: 56px; border-radius: 50%; background: var(--at-gold); color: var(--at-bottle); display: flex; align-items: center; justify-content: center; font-size: 22px; flex: none; }

/* ---------- navigation */
.at-nav { display: flex; align-items: center; gap: clamp(16px, 3.2vw, 46px); height: clamp(58px, 5.3vw, 77px); padding: 0 12px 0 15px; border-radius: 999px; background: #fff; font-size: clamp(14px, 1.43vw, 20px); font-weight: 500; }
.at-nav__logo { width: clamp(150px, 15vw, 210px); flex: none; }
.at-nav a { text-decoration: none; }
.at-nav__links { display: flex; gap: clamp(16px, 3.2vw, 46px); }
.at-nav__spacer { flex: 1; }
.at-nav__menu { display: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--at-cream); color: var(--at-bottle); font-size: 20px; align-items: center; justify-content: center; }

/* ---------- hero: Chris's layout. Ribbons sit behind everything. */
.at-hero { position: relative; overflow: hidden; background: var(--ground); color: var(--on-ground); padding: clamp(16px, 2.86vw, 41px) var(--at-margin) clamp(56px, 8vw, 120px); }
.at-hero::before, .at-hero::after { content: ""; position: absolute; pointer-events: none; }
.at-hero::before { left: 0; top: 0; width: 88%; aspect-ratio: 1268 / 593; background: var(--rib-tl) left top / 100% auto no-repeat; }
.at-hero::after { right: 0; bottom: 0; width: 47%; aspect-ratio: 678 / 363; background: var(--rib-br) right bottom / 100% auto no-repeat; }
.at-hero > * { position: relative; z-index: 1; }
.at-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) clamp(240px, 27vw, 388px); gap: clamp(24px, 5vw, 80px); align-items: center; margin-top: clamp(32px, 6.4vw, 92px); }
.at-hero__sub { color: var(--sub-on-ground); margin-top: 24px; max-width: 30em; }
.at-hero__actions { margin-top: clamp(24px, 3.9vw, 56px); display: flex; gap: 14px; flex-wrap: wrap; }
.at-photo-card { position: relative; aspect-ratio: 2 / 3; border-radius: var(--at-r-card); background: #ddd center / cover no-repeat; }
.at-photo-card .at-chip { position: absolute; left: -24%; top: 10%; }
.at-photo-card .at-badge { position: absolute; right: 5%; bottom: 4%; }

/* ---------- photo banner, bottle band and cards that straddle the line */
.at-feature { position: relative; }
.at-feature__photo { height: clamp(200px, 26vw, 380px); border-radius: var(--at-r-panel) var(--at-r-panel) 0 0; background: #ddd center / cover no-repeat; margin-top: calc(-1 * var(--at-r-panel)); position: relative; z-index: 2; }
.at-feature__band { background: var(--deep); border-radius: 0 0 var(--at-r-panel) var(--at-r-panel); padding: 0 var(--at-margin) clamp(32px, 4.4vw, 64px); position: relative; z-index: 2; }
.at-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(16px, 2.1vw, 30px); max-width: 1070px; margin: 0 auto; transform: translateY(clamp(-150px, -11vw, -70px)); margin-bottom: clamp(-150px, -11vw, -70px); }
.at-card { background: #fff; border-radius: var(--at-r-card); padding: 20px 20px 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-height: 330px; box-shadow: 0 6px 22px rgba(32,31,32,.08); }
.at-card .at-btn--outline { margin-top: auto; }

/* ---------- closing section: white, ribbons in both bottom corners, one action */
.at-closing { position: relative; overflow: hidden; text-align: center; padding: clamp(56px, 7vw, 100px) var(--at-margin) clamp(120px, 13vw, 190px); background: #fff; }
.at-closing::before, .at-closing::after { content: ""; position: absolute; bottom: 0; width: 36.3%; aspect-ratio: 523 / 198; pointer-events: none; }
.at-closing::before { left: 0; background: var(--close-l) left bottom / 100% auto no-repeat; }
.at-closing::after { right: 0; background: var(--close-r) right bottom / 100% auto no-repeat; }
.at-closing .at-body { max-width: 34em; margin: 14px auto 28px; font-size: 19px; }

/* ---------- finder: search bar, filters, result cards */
.at-section { padding: clamp(48px, 6vw, 88px) var(--at-margin); }
.at-search { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 10px; border-radius: 34px; background: #fff; box-shadow: 0 6px 22px rgba(32,31,32,.10); }
.at-field { display: flex; align-items: center; gap: 10px; flex: 1 1 200px; min-height: 56px; padding: 0 18px; border-radius: 24px; background: var(--at-cream); color: var(--at-bottle); font-size: 18px; }
.at-field input, .at-field select { flex: 1; min-width: 0; border: 0; background: transparent; font: 500 17px var(--at-font); color: var(--at-ink); outline: 0; }
.at-field--error { box-shadow: inset 0 0 0 2px var(--at-signal-red); }
.at-error { display: flex; gap: 8px; align-items: center; color: var(--at-signal-red); font-size: 14.5px; font-weight: 500; margin-top: 8px; }
.at-filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 26px; }
.at-pill { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--at-cream); color: var(--at-bottle); font-size: 15px; font-weight: 500; border: 0; }
.at-pill[aria-pressed="true"] { background: var(--at-bottle); color: #fff; }
.at-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.at-result { border-radius: var(--at-r-card); background: #fff; box-shadow: inset 0 0 0 1px var(--at-line); overflow: hidden; display: flex; flex-direction: column; }
.at-result__photo { aspect-ratio: 4 / 3; background: #ddd center / cover no-repeat; position: relative; }
.at-result__save { position: absolute; right: 14px; top: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--at-bottle); font-size: 19px; display: flex; align-items: center; justify-content: center; }
.at-result__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.at-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--at-grey); }
.at-meta span { display: inline-flex; gap: 6px; align-items: center; }

/* ---------- progress: green means forward */
.at-steps { display: flex; gap: 10px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.at-steps li { flex: 1 1 150px; padding-top: 14px; border-top: 6px solid var(--at-line); font-size: 15px; font-weight: 500; color: var(--at-grey); border-radius: 3px; }
.at-steps li.is-done { border-color: var(--at-green); color: var(--at-ink); }
.at-steps li.is-now { border-color: var(--at-bottle); color: var(--at-ink); }

/* ---------- empty and error states */
.at-empty { display: flex; gap: clamp(20px, 4vw, 48px); align-items: center; flex-wrap: wrap; padding: clamp(24px, 3vw, 40px); border-radius: var(--at-r-panel); background: #fff; box-shadow: inset 0 0 0 1px var(--at-line); }
.at-empty img { width: min(300px, 100%); border-radius: var(--at-r-card); }
.at-empty > div { flex: 1 1 260px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }

/* ---------- footer */
.at-footer { background: var(--at-bottle); color: #fff; padding: clamp(40px, 5vw, 72px) var(--at-margin) 32px; }
.at-footer__top { display: flex; gap: 40px; flex-wrap: wrap; justify-content: space-between; }
.at-footer__logo { width: 220px; }
.at-footer nav { display: flex; gap: 28px; flex-wrap: wrap; font-size: 16px; font-weight: 500; }
.at-footer a { text-decoration: none; }
.at-footer small { display: block; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.18); font-size: 13px; line-height: 1.5; color: rgba(255,255,255,.75); }

/* ---------- phones */
@media (max-width: 760px) {
  .at-nav__links { display: none; }
  .at-nav__menu { display: inline-flex; }
  .at-nav .at-btn { display: none; }
  .at-hero__grid { grid-template-columns: 1fr; }
  .at-photo-card { width: min(78%, 320px); margin-left: auto; }
  .at-photo-card .at-chip { left: -30%; }
  .at-hero::before { width: 150%; }
  .at-hero::after { width: 80%; }
  .at-closing::before, .at-closing::after { width: 46%; }
  .at-btn:not(.at-btn--small):not(.at-btn--outline) { height: 54px; font-size: 18px; }
  .at-btn:not(.at-btn--small):not(.at-btn--outline) i { width: 38px; height: 38px; }
}
