/* ===== Design tokens (from Figma) ===== */
:root {
  --color-primary: rgb(18, 0, 176);
  --color-primary-dark: rgb(13, 0, 130);
  --color-accent: rgb(0, 176, 145);
  --color-accent-dark: rgb(0, 148, 122);
  --color-footer: rgb(33, 95, 171);
  --color-card: rgb(233, 237, 242);
  --color-surface-alt: rgb(248, 250, 252);
  --color-text: rgb(15, 17, 21);
  --color-text-muted: rgb(90, 97, 110);
  --color-white: #ffffff;

  --font-base: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container-width: 1240px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 24px;

  --shadow-card: 0 12px 30px rgba(15, 17, 21, 0.08);
}

/* ===== Reset ===== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px;}
body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}
p, li { font-weight: 300;}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
h4 {
  font-size: 32px ;
  font-weight: 300;
}

.section-title {
  font-size: clamp(2rem, 1.6rem + 1.5vw, 3rem);
  font-weight: 700;
  text-align: center;
}
.section-eyebrow {
  text-align: center;
  color: var(--color-text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

/* ===== Scroll reveal animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
}
.reveal.is-ready {
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
  .reveal.is-ready {
    transition: none;
  }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  border-radius: 6px;
  font-weight: 500;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--color-primary); color: var(--color-white); }
.btn--primary:hover { background: var(--color-primary-dark); }
.btn--accent { background: var(--color-accent); color: var(--color-white); }
.btn--accent:hover { background: var(--color-accent-dark); }
.btn--white { background: var(--color-white); color: var(--color-primary); }
.btn--white:hover { background: var(--color-card); }

/* ===== Navbar ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  box-shadow: 0 1px 0 rgba(15, 17, 21, 0.06);
}
.navbar__inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.navbar__logo img { height: 54px; width: auto; }
.navbar__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-left: 1rem;
  flex: 1;
  font-size: 0.95rem;
  justify-content: flex-end;
}
.navbar__links > a { padding: 0.4rem 0; font-weight: 400; }
a.is-active { font-weight: 800; }
.navbar__links > a:hover { color: var(--color-primary); }
.estimated { display: flex; align-items: center; justify-content: center; background-color:#f8f9fa;}

.navbar__dropdown { position: relative; }
/* Puente invisible que cubre el espacio entre el link y el submenu,
   para que el hover no se pierda al mover el cursor en diagonal. */
.navbar__dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 0.5rem;
}
.navbar__dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0;
  font: inherit;
  font-weight: 400;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}
.navbar__dropdown-toggle:hover { color: var(--color-primary); }
.navbar__dropdown-toggle.is-active { font-weight: 800; }
.navbar__dropdown-caret {
  width: 4px;
  height: 4px;
  margin-top: 0px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}
.navbar__dropdown.is-open .navbar__dropdown-caret,
.navbar__dropdown:hover .navbar__dropdown-caret,
.navbar__dropdown:focus-within .navbar__dropdown-caret {
  margin-top: 1px;
  transform: rotate(-135deg);
}
.navbar__submenu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  padding: 0.5rem 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.navbar__dropdown:hover .navbar__submenu,
.navbar__dropdown:focus-within .navbar__submenu,
.navbar__dropdown.is-open .navbar__submenu {
  opacity: 1;
  visibility: visible;
}
.navbar__submenu li a {
  display: block;
  padding: 0.55rem 1.25rem;
  font-size: 0.95rem;
  white-space: nowrap;
}
.navbar__submenu li a:hover { background: var(--color-surface-alt); color: var(--color-primary); }

.navbar__cta { white-space: nowrap; }

.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.navbar__toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
}
.mt-0 {
  margin-top: 0px !important;
}
/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--color-white);
}
.hero__bg {
  position: absolute;
  inset: 0;
  top: -12%;
  width: 100%;
  height: 124%;
  object-fit: cover;
  will-change: transform;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}
