/* Adelaide Webcam Agency — design tokens + base styles.
   No external fonts: system font stacks keep the site fast and private. */

:root {
  --paper: #FAFAF9;
  --surface: #FFFFFF;
  --tint: #F1F0EE;
  --ink: #111111;
  --ink-soft: #52525B;
  --accent: #C2185B;       /* raspberry, 5.6:1 on paper (safe for text) */
  --accent-soft: #FCE4EC;
  --line: #E7E5E4;         /* decorative dividers only */
  --rule: rgba(17, 17, 17, .14); /* list rules that work on both backgrounds */
  --field-border: #8A8A8A; /* ≥3:1 for form controls (WCAG 1.4.11) */
  --error: #B3261E;
  --on-ink: #FFFFFF;       /* text on --ink and --accent buttons */
  --header-bg: rgba(250, 250, 249, .9);
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 16px 32px -20px rgba(0,0,0,.2);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 10px;          /* cards */
  --radius-sm: 8px;        /* buttons, fields, choices */
  --gutter: clamp(1.25rem, 5vw, 2rem);
  --space: clamp(3.5rem, 7vw, 5.5rem);
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.035em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
em { font-style: italic; color: var(--accent); }

a { color: var(--accent); text-underline-offset: .18em; }
a:hover { color: var(--ink); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 800px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: var(--on-ink); padding: .6rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; color: var(--on-ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .75rem 1.5rem;
  background: var(--ink); color: var(--on-ink);
  border: 1.5px solid var(--ink); border-radius: var(--radius-sm);
  font: 600 1rem/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--on-ink); }
.btn:active { transform: translateY(1px); }
.btn-small { min-height: 40px; padding: .55rem 1.1rem; font-size: .95rem; }
.btn-block { width: 100%; }
.btn[aria-disabled="true"] { opacity: .6; cursor: progress; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }

.wordmark {
  font-family: var(--font); font-size: 1.35rem; color: var(--ink);
  text-decoration: none; letter-spacing: -0.01em; white-space: nowrap;
}
.wordmark span { color: var(--ink-soft); font-style: italic; }
.wordmark-small { font-size: 1.15rem; margin: 0; }

@media (max-width: 720px) {
  .wordmark { font-size: 1.15rem; }
}
@media (max-width: 340px) {
  .wordmark span { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(3rem, 7vw, 5rem) var(--space); text-align: center; }
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.04; margin-bottom: 1.25rem; }
.hero h1 em { display: block; }


.hero-cta { margin: clamp(1.75rem, 4vw, 2.25rem) 0 0; }
.hero-cta .btn { min-width: 14rem; }

/* Intro video (16:9). Not on the page for now: a comment in index.html's hero shows how to add it back. */
.video-prompt { margin: clamp(1.75rem, 4vw, 2.25rem) 0 1rem; font-size: .95rem; color: var(--ink-soft); }
.video-prompt span { color: var(--accent); font-weight: 700; }
.video { display: block; width: 100%; max-width: 960px; aspect-ratio: 16 / 9; border-radius: calc(var(--radius) * 1.6); background: var(--ink); box-shadow: var(--shadow); }

.eyebrow {
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
}
.lede { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--ink-soft); max-width: 36rem; margin: 0; text-wrap: balance; }
.lede strong { color: var(--ink); }




/* ---------- Sections ---------- */
.section { padding-block: var(--space); }
.section-tint { background: var(--tint); }
.section-head { max-width: 40rem; margin: 0 auto clamp(2rem, 5vw, 3.5rem); text-align: center; }

/* What we offer / What you'll need: heading on the left, a ruled list on the right */
.split { display: grid; gap: 1.5rem 4rem; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); align-items: start; } }
.split-title { font-size: clamp(2rem, 4vw, 3rem); margin: 0; }
.split-sub { margin: .75rem 0 0; font-size: 1.1rem; color: var(--ink-soft); }
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.rows li { display: grid; gap: .3rem; padding: 1.35rem 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 700px) { .rows li { grid-template-columns: 13rem minmax(0, 1fr); gap: 2rem; align-items: baseline; } }
.rows h3 { font-size: 1.15rem; margin: 0; letter-spacing: -0.02em; }
.rows p { margin: 0; color: var(--ink-soft); }
.rows-plain li { display: block; font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.25rem 2.5rem 1.25rem 0; position: relative;
  font-family: var(--font); font-size: 1.2rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .35rem; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:hover { color: var(--accent); }
.faq details p { color: var(--ink-soft); padding-right: 2.5rem; margin-bottom: 1.5rem; }

/* ---------- Apply ---------- */
.apply-sub { color: var(--ink-soft); margin: 0; text-wrap: balance; }
.apply .section-head { margin-bottom: 2.25rem; }

.contact { margin-top: 2.5rem; text-align: center; }
.contact h3 { font-size: 1.15rem; margin-bottom: 1rem; }
/* Label / link pairs in two aligned columns, centred as a block */
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: auto auto; justify-content: center; align-items: baseline; gap: .6rem 1.25rem; text-align: left; }
.contact-list li { display: contents; }
.contact-label { font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); padding-top: .2rem; }
.contact-list a { overflow-wrap: anywhere; }

