/* A&D Oil Burner Service — sample site by Hudson Valley Web Fix */
:root {
  --black: #0a0a0a;
  --ink: #111111;
  --charcoal: #1a1a1a;
  --orange: #F58220;
  --orange-hover: #e07012;
  --orange-soft: #FFC27A;
  --blue: #299ED8;
  --blue-hover: #1e8ac0;
  --blue-soft: #8FD0F0;
  --white: #ffffff;
  --paper: #f5f6f8;
  --card: #ffffff;
  --muted: #5a6270;
  --line: #e3e6eb;
  --text-dark: #1a1d24;
  --text-soft: #c8cdd4;
  --shadow: 0 1px 2px rgba(10, 10, 10, 0.05), 0 16px 40px rgba(10, 10, 10, 0.08);
  --radius: 16px;
  --font: "Source Sans 3", "Segoe UI", sans-serif;
  --display: "Outfit", "Segoe UI", sans-serif;
  --wrap: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text-dark);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
a:hover { color: var(--orange); }

h1, h2, h3, .wordmark-name, .footer-name {
  font-family: var(--display);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--ink);
}

h1 { font-size: clamp(2.15rem, 7.2vw, 4.15rem); margin: 0 0 0.55em; font-weight: 700; }
h2 { font-size: clamp(1.7rem, 4vw, 2.55rem); margin: 0 0 0.4em; font-weight: 700; }
h3 { font-size: 1.22rem; margin: 0 0 0.4em; }

p { margin: 0 0 1em; }

.wrap {
  width: min(var(--wrap), calc(100% - 2rem));
  margin-inline: auto;
}

.sample-banner {
  background: #111111;
  color: #f3f3f3;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.45rem 1rem;
  position: sticky;
  top: 0;
  z-index: 40;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -40px;
  background: var(--white);
  color: var(--ink);
  padding: 0.5rem 0.75rem;
  z-index: 50;
}
.skip-link:focus { top: 2.4rem; }

.site-header {
  background: var(--black);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 4.4rem;
  padding-block: 0.6rem;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.wordmark:hover { color: inherit; }

.wordmark-mark { flex-shrink: 0; }
.wordmark-mark svg { display: block; }

.wordmark-text { display: flex; flex-direction: column; min-width: 0; }
.wordmark-name {
  font-size: 0.98rem;
  color: var(--white);
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wordmark-tag {
  font-size: 0.7rem;
  color: #b8bdc6;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.desk-nav { display: none; }
.header-phone { display: none; }
.btn.header-call {
  display: inline-flex;
  margin-left: auto;
  padding: 0.55rem 0.85rem;
  font-size: 0.88rem;
}

.menu { position: relative; }
.menu summary {
  list-style: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #161616;
  display: grid;
  place-items: center;
}
.menu summary::-webkit-details-marker { display: none; }
.menu-bars,
.menu-bars::before,
.menu-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
  position: relative;
}
.menu-bars::before,
.menu-bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.menu-bars::before { top: -6px; }
.menu-bars::after { top: 6px; }

.menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  background: #161616;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 220px;
  z-index: 20;
}
.menu-panel a {
  text-decoration: none;
  color: var(--white);
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  font-weight: 600;
}
.menu-panel a:hover { background: #242424; color: var(--orange); }
.menu-panel .btn { text-align: center; margin-top: 0.25rem; color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
  font-weight: 700;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { color: inherit; }
.btn-lg { padding: 0.95rem 1.4rem; font-size: 1.06rem; min-height: 52px; }

.btn-call {
  background: var(--orange);
  color: var(--ink);
  border-color: var(--orange);
}
.btn-call:hover {
  background: var(--orange-hover);
  border-color: var(--orange-hover);
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(245, 130, 32, 0.35);
}
.btn-call:active { transform: translateY(0); box-shadow: none; }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}
.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-ghost:active { transform: translateY(0); }

.btn:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.hero {
  position: relative;
  background:
    radial-gradient(ellipse 80% 70% at 8% 15%, rgba(245, 130, 32, 0.32), transparent 55%),
    radial-gradient(ellipse 70% 60% at 96% 85%, rgba(41, 158, 216, 0.26), transparent 55%),
    var(--black);
  color: var(--white);
  overflow: hidden;
  padding: 3.4rem 0 3.8rem;
  min-height: 28rem;
}

.hero-flames {
  position: absolute;
  inset: auto -8% -20% auto;
  width: min(520px, 80vw);
  pointer-events: none;
  opacity: 1;
}
.hero h1 { color: var(--white); }
.hero .eyebrow { color: var(--orange); }
.hero .hero-lead { color: var(--text-soft); }

.hero-inner { position: relative; z-index: 1; max-width: 40rem; margin-left: 0; }

.eyebrow {
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 0.85rem;
}
.eyebrow.dark { color: var(--orange-hover); }

.hero-lead {
  font-size: 1.12rem;
  color: var(--text-soft);
  max-width: 36rem;
  margin-bottom: 1.7rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.services {
  padding: 4rem 0 3.5rem;
  background: var(--paper);
}

.section-lead {
  color: var(--muted);
  max-width: 38rem;
  margin-bottom: 2rem;
  font-size: 1.08rem;
}
.section-lead.light { color: var(--text-soft); }

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem 1.25rem;
  box-shadow: var(--shadow);
}
.card p { margin: 0; color: var(--muted); }
.card h3 { margin-bottom: 0.35em; }

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 0.85rem;
}
.card-icon.orange {
  color: var(--orange);
  background: rgba(245, 130, 32, 0.12);
}
.card-icon.blue {
  color: var(--blue);
  background: rgba(41, 158, 216, 0.12);
}

.why {
  padding: 1rem 0 4rem;
  background: var(--paper);
}
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.why-item {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem;
  border-left: 4px solid var(--orange);
  box-shadow: var(--shadow);
}
.why-item:nth-child(2) { border-left-color: var(--blue); }
.why-item:nth-child(3) { border-left-color: var(--orange); }
.why-item p { margin: 0; color: var(--muted); }

.tune-up {
  background:
    radial-gradient(ellipse 60% 80% at 0% 50%, rgba(245, 130, 32, 0.28), transparent 55%),
    radial-gradient(ellipse 50% 80% at 100% 50%, rgba(41, 158, 216, 0.18), transparent 50%),
    var(--charcoal);
  color: var(--white);
  padding: 3.4rem 0;
}
.tune-up h2 { color: var(--white); }
.tune-up p { color: var(--text-soft); }
.tune-up .eyebrow { color: var(--orange); }
.tune-up-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.tune-up-copy { max-width: 36rem; }
.tune-up-copy p:last-child { margin-bottom: 0; }
.tune-up-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.contact {
  background: var(--black);
  color: var(--white);
  padding: 4rem 0;
}
.contact h2 { color: var(--white); }
.contact-inner {
  display: grid;
  gap: 2rem;
}
.facts {
  margin: 1.5rem 0 0;
  display: grid;
  gap: 1.15rem;
}
.facts div { margin: 0; }
.facts dt {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.2rem;
}
.facts dd {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 600;
}
.facts a {
  color: var(--white);
  text-decoration: none;
}
.facts a:hover { color: var(--orange); }

.contact-form {
  background: var(--white);
  color: var(--text-dark);
  border-radius: 20px;
  padding: 1.5rem 1.3rem 1.4rem;
  box-shadow: var(--shadow);
}
.contact-form h3 { margin-top: 0; }
.form-note {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.1rem;
}
.contact-form label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.9rem;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  font: inherit;
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
}
.contact-form textarea { resize: vertical; min-height: 6rem; }
.contact-form .btn { width: 100%; margin-top: 0.3rem; }

