/* ============================================================
   AusTravla marketing site — styles.css
   Mobile-first, responsive, accessible. Australian English.
   Palette derived from the logo (BRAND.md §5).
   ============================================================ */

:root {
  /* Brand palette */
  --eucalypt:      #6C834D; /* primary green (fills/backgrounds) */
  --green-text:    #4E6839; /* WCAG-safe green for text & buttons on white */
  --sage:          #7C9554;
  --sage-light:    #A7BB66;
  --gold:          #EEBA4A; /* on dark backgrounds only — never on white */
  --teal:          #397D92;
  --teal-link:     #186170; /* links */
  --charcoal:      #231F20; /* body text */
  --cream:         #F6FBE5; /* surface */
  --white:         #ffffff;

  /* Semantic tokens */
  --bg:            var(--cream);
  --surface:       var(--white);
  --text:          var(--charcoal);
  --text-muted:    #4a4746;
  --heading:       var(--green-text);
  --link:          var(--teal-link);
  --border:        #d9e2c2;

  /* Scale */
  --maxw: 68rem;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(35, 31, 32, 0.10);
  --space: clamp(3rem, 8vw, 5.5rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--link); }
a:hover { text-decoration: none; }

h1, h2, h3 { color: var(--heading); line-height: 1.15; margin: 0 0 0.5em; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ---- Accessibility helpers ---- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--green-text);
  color: var(--white);
  padding: 0.6rem 1rem;
  z-index: 100;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

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

/* DRAFT marker for unfinished copy */
.draft-tag {
  display: inline-block;
  font-size: 0.62em;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
  color: var(--charcoal);
  background: var(--gold);
  padding: 0.12em 0.5em;
  border-radius: 999px;
  margin-right: 0.4em;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.06s ease, background 0.15s ease, color 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--green-text);
  color: var(--white);
}
.btn--primary:hover { background: #3f5530; }

.btn--ghost {
  background: transparent;
  color: var(--green-text);
  border-color: var(--green-text);
}
.btn--ghost:hover { background: rgba(78, 104, 57, 0.08); }

/* ---- Header ---- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.7rem;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--green-text);
}
.brand__logo { width: 40px; height: auto; }
.brand__name { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.01em; }

.site-nav { display: flex; gap: 0.5rem 1.25rem; flex-wrap: wrap; }
.site-nav a {
  color: var(--green-text);
  text-decoration: none;
  font-weight: 600;
  padding: 0.25rem 0;
}
.site-nav a:hover { text-decoration: underline; }

/* ---- Hero ---- */
.hero {
  background:
    radial-gradient(120% 90% at 85% -10%, rgba(124, 149, 84, 0.28), transparent 60%),
    linear-gradient(180deg, var(--cream), var(--surface));
  padding-block: clamp(2.5rem, 8vw, 5rem);
  text-align: center;
}
.hero__inner { max-width: 44rem; }
.hero__logo {
  width: clamp(120px, 30vw, 180px);
  height: auto;
  margin: 0 auto 1.25rem;
}
.hero__tagline {
  font-weight: 800;
  color: var(--eucalypt);
  font-size: clamp(1.15rem, 4vw, 1.5rem);
  margin: 0 0 0.75rem;
  letter-spacing: 0.01em;
}
.hero__heading {
  font-size: clamp(1.9rem, 6vw, 3rem);
  font-weight: 800;
  margin-bottom: 0.6rem;
}
.hero__lede {
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  color: var(--text-muted);
  margin: 0 auto 1.75rem;
  max-width: 38rem;
}
.hero__actions {
  display: flex;
  gap: 0.85rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero__note {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ---- Sections ---- */
.section { padding-block: var(--space); }
.section--alt { background: var(--surface); border-block: 1px solid var(--border); }
.section__title {
  font-size: clamp(1.6rem, 4.5vw, 2.25rem);
  text-align: center;
}
.section__intro {
  text-align: center;
  color: var(--text-muted);
  max-width: 40rem;
  margin: 0 auto 2.5rem;
}

/* ---- Feature cards ---- */
.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow);
}
.section--alt .card { background: var(--cream); }
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  font-size: 1.5rem;
  border-radius: 12px;
  background: var(--sage-light);
  margin-bottom: 0.9rem;
}
.card__title { font-size: 1.2rem; margin-bottom: 0.35rem; }
.card__body { margin: 0; color: var(--text-muted); }

/* ---- App preview / screenshots ---- */
.screens {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  justify-items: center;
}
.screen { margin: 0; text-align: center; }
.screen__frame {
  width: min(240px, 70vw);
  aspect-ratio: 9 / 19;
  border-radius: 26px;
  border: 3px solid var(--eucalypt);
  background:
    repeating-linear-gradient(135deg, rgba(124,149,84,0.10) 0 12px, transparent 12px 24px),
    var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}
.screen__placeholder {
  color: var(--green-text);
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}
.screen__caption {
  margin-top: 0.75rem;
  font-weight: 600;
  color: var(--green-text);
}

/* ---- Notify ---- */
.notify { background: var(--eucalypt); color: var(--white); text-align: center; }
.notify .section__title { color: var(--white); }
.notify__inner { max-width: 40rem; }
.notify__lede { color: rgba(255, 255, 255, 0.92); margin-bottom: 1.75rem; }
.notify .draft-tag { color: var(--charcoal); } /* gold on dark — OK */
.notify__label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-align: left;
}
.notify__row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.notify__input {
  flex: 1 1 14rem;
  min-width: 0;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  border-radius: 999px;
  border: 2px solid transparent;
  background: var(--white);
  color: var(--charcoal);
}
.notify .btn--primary {
  background: var(--gold);
  color: var(--charcoal);
}
.notify .btn--primary:hover { background: #e0a92f; }
.notify__disclaimer {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  text-align: left;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.85);
  padding-block: 2.5rem;
}
.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}
.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--white);
  margin: 0;
}
.site-footer__logo { width: 34px; height: auto; }
.site-footer__links { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.site-footer__links a { color: var(--sage-light); text-decoration: none; font-weight: 600; }
.site-footer__links a:hover { text-decoration: underline; }
.site-footer__legal { margin: 0; font-size: 0.88rem; color: rgba(255, 255, 255, 0.7); }

/* ============================================================
   Responsive — tablet and up
   ============================================================ */
@media (min-width: 40rem) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .screens { grid-template-columns: repeat(3, 1fr); align-items: start; }
}

@media (min-width: 60rem) {
  .features { grid-template-columns: repeat(4, 1fr); }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