.hero__content {
  position: relative;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  width: 100%;
}
.hero__rating {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.hero__avatars {
  display: flex;
}
.hero__avatars img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-white);
  margin-left: -12px;
}
.hero__avatars img:first-child { margin-left: 0; }
.hero__rating-text {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
}
.hero__stars { color: #ffc94a; letter-spacing: 2px; }

.hero__title { max-width: 820px; }
.hero__title h1 {
  font-size: clamp(2.2rem, 1.4rem + 3vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
}
.hero__title-sub {
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.54rem, 0.98rem + 2.1vw, 2rem);
  line-height: 1.15;
  margin-top: 0.5rem;
}
.hero__subtitle {
  margin-top: 1.5rem;
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.4rem);
  max-width: 640px;
}
.hero .btn { margin-top: 1.75rem; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.hero__actions .btn { margin-top: 1.75rem; }
.hero__video-btn { gap: 0.5rem; }
.hero__video-btn-icon { width: 18px; height: 18px; }

/* ===== Hero video modal ===== */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.video-modal[hidden] { display: none; }
.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}
.video-modal__inner {
  position: relative;
  width: min(100%, 1100px);
}
.video-modal__player {
  display: block;
  width: 100%;
  max-height: 85vh;
  background: #000;
  border-radius: 8px;
}
.video-modal__close {
  position: absolute;
  top: -2.75rem;
  right: 0;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

/* ===== Services ===== */
.services {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 6rem 1.5rem;
}
/* Full-width background; the side padding keeps content at the container width */
#services {
  max-width: none;
  padding-inline: max(1.5rem, calc((100% - var(--container-width)) / 2 + 1.5rem));
  background-color: var(--color-footer);
}
#services .section-title { color: var(--color-white); }
.services__grid {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.card {
  position: relative;
  background-color: var(--color-card);
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-sm);
  padding: 2.25rem;
  flex: 0 0 calc((100% - 2 * 1.5rem) / 3);
  width: calc((100% - 2 * 1.5rem) / 3);
  min-height: 340px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(18, 0, 176, 0.2) 0%, rgba(18, 0, 176, 0.9) 100%);
  z-index: 0;
}
.card > * { position: relative; z-index: 1; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.card__head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.card__icon {
  flex: 0 0 auto;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.card__icon svg { width: 34px; height: 34px; }
.card h3 {
  font-size: clamp(1.4rem, 1.15rem + 1vw, 1.75rem);
  font-weight: 700;
  color: var(--color-white);
}
.card p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  line-height: 1.5;
  flex: 1;
}
.card__cta {
  align-self: flex-start;
  margin-top: 1.5rem;
}

/* ===== Free Inspection section ===== */
.inspection {
  position: relative;
  padding: 20vh 1.5rem;
  overflow: hidden;
  background: linear-gradient(180deg, #cfe4f7 0%, #eaf3fb 55%, #ffffff 100%);
}
.inspection__clouds {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  z-index: 0;
}
.inspection__roof {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: auto;  
  object-fit: contain;
  z-index: 1; 
}
.inspection__content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.text-dark {
  color:#000 !important;
  font-size: 18px;
  padding: 20px 40px;
}
.pill-toggle {
  display: inline-flex;
  background: var(--color-white);
  border-radius: 999px;
  padding: 0.35rem;
  box-shadow: var(--shadow-card);
  margin-bottom: 2rem;
}
.pill-toggle__item {
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--color-text);
  background: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.pill-toggle__item:hover:not(.is-active) { background: var(--color-surface-alt); }
.pill-toggle__item.is-active {
  background: var(--color-primary);
  color: var(--color-white);
}

.tab-panel[hidden] { display: none; }
.inspection__lead {
  margin-top: 1rem;
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.6rem);
  color: var(--color-text);
}
.inspection__card {
  margin-top: 2.5rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-md);
  border: #f2f2f2 solid 1px;
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
}
.container-faqs {
  margin-top: 2.5rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-md);
  border: #f2f2f2 solid 1px;
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  position: relative;
  z-index: 2;
}
.container-faqs--flat-top { margin-top: 0; }
.inspection__list {
  display: grid;
  gap: 0.85rem;
  text-align: left;
  max-width: 420px;
  margin: 0 auto 1.5rem;
}
.inspection__list li {
  color:#000;
  position: relative;
  padding-left: 1.5rem;
  font-size: 1.05rem;
}
.inspection__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background:url('../img/check.svg') no-repeat;
}