.site-footer {
  background: #050505;
  color: #b8bdc6;
  padding: 2rem 0 2.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.95rem;
}
.footer-inner {
  display: grid;
  gap: 1.25rem;
}
.footer-name {
  color: var(--white);
  font-size: 1.15rem;
  margin: 0 0 0.35rem;
}
.site-footer p { margin: 0 0 0.35rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.footer-note {
  color: #8b919c;
  font-size: 0.85rem;
  max-width: 28rem;
}

@media (min-width: 720px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-form { padding: 1.75rem 1.6rem; }
}

@media (min-width: 900px) {
  .card-grid { grid-template-columns: repeat(6, 1fr); }
  .card { grid-column: span 2; }
  .card:nth-child(4),
  .card:nth-child(5) { grid-column: span 3; }
  .header-phone { display: inline; }
  .btn.header-call {
    display: inline-flex;
    padding: 0.7rem 1.15rem;
    font-size: 1rem;
    margin-left: 0;
  }
  .menu { display: none; }
  .desk-nav {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    margin-left: auto;
    margin-right: 1rem;
  }
  .desk-nav a {
    color: #e8eaee;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.98rem;
  }
  .desk-nav a:hover { color: var(--orange); }
  .wordmark-name { font-size: 1.08rem; }
  .hero { padding: 5.2rem 0 5.6rem; }
  .hero-flames { width: 580px; inset: auto 0 -18% auto; }
  .contact-inner {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: start;
  }
  .tune-up-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
  }
  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}

