/* =========================================================================
   Divad — Service page (Figma node 229:636)
   Only overrides and page-specific patterns. Shared interior styles in
   interior.css are loaded automatically.
   ========================================================================= */

/* Hero — image LEFT, content RIGHT (Figma 229:768).
   Keep the H1 first in the DOM for accessibility; flip columns visually. */
.site-main--service .interior-hero__inner {
  min-height: 600px;
}

.site-main--service .interior-hero__media {
  order: 1;
}

.site-main--service .interior-hero__body {
  order: 2;
  padding-left: clamp(1.5rem, 3vw, 3rem);
  padding-right: clamp(1.5rem, 4vw, 4rem);
}

/* Pink accent on "Asphalt Paving" in the hero title */
.site-main--service .interior-hero__title .accent {
  color: var(--accent);
}

/* GET A QUOTE button — uppercase; keep the standard 4px magenta underline */
.site-main--service .interior-hero__actions .btn-layout.default {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 4px solid var(--button-underline, #ff0080);
}

/* Trust bar — already styled in interior.css; service uses default.
   The four design icons render as white <img> SVGs (white-stroke art). */
.trust-bar__icon img {
  width: 2rem;
  height: 2rem;
}

/* Service-card icons render as a brand-blue mask of the uploaded icon, so any
   icon (when present) is blue rather than its original black art. */
.site-main--service .interior-card__icon {
  display: inline-block;
  width: 44px;
  height: 44px;
  background-color: var(--brand);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

/* Intro — centered purple rule under the heading + narrower lead (Figma) */
.service-intro__rule {
  display: block;
  width: 80px;
  height: 4px;
  margin-inline: auto;
  background: var(--accent);
}

.service-intro__head .interior-section__lead {
  max-width: 40rem;
  margin-inline: auto;
}

/* Services grid — icon above each card title; magenta "View Service" link */
.site-main--service .interior-card {
  gap: 0.875rem;
}

.site-main--service .interior-card__icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
}

.site-main--service .interior-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* .interior-card__link is magenta with hover underline globally (base system). */

/* Testimonials — 5 magenta stars + pink left accent (Figma) */
.site-main--service .interior-testimonials--dark .testimonial-card {
  border-left-color: #ff0080;
}

.testimonial-card__stars {
  display: flex;
  gap: 6px;
  justify-content: center;
}

.testimonial-card__stars .star {
  flex: none;
  width: 20px;
  height: 18px;
  fill: #ff0080;
}

/* Commitment — image on white, text on grey panel; magenta circle-check icons */
.service-commitment {
  background: #ffffff;
}

.service-commitment .interior-media-content__inner {
  gap: 0;
  align-items: stretch;
}

.service-commitment .interior-media-content__media {
  aspect-ratio: auto;
  height: 100%;
  min-height: 360px;
  border-radius: 0;
}

.service-commitment .interior-media-content__body {
  background: #f3f3f3;
  padding: clamp(2rem, 4vw, 3.5rem);
}

.site-main--service .interior-media-content__list .cnm-icon {
  background-color: var(--accent);
}

/* Estimate form — static markup matching Figma 229:865 (until Gravity Forms) */
.estimate-form {
  display: grid;
  gap: 1.25rem;
}

.estimate-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.estimate-form__field {
  display: grid;
  gap: 0.5rem;
}

.estimate-form__field label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

.estimate-form__field input,
.estimate-form__field textarea {
  width: 100%;
  padding: 1rem 1.125rem;
  background: #e8e8e8;
  border: 1px solid transparent;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
}

.estimate-form__field input::placeholder,
.estimate-form__field textarea::placeholder {
  color: #6b7280;
}

.estimate-form__field input:focus,
.estimate-form__field textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: #ffffff;
}

.estimate-form__field textarea {
  resize: vertical;
  min-height: 120px;
}

.estimate-form__submit {
  width: 100%;
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---- Gravity Forms inside the estimate CTA card ------------------------
   The form is rendered by Gravity Forms (theme "orbital"), so the estimate
   design is retargeted onto GF's markup (.gfield / .ginput_container /
   .gform_button) instead of the static .estimate-form__* classes. Scoped to
   .interior-cta__form-card so other GF forms are untouched; !important is
   needed to beat the orbital theme CSS + inline --gf-* properties. */
.interior-cta__form-card .gform_wrapper {
  margin: 0;
}

.interior-cta__form-card .gform_wrapper .gform_fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.interior-cta__form-card .gform_wrapper .gfield {
  grid-column: 1 / -1;
}

.interior-cta__form-card .gform_wrapper .gfield--width-half {
  grid-column: span 1;
}

.interior-cta__form-card .gfield_label {
  margin: 0 0 0.5rem;
  font-family: var(--font-body) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase;
  color: var(--brand) !important;
}

.interior-cta__form-card .gfield_required {
  display: none;
}

.interior-cta__form-card .gfield input,
.interior-cta__form-card .gfield select,
.interior-cta__form-card .gfield textarea {
  width: 100%;
  padding: 1rem 1.125rem !important;
  background: #e8e8e8 !important;
  border: 1px solid transparent !important;
  border-radius: 0!important;
  height: 50px!important;
  box-shadow: none !important;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink) !important;
}

.interior-cta__form-card .gfield input::placeholder,
.interior-cta__form-card .gfield textarea::placeholder {
  color: #6b7280;
  opacity: 1;
}

.interior-cta__form-card .gfield select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("../img/icons/icon-angle-down.svg") !important;
  background-repeat: no-repeat !important;
  background-position: right 1rem center !important;
  background-size: 14px !important;
  color: #6b7280 !important;
  padding: 5px 15px!important;
}

.interior-cta__form-card .gfield textarea {
  resize: vertical;
  min-height: 120px;
}

.interior-cta__form-card .gfield input:focus,
.interior-cta__form-card .gfield select:focus,
.interior-cta__form-card .gfield textarea:focus {
  outline: none;
  border-color: var(--brand) !important;
  background: #ffffff !important;
}

.interior-cta__form-card .gform_footer {
  margin-top: 1.25rem;
  padding: 0;
}

.interior-cta__form-card .gform_button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  padding: 1rem 2.5rem !important;
  background: var(--button-bg, #1e5eaa) !important;
  color: var(--button-text, #ffffff) !important;
  border: 1px solid var(--button-bg, #1e5eaa) !important;
  border-bottom: 4px solid var(--button-underline, #ff0080) !important;
  border-radius: 0!important;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase !important;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.interior-cta__form-card .gform_button:hover,
.interior-cta__form-card .gform_button:focus-visible {
  background: var(--button-bg-hover, #ff0080) !important;
  border-color: var(--button-bg-hover, #ff0080) !important;
}

/* Service Areas preview moved to interior.css (shared via template-parts/service-areas.php) */

/* ===== Responsive ===== */
@media (max-width: 1399px) {
  /* Fine-tuning */
}

@media (max-width: 991px) {
  .site-main--service .interior-hero__body {
    padding-block: clamp(2rem, 4vw, 3rem);
  }
}

@media (max-width: 767px) {
  .site-main--service .interior-hero__inner {
    min-height: auto;
  }
}

@media (max-width: 575px) {
  /* Smallest mobile fine-tuning */
}
