/* -----------------------------------------------------------------------------
   canberratrailers.com — one-page local trailer guide.
   Palette lifted from the Resort Trailers site (site/src/styles/global.css) so
   the two read as one family: navy #060644, slate #758696, sky #89d0ff.
   No build step. Hand-written CSS, uploaded as-is to cPanel.
----------------------------------------------------------------------------- */

:root {
  --navy: #060644;
  --navy-90: #14134f;
  --navy-70: #3a3a73;
  --slate: #758696;
  --slate-ink: #4b5570;
  --sky: #89d0ff;
  --ink: #101024;
  --paper: #ffffff;
  --paper-2: #f5f6fa;
  --line: #e4e6ef;
  --card: #ffffff;
  --wrap: 1120px;
  --radius: 10px;
}

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

html { scroll-behavior: smooth; }

/* The header is sticky, so anchor targets must clear it or the heading lands
   underneath the bar. Matches the tallest header state. */
:target, section[id] { scroll-margin-top: 84px; }
@media (max-width: 640px) { section[id] { scroll-margin-top: 12px; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--navy); }
a:hover { color: var(--navy-70); }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); letter-spacing: -.01em; }
h3 { font-size: 1.1rem; }
p  { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* --- Partner strip -------------------------------------------------------
   The AllBids pattern: a persistent, sitewide bar naming the sister sites.
   It is the primary hand-off to resorttrailers.com.au and sits above the fold
   on every viewport. ---------------------------------------------------- */
.strip {
  background: var(--navy);
  color: #cdd2ee;
  font-size: .82rem;
  letter-spacing: .02em;
}
.strip .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem 1rem;
  min-height: 40px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.strip a { color: #fff; text-decoration: none; font-weight: 600; }
.strip a:hover { color: var(--sky); text-decoration: underline; }
.strip .sep { color: #4b4f85; }
.strip .strip__right { margin-left: auto; }

/* --- Header --------------------------------------------------------------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  /* It is a link to the home page, but it should read as a wordmark. */
  text-decoration: none;
}
.brand:hover .brand__name { color: var(--navy-70); }
.brand__name {
  font-weight: 800;
  font-size: 1.18rem;
  color: var(--navy);
  letter-spacing: -.01em;
}
.brand__sub { font-size: .76rem; color: var(--slate-ink); }
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-left: auto;
  font-size: .9rem;
}
.site-nav a { color: var(--slate-ink); text-decoration: none; font-weight: 600; }
.site-nav a:hover { color: var(--navy); }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 46px;
  padding: 0 22px;
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--navy-90); border-color: var(--navy-90); color: #fff; }
.btn--sky { background: var(--sky); border-color: var(--sky); color: var(--navy); }
.btn--sky:hover { background: #6cc2ff; border-color: #6cc2ff; color: var(--navy); }
.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--on-navy { background: #fff; border-color: #fff; color: var(--navy); }
.btn--on-navy:hover { background: var(--sky); border-color: var(--sky); color: var(--navy); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* --- Sections ------------------------------------------------------------- */
.section { padding: clamp(44px, 7vw, 80px) 0; }
.section--tint { background: var(--paper-2); }
.section--navy { background: var(--navy); color: #dfe1f0; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }
.section--navy a { color: var(--sky); }

.eyebrow {
  display: block;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: .6rem;
}
.section--navy .eyebrow { color: var(--sky); }

.lead { font-size: 1.08rem; color: var(--slate-ink); max-width: 62ch; }
.section--navy .lead { color: #b9bcdc; }
.measure { max-width: 68ch; }

/* --- Hero ----------------------------------------------------------------- */
.hero { padding: clamp(48px, 8vw, 92px) 0; background: var(--paper-2); }
.hero p.lead { font-size: 1.15rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: .9rem;
  color: var(--slate-ink);
}
.hero__facts strong { color: var(--navy); }

/* --- Grids ---------------------------------------------------------------- */
.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.card h3 { margin-bottom: .4rem; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--slate-ink); font-size: .95rem; }

/* Category hand-off cards — these carry the deep links into the main site. */
.cat {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  text-decoration: none;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.cat:hover {
  border-color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6, 6, 68, .09);
}
.cat__name {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .25rem;
}
.cat__name::after { content: "\2192"; color: var(--slate); font-weight: 400; }
.cat__blurb { font-size: .9rem; color: var(--slate-ink); line-height: 1.5; }

/* --- Definition list (weights glossary) ----------------------------------- */
.terms { margin: 0; }
.terms > div {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.terms > div:first-child { border-top: 0; padding-top: 0; }
.terms dt { font-weight: 800; color: var(--navy); margin-bottom: .2rem; }
.terms dd { margin: 0; color: var(--slate-ink); }

/* --- Q&A ------------------------------------------------------------------ */
.qa { border-top: 1px solid var(--line); padding: 18px 0; }
.qa:last-of-type { border-bottom: 1px solid var(--line); }
.qa h3 { margin-bottom: .35rem; }
.qa p { color: var(--slate-ink); margin-bottom: 0; }

.note {
  margin-top: 26px;
  padding: 16px 18px;
  border-left: 3px solid var(--sky);
  background: var(--paper-2);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .92rem;
  color: var(--slate-ink);
}
.section--tint .note { background: var(--paper); }

/* --- Enquiry form --------------------------------------------------------- */
.form { max-width: 640px; }
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: 6px;
  color: #fff;
}
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid #3a3a73;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 3px solid var(--sky);
  outline-offset: 1px;
  border-color: var(--sky);
}
.field--row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
/* Honeypot — off-screen rather than display:none, which some bots detect. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__note { font-size: .85rem; color: #b9bcdc; margin-top: 14px; }
.form__status { margin-top: 16px; font-weight: 700; min-height: 1.5em; }
.form__status--ok { color: var(--sky); }
.form__status--err { color: #ffb4b4; }

/* --- Footer --------------------------------------------------------------- */
.site-footer {
  background: #04042f;
  color: #b9bcdc;
  padding: 54px 0 30px;
  font-size: .93rem;
}
.site-footer h3 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45rem; }

/* Footer affiliate block — the second half of the AllBids pattern. */
.affiliate a {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 18px;
  border: 1px solid #2c2e5f;
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color .15s, background .15s;
}
.affiliate a:hover { border-color: var(--sky); background: #0a0a45; }
.affiliate .affiliate__name { font-weight: 800; color: #fff; font-size: 1rem; }
.affiliate .affiliate__desc { font-size: .82rem; color: #b9bcdc; }

.colophon {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid #1d1d52;
  font-size: .84rem;
  color: #8f93bd;
}
.colophon p { margin-bottom: .35rem; }

@media (max-width: 640px) {
  .site-header { position: static; }
  .site-nav { width: 100%; margin-left: 0; }
}

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