@media (max-width: 420px) {
  .wordmark-name { font-size: 0.9rem; }
  .btn.header-call {
    padding: 0.5rem 0.65rem;
    font-size: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}


/* Client-side preview gate */
.site-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1.25rem, env(safe-area-inset-top)) 1.15rem max(1.5rem, env(safe-area-inset-bottom));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background:
    radial-gradient(ellipse 80% 70% at 8% 15%, rgba(245, 130, 32, 0.32), transparent 55%),
    radial-gradient(ellipse 70% 60% at 96% 85%, rgba(41, 158, 216, 0.26), transparent 55%),
    #0a0a0a;
  color: var(--white);
}
.site-gate[hidden] { display: none; }
body.gated { overflow: hidden; }
.gate-card {
  width: min(26rem, 100%);
  margin: auto;
  background: rgba(17, 17, 17, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 1.75rem 1.4rem 1.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  text-align: center;
}
.gate-mark {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
}
.gate-card h1 {
  color: var(--white);
  font-size: 1.55rem;
  margin: 0 0 0.4em;
}
.gate-lead {
  color: var(--text-soft);
  margin: 0 0 1.3rem;
  font-size: 1rem;
}
.gate-card form {
  display: grid;
  gap: 0.8rem;
  text-align: left;
}
.gate-card label {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--white);
}
.gate-card input[type="password"] {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  font-family: var(--font);
  font-size: 16px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  min-height: 48px;
  -webkit-appearance: none;
  appearance: none;
}
.gate-card .btn { width: 100%; min-height: 48px; }
.gate-error {
  color: #ffb4a2;
  font-size: 0.92rem;
  font-weight: 600;
  margin: 0;
  min-height: 1.2em;
}
.gate-note {
  margin: 1rem 0 0;
  font-size: 0.82rem;
  color: #8b919c;
}


/* Scroll animations — only hide reveals after JS adds .js on <html> */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 60;
  pointer-events: none;
  background: transparent;
}
.scroll-progress-bar {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left center;
}
body.gated .scroll-progress { opacity: 0; }

.glance {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 2rem 0;
}
.glance-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.stat { margin: 0; }
.stat-num {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--orange);
  margin: 0 0 0.35rem;
}
.stat-num.stat-word { font-size: clamp(1.7rem, 4vw, 2.4rem); color: var(--ink); }
.stat-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 18rem;
}
@media (min-width: 720px) {
  .glance { padding: 2.4rem 0; }
  .glance-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.js .hero-enter {
  opacity: 0;
  transform: translateY(18px);
}
.js .hero-enter.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.js .hero-enter:nth-child(1) { transition-delay: 0.05s; }
.js .hero-enter:nth-child(2) { transition-delay: 0.14s; }
.js .hero-enter:nth-child(3) { transition-delay: 0.24s; }
.js .hero-enter:nth-child(4) { transition-delay: 0.34s; }

.js .glance-grid .reveal:nth-child(1) { transition-delay: 0.05s; }
.js .glance-grid .reveal:nth-child(2) { transition-delay: 0.14s; }
.js .glance-grid .reveal:nth-child(3) { transition-delay: 0.24s; }

.js .card-grid .reveal:nth-child(1) { transition-delay: 0.04s; }
.js .card-grid .reveal:nth-child(2) { transition-delay: 0.12s; }
.js .card-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.js .card-grid .reveal:nth-child(4) { transition-delay: 0.28s; }
.js .card-grid .reveal:nth-child(5) { transition-delay: 0.36s; }

.js .why-grid .reveal:nth-child(1) { transition-delay: 0.05s; }
.js .why-grid .reveal:nth-child(2) { transition-delay: 0.16s; }
.js .why-grid .reveal:nth-child(3) { transition-delay: 0.27s; }

.js .tune-up-actions.reveal { transition-delay: 0.14s; }
.js .contact-form.reveal { transition-delay: 0.14s; }

.card,
.why-item {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover,
.why-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(10, 10, 10, 0.12);
}
.js .card.reveal.is-in:hover,
.js .why-item.reveal.is-in:hover {
  transform: translateY(-4px);
}

.hero-flames {
  will-change: transform;
}

@keyframes flame-flicker {
  0%, 100% { transform: scale(1) translateY(0); opacity: 1; }
  30% { transform: scale(1.035, 1.06) translateY(-1px); opacity: 0.92; }
  55% { transform: scale(0.98, 1.02) translateY(0); opacity: 1; }
  78% { transform: scale(1.02, 0.97) translateY(-0.5px); opacity: 0.95; }
}
.flame-flicker {
  transform-origin: 50% 85%;
  animation: flame-flicker 3s ease-in-out infinite;
}
.hero-flame-art.flame-flicker {
  animation-duration: 4.4s;
}
.card-icon.flame-flicker {
  animation-duration: 3.2s;
}

@media (max-width: 719px) {
  .js .reveal { transform: translateY(18px); }
  .js .card-grid .reveal:nth-child(n),
  .js .why-grid .reveal:nth-child(n),
  .js .glance-grid .reveal:nth-child(n) {
    transition-delay: 0.04s;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn,
  .card,
  .why-item { transition: none; }
  .btn-call:hover,
  .btn-ghost:hover,
  .card:hover,
  .why-item:hover,
  .js .card.reveal.is-in:hover,
  .js .why-item.reveal.is-in:hover {
    transform: none;
    box-shadow: none;
  }
  .js .reveal,
  .js .hero-enter,
  .js .reveal.is-in,
  .js .hero-enter.is-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .flame-flicker { animation: none !important; }
  .hero-flames { transform: none !important; }
  .scroll-progress-bar { transition: none; }
}