.inspection__card p {
  color: var(--color-text-muted);
  line-height: 1.6;
}
.inspection__card .btn { margin-top: 1.5rem; }

/* ===== FAQs ===== */
.faqs {
  max-width: 900px;
  margin: 0 auto;  
}
.faq-list { margin-top: 3rem; display: grid; gap: 1rem; }
.faq-item {
  background: var(--color-white);
  border: 1px solid rgba(15, 17, 21, 0.08);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1.25rem 1.5rem;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  text-align: left;
}
.faq-item__icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.faq-item__icon::before,
.faq-item__icon::after {
  content: "";
  position: absolute;
  background: var(--color-primary);
  transition: transform 0.2s ease;
}
.faq-item__icon::before {
  left: 0; top: 50%; width: 100%; height: 2px; transform: translateY(-50%);
}
.faq-item__icon::after {
  top: 0; left: 50%; width: 2px; height: 100%; transform: translateX(-50%);
}
.faq-item.is-open .faq-item__icon::after { transform: translateX(-50%) scaleY(0); }

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-item__answer p {
  padding: 0 1.5rem 1.5rem;
  color: #000;
  line-height: 1.6;
}
.faq-item.is-open .faq-item__answer { max-height: 260px; }

/* ===== Footer ===== */
.footer {
  background: var(--color-footer);
  color: var(--color-white);
  padding: 4rem 1.5rem;
}
.footer__inner {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 3rem;
}
.footer__brand img { height: 56px; width: auto; margin-bottom: 1rem; }
.footer__brand p { line-height: 1.6; opacity: 0.9; }
.footer__social { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.footer__social a {
  width: 34px;
  height: 34px;
  border-radius: 8px;  
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer__social a:hover { background: rgba(255, 255, 255, 0.3); }
.footer__social a img { width: 34px; height: 34px; }

.btn--review {
  background: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.55);
}
.btn--review:hover { background: rgba(255, 255, 255, 0.15); }
.footer__review { margin-top: 1.25rem; text-decoration: none; }

.footer__links h3 {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 1rem;
  margin-top: 72px;
}
.footer__links nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  opacity: 0.9;
  font-size: 0.95rem;
}
.footer__links nav a:hover { opacity: 0.7; }

