/* Layout: white page. Hero splits on a diagonal with a storefront photo, a moving services strip under it, then alternating white and mist bands.
   Color and type follow the owner's JRG Landscaping site: rust accent, Bebas Neue headlines, Source Sans 3 body. Light only, by choice. */
:root {
  --ink: #0A0F0F;
  --ink-soft: #4B5254;
  --paper: #FFFFFF;
  --mist: #EFF2F3;
  --line: #D7DDDF;
  --accent: #BC481B;
  --accent-hover: #9A3A14;
  --glint: #BC481B;
  --hero-tint: #F7F9FA;

  --display: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --logo: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
  --wrap: 72rem;
  --round: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 1.075rem; line-height: 1.6; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--paper); }
img { display: block; max-width: 100%; }
.wrap {
  max-width: var(--wrap); margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1, h2 { font-family: var(--display); font-weight: 400; line-height: 0.95; letter-spacing: 0.01em; }
h2 { font-size: clamp(2.5rem, 5vw, 3.6rem); }
h3 { font-family: var(--body); font-size: 1.15rem; font-weight: 700; line-height: 1.25; }
p { margin: 0; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font: 700 1rem/1 var(--body); padding: 1rem 1.4rem; border-radius: 6px; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s, translate .2s;
}
.btn:hover { translate: 0 -2px; }
.btn svg { width: 17px; height: 17px; }
.btn-accent { background: var(--accent); color: #FFFFFF; }
.btn-accent:hover { background: var(--accent-hover); }
.btn-outline { color: var(--ink); border-color: var(--line); background: var(--paper); }
.btn-outline:hover { border-color: var(--ink); }

/* logo: the O is a real letter, with the shine drawn inside it */
.logo { display: inline-grid; justify-items: start; gap: 0.2rem; text-decoration: none; color: inherit; line-height: 1; }
.logo-word { font-family: var(--logo); font-weight: 800; font-stretch: 112%; font-size: 1.75rem; letter-spacing: 0.04em; white-space: nowrap; }
.logo-o { position: relative; display: inline-block; }
.logo-o svg { position: absolute; left: 50%; top: 50%; width: 0.3em; height: 0.3em; translate: -50% -58%; overflow: visible; }
.logo-o path { stroke: var(--glint); stroke-width: 1.5; stroke-linecap: round; fill: none; }
.logo-sub { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; padding-left: 0.1em; color: var(--ink-soft); }

/* nav */
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 2rem; padding-block: 0.85rem; }
.nav-links { display: flex; gap: 1.7rem; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav-links a:hover { color: var(--accent); }
.topbar .btn { padding: 0.75rem 1.1rem; font-size: 0.92rem; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 6px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; place-items: center; }
.menu-btn svg { width: 20px; height: 20px; }
.mobile-menu { border-top: 1px solid var(--line); background: var(--paper); }
.topbar .mobile-menu ul { list-style: none; margin: 0 auto; padding-block: 0.5rem 1rem; display: grid; gap: 0; }
.mobile-menu a { display: block; padding: 0.85rem 0; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .topbar .btn { margin-left: auto; }
  .topbar .wrap { gap: 0.6rem; }
  .menu-btn { display: grid; }
}
@media (min-width: 901px) { .mobile-menu { display: none; } }
@media (max-width: 420px) {
  .topbar .logo-word { font-size: 1.45rem; }
  .topbar .logo-sub { font-size: 0.5rem; letter-spacing: 0.26em; }
  .topbar .btn { padding: 0.7rem 0.85rem; font-size: 0.85rem; }
}

/* hero */
.hero { position: relative; background: linear-gradient(180deg, var(--paper), var(--hero-tint)); overflow: hidden; }
.hero-photo { position: absolute; inset: 0 0 0 auto; width: 50%; clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.hero .wrap { position: relative; padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.hero-copy { max-width: min(33rem, 48%); display: grid; gap: 1.3rem; }
.hero h1 { font-size: clamp(3.3rem, 7vw, 5.6rem); }
.hero h1 .line { display: block; }
.hero .lede { color: var(--ink-soft); font-size: 1.18rem; max-width: 30rem; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-checks { list-style: none; margin: 0.2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; font-size: 0.95rem; font-weight: 600; color: var(--ink-soft); }
.hero-checks li { display: flex; align-items: center; gap: 0.4rem; }
.hero-checks svg { width: 16px; height: 16px; color: var(--accent); }
@media (max-width: 960px) {
  .hero-copy { max-width: 36rem; }
  .hero-photo { position: relative; width: 100%; height: clamp(15rem, 58vw, 24rem); clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%); }
  .hero .wrap { padding-block: 1.25rem 3rem; }
}

/* moving services strip */
.ticker { background: var(--accent); color: #FFFFFF; overflow: hidden; padding-block: 1rem; }
.ticker-track { display: flex; width: max-content; animation: slide 38s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker ul { display: flex; margin: 0; padding: 0; list-style: none; }
.ticker li { font-family: var(--display); font-size: 1.7rem; line-height: 1; padding: 0 1.75rem; display: flex; align-items: center; gap: 3.5rem; white-space: nowrap; }
.ticker li::after { content: ""; width: 9px; height: 9px; background: #FFFFFF; border-radius: 50%; opacity: 0.7; margin-right: -1.75rem; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; width: auto; }
  .ticker ul { flex-wrap: wrap; justify-content: center; row-gap: 0.8rem; }
  .ticker ul[aria-hidden] { display: none; }
}

/* bands */
.band .wrap { padding-block: clamp(3.25rem, 8vw, 6rem); }
.band.mist { background: var(--mist); }
.head { display: grid; gap: 0.75rem; max-width: 42rem; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.head p { color: var(--ink-soft); font-size: 1.1rem; }

/* tabs */
.tabs { display: inline-flex; gap: 0.3rem; padding: 0.3rem; border-radius: 8px; background: var(--mist); border: 1px solid var(--line); margin-bottom: 1.75rem; }
.tabs button { font: 700 0.98rem var(--body); color: var(--ink-soft); background: none; border: 0; border-radius: 6px; padding: 0.7rem 1.4rem; cursor: pointer; transition: background-color .2s, color .2s; }
.tabs button[aria-selected="true"] { background: var(--accent); color: #FFFFFF; }
.panel { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.75rem, 5vw, 4rem); align-items: center; }
.panel-photo { border-radius: var(--round); overflow: hidden; aspect-ratio: 4 / 3; max-width: 100%; }
.panel-photo img { width: 100%; height: 100%; object-fit: cover; transition: scale .6s var(--ease); }
.panel-photo:hover img { scale: 1.04; }
.svc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2rem; min-width: 0; }
.svc-list li { display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 0.9rem; }
.svc-list svg { grid-row: span 2; width: 24px; height: 24px; color: var(--accent); margin-top: 0.1rem; }
.svc-list p { color: var(--ink-soft); }
.panel .text-link { margin-top: 1.6rem; display: inline-block; }
.text-link { font-weight: 700; text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.panel.fade-in { animation: panelIn .45s ease both; }
@keyframes panelIn { from { opacity: 0; translate: 0 12px; } }
@media (max-width: 820px) { .panel { grid-template-columns: 1fr; } .panel-photo { aspect-ratio: 16 / 10; } }

/* checklist */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.75rem, 6vw, 4.5rem); align-items: center; }
.photo-round { border-radius: var(--round); overflow: hidden; aspect-ratio: 4 / 3.2; max-width: 100%; }
.photo-round img { width: 100%; height: 100%; object-fit: cover; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; }
.checklist li { display: grid; grid-template-columns: auto 1fr; gap: 0.85rem; padding-block: 0.75rem; border-bottom: 1px solid var(--line); }
.checklist svg { width: 22px; height: 22px; color: var(--accent); margin-top: 0.15rem; }
.split .head { margin-bottom: 1rem; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .photo-round { aspect-ratio: 16 / 10; } }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: 0.55rem; align-content: start; min-width: 0; }
.steps li::before {
  content: counter(step); font-family: var(--display); font-size: 1.6rem; line-height: 1;
  width: 2.8rem; height: 2.8rem; border-radius: 50%; display: grid; place-items: center; padding-top: 0.12em;
  background: var(--accent); color: #FFFFFF;
}
.steps p { color: var(--ink-soft); }
.steps-foot { margin-top: 2rem; }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: 1.4rem; }
  .steps li { grid-template-columns: auto 1fr; column-gap: 1rem; row-gap: 0.2rem; }
  .steps li::before { grid-row: span 2; }
}

/* about */
.about { display: grid; gap: 2rem; }
.about .copy { display: grid; gap: 0.9rem; max-width: 46rem; }
.about .copy p { color: var(--ink-soft); font-size: 1.12rem; line-height: 1.65; }
.points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.points li { display: grid; gap: 0.25rem; padding: 1.3rem 1.4rem; border-radius: var(--round); background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--accent); }
.points span { color: var(--ink-soft); }
@media (max-width: 760px) { .points { grid-template-columns: 1fr; gap: 0.7rem; } .points li { padding: 1rem 1.2rem; } }

/* contact */
.contact { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact-info { display: grid; gap: 1.6rem; }
.contact-info .head { margin-bottom: 0; }
.contact-info .big { font-family: var(--display); font-size: clamp(2.4rem, 4.5vw, 3rem); line-height: 1; color: var(--ink); text-decoration: none; }
.contact-info dl { margin: 0; display: grid; gap: 1.2rem; }
.contact-info dt { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.contact-info dd { margin: 0.25rem 0 0; color: var(--ink-soft); }
.contact-info .email { font-size: 1.1rem; font-weight: 600; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.contact-info .email:hover { color: var(--accent); }
form.quote { display: grid; gap: 1.1rem; min-width: 0; padding: clamp(1.3rem, 4vw, 2.2rem); border-radius: var(--round); background: var(--mist); border: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: 0.35rem; min-width: 0; }
.field label { font-size: 0.92rem; font-weight: 700; }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 0.75rem 0.85rem; width: 100%; }
.field textarea { min-height: 6.5rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(188, 72, 27, 0.18); }
.form-status { font-size: 0.95rem; color: var(--ink-soft); }
.form-status.ok, .form-status.err { color: var(--ink); padding: 0.8rem 1rem; border-radius: 6px; border-left: 4px solid var(--accent); background: var(--paper); }
.optional { font-weight: 400; color: var(--ink-soft); }
@media (max-width: 880px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .row { grid-template-columns: 1fr; } }

/* faq */
.faq { max-width: 50rem; display: grid; gap: 0.7rem; }
.faq details { border-radius: 10px; background: var(--paper); border: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; position: relative; padding: 1.15rem 3.2rem 1.15rem 1.3rem; font-size: 1.1rem; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.2rem; top: 50%; translate: 0 -50%; font-size: 1.6rem; font-weight: 400; color: var(--accent); transition: rotate .2s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding: 0 1.3rem 1.2rem; color: var(--ink-soft); max-width: 62ch; }

/* footer */
.site-footer { background: var(--paper); border-top: 4px solid var(--accent); }
.site-footer .wrap { padding-block: 3rem 2rem; display: grid; gap: 2.5rem; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem 3rem; align-items: start; }
.foot-cols { display: flex; flex-wrap: wrap; gap: 2rem 4rem; }
.foot-cols h3 { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.8rem; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.foot-cols a { color: var(--ink); text-decoration: none; }
.foot-cols a:hover { color: var(--accent); }
.foot-cols li { color: var(--ink-soft); }
.foot-bottom { border-top: 1px solid var(--line); padding-top: 1.4rem; font-size: 0.88rem; color: var(--ink-soft); }

/* motion: hero plays on load, everything else rises in as it comes into view */
@media (prefers-reduced-motion: no-preference) {
  .hero-photo { animation: photoIn 1.1s var(--ease) both; }
  .hero h1 .line, .hero .lede, .hero .ctas, .hero-checks { animation: rise .8s var(--ease) both; }
  .hero h1 .line:nth-child(1) { animation-delay: .15s; }
  .hero h1 .line:nth-child(2) { animation-delay: .27s; }
  .hero h1 .line:nth-child(3) { animation-delay: .39s; }
  .hero .lede { animation-delay: .55s; }
  .hero .ctas { animation-delay: .67s; }
  .hero-checks { animation-delay: .79s; }

  .js .reveal-wait { opacity: 0; translate: 0 32px; }
  .js .reveal-in { animation: rise .8s var(--ease) both; animation-delay: calc(var(--base, 0s) + var(--d, 0s)); }
  .js .words-wait .w { opacity: 0; translate: 0 0.5em; }
  .js .words-in .w { animation: rise .7s var(--ease) both; animation-delay: calc(var(--base, 0s) + var(--i) * 60ms); }
  .w { display: inline-block; }
}
@keyframes rise { from { opacity: 0; translate: 0 32px; } to { opacity: 1; translate: 0 0; } }
@keyframes photoIn { from { opacity: 0; scale: 1.06; } to { opacity: 1; scale: 1; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn:hover { translate: none; } }
