/* ==========================================================================
   AUS ELECTRICAL & DATA SERVICES
   --------------------------------------------------------------------------
   The thesis is unchanged: 148 real reviews, real job photos, two electricians
   customers ask for by name. The page exists to put that evidence in front of
   someone deciding who to ring.

   Rendition: soft, rounded, warm. One committed colour doing the work.
   No monospace, no uppercase, no eyebrow labels, no zero blur block shadows.
   ========================================================================== */

:root {
  /* Committed hue. The yellow on a sparkie's test gear and their hi-vis. */
  --volt:        #FFC400;
  --volt-deep:   #E8A900;
  --volt-soft:   #FFF6DC;
  --volt-ink:    #3A2B00;

  --ink:         #1A1C20;
  --ink-2:       #43474F;
  --ink-3:       #6B7280;

  --paper:       #FFFFFF;
  --bg:          #FBFAF8;
  --bg-2:        #F4F2EE;

  --dark:        #16181C;
  --dark-2:      #212429;
  --dark-3:      #2E3238;

  --alert:       #DC3B26;
  --alert-deep:  #B72E1C;
  --go:          #1E9E62;

  --rule:        rgba(26, 28, 32, .10);
  --rule-2:      rgba(26, 28, 32, .16);
  --rule-dark:   rgba(255, 255, 255, .14);

  /* One family, wide weight range, plenty of character at display sizes. */
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --t-hero:  clamp(2.6rem, 6vw, 5.25rem);
  --t-h1:    clamp(2.1rem, 4.4vw, 3.6rem);
  --t-h2:    clamp(1.7rem, 3vw, 2.6rem);
  --t-h3:    clamp(1.2rem, 1.7vw, 1.5rem);
  --t-body:  clamp(1rem, .3rem + .5vw, 1.125rem);
  --t-small: .9375rem;

  --lh-tight: 1.02;
  --lh-head:  1.12;
  --lh-body:  1.65;

  --s-1: .25rem;  --s-2: .5rem;   --s-3: .75rem;  --s-4: 1rem;
  --s-5: 1.5rem;  --s-6: 2rem;    --s-7: 3rem;    --s-8: 4rem;
  --s-9: 6rem;    --s-10: 8rem;

  --section-y:  clamp(4rem, 8vw, 8rem);
  --heading-mb: clamp(.75rem, 1.3vw, 1.15rem);

  /* Rounded throughout. Cards are generous, controls are pills. */
  --r-sm:  10px;
  --r-md:  16px;
  --r-lg:  24px;
  --r-xl:  32px;
  --r-pill: 999px;

  /* Real depth: offset plus blur, tinted from the ink rather than pure black. */
  --lift-1: 0 1px 2px rgba(26,28,32,.05), 0 2px 8px rgba(26,28,32,.05);
  --lift-2: 0 2px 4px rgba(26,28,32,.05), 0 10px 24px -6px rgba(26,28,32,.12);
  --lift-3: 0 4px 8px rgba(26,28,32,.06), 0 22px 48px -12px rgba(26,28,32,.20);
  --lift-volt: 0 8px 24px -6px rgba(232,169,0,.42);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur:  240ms;

  --shell-max: 82rem;
  --shell-pad: clamp(1.15rem, 4vw, 2.75rem);
}

/* --------------------------------------------------------------------------
   Reset. This stylesheet loads standalone so it carries its own.
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul[class], ol[class] { list-style: none; margin: 0; padding: 0; }
img, picture, svg, video { display: block; max-width: 100%; }
input, button, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; }
/* Clip sideways overflow without creating a scroll container. Using
   overflow-x:hidden on html AND body makes them compete and kills vertical
   scrolling entirely, so this stays on html alone and uses clip, not hidden. */
html { max-width: 100%; overflow-x: clip; }
body { max-width: 100%; }
*, *::before, *::after { min-width: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 700;
  line-height: var(--lh-head);
  letter-spacing: -.025em;
  text-wrap: balance;
}
h1 { font-size: var(--t-h1); line-height: var(--lh-tight); letter-spacing: -.035em; }
h2 { font-size: var(--t-h2); letter-spacing: -.03em; }
h3 { font-size: var(--t-h3); letter-spacing: -.02em; }

p { text-wrap: pretty; max-width: 68ch; }
a { color: inherit; }