/* ===== Certifications ===== */
.certifications {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 5rem 1.5rem;
}
.certifications__lead {
  text-align: center;
  color: var(--color-text-muted);
  margin-top: 0.75rem;
}
.certifications__grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.certifications__item {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: var(--color-white);
  border: 1px solid rgba(15, 17, 21, 0.08);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.certifications__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 17, 21, 0.12);
}
.certifications__item img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .navbar__links, .navbar .navbar__cta { display: none; }
  .navbar__toggle { display: flex; }
  .navbar.is-open .navbar__links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-card);
    gap: 1rem;
  }
  .navbar.is-open .navbar__links .navbar__mobile-only { display: flex; }
  .navbar__links .navbar__desktop-only { display: none; }
  .navbar__links > .navbar__mobile-cta {
    align-self: stretch;
    width: 100%;
    padding: 0.85rem 1.6rem;
  }
  .navbar__submenu { position: static; transform: none; box-shadow: none; opacity: 1; visibility: visible; display: none; }
  .navbar__dropdown:hover .navbar__submenu,
  .navbar__dropdown:focus-within .navbar__submenu,
  .navbar__dropdown.is-open .navbar__submenu { display: block; }

  .card {
    flex-basis: calc((100% - 1.5rem) / 2);
    width: calc((100% - 1.5rem) / 2);
  }

  .certifications__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .card {
    flex-basis: 100%;
    width: 100%;
    height: auto;
    min-height: 260px;
  }

  .footer__inner { flex-direction: column; }
  .hero { min-height: 640px; }
  .hero__actions { gap: 0.75rem; margin-top: 1.75rem; }
  .hero__actions .btn { margin-top: 0; }
  .tab-content { max-width: 100% !important; }
  section#repair-tabs::before { display: none; }
  .pill-toggle__item { font-size: .85rem; }
  .pill-toggle { position: sticky; top: 85px; z-index: 5; }
  .certifications { padding: 3.5rem 1.5rem; }
  .certifications__grid { gap: 1rem; }
  .certifications__item { height: 140px; padding: 1rem; }

}

