/* Alex Ruiz Tree Service: dark premium, forest black + brass */

:root {
  --bg: #0e1511;
  --bg-2: #131c17;
  --bg-3: #18241d;
  --ink: #ece6d8;
  --muted: #aeb3a6;
  --brass: #c8a964;
  --brass-hi: #dcc184;
  --line: rgba(200, 169, 100, 0.35);
  --line-soft: rgba(200, 169, 100, 0.18);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  margin: 0;
  letter-spacing: 0.005em;
}

h1 em, h2 em { font-style: italic; color: var(--brass-hi); }

p { margin: 0; }

a { color: var(--brass-hi); text-underline-offset: 3px; }

:focus-visible {
  outline: 2px solid var(--brass-hi);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 22px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--brass);
  color: var(--bg);
  padding: 10px 16px;
  z-index: 100;
}
.skip:focus { top: 12px; }

.label {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brass);
  display: flex;
  align-items: center;
  gap: 14px;
}
.label::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--brass);
  flex: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--brass);
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: nowrap;
}
.btn-gold { background: var(--brass); color: #10170f; }
.btn-gold:hover { background: var(--brass-hi); border-color: var(--brass-hi); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--brass); }
.btn-line:hover { background: rgba(200, 169, 100, 0.12); }
.btn-sm { min-height: 48px; padding: 0 16px; font-size: 0.78rem; letter-spacing: 0.1em; }
.hide-sm { display: none; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 21, 17, 0.96);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 68px;
}
.logo {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.05;
  display: flex;
  flex-direction: column;
}
.logo span {
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brass);
  margin-top: 3px;
}
.nav { display: none; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 72px;
  border-bottom: 1px solid var(--line-soft);
}
.rings {
  position: absolute;
  right: -160px;
  top: -40px;
  width: 420px;
  height: 420px;
  color: var(--brass);
  opacity: 0.16;
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; gap: 48px; }
.hero h1 {
  font-size: clamp(2.7rem, 11vw, 5.4rem);
  margin: 22px 0 22px;
}
.hero h1 em { display: block; }
.lede { color: var(--muted); font-size: 1.08rem; max-width: 34em; }
.actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 34px 0 26px;
}
.rating { font-size: 0.95rem; color: var(--muted); letter-spacing: 0.02em; }
.star { color: var(--brass); margin-right: 6px; }

.fact-card {
  border: 1px solid var(--line);
  background: var(--bg-2);
  padding: 8px 26px;
}
.fact-card dl { margin: 0; }
.fact-rating { display: none; }
.fact-card dl > div {
  padding: 20px 0;
  border-bottom: 1px solid var(--line-soft);
}
.fact-card dl > div:last-child { border-bottom: 0; }
dt {
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 4px;
}
dd { margin: 0; color: var(--ink); }
.big {
  font-family: var(--serif);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--brass-hi);
  margin-right: 6px;
}

/* Sections */
.services, .why, .visit { padding: 84px 0; }
.section-head h2 {
  font-size: clamp(2.2rem, 8vw, 3.6rem);
  margin-top: 18px;
}

.service-list {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.service-list li {
  display: grid;
  grid-template-columns: 56px 1fr;
  column-gap: 12px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--brass);
  line-height: 1.2;
  grid-row: span 2;
}
.service-list h3 { font-size: 1.85rem; margin-bottom: 10px; }
.service-list p { color: var(--muted); max-width: 36em; }

.why { background: var(--bg-3); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.points { display: grid; gap: 0; margin-top: 44px; }
.point {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.point h3 { font-size: 1.65rem; margin-bottom: 8px; color: var(--ink); }
.point p { color: var(--muted); }

.visit-grid { display: grid; gap: 48px; }
.visit h2 { font-size: clamp(2.2rem, 8vw, 3.6rem); margin: 18px 0 30px; }
.details { margin: 0 0 34px; }
.details > div {
  display: grid;
  gap: 2px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}
.details > div:first-child { border-top: 1px solid var(--line-soft); }
.details a { overflow-wrap: anywhere; }

.map { margin: 0; }
.map-frame {
  position: relative;
  border: 1px solid var(--line);
  padding: 8px;
  background: var(--bg-2);
}
/* Shown behind the iframe so a slow or blocked map never reads as an empty box */
.map-frame::before {
  content: "Pershing Ave · Visalia";
  position: absolute;
  inset: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  background: url("assets/rings.svg") center / 300px 300px no-repeat;
}
.map iframe {
  position: relative;
  display: block;
  width: 100%;
  height: 280px;
  border: 0;
  filter: grayscale(0.4) contrast(0.95);
}
.map figcaption { margin-top: 14px; font-size: 0.92rem; color: var(--muted); }

.cta {
  padding: 92px 0;
  border-top: 1px solid var(--line);
  text-align: left;
}
.cta-inner { display: grid; gap: 34px; justify-items: start; }
.cta h2 { font-size: clamp(2rem, 7.5vw, 3.4rem); max-width: 18em; }
.cta h2 em { display: block; }

.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 48px 0;
  font-size: 0.92rem;
  color: var(--muted);
}
.footer-inner { display: grid; gap: 6px; }
.footer-name { font-family: var(--serif); font-size: 1.4rem; color: var(--ink); margin-bottom: 6px; }
.copy { margin-top: 14px; font-size: 0.82rem; letter-spacing: 0.08em; }

/* Small tablets and up */
@media (min-width: 560px) {
  .actions { flex-direction: row; flex-wrap: wrap; }
  .hide-sm { display: inline; margin-right: 0.35em; }
}

/* Desktop */
@media (min-width: 900px) {
  .wrap { padding: 0 48px; }
  .nav { display: flex; gap: 36px; margin-left: auto; margin-right: 28px; }
  .nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.78rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    padding: 8px 0;
    border-bottom: 1px solid transparent;
    transition: color 0.3s ease, border-color 0.3s ease;
  }
  .nav a:hover { color: var(--ink); border-color: var(--brass); }
  .header-inner { min-height: 80px; }
  .logo { font-size: 1.55rem; }

  .hero { padding: 120px 0 128px; }
  .hero-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    align-items: center;
    gap: 80px;
  }
  .rings { width: 760px; height: 760px; right: -220px; top: -120px; opacity: 0.12; }
  .fact-card { padding: 14px 36px; }
  .fact-rating { display: block; }

  .services, .why, .visit { padding: 130px 0; }
  .service-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 72px; border-top: 0; margin-top: 64px; }
  .service-list li { border-top: 1px solid var(--line); border-bottom: 0; padding: 38px 0 42px; }
  .service-list li:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .service-list h3 { font-size: 2.1rem; }

  .why-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 80px; align-items: start; }
  .points { margin-top: 0; }
  .point { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 32px; padding: 32px 0; }
  .point:last-child { border-bottom: 1px solid var(--line); }
  .point h3 { margin: 0; }

  .visit-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 80px; align-items: start; }
  .details > div { grid-template-columns: 120px 1fr; gap: 20px; }
  .map iframe { height: 460px; }
  .map-frame::before { background-size: 440px 440px; }

  .cta { padding: 130px 0; }
  .cta-inner { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 60px; }

  .footer-inner { grid-template-columns: 1.2fr 1.4fr 1fr 1.4fr; align-items: baseline; gap: 24px; }
  .footer-name { margin: 0; }
  .copy { grid-column: 1 / -1; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
}

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