/* ==========================================================================
   Renteria's Tax Service — static site styles
   Palette taken from the original site: primary #7FB151, ink #0a0a0a
   Typography: Montserrat (headings) + Lato (body)
   ========================================================================== */

:root {
  --green: #7fb151;
  --green-light: #9bd164;
  --green-dark: #6b9843;
  --ink: #0a0a0a;
  --ink-soft: #242424;
  --text: #3f4a45;
  --muted: #6f7b74;
  --line: #e3e7e1;
  --bg: #ffffff;
  --bg-alt: #f6f8f4;
  --white: #ffffff;
  --radius: 4px;
  --shadow: 0 2px 14px rgba(10, 10, 10, 0.08);
  --container: 1140px;
  --font-head: "Montserrat", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-body: "Lato", "Segoe UI", Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

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

a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.15em; }

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

.container--narrow { max-width: 860px; }

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

/* --------------------------------------------------------- buttons ------ */

.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 13px 30px;
  border-radius: var(--radius);
  border: 2px solid var(--green);
  background: var(--green);
  color: var(--white);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--white);
  text-decoration: none;
}
.btn--ghost { background: transparent; color: var(--green-dark); }
.btn--ghost:hover { background: var(--green); border-color: var(--green); color: var(--white); }
.btn--light { background: var(--white); border-color: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--green); border-color: var(--green); color: var(--white); }

/* ---------------------------------------------------------- top bar ----- */

.topbar {
  background: var(--ink-soft);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}
.topbar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 22px;
  min-height: 40px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.topbar a {
  color: rgba(255, 255, 255, 0.85);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.topbar a:hover { color: var(--green-light); text-decoration: none; }
.topbar svg { width: 14px; height: 14px; flex: none; }

/* ------------------------------------------------------------ header ---- */

.site-header {
  background: var(--ink);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 84px;
}
.brand { display: flex; align-items: center; }
.brand img { height: 68px; width: auto; }
.brand:hover { text-decoration: none; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav__list {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__list a {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.nav__list a:hover,
.nav__list a[aria-current="page"] {
  border-bottom-color: var(--white);
  text-decoration: none;
}

.social { display: flex; align-items: center; gap: 14px; }
.social a { color: var(--white); display: inline-flex; }
.social a:hover { color: var(--green-light); }
.social svg { width: 18px; height: 18px; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--white);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 0 18px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list a {
    display: block;
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav__list a:hover,
  .nav__list a[aria-current="page"] { border-bottom-color: rgba(255, 255, 255, 0.08); color: var(--green-light); }
  .social { padding: 16px 24px 0; }
}

/* -------------------------------------------------------------- hero ---- */

.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  background: var(--ink) center / cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.5);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: var(--white); margin-bottom: 0.25em; }
.hero__eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.8rem;
  margin-bottom: 1.1em;
  color: rgba(255, 255, 255, 0.9);
}
.hero__tagline {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  max-width: 640px;
  margin: 0 auto 1.8em;
  color: rgba(255, 255, 255, 0.92);
}

.hero--compact { min-height: 320px; }
.hero--compact::after { background: rgba(10, 10, 10, 0.55); }

.page-head {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  padding: 56px 0 46px;
  text-align: center;
}
.page-head p { color: var(--muted); max-width: 720px; margin: 0 auto; }

.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 0.9em;
}

/* ---------------------------------------------------------- sections ---- */

.section { padding: 76px 0; }
.section--alt { background: var(--bg-alt); }
.section--tight { padding: 52px 0; }
.section__head { text-align: center; max-width: 740px; margin: 0 auto 48px; }
.section__head p { color: var(--muted); }

/* --------------------------------------------------------- about rows --- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
}
.split + .split { margin-top: 72px; }
.split--flip .split__media { order: 2; }
.split__media img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.split__body p:last-child { margin-bottom: 0; }

@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split--flip .split__media { order: 0; }
}

/* ------------------------------------------------------------- cards ---- */

.grid {
  display: grid;
  gap: 28px;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 900px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
}

