/* =================================================================
   Arkwell — arkwellenergy.au
   Clean, professional design system. Mobile-first, responsive.
   ================================================================= */

/* ─── Tokens ─────────────────────────────────────────────────── */
:root {
  /* Brand palette (from Arkwell brand kit, warmed with sand neutral) */
  --c-ink:        #1d1d1c;   /* near-black — primary text, dark sections */
  --c-graphite:   #333333;   /* buttons, footer */
  --c-muted:      #6a6766;   /* secondary text */
  --c-line:       #e4e2dd;   /* hairline borders */
  --c-white:      #ffffff;
  --c-paper:      #fcfcfc;   /* page background */
  --c-surface:    #f6f6f6;   /* navbar */
  --c-input:      #f4f3f1;   /* form fields */
  --c-sand:       #e8e0d2;   /* warm accent */
  --c-sand-soft:  #f3eee4;   /* sand section background */
  --c-success-bg: #e7f5e6;
  --c-success-fg: #1e7b18;
  --c-error-bg:   #fdeaea;
  --c-error-fg:   #c0392b;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-head: 'Inter Tight', 'Inter', sans-serif;

  --container: 1180px;
  --container-narrow: 820px;

  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.06);
  --shadow:     0 6px 24px rgba(0,0,0,.08);
  --shadow-lg:  0 18px 50px rgba(0,0,0,.14);

  --nav-h: 74px;
}

/* ─── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; }

/* ─── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; color: var(--c-ink); }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; letter-spacing: 0.02em; }
p  { color: var(--c-ink); }

.eyebrow {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: .85rem;
}
.eyebrow--light { color: rgba(255,255,255,.72); }

/* ─── Layout ─────────────────────────────────────────────────── */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(20px, 5vw, 40px); }
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: clamp(56px, 9vw, 104px); }
.section--sand { background: var(--c-sand-soft); }
.section--dark { background: var(--c-ink); color: var(--c-white); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark p { color: var(--c-white); }

.section__head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; }
.section__head .eyebrow { display: block; }
.section__intro { color: var(--c-muted); font-size: 1.08rem; margin-top: .9rem; }
.section--dark .section__intro, .section__head--light .section__intro { color: rgba(255,255,255,.74); }

/* ─── Skip link ──────────────────────────────────────────────── */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--c-ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-body); font-size: .95rem; font-weight: 600; line-height: 1;
  padding: 13px 24px; border-radius: var(--radius-sm); border: 1.5px solid transparent;
  cursor: pointer; transition: transform .12s ease, background-color .2s, color .2s, border-color .2s, box-shadow .2s;
  white-space: nowrap; text-align: center;
}
.btn--lg { padding: 16px 30px; font-size: 1rem; }
.btn--full { width: 100%; }
.btn--primary { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }
.btn--primary:hover { background: #000; border-color: #000; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--outline:hover { background: rgba(255,255,255,.12); border-color: #fff; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--c-sand); outline-offset: 2px; }

/* ─── Navbar ─────────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-line);
  isolation: isolate;            /* keep logo blend contained */
}
.navbar__inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 1rem; }
.navbar__logo { display: flex; align-items: center; }
.navbar__logo img {
  height: 38px; width: auto;
  mix-blend-mode: multiply;      /* drops the white background on the light navbar */
}
.navbar__nav { display: flex; align-items: center; gap: 2rem; }
.navbar__links { display: flex; align-items: center; gap: 1.8rem; }
.navbar__links a { font-size: .95rem; font-weight: 500; color: var(--c-ink); transition: color .2s; }
.navbar__links a:hover { color: var(--c-muted); }
.navbar__phone { display: inline-flex; align-items: center; gap: .45rem; font-size: .95rem; font-weight: 600; color: var(--c-ink); white-space: nowrap; transition: color .2s; }
.navbar__phone svg { width: 17px; height: 17px; }
.navbar__phone:hover { color: var(--c-muted); }
.navbar__cta { padding: 11px 20px; }

