/* =========================================================================
   Faber Electric — Marshfield, Wisconsin
   Refined, dignified, with care.
   ========================================================================= */

:root {
  /* Dark (default) */
  --bg: #0c1626;
  --bg-2: #101e34;
  --surface: #142849;
  --surface-2: #19315a;
  --border: #1f3760;
  --border-strong: #2e4a7e;

  --text: #f1f5fb;
  --text-muted: #a3b3cc;
  --text-dim: #6e80a0;

  --accent: #d4a056;
  --accent-bright: #f0c074;
  --accent-deep: #a17231;
  --accent-soft: rgba(212, 160, 86, 0.12);

  --gold-glow: rgba(212, 160, 86, 0.45);

  --success: #5cd6a4;
  --danger: #f87171;

  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 20px 50px -20px rgba(0,0,0,0.65);
  --shadow-lg: 0 40px 100px -25px rgba(0,0,0,0.85);

  --max-w: 1200px;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
}

/* Light theme overrides */
:root[data-theme="light"] {
  --bg: #f7f4ee;
  --bg-2: #efeae0;
  --surface: #ffffff;
  --surface-2: #faf6ee;
  --border: #e3dcd0;
  --border-strong: #cbc1ad;

  --text: #1d2333;
  --text-muted: #4d5673;
  --text-dim: #7a8298;

  --accent: #a17231;
  --accent-bright: #c89554;
  --accent-deep: #75501e;
  --accent-soft: rgba(161, 114, 49, 0.10);

  --gold-glow: rgba(161, 114, 49, 0.35);

  --shadow: 0 18px 40px -20px rgba(20, 35, 70, 0.18);
  --shadow-lg: 0 30px 80px -25px rgba(20, 35, 70, 0.25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color .3s ease, color .3s ease;
}

img, svg { display: block; max-width: 100%; }

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

::selection { background: var(--accent); color: var(--bg); }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 0 0 6px 0;
  font-weight: 700;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.015em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .2s ease, background .25s ease, border-color .25s ease, color .25s ease, box-shadow .25s ease;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-bright) 0%, var(--accent) 60%, var(--accent-deep) 100%);
  color: #1d1408;
  box-shadow: 0 14px 30px -10px var(--gold-glow);
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: translateX(-100%);
  transition: transform .7s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  color: #1d1408;
  box-shadow: 0 18px 36px -10px var(--gold-glow);
}
.btn-primary:hover::after { transform: translateX(100%); }
.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
  transition: padding .2s ease, background .3s ease;
}
.site-header.scrolled { padding: 0; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--accent);
  transition: transform .4s cubic-bezier(.34,1.56,.64,1);
}
.brand:hover .brand-mark { transform: rotate(-12deg) scale(1.08); }
.brand-mark svg { width: 100%; height: 100%; }

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-main {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.005em;
  color: var(--text);
}
.brand-sub {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 4px;
  font-weight: 500;
}

.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  align-items: center;
}
.primary-nav a {
  color: var(--text-muted);
  padding: 9px 14px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 14.5px;
  transition: color .15s ease, background .15s ease;
  position: relative;
}
.primary-nav a:hover { color: var(--text); background: color-mix(in srgb, var(--text) 5%, transparent); }
.primary-nav a.active {
  color: var(--accent);
}
.primary-nav a.active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.primary-nav .nav-cta {
  background: var(--accent);
  color: var(--bg);
  margin-left: 8px;
}
.primary-nav .nav-cta:hover { background: var(--accent-bright); color: var(--bg); }
.primary-nav .nav-cta.active::after { display: none; }

.header-utils {
  display: flex;
  align-items: center;
  gap: 8px;
}
.theme-toggle {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, transform .3s ease;
  position: relative;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); transform: rotate(15deg); }