/* ===== Page Hero (subpages) ===== */
.page-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--color-white);
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  top: -12%;
  width: 100%;
  height: 124%;
  object-fit: cover;
  will-change: transform;
}
.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}
.page-hero__content {
  position: relative;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
  width: 100%;
}
.breadcrumb {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-bottom: 1rem;
}
.breadcrumb a { text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb a:hover { opacity: 0.75; }
.page-hero__title {
  font-size: clamp(2rem, 1.3rem + 2.8vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  max-width: 780px;
}
.about-intro {
  background: url('../img/buendia-ima.jpg') no-repeat top left;
  background-size: auto 100%;
  padding: 90px 0px;
}
/* ===== Intro paragraph under page hero ===== */
.our-text-left {
  font-size: 32px;
  font-weight: 300;
  margin: 20px 0px;
}
.our-text {
  font-size: 32px;
  font-weight: 300;
  text-align: center;
  max-width: 880px;
  margin: 0 auto ;
}
b {
  font-weight: 800;
}
.intro-text {
  max-width: 940px;
  margin: 0 auto;
  padding: 4rem 1.5rem 0;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 1.15rem;
  line-height: 1.7;
}

/* ===== CTA banner (Get in Touch, Instant Estimate, etc.) ===== */
.cta-banner {
  position: relative;
  overflow: hidden;
  padding: 5rem 1.5rem;
  text-align: center;
  color: var(--color-white);
}
.cta-banner__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-banner__overlay { position: absolute; inset: 0; background: rgba(10, 15, 30, 0.62); }
.cta-banner__content { position: relative; max-width: 640px; margin: 0 auto; }
.cta-banner__content h2 { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.625rem); font-weight: 700; }
.cta-banner__content p { margin-top: 0.75rem; font-size: 1.15rem; opacity: 0.95; }
.cta-banner .btn { margin-top: 1.75rem; }

/* ===== Get in Touch card banner (about page) ===== */
.get-in-touch { max-width: var(--container-width); margin: 0 auto; padding: 0rem 1.5rem 5.8rem 1.5rem; }
.get-in-touch__card {
  position: relative;
  min-height: 320px;
  border-radius: var(--radius-md);
  border: 1px solid #bcddff;
  background: linear-gradient(180deg, #fffefe 0%, #bcddff 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
}
.get-in-touch__img {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 30%;
  min-width: 220px;
  object-fit: cover;
}
.get-in-touch__content { position: relative; z-index: 1; max-width: 480px; margin: 0 auto; }
.get-in-touch__content h2 { font-size: clamp(1.75rem, 1.3rem + 2vw, 3rem); font-weight: 700; color: var(--color-text); }
.get-in-touch__content p { margin-top: 0.75rem; font-size: clamp(1.1rem, 1rem + 0.6vw, 1.5rem); font-weight: 300; color: var(--color-text); }
.get-in-touch__content .btn { margin-top: 1.75rem; }
.get-in-touch__content .btn--primary { background: var(--color-primary); }
.get-in-touch__content .btn--primary:hover { background: var(--color-primary-dark); }
.intro-txt { padding: 90px 0px;}
.mt-90 { margin-top: 90px !important; }
.mb-90 { margin-bottom: 90px !important; }
.mb-40 { margin-bottom: 40px !important; }
.mt-40 { margin-top: 40px !important; }
.mt-20 { margin-top: 20px !important;}
.mb-20 { margin-bottom: 20px !important;}
.tab-content {max-width: 50%;}
.medium { max-width: 440px; margin-left: auto; margin-right: auto;}
/* ===== Two-column info section ===== */
.info-split {
  max-width: var(--container-width);
  margin: 90px auto;
  display: flex;
  align-items: stretch;
  border-radius: 12px; 
  overflow: hidden;
}
.info-split--reverse { flex-direction: row-reverse; }
.info-split__media { flex: 1; min-width: 0;}
.info-split__media img,
.info-split__media video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* mt-0 variant: content defines the row height, image is cropped to match it */
.info-split.mt-0 .info-split__media { position: relative; }
.info-split.mt-0 .info-split__media img { position: absolute; inset: 0; }
.info-split__body { background-color:#f5f5f5; border-radius: 0px 12px 12px 0px; flex: 1; min-width: 0; padding: 40px; }
.info-split__body.white {background-color: #fff;}
.info-split__body h2 { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.4rem); font-weight: 700; margin-bottom: 1.25rem; }
.info-split__body p { color: #000; line-height: 1.6; margin-bottom: 1.25rem; }
.info-split__list { display: grid; gap: 0.75rem; margin-bottom: 1.5rem; }
.info-split__list li { position: relative; padding-left: 1.75rem; color: var(--color-text); }
.info-split__list li::before {
  content: ""; position: absolute; left: 0; top: 0.35rem;
  width: 16px; height: 16px; border-radius: 50%; background: url('../img/check.svg') no-repeat;
}
.title-inspec h2 {font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.4rem); font-weight: 700; margin-bottom: 1.25rem; text-align: center; max-width: 860px; margin-left: auto; margin-right: auto;}

/* ===== Feature cards (services detail grids) ===== */
.feature-grid {
  max-width: var(--container-width);
  margin: 3rem auto 0;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.feature-grid--three { grid-template-columns: repeat(2, 1fr); }
.feature-card { background: #E9EDF2; border-radius: 8px; padding: 2.5rem; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.feature-card.white { background-color:transparent; position: relative; padding-bottom: 100px;}
.feature-card.white img { position: absolute; bottom: 0; right: 0; z-index: -1;}
.feature-card h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.75rem; }
.feature-card h2 { font-size: 3rem; font-weight: 700; margin-bottom: 0.75rem; }
.feature-card p { color: #000; line-height: 1.6; margin-bottom: 16px; }
.p-0 { padding: 0; margin: 20px 0px;}

/* ===== Repair signs tabs ===== */
.repair-tabs { max-width: var(--container-width); margin: 0 auto; padding: 5rem 1.5rem; position: relative; z-index: 2;}
.repair-tabs .pill-toggle { display: flex; justify-content: center; margin: 2rem auto 0; width: fit-content; flex-wrap: wrap; }
.repair-tabs__panel { margin-top: 3rem; }
.repair-tabs__panel h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 700; margin-bottom: 1rem; }
.repair-tabs__panel > p { color: var(--color-text-muted); line-height: 1.6; max-width: 760px; }
.repair-tabs__grid { margin-top: 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.repair-tabs__grid h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.85rem; }
.repair-tabs__grid p { color: var(--color-text-muted); line-height: 1.6; }
.repair-tabs__grid .info-split__list { margin-bottom: 0; }
.repair-tabs__panel .btn { margin-top: 2rem; }

/* ===== Contact / Estimate forms ===== */
.form-section {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 5rem 1.5rem;
  display: flex;
  gap: 4rem;
  align-items: flex-start;  
}
#contact-form {
  position: relative;
}
.form-section img {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 45%;
}
.middle {
  background-color: #00b091;
  padding: 45px 0px;
}
.aditional-info {
  max-width: 600px;
  padding: 0px 20px;
  margin: 0 auto;
  text-align: center;
}
.form-section__intro { flex: 1; min-width: 280px; }
.form-section__intro h2 { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.4rem); font-weight: 700; margin-bottom: 1rem; }
.form-section__intro p { color: var(--color-text-muted); line-height: 1.6; }
.contact-form { flex: 1; min-width: 300px; display: grid; gap: 1.25rem; }
.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.contact-form label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 0.5rem; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(15, 17, 21, 0.15);
  font-family: inherit;
  font-size: 1rem;
  background: var(--color-surface-alt);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form input:focus,
.contact-form textarea:focus { outline: 2px solid var(--color-primary); outline-offset: 1px; }
.contact-form__hint { font-size: 0.85rem; color: var(--color-text-muted); }
.contact-form button { justify-self: start; }

/* ===== Highlight block ===== */
.highlight-block {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  text-align: center;
}
.highlight-block h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); font-weight: 700; margin-bottom: 1rem; }
.highlight-block p { color: var(--color-text-muted); line-height: 1.7; }