/* --------------------------------------------------------------------------
   Browser surfaces. The parts we did not draw still carry the design.
   -------------------------------------------------------------------------- */
::selection { background: var(--volt); color: var(--volt-ink); }
:root { accent-color: var(--volt); caret-color: var(--ink); }
* { scrollbar-color: var(--ink-3) transparent; scrollbar-width: thin; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: rgba(26,28,32,.24); border-radius: var(--r-pill); border: 3px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-thumb:hover { background: rgba(26,28,32,.38); background-clip: content-box; }
*::-webkit-scrollbar-track { background: transparent; }
a { text-underline-offset: .18em; text-decoration-thickness: .08em; }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--volt-deep);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}
.on-dark :where(a, button, input, select, textarea):focus-visible { outline-color: var(--volt); }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--shell-pad);
}
.section { padding-block: var(--section-y); }
.section--tint { background: var(--bg-2); }
.section--dark { background: var(--dark); color: #fff; }
.section--dark p { color: rgba(255,255,255,.74); }
.section--volt { background: var(--volt); color: var(--volt-ink); }

.sechead { max-width: 58ch; margin-bottom: var(--s-7); }
.sechead h2 { margin-bottom: var(--heading-mb); }
.sechead p { color: var(--ink-2); font-size: 1.075rem; }
.section--dark .sechead p { color: rgba(255,255,255,.72); }
.section--volt .sechead p { color: rgba(58,43,0,.78); }

/* --------------------------------------------------------------------------
   Controls
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -.011em;
  padding: .95rem 1.6rem;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  background: var(--volt);
  color: var(--volt-ink);
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--lift-1);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.btn:hover  { transform: translateY(-2px); box-shadow: var(--lift-2); }
.btn:active { transform: translateY(0); box-shadow: var(--lift-1); }

.btn--alert { background: var(--alert); color: #fff; }
.btn--alert:hover { background: var(--alert-deep); }
.btn--dark  { background: var(--dark); color: #fff; }
.btn--light { background: var(--paper); color: var(--ink); border-color: var(--rule-2); }
.btn--ghost { background: transparent; color: currentColor; border-color: currentColor; box-shadow: none; }
.btn--ghost:hover { background: currentColor; color: var(--dark); box-shadow: none; }
.btn--lg    { padding: 1.1rem 2rem; font-size: 1.0625rem; }
.btn--block { width: 100%; }

.field { display: block; }
.field__label {
  display: block;
  font-size: var(--t-small);
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: var(--s-2);
}
.field__input, .field__select, .field__textarea {
  width: 100%;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule-2);
  border-radius: var(--r-sm);
  padding: .9rem 1.05rem;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field__input::placeholder, .field__textarea::placeholder { color: var(--ink-3); }
.field__input:focus, .field__select:focus, .field__textarea:focus {
  outline: none;
  border-color: var(--volt-deep);
  box-shadow: 0 0 0 4px var(--volt-soft);
}
.field__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236B7280' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.05rem center;
  padding-right: 2.6rem;
}

/* --------------------------------------------------------------------------
   Surfaces
   -------------------------------------------------------------------------- */
.panel {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  box-shadow: var(--lift-1);
}
.panel--dark { background: var(--dark-2); border-color: var(--rule-dark); color: #fff; }
.panel--flat { box-shadow: none; }

/* Small factual tag. Sits inside a card next to content, never above a
   heading as a label. */
.tag {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1;
  padding: .42em .75em;
  border-radius: var(--r-pill);
  background: var(--volt-soft);
  color: #6B5200;
}
.tag--go   { background: rgba(30,158,98,.12); color: #146B42; }
.tag--dark { background: rgba(255,255,255,.1); color: #fff; }

/* --------------------------------------------------------------------------
   Marquee of real job photos
   -------------------------------------------------------------------------- */
.trace {
  --trace-dur: 70s;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.trace__rail {
  display: flex;
  gap: var(--s-4);
  width: max-content;
  animation: trace-run var(--trace-dur) linear infinite;
  will-change: transform;
}
.trace:hover .trace__rail, .trace:focus-within .trace__rail { animation-play-state: paused; }
@keyframes trace-run {
  from { transform: translate3d(0,0,0); }
  to   { transform: translate3d(-50%,0,0); }
}
@media (prefers-reduced-motion: reduce) {
  .trace__rail { animation: none; }
  .trace { overflow-x: auto; }
}

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