.theme-toggle .ti-sun { display: none; }
:root[data-theme="light"] .theme-toggle .ti-moon { display: none; }
:root[data-theme="light"] .theme-toggle .ti-sun { display: block; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 9px 11px;
  cursor: pointer;
  gap: 4px;
  flex-direction: column;
  align-items: stretch;
  width: 42px;
  height: 40px;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s ease, opacity .15s ease;
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  padding: 100px 0 110px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-warm {
  position: absolute;
  top: -200px;
  left: -100px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 60%);
  filter: blur(80px);
  opacity: 0.18;
}
.hero-cool {
  position: absolute;
  bottom: -240px;
  right: -180px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, #4f88e0 0%, transparent 60%);
  filter: blur(90px);
  opacity: 0.18;
}
.hero-circuit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--accent);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  color: var(--accent);
  border-radius: 40px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.eyebrow.muted {
  background: color-mix(in srgb, var(--text) 5%, transparent);
  border-color: var(--border);
  color: var(--text-muted);
}
.eyebrow .dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--gold-glow); }
  70% { box-shadow: 0 0 0 8px transparent; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.5vw + 0.4rem, 5rem);
  line-height: 1.05;
  letter-spacing: -0.005em;
  margin: 22px 0 26px;
  font-weight: 600;
}
.hero-line { display: block; opacity: 0; transform: translateY(20px); animation: lineIn .8s ease forwards; }
.hero-line:nth-child(1) { animation-delay: .1s; }
.hero-line:nth-child(2) { animation-delay: .3s; }
.hero-line:nth-child(3) { animation-delay: .5s; }
@keyframes lineIn {
  to { opacity: 1; transform: translateY(0); }
}
.accent {
  color: var(--accent);
  font-style: italic;
  font-weight: 700;
  position: relative;
  display: inline-block;
}
.accent-word { position: relative; z-index: 1; }
.accent-underline {
  position: absolute;
  bottom: -10px;
  left: 0;
  right: 0;
  height: 14px;
  color: var(--accent);
  pointer-events: none;
}
.accent-underline svg { width: 100%; height: 100%; }
.accent-underline path {
  stroke-dasharray: 250;
  stroke-dashoffset: 250;
  animation: drawUnderline 1.5s ease forwards .9s;
}
@keyframes drawUnderline {
  to { stroke-dashoffset: 0; }
}

.lede {
  font-size: 17.5px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 0 32px;
  opacity: 0;
  animation: fadeIn 1s ease forwards .7s;
}
@keyframes fadeIn { to { opacity: 1; } }

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 30px;
  opacity: 0;
  animation: fadeIn 1s ease forwards .9s;
}
.hero-trust {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  color: var(--text-dim);
  font-size: 13.5px;
  opacity: 0;
  animation: fadeIn 1s ease forwards 1.1s;
}
.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.hero-trust svg { color: var(--success); }

/* Hero card */
.hero-card {
  background: linear-gradient(160deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 36px 32px 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: cardIn 1s cubic-bezier(.2,.8,.2,1) forwards .4s;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(30px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, var(--accent) 0%, transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.6;
  pointer-events: none;
}
.hero-bolt {
  position: absolute;
  top: -30px;
  right: -20px;
  width: 200px;
  height: 280px;
  opacity: 0.25;
  pointer-events: none;
}
.hero-bolt svg {
  width: 100%;
  height: 100%;
}
.bolt-path {
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: boltDraw 2.4s ease forwards .8s, boltGlow 4s ease-in-out infinite 3.5s;
}
@keyframes boltDraw {
  to { stroke-dashoffset: 0; }
}
@keyframes boltGlow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.spark {
  position: absolute;
  width: 5px;
  height: 5px;
  background: var(--accent-bright);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-bright), 0 0 16px var(--gold-glow);
  opacity: 0;
}
.spark-1 { top: 60px; right: 40px; animation: spark 3s ease-in-out infinite 1s; }
.spark-2 { top: 120px; right: 100px; animation: spark 3s ease-in-out infinite 1.6s; }
.spark-3 { top: 170px; right: 30px; animation: spark 3s ease-in-out infinite 2.2s; }
.spark-4 { top: 220px; right: 70px; animation: spark 3s ease-in-out infinite 2.8s; }
@keyframes spark {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  20%, 60% { opacity: 1; transform: scale(1); }
}

.hc-rows { position: relative; z-index: 1; }
.hc-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}
.hc-row:last-child { border-bottom: none; }
.hc-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  font-weight: 600;
}
.hc-val {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--text);
  text-align: right;
}
.hc-val strong {
  font-size: 34px;
  color: var(--accent);
  line-height: 1;
}
.hc-val .plus {
  font-size: 18px;
  color: var(--accent);
  margin-left: 1px;
}

.hc-call {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-top: 22px;
  transition: background .2s ease, transform .2s ease;
}
.hc-call:hover {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  transform: translateY(-2px);
}
.hc-call-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
  display: block;
}
.hc-call-num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--accent);
  display: block;
  margin-top: 2px;
}
.hc-call-arrow {
  font-size: 20px;
  color: var(--accent);
  transition: transform .25s ease;
}
.hc-call:hover .hc-call-arrow { transform: translateX(4px); }