.apply-form {
  background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.5);
  padding: clamp(1.25rem, 4vw, 2.5rem);
}
.field { margin: 0 0 1.25rem; border: 0; padding: 0; min-width: 0; }
.field-short input { max-width: 9rem; }

/* Mobile number: country-code picker + number side by side.
   With JS the native <select> sits invisibly over a compact "AU +61" display; without JS it shows as normal. */
.phone-field { display: flex; gap: .5rem; }
.phone-field input { flex: 1; min-width: 0; }
.dial { position: relative; flex: none; width: 7.25rem; }
.dial select { width: 100%; min-height: 48px; font: inherit; font-size: 1rem; }
.js .dial select { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dial-display {
  display: flex; align-items: center; height: 100%; min-height: 48px; padding: 0 2rem 0 .9rem; white-space: nowrap;
  background: var(--paper); border: 1.5px solid var(--field-border); border-radius: var(--radius-sm); color: var(--ink-soft);
}
.dial-display.is-set { color: var(--ink); }
/* Down arrow, shared by the country-code picker and the country dropdown. */
.dial-display::after, .select::after {
  content: ""; position: absolute; right: .95rem; top: 50%; width: 7px; height: 7px; margin-top: -5px;
  border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg); pointer-events: none;
}
.dial:hover .dial-display { border-color: var(--ink-soft); }
.dial:focus-within .dial-display { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 3px var(--accent-soft); outline: 3px solid var(--accent); outline-offset: 2px; }

label, legend { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .4rem; padding: 0; }
.req { color: var(--accent); }
.hint { margin: -.1rem 0 .5rem; font-size: .875rem; color: var(--ink-soft); }

input:is([type="text"], [type="email"], [type="tel"], [type="number"]), .select select {
  width: 100%; min-height: 48px; padding: .7rem .9rem;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--field-border); border-radius: var(--radius-sm);
  transition: border-color .15s, background-color .15s;
}
input:is([type="text"], [type="email"], [type="tel"], [type="number"]):hover, .select select:hover { border-color: var(--ink-soft); }
input:is([type="text"], [type="email"], [type="tel"], [type="number"]):focus, .select select:focus { outline: 2px solid transparent; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 3px var(--accent-soft); }
:is(input, select)[aria-invalid="true"] { border-color: var(--error); }

/* Country dropdown: looks like the text fields, with the same down arrow as the country-code picker. */
.select { position: relative; }
.select select { appearance: none; padding-right: 2.5rem; cursor: pointer; }
.select select:invalid { color: var(--ink-soft); } /* "Choose your country" reads as a placeholder */
.select option { color: var(--ink); }

.choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.choice {
  display: inline-flex; align-items: center; gap: .5rem; margin: 0; min-height: 44px;
  padding: .5rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font-weight: 500; cursor: pointer;
  background: var(--paper);
}
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }

input[type="radio"], input[type="checkbox"] { accent-color: var(--accent); width: 1.15rem; height: 1.15rem; margin: 0; flex-shrink: 0; }

.consents { margin: .5rem 0 1.5rem; }
.check { display: flex; gap: .75rem; align-items: flex-start; font-weight: 400; font-size: .95rem; color: var(--ink-soft); margin-bottom: .85rem; cursor: pointer; }
.check input { margin-top: .25rem; }

.error { color: var(--error); font-size: .875rem; margin: .35rem 0 0; }
.consents .error { margin: 0 0 .75rem 1.9rem; }
.error:empty, .form-status:empty { margin: 0; }

.form-key { font-size: .875rem; color: var(--ink-soft); margin: 0 0 1.25rem; }


.form-status { margin: 1rem 0 0; font-size: .95rem; text-align: center; color: var(--ink-soft); }
.form-status:focus { outline: none; }
.form-status.is-error { color: var(--error); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 3rem; font-size: .925rem; color: var(--ink-soft); text-align: center; }
.footer-inner { display: grid; justify-items: center; gap: .75rem; }
.footer-inner p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }

/* ---------- Simple content pages ---------- */
.page { padding-block: clamp(3rem, 7vw, 5rem) var(--space); }
.page h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.page h2 { font-size: 1.5rem; margin-top: 2.25rem; }
.page p, .page li { color: var(--ink-soft); }
.page .eyebrow { color: var(--accent); }
.page ul { padding-left: 1.25rem; }
.page .updated { font-size: .9rem; }
.next-steps { text-align: left; max-width: 30rem; margin: 0 auto 1.75rem; padding-left: 1.25rem; display: grid; gap: .65rem; }
.next-steps strong { color: var(--ink); }
.notice { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
  .hero-cta .btn { width: 100%; }
  .hero-cta { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