.icon-card {
  text-align: center;
  padding: 8px;
}
.icon-card img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  margin: 0 auto 18px;
}
.icon-card h3 { font-size: 1.2rem; margin-bottom: 0.4em; }
.icon-card p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.icon-card a { color: inherit; display: block; }
.icon-card a:hover { text-decoration: none; }
.icon-card a:hover h3 { color: var(--green-dark); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-alt); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 26px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { margin-bottom: 0.5em; }
.card__body p { color: var(--muted); font-size: 0.96rem; }
.card__meta {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  margin: 4px 0 18px;
}
.card__meta span { color: var(--muted); font-weight: 400; font-size: 0.82rem; }
.card__actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.card--person .card__media { aspect-ratio: 1 / 1; }
.card--person .card__media img { object-position: center top; }
.card--person .card__body { text-align: center; }
.card--person .card__role {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--green-dark);
  margin-bottom: 8px;
}

/* ---------------------------------------------------------- slideshow --- */

.slideshow { position: relative; overflow: hidden; background: var(--ink); }
.slide {
  position: relative;
  min-height: 420px;
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  background: var(--ink) center / cover no-repeat;
  padding: 70px 0;
}
.slide.is-active { display: flex; }
.slide::after { content: ""; position: absolute; inset: 0; background: rgba(10, 10, 10, 0.5); }
.slide .container { position: relative; z-index: 1; }
.slide h2 { color: var(--white); }
.slide p { color: rgba(255, 255, 255, 0.92); max-width: 620px; margin: 0 auto 1.8em; }

.slideshow__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(10, 10, 10, 0.35);
  border: 0;
  color: var(--white);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  line-height: 1;
}
.slideshow__arrow:hover { background: var(--green); }
.slideshow__arrow--prev { left: 18px; }
.slideshow__arrow--next { right: 18px; }

.slideshow__dots {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 9px;
}
.slideshow__dots button {
  width: 9px; height: 9px;
  padding: 0;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}
.slideshow__dots button[aria-current="true"] { background: var(--white); }

/* ------------------------------------------------------------ article --- */

.article { padding: 64px 0 76px; }
.article__meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 26px; }
.article__media { margin: 0 0 36px; }
.article__media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.article h2 { margin-top: 2em; }
.article p { text-align: justify; }

.prose h2 { margin-top: 1.8em; font-size: 1.35rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; font-size: 1.05rem; }
.legal-updated {
  margin: 0 0 1.6em;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }

/* ------------------------------------------------------------- lists ---- */

.detail-list { list-style: none; margin: 0; padding: 0; }
.detail-list li {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.detail-list li:last-child { border-bottom: 0; }
.detail-list dt, .detail-list .label {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink);
}
@media (max-width: 600px) {
  .detail-list li { grid-template-columns: 1fr; gap: 2px; }
}

.hours { list-style: none; margin: 0; padding: 0; max-width: 380px; }
.hours li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.hours li:last-child { border-bottom: 0; }
.hours .day { font-family: var(--font-head); font-weight: 600; color: var(--ink); }
.hours .closed { color: var(--muted); }

/* ------------------------------------------------------------- price ---- */

.price {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
}
.price span {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* -------------------------------------------------------- contact form -- */

.contact-block { background: var(--bg-alt); border-top: 1px solid var(--line); }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.field label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 7px;
}
.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(127, 177, 81, 0.18);
}
.field textarea { min-height: 140px; resize: vertical; }

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
}
.consent input { margin-top: 4px; flex: none; }
.consent-group { display: grid; gap: 12px; }

.form-status {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--green-dark);
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 52px;
}
@media (max-width: 800px) { .contact-cards { grid-template-columns: 1fr; } }

.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  text-align: center;
}
.contact-card h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 10px;
}
.contact-card p { margin: 0; font-size: 1.05rem; }
.contact-card svg { width: 22px; height: 22px; color: var(--green); margin: 0 auto 12px; display: block; }

.map-embed {
  margin-top: 52px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  line-height: 0;
}
.map-embed iframe { width: 100%; height: 380px; border: 0; }

/* ------------------------------------------------------------- footer --- */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 56px 0 34px;
  font-size: 0.92rem;
}
.site-footer a { color: rgba(255, 255, 255, 0.8); }
.site-footer a:hover { color: var(--green-light); text-decoration: none; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

.site-footer h4 {
  color: var(--white);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer .brand img { height: 66px; margin-bottom: 16px; }

.footer-bottom {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 18px; }

/* ------------------------------------------------------------ helpers --- */

.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 18px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

.breadcrumb {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb span { padding: 0 6px; }