/* ===================== SECTIONS ===================== */
.section {
  padding: 110px 0;
  position: relative;
}
.section-alt {
  background:
    radial-gradient(700px 400px at 50% 0%, var(--accent-soft), transparent 60%),
    var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw + 0.3rem, 3.2rem);
  line-height: 1.15;
  letter-spacing: -0.005em;
  margin: 14px 0 16px;
  font-weight: 600;
}
.section-sub {
  color: var(--text-muted);
  font-size: 16.5px;
  margin: 0;
}

/* ===================== REVEAL ANIMATIONS ===================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .40s; }

/* ===================== SERVICES ===================== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .25s ease, box-shadow .35s ease, background .25s ease;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: translateX(-100%);
  transition: transform .6s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  background: var(--surface-2);
  box-shadow: var(--shadow);
}
.service-card:hover::before { transform: translateX(0); }

.service-icon {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  transition: transform .35s ease, background .25s ease;
}
.service-card:hover .service-icon {
  transform: rotate(-6deg) scale(1.05);
  background: color-mix(in srgb, var(--accent) 22%, transparent);
}
.service-icon svg { width: 26px; height: 26px; }

.service-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 0 0 8px;
  font-weight: 600;
  letter-spacing: 0;
}
.service-card p {
  color: var(--text-muted);
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
}

/* ===================== APPROACH ===================== */
.approach-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 72px;
  align-items: center;
}
.approach-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw + 0.3rem, 3.2rem);
  line-height: 1.15;
  margin: 14px 0 16px;
  font-weight: 600;
}
.approach-copy .section-sub { text-align: left; margin-bottom: 32px; }
.approach-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 22px;
}
.approach-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: flex-start;
}
.al-marker {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--accent);
  width: 56px;
  height: 56px;
  display: inline-grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 50%;
  background: var(--accent-soft);
  flex-shrink: 0;
}
.approach-list h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin: 4px 0 4px;
}
.approach-list p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

.approach-quote {
  background: linear-gradient(160deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 56px 44px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.aq-pattern {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 200px;
  height: 200px;
  color: var(--accent);
  opacity: 0.15;
  pointer-events: none;
}
.aq-pattern svg { width: 100%; height: 100%; }
.approach-quote blockquote {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.35;
  color: var(--text);
  margin: 0 0 18px;
  font-style: italic;
  font-weight: 500;
  position: relative;
  z-index: 1;
}
.approach-quote cite {
  font-style: normal;
  font-size: 13.5px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ===================== SERVICE AREA ===================== */
.area-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}
.area-pill {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 40px;
  padding: 10px 20px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  transition: border-color .2s ease, color .2s ease, background .2s ease, transform .2s ease;
  cursor: default;
}
.area-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.area-pill-main {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  font-size: 20px;
}
.area-pill-main:hover {
  background: var(--accent-bright);
  color: var(--bg);
  border-color: var(--accent-bright);
}
.area-note {
  text-align: center;
  margin: 28px 0 0;
  color: var(--text-muted);
  font-style: italic;
}

/* ===================== CONTACT ===================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 64px;
  align-items: start;
}
.contact-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw + 0.3rem, 3.2rem);
  line-height: 1.15;
  margin: 14px 0 16px;
  font-weight: 600;
}
.contact-copy .section-sub { text-align: left; margin-bottom: 28px; }

.big-call {
  display: block;
  background:
    linear-gradient(135deg, var(--accent-deep) 0%, var(--accent) 100%);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  color: #1d1408;
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 22px 50px -20px var(--gold-glow);
}
.big-call::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -30%;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(255,255,255,0.25), transparent 60%);
  pointer-events: none;
}
.big-call:hover {
  transform: translateY(-3px);
  color: #1d1408;
  box-shadow: 0 28px 56px -20px var(--gold-glow);
}
.bc-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 6px;
}
.bc-num {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  line-height: 1.05;
}
.bc-meta {
  font-size: 13px;
  margin-top: 6px;
  opacity: 0.75;
  font-weight: 500;
}

.hours-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
}
.hours-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 0 0 14px;
  font-weight: 600;
}
.hours-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.hours-card li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--text-muted);
  font-size: 14.5px;
  padding: 4px 0;
  border-bottom: 1px solid var(--border);
}
.hours-card li:last-child { border-bottom: none; }
.hours-card li span:last-child { color: var(--text); font-weight: 500; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
}
.form-row { margin-bottom: 16px; }
.form-row label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--text);
  padding: 13px 16px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.form-row textarea { resize: vertical; min-height: 120px; }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}
.form-row select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3e%3cpath fill='%23a3b3cc' d='M6 8L0 0h12z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.form-status {
  margin: 14px 0 0;
  font-size: 14px;
  min-height: 20px;
}
.form-status.ok { color: var(--success); }
.form-status.err { color: var(--danger); }
.form-fine {
  margin: 14px 0 0;
  font-size: 12.5px;
  color: var(--text-dim);
  text-align: center;
}
.form-fine a { color: var(--accent); }

/* ===================== MEMORIAM ===================== */
.memoriam {
  position: relative;
  padding: 120px 0 140px;
  background:
    radial-gradient(900px 600px at 50% 0%, var(--accent-soft), transparent 60%),
    var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.memoriam-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.mem-orb {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 65%);
  filter: blur(80px);
  opacity: 0.1;
  top: 10%;
  left: -10%;
  animation: floatOrb 14s ease-in-out infinite;
}
.mem-orb-2 {
  top: auto;
  bottom: 5%;
  left: auto;
  right: -10%;
  width: 600px;
  height: 600px;
  animation-delay: 7s;
  opacity: 0.08;
}
@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(40px, -30px); }
}