.navbar__burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; background: none; border: none; padding: 10px;
}
.navbar__burger span { display: block; height: 2px; width: 100%; background: var(--c-ink); border-radius: 2px; transition: transform .25s, opacity .2s; }
.navbar__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.navbar__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative; isolation: isolate;
  background-color: var(--c-ink); background-size: cover; background-position: center;
  color: #fff;
  padding-block: clamp(72px, 14vw, 150px);
  min-height: min(86vh, 760px);
  display: flex; align-items: center;
}
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, rgba(20,20,19,.92) 0%, rgba(20,20,19,.72) 46%, rgba(20,20,19,.42) 100%);
}
.hero__content { max-width: 640px; }
.hero h1 { color: #fff; margin-bottom: 1.1rem; }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: rgba(255,255,255,.85); max-width: 33em; margin-bottom: 1.3rem; }
.hero__tagline { font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; color: #fff; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; }

/* ─── Benefit strip ──────────────────────────────────────────── */
.strip { background: var(--c-white); border-bottom: 1px solid var(--c-line); }
.strip__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px);
  padding-block: clamp(40px, 5vw, 56px);
}
.strip__item { text-align: center; }
.strip__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; margin-bottom: 1rem;
  border-radius: 50%; background: var(--c-ink); color: #fff;
}
.strip__icon svg { width: 26px; height: 26px; }
.strip__item h3 { margin-bottom: .35rem; }
.strip__item p { font-size: .92rem; color: var(--c-muted); }