/* ===== Full-bleed image band ===== */
.image-band { width: 100%; max-height: 520px; overflow: hidden; }
.image-band img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ===== Referral banner ===== */
.referral-banner { background: var(--color-surface-alt); padding: 4rem 1.5rem; }
.referral-banner__inner { max-width: var(--container-width); margin: 0 auto; }
.referral-banner h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 700; margin-bottom: 1rem; }
.referral-banner p { color: var(--color-text-muted); line-height: 1.6; max-width: 760px; }
.referral-banner strong { color: var(--color-text); }
#storm-repair-tabs {
  padding-bottom: 680px;
}
#commercials-repair-tabs { padding-bottom: 380px;}
#commercial-repair-tabs {
  padding-bottom: 680px;
}
#contact-form { background: linear-gradient(180deg, #22406D 0%, #090A27 100%);}
#residential-tabs,
#commercials-repair-tabs,
#storm-repair-tabs,
#commercial-repair-tabs,
section#repair-tabs { background: linear-gradient(180deg, #22406D 0%, #090A27 100%); margin-bottom: 90px; position:relative;}
#residential-tabs::before {
   content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  background: url(../img/exterior-home1.png) no-repeat;
  background-size: cover;
  width: 45%;
  height: 480px;
}
section#repair-tabs::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  background: url(../img/exterior-home.png) no-repeat;
  background-size: cover;
  width: 45%;
  height: 700px;
}
#commercials-repair-tabs::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  background: url(../img/commercialroof.png) no-repeat;
  background-size: cover;
  width: 70%;
  height: 760px;
}
#commercial-repair-tabs::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  background: url(../img/roofing.png) no-repeat;
  background-size: cover;
  width: 100%;
  height: 980px;
}
#storm-repair-tabs::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  background: url(../img/cloud.png) no-repeat;
  background-size: cover;
  width: 100%;
  height: 980px;
}
.gap-4 { gap: 20px;}
.w-50 { max-width: 50%; }
.text-left {text-align: left !important;}
#storm-repair-tabs li,
#commercial-repair-tabs li,
section#repair-tabs li { position: relative; padding-left: 1.5rem;}
#commercial-repair-tabs li::before,
section#repair-tabs li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: url(../img/check-light.svg) no-repeat;
}
.text-white { color:#fff !important;}
.text-center { text-align: center;}
.px-4 {max-width: 900px; margin-left: auto; margin-right: auto;}
h2.light {font-size:48px; font-weight: 300;}
.map-bottom iframe {
  display: block;
  width: 100%;
}

@media (max-width: 880px) {
  .info-split { flex-direction: column; gap: 2.5rem; margin: 3.5rem auto; }
  .info-split--reverse { flex-direction: column; }
  .info-split__media img,
  .info-split__media video { height: auto; }
  .info-split.mt-0 .info-split__media { position: static; }
  .info-split.mt-0 .info-split__media img { position: static; height: auto; }
  .repair-tabs__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .form-section { flex-direction: column; gap: 2.5rem; }
  .contact-form__row { grid-template-columns: 1fr; }
  .get-in-touch__card { flex-direction: column-reverse; padding: 2rem 1.5rem; min-height: 0; }
  .get-in-touch__img { position: relative; width: 100%; height: 200px; border-radius: var(--radius-md); margin-bottom: 1.5rem; }
  .get-in-touch__content { max-width: none; }
  #commercials-repair-tabs::before { width: 100%; }
}

/* ===== Service Areas Ticker ===== */
.areas-ticker {
  background: var(--color-primary);
  color: var(--color-white);
  overflow: hidden;
  white-space: nowrap;
  padding: 0.9rem 0;
}
.areas-ticker__track {
  display: inline-flex;
  width: max-content;
  animation: areas-ticker-scroll 32s linear infinite;
}
.areas-ticker__item {
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0 1.5rem;
  white-space: nowrap;
}
.areas-ticker__item::after {
  content: "•";
  margin-left: 1.5rem;
  opacity: 0.6;
}
@keyframes areas-ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .areas-ticker__track { animation: none; }
}