.memoriam-inner {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.mem-rule {
  width: 80px;
  height: 1px;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  position: relative;
}
.mem-rule::before,
.mem-rule::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  transform: translateY(-50%);
}
.mem-rule::before { left: -3px; }
.mem-rule::after { right: -3px; }

.mem-eyebrow {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.16em;
  color: var(--accent);
  text-transform: uppercase;
  margin: 36px 0 12px;
  font-weight: 500;
  font-style: italic;
}
.mem-name {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw + 0.4rem, 4.5rem);
  margin: 0 0 8px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.05;
}
.mem-dates {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--text-muted);
  font-style: italic;
  margin: 0 0 42px;
  font-weight: 500;
}

.mem-body {
  text-align: left;
  max-width: 620px;
  margin: 0 auto 48px;
}
.mem-body p {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.6;
  color: var(--text);
  margin: 0 0 22px;
  font-weight: 500;
}
.mem-lead { font-size: 21px; }
.dropcap {
  font-family: var(--font-display);
  float: left;
  font-size: 5.6em;
  line-height: 0.85;
  padding: 8px 14px 0 0;
  color: var(--accent);
  font-weight: 700;
}
.mem-sig {
  font-style: italic;
  font-size: 16.5px !important;
  color: var(--text-muted) !important;
  border-left: 2px solid var(--accent);
  padding-left: 18px;
  margin-top: 32px !important;
}

