/* ── Page Token ─────────────────────────────────────── */

:root {
  --accent: #8a8a8a;
}

html {
  scroll-behavior: smooth;
}

/* ── Hero ───────────────────────────────────────────── */

.hero {
  padding: 5.5rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

.hero h1 {
  font-size: clamp(2rem, 3.8vw, 3.35rem);
  max-width: 18ch;
}

.hero-copy p {
  color: var(--muted);
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-card ul {
  margin: 1rem 0 1.3rem;
  padding-left: 1.1rem;
  list-style-position: outside;
  text-align: left;
  align-self: stretch;
  margin-left: -0.3rem;
  color: var(--muted);
}

.hero-card li {
  margin: 0.4rem 0;
}

/* ── Sections ───────────────────────────────────────── */

.section {
  padding: 4.2rem 0;
}

.section h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  max-width: 18ch;
}

.section-muted {
  background: #f1f5fa;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-accent {
  background: linear-gradient(180deg, #f7f9fc 0%, #edf3fb 100%);
  scroll-margin-top: 2rem;
}

@media (min-width: 901px) {
  .section-accent {
    scroll-margin-top: 4rem;
  }
}

/* ── Split layout ───────────────────────────────────── */

.split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2rem;
  align-items: start;
}

.feature-list {
  margin: 0;
  padding-left: 1rem;
  color: var(--muted);
}

.feature-list li {
  margin-bottom: 0.65rem;
}

/* ── Service cards (home) ───────────────────────────── */

.service-grid {
  margin-top: 1.35rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.service-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1rem;
}

.service-card h3 {
  margin-top: 0;
}

.service-card p {
  color: var(--muted);
  margin: 0;
}

/* ── Testimonials ───────────────────────────────────── */

.testimonials-section {
  overflow: hidden;
  scroll-margin-top: 2rem;
}

@media (min-width: 901px) {
  .testimonials-section {
    scroll-margin-top: 4rem;
  }
}

.marquee {
  position: relative;
  width: 100%;
  overflow: visible;
  clip-path: inset(-20px -0px -20px -0px);
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  margin-top: 1.35rem;
  cursor: grab;
  user-select: none;
}

.marquee:active {
  cursor: grabbing;
}

.marquee__track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  padding: 10px 0 20px;
  animation: marquee-scroll 60s linear infinite;
  transition: animation-duration 0.8s ease;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.testimonial-card {
  flex-shrink: 0;
  width: 340px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow);
  color: var(--muted);
  line-height: 1.5;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: scale(1.05);
  box-shadow: 0 18px 48px rgba(20, 36, 61, 0.16);
  z-index: 2;
}

.testimonial-card cite {
  display: block;
  margin-top: 0.8rem;
  color: var(--text);
  font-style: normal;
  font-weight: 600;
}

/* ── Contact section ────────────────────────────────── */

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

.contact-intro {
  grid-column: 1;
  grid-row: 1;
}

.contact-form {
  grid-column: 2;
  grid-row: 1 / 3;
}

.office-hours {
  grid-column: 1;
  grid-row: 2;
  margin-top: 0.25rem;
}

.office-hours h3 {
  margin-bottom: 0.4rem;
}

/* ~80% up the column: share extra height 20% above / 80% below the copy (vs form height) */
.contact-intro {
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  min-height: 0;
  align-self: stretch;
}

.contact-intro__spacer {
  min-height: 0;
  pointer-events: none;
}

.contact-link {
  position: relative;
  display: inline-block;
  color: var(--primary);
  font-weight: 600;
  transition: color 0.3s ease;
}

.contact-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-link:hover {
  color: var(--primary-dark);
}

.contact-link:hover::after {
  width: 100%;
}

.hours-table {
  margin-top: 0.25rem;
  border-collapse: collapse;
  font-size: 0.9rem;
  line-height: 1.4;
}

.hours-table td {
  padding: 0.25rem 0;
}

.hours-table td:first-child {
  font-weight: 600;
  color: var(--text);
  padding-right: 1.25rem;
  white-space: nowrap;
}

.hours-table td:last-child {
  color: var(--muted);
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

input,
textarea,
select {
  width: 100%;
  margin-top: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.75rem;
  font: inherit;
  background: var(--surface);
  color: var(--text);
  appearance: none;
  -webkit-appearance: none;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

/* ── Responsive ─────────────────────────────────────── */

@media (max-width: 900px) {
  .hero-grid,
  .split,
  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .testimonial-card {
    width: 280px;
  }

  .contact-intro {
    display: block;
  }

  .contact-intro__spacer {
    display: none;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: 1.35rem 1.25rem;
  }

  .service-card h3 {
    font-size: 1.15rem;
  }

  .service-card p {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .contact-intro,
  .contact-form,
  .office-hours {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 760px) {
  .hero {
    padding-top: 4.2rem;
  }
}