/* ===== Navbar "Send us a text" (SMS) ===== */
.navbar__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  color: var(--color-primary);
}
.navbar__text-label { font-size: 0.85rem; }
.navbar__text-phone { font-size: 1.05rem; font-weight: 800; }
.navbar__text:hover { color: var(--color-primary-dark); }
.navbar__mobile-only { display: none; }

/* ===== Google reviews carousel ===== */
.reviews {
  background: var(--color-surface-alt);
  padding: 4.5rem 1.5rem;
}
.reviews__inner {
  max-width: var(--container-width);
  margin: 0 auto;
  text-align: center;
}
.reviews__summary {
  margin-top: 0.75rem;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}
.reviews__summary strong { color: var(--color-text); font-weight: 700; }
.reviews__stars { color: #fbbc04; letter-spacing: 0.1em; }
.reviews-carousel {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
}
.reviews-carousel[hidden] { display: none; }
.reviews-carousel__track {
  flex: 1;
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 0.5rem 0.25rem 1.5rem;
}
.reviews-carousel__track::-webkit-scrollbar { display: none; }
.review-card {
  flex: 0 0 calc((100% - 3rem) / 3);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 1.75rem;
}
.review-card__header { display: flex; align-items: center; gap: 0.85rem; }
.review-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 600;
}
.review-card__name { font-weight: 600; }
.review-card__date { font-size: 0.85rem; color: var(--color-text-muted); }
.review-card__text {
  line-height: 1.6;
  color: var(--color-text);
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.reviews-carousel__btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}
.reviews-carousel__btn:hover { background: var(--color-primary-dark); }
.reviews-carousel__dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.reviews-carousel__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(18, 0, 176, 0.2);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.reviews-carousel__dot.is-active { background: var(--color-primary); transform: scale(1.25); }
.reviews__cta { margin-top: 2rem; }
@media (max-width: 960px) {
  .review-card { flex-basis: calc((100% - 1.5rem) / 2); }
}
@media (max-width: 640px) {
  .reviews { padding: 3.5rem 1rem; }
  .review-card { flex-basis: 100%; }
  .reviews-carousel__btn { display: none; }
}