/* Candle */
.candle-area {
  margin: 56px 0 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.candle-prompt {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--text-muted);
  font-style: italic;
  margin: 0 0 24px;
}
.candle {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: relative;
  display: inline-block;
  transition: transform .25s ease;
}
.candle:hover { transform: translateY(-4px); }
.candle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 8px;
  border-radius: 8px;
}
.candle-body {
  display: block;
  width: 90px;
  position: relative;
}
.wick {
  display: block;
  width: 2px;
  height: 11px;
  background: #1c1410;
  margin: 0 auto -2px;
  border-radius: 1px;
  position: relative;
  z-index: 2;
}
.wax {
  display: block;
  width: 70px;
  height: 78px;
  margin: 0 auto;
  background: linear-gradient(180deg, #f3ead2 0%, #e7dcbb 60%, #d6c79b 100%);
  border-radius: 6px 6px 4px 4px;
  position: relative;
  box-shadow:
    inset 0 -10px 0 rgba(0,0,0,0.05),
    inset 6px 0 14px rgba(0,0,0,0.04),
    inset -6px 0 14px rgba(0,0,0,0.04);
}
/* Melted rim around the top (slightly raised, uneven) */
.wax-rim {
  position: absolute;
  top: -4px;
  left: -2px;
  right: -2px;
  height: 12px;
  background: linear-gradient(180deg, #f7eed7 0%, #e4d7b4 100%);
  border-radius: 50% / 80% 80% 20% 20%;
  box-shadow:
    inset 0 2px 3px rgba(255,255,255,0.5),
    inset 0 -2px 4px rgba(0,0,0,0.08);
  z-index: 1;
}
/* Dark wax well around the wick */
.wax-well {
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 8px;
  background: radial-gradient(ellipse at center, #6b5a36 0%, #8d7a4c 50%, transparent 80%);
  border-radius: 50%;
  z-index: 2;
}
.wax-shine {
  position: absolute;
  top: 14px;
  left: 10px;
  width: 8px;
  height: 44px;
  background: linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0));
  border-radius: 4px;
  filter: blur(2px);
  z-index: 1;
}
/* A single wax drip running down one side */
.wax-drip {
  position: absolute;
  top: 8px;
  right: 14px;
  width: 6px;
  height: 28px;
  background: linear-gradient(180deg, #f3ead2 0%, #e0d3a8 100%);
  border-radius: 50% 50% 60% 60% / 20% 20% 90% 90%;
  box-shadow: inset 0 -2px 2px rgba(0,0,0,0.06);
  z-index: 1;
}
.candle-base {
  display: block;
  width: 78px;
  height: 6px;
  background: linear-gradient(180deg, #c8b88f 0%, #a89776 100%);
  margin: 0 auto;
  border-radius: 2px 2px 1px 1px;
  position: relative;
  z-index: 1;
}
.candle-saucer {
  display: block;
  width: 110px;
  height: 12px;
  background: linear-gradient(180deg, #8b7142 0%, #5a4626 100%);
  margin: -2px auto 0;
  border-radius: 50%;
  box-shadow:
    0 4px 12px rgba(0,0,0,0.25),
    inset 0 2px 2px rgba(255,255,255,0.2);
}

.flame {
  display: block;
  width: 22px;
  height: 32px;
  position: relative;
  margin: 0 auto -4px;
  opacity: 0;
  transform: scale(0.4);
  transform-origin: bottom center;
  transition: opacity .35s ease, transform .5s cubic-bezier(.34,1.56,.64,1);
}
.candle.lit .flame {
  opacity: 1;
  transform: scale(1);
}
.flame-inner {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center 80%, #fef3c7 0%, #fbbf24 35%, #ef4444 75%, transparent 100%);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  animation: flicker 0.18s ease-in-out infinite alternate;
}
.flame-glow {
  position: absolute;
  inset: -16px;
  background: radial-gradient(ellipse at center, rgba(251, 191, 36, 0.5) 0%, transparent 60%);
  filter: blur(8px);
  animation: glow 1.6s ease-in-out infinite;
}
@keyframes flicker {
  0% { transform: scale(1, 1) translateY(0) skewX(-1deg); }
  100% { transform: scale(0.96, 1.04) translateY(-1px) skewX(1deg); }
}
@keyframes glow {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}
.candle-status {
  margin: 18px 0 0;
  font-size: 14px;
  color: var(--accent);
  font-style: italic;
  min-height: 22px;
  font-family: var(--font-display);
  font-size: 17px;
  opacity: 0;
  transition: opacity .4s ease;
}
.candle-status.show { opacity: 1; }

/* ===================== FOOTER ===================== */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  padding: 60px 0 36px;
}
.footer-inner {
  display: grid;
  gap: 22px;
  text-align: center;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
}
.footer-brand .brand-mark {
  width: 38px;
  height: 38px;
}
.fb-main {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
}
.fb-sub {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.footer-nav {
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
}
.footer-nav a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}
.footer-nav a:hover { color: var(--accent); }
.footer-copy {
  margin: 0;
  color: var(--text-dim);
  font-size: 12.5px;
}

/* ===================== BACK TO TOP ===================== */
.back-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  border: none;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 12px 28px -8px var(--gold-glow);
  z-index: 40;
  transform: translateY(80px);
  opacity: 0;
  transition: transform .35s ease, opacity .35s ease, background .2s ease;
}
.back-top.show {
  transform: translateY(0);
  opacity: 1;
}
.back-top:hover { background: var(--accent-bright); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1080px) {
  .service-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding: 60px 0 80px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .approach-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .section { padding: 80px 0; }
  .memoriam { padding: 80px 0 100px; }
  .approach-quote { padding: 40px 32px; }
  .approach-quote blockquote { font-size: 22px; }
}
@media (max-width: 720px) {
  .primary-nav {
    position: absolute;
    top: 100%;
    right: 12px;
    left: 12px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 10px;
    display: none;
    box-shadow: var(--shadow-lg);
  }
  .primary-nav.open { display: block; }
  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  .primary-nav a { padding: 12px 14px; }
  .primary-nav .nav-cta { margin-left: 0; text-align: center; }
  .nav-toggle { display: inline-flex; }
  .service-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 24px 20px; }
  .hero-trust { gap: 14px; }
  .form-row-split { grid-template-columns: 1fr; }
  .bc-num { font-size: 34px; }
  .mem-body p { font-size: 17.5px; }
  .mem-lead { font-size: 18.5px; }
  .dropcap { font-size: 4.6em; }
  .brand-text { display: none; }
  .header-utils { gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-line, .lede, .hero-ctas, .hero-trust, .hero-card { opacity: 1 !important; transform: none !important; }
  .accent-underline path { stroke-dashoffset: 0 !important; }
  .bolt-path { stroke-dashoffset: 0 !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