/* ─── Two-column ─────────────────────────────────────────────── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.two-col--center { align-items: center; }
.two-col__text h2 { margin-bottom: 1.1rem; }
.two-col__text p { color: var(--c-muted); margin-bottom: 1rem; }
.two-col__text .btn { margin-top: .6rem; }

.media-card { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--c-white); }
.media-card img { width: 100%; height: 100%; max-height: 540px; object-fit: cover; }
.media-card figcaption { padding: 14px 18px; font-size: .85rem; color: var(--c-muted); background: var(--c-white); }

/* ─── Cards grid ─────────────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 26px); }
.card {
  background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 32px); box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: var(--radius); margin-bottom: 1.1rem;
  background: var(--c-sand-soft); color: var(--c-ink);
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: .6rem; }
.card p { color: var(--c-muted); font-size: .96rem; }

.cards--who { grid-template-columns: repeat(4, 1fr); }
.card--who { background: var(--c-white); }
.card--who h3 { margin-bottom: .55rem; }

/* ─── Split (who does what) ──────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 32px); }
.split__col { border-radius: var(--radius-lg); padding: clamp(26px, 3.4vw, 40px); }
.split__col--us  { background: var(--c-ink); color: #fff; }
.split__col--you { background: var(--c-sand-soft); border: 1px solid var(--c-sand); }
.split__col h3 { margin-bottom: 1.3rem; }
.split__tag {
  display: inline-block; font-family: var(--font-body); font-size: .76rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--c-ink);
  background: #fff; padding: 6px 12px; border-radius: 999px;
}
.split__tag--alt { background: var(--c-ink); color: #fff; }
.ticklist li { position: relative; padding-left: 2rem; margin-bottom: .9rem; line-height: 1.5; }
.ticklist li:last-child { margin-bottom: 0; }
.ticklist li::before {
  content: ""; position: absolute; left: 0; top: .15em;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(255,255,255,.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/13px no-repeat;
}
.split__col--us .ticklist li { color: rgba(255,255,255,.92); }
.ticklist--alt li { color: var(--c-ink); }
.ticklist--alt li::before {
  background: var(--c-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/13px no-repeat;
}
.ticklist em { color: var(--c-muted); font-style: italic; }
.split__col--us .ticklist em { color: rgba(255,255,255,.6); }

/* ─── Steps ──────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(18px, 2.2vw, 28px); counter-reset: step; }
.step { position: relative; padding-top: .5rem; }
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; margin-bottom: 1.1rem;
  border-radius: 50%; border: 1.5px solid rgba(255,255,255,.3);
  font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; color: #fff;
}
.step h3 { color: #fff; margin-bottom: .5rem; font-size: 1.1rem; }
.step p { color: rgba(255,255,255,.72); font-size: .94rem; }

/* ─── FAQ ────────────────────────────────────────────────────── */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item { background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; position: relative;
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: var(--c-ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 14px; height: 14px;
  margin-top: -7px; transition: transform .25s;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d1d1c' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat;
}
.faq__item[open] summary::after { transform: rotate(180deg); }
.faq__body { padding: 0 22px 20px; }
.faq__body p { color: var(--c-muted); }

/* ─── Contact ────────────────────────────────────────────────── */
.two-col--contact { align-items: start; gap: clamp(32px, 5vw, 64px); }
.contact__lead { color: rgba(255,255,255,.8); font-size: 1.08rem; margin-bottom: 1.5rem; }
.contact__points { margin-bottom: 1.5rem; }
.contact__points li { position: relative; padding-left: 1.8rem; margin-bottom: .7rem; color: rgba(255,255,255,.9); }
.contact__points li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8e0d2' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
}
.contact__email { color: rgba(255,255,255,.7); font-size: .95rem; }
.contact__email a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ─── Form ───────────────────────────────────────────────────── */
.form-card { background: var(--c-white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: clamp(24px, 3.4vw, 38px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form-field { display: flex; flex-direction: column; gap: .4rem; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-size: .85rem; font-weight: 600; color: var(--c-ink); }
.form-field .optional { font-weight: 400; color: var(--c-muted); }
.form-field input, .form-field select, .form-field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--c-ink);
  background: var(--c-input); border: 1.5px solid transparent; border-radius: var(--radius-sm);
  padding: 12px 14px; width: 100%; transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.form-field textarea { resize: vertical; min-height: 84px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; background: #fff; border-color: var(--c-ink); box-shadow: 0 0 0 3px rgba(29,29,28,.08);
}
.form-field input:user-invalid, .form-field select:user-invalid { border-color: var(--c-error-fg); }
.form-field input::placeholder, .form-field textarea::placeholder { color: #a8a49f; }
.form__submit { margin-top: 20px; }
.form__note { font-size: .78rem; color: var(--c-muted); text-align: center; margin-top: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__status { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-sm); font-size: .92rem; }
.form__status--success { background: var(--c-success-bg); color: var(--c-success-fg); }
.form__status--error { background: var(--c-error-bg); color: var(--c-error-fg); }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

/* ─── Footer ─────────────────────────────────────────────────── */
.footer { background: var(--c-ink); color: rgba(255,255,255,.75); padding-top: clamp(48px, 6vw, 72px); isolation: isolate; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: clamp(28px, 4vw, 56px); padding-bottom: 48px; }
.footer__logo { height: 72px; width: auto; margin-bottom: 1rem; mix-blend-mode: screen; }  /* drops black bg on dark footer */
.footer__tag { font-family: var(--font-head); font-weight: 600; color: #fff; margin-bottom: .6rem; }
.footer__blurb { font-size: .92rem; max-width: 34ch; }
.footer__col h4 { color: #fff; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; margin-bottom: 1rem; }
.footer__col ul li { margin-bottom: .6rem; }
.footer__col a { font-size: .94rem; color: rgba(255,255,255,.75); transition: color .2s; }
.footer__col a:hover { color: #fff; }
.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem;
  padding-block: 22px; border-top: 1px solid rgba(255,255,255,.12);
  font-size: .85rem; color: rgba(255,255,255,.55);
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cards--who { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  /* Mobile nav */
  .navbar__burger { display: flex; }
  .navbar__nav {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--c-surface); border-bottom: 1px solid var(--c-line);
    padding: 8px 20px 22px; box-shadow: var(--shadow);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity .22s, transform .22s, visibility .22s;
  }
  .navbar__nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .navbar__links { flex-direction: column; align-items: stretch; gap: 0; }
  .navbar__links a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--c-line); font-size: 1.05rem; }
  .navbar__phone { padding: 16px 4px 4px; font-size: 1.1rem; }
  .navbar__cta { margin-top: 16px; width: 100%; }

  .two-col { grid-template-columns: 1fr; }
  .two-col--contact { gap: 32px; }
  .split { grid-template-columns: 1fr; }
  .strip__grid { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .media-card img { max-height: 420px; }
}

@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .cards--who { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .hero__actions .btn { flex: 1; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
}

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