/* ==========================================================================
   Components — Shared component styles
   Depends on: tokens.css, base.css, layout.css

   Load order: 4 of 5 (tokens → base → layout → components → utilities)
   Component styles are added as pages are built in Phase 2 Plans 3–4.
   ========================================================================== */

/* -----------------------------------------------------------------------
   Buttons
   ----------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-8);
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  text-decoration: none;
  border: var(--border-width-thick) solid transparent;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition:
    background-color var(--duration-fast) var(--easing-default),
    color var(--duration-fast) var(--easing-default),
    border-color var(--duration-fast) var(--easing-default),
    box-shadow var(--duration-fast) var(--easing-default);
}

.btn--primary {
  background-color: var(--action-primary-bg);
  color: var(--action-primary-text);
  border-color: var(--action-primary-bg);
}

.btn--primary:hover {
  background-color: var(--action-primary-hover);
  border-color: var(--action-primary-hover);
}

.btn--secondary {
  background-color: var(--action-secondary-bg);
  color: var(--action-secondary-text);
  border-color: var(--action-secondary-bg);
}

.btn--secondary:hover {
  background-color: var(--action-secondary-hover);
  border-color: var(--action-secondary-hover);
}

.btn--outline {
  background-color: transparent;
  color: var(--action-primary-bg);
  border-color: var(--action-primary-bg);
}

.btn--outline:hover {
  background-color: var(--action-primary-bg);
  color: var(--action-primary-text);
}

.btn--sm {
  padding: var(--space-2) var(--space-6);
  font-size: var(--text-sm);
}

.btn--lg {
  padding: var(--space-4) var(--space-10);
  font-size: var(--text-lg);
}

/* -----------------------------------------------------------------------
   Cards (base)
   ----------------------------------------------------------------------- */

.card {
  background-color: var(--card-bg);
  border: var(--border-width) solid var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: var(--space-8);
  transition: box-shadow var(--duration-normal) var(--easing-default);
}

.card:hover {
  box-shadow: var(--card-shadow-hover);
}

/* =======================================================================
   Site Header
   ======================================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background-color: var(--header-bg);
  color: var(--header-text);
  transition: box-shadow var(--duration-normal) var(--easing-default);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-nav);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.site-header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.site-header__logo img {
  width: auto;
  height: 6.25rem;
}

/* -----------------------------------------------------------------------
   Hamburger toggle — visible on mobile only
   ----------------------------------------------------------------------- */

.site-header__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  cursor: pointer;
  z-index: calc(var(--z-overlay) + 1);
  position: relative;
}

.site-header__toggle-icon,
.site-header__toggle-icon::before,
.site-header__toggle-icon::after {
  display: block;
  width: 1.5rem;
  height: 2px;
  background-color: var(--header-text);
  border-radius: 1px;
  transition:
    transform var(--duration-fast) var(--easing-default),
    opacity var(--duration-fast) var(--easing-default);
}

.site-header__toggle-icon {
  position: relative;
}

.site-header__toggle-icon::before,
.site-header__toggle-icon::after {
  content: '';
  position: absolute;
  left: 0;
}

.site-header__toggle-icon::before {
  top: -0.4375rem;
}

.site-header__toggle-icon::after {
  top: 0.4375rem;
}

/* Animate hamburger → X when open */
.site-header__toggle[aria-expanded="true"] .site-header__toggle-icon {
  background-color: transparent;
}

.site-header__toggle[aria-expanded="true"] .site-header__toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.site-header__toggle[aria-expanded="true"] .site-header__toggle-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

/* -----------------------------------------------------------------------
   Header actions (phone + CTA) — desktop only
   ----------------------------------------------------------------------- */

.site-header__actions {
  display: none;
  align-items: center;
  gap: var(--space-4);
}

.site-header__phone {
  color: var(--header-text);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: var(--weight-semibold);
  font-size: var(--text-base);
  white-space: nowrap;
  transition: color var(--duration-fast) var(--easing-default);
}

.site-header__phone:hover {
  color: var(--color-brand-cyan-400);
}

/* =======================================================================
   Site Navigation — Mobile-first (slide-in overlay)
   ======================================================================= */

.site-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 22rem;
  background-color: var(--color-navy-800);
  padding: calc(var(--header-height) + var(--space-6)) var(--space-6) var(--space-8);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateX(100%);
  transition: transform var(--duration-slow) var(--easing-out);
  z-index: var(--z-overlay);
  display: flex;
  flex-direction: column;
}

body.nav-open .site-nav {
  transform: translateX(0);
}

/* Prevent body scroll when mobile nav is open */
body.nav-open {
  overflow: hidden;
}

/* Semi-transparent backdrop behind the nav panel */
body.nav-open::before {
  content: '';
  position: fixed;
  inset: 0;
  background: var(--color-overlay);
  z-index: calc(var(--z-overlay) - 1);
}

.site-nav__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.site-nav__link {
  display: block;
  padding: var(--space-3) var(--space-4);
  color: var(--header-text);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: var(--weight-medium);
  font-size: var(--text-lg);
  border-radius: var(--radius-sm);
  transition:
    background-color var(--duration-fast) var(--easing-default),
    color var(--duration-fast) var(--easing-default);
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--color-brand-cyan-400);
}

.site-nav__link[aria-current="page"] {
  color: var(--color-brand-cyan-400);
  font-weight: var(--weight-semibold);
}

/* -----------------------------------------------------------------------
   Services dropdown — mobile (accordion-style toggle)
   ----------------------------------------------------------------------- */

.site-nav__dropdown {
  display: none;
  padding-left: var(--space-4);
  margin-top: var(--space-1);
}

.site-nav__item--has-children.is-open .site-nav__dropdown {
  display: block;
}

/* Chevron indicator on the Services link (mobile) */
.site-nav__item--has-children > .site-nav__link::after {
  content: '';
  display: inline-block;
  width: 0.45em;
  height: 0.45em;
  margin-left: var(--space-2);
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-0.1em);
  transition: transform var(--duration-fast) var(--easing-default);
  vertical-align: middle;
}

.site-nav__item--has-children.is-open > .site-nav__link::after {
  transform: rotate(-135deg) translateY(-0.1em);
}

.site-nav__dropdown-link {
  display: block;
  padding: var(--space-2) var(--space-4);
  color: var(--color-ink-300);
  text-decoration: none;
  font-size: var(--text-base);
  border-radius: var(--radius-sm);
  transition: color var(--duration-fast) var(--easing-default);
}

.site-nav__dropdown-link:hover,
.site-nav__dropdown-link:focus-visible {
  color: var(--color-brand-cyan-400);
}

/* Mobile CTA inside nav panel */
.site-nav__item--cta {
  margin-top: var(--space-4);
}

.site-nav__item--cta .btn {
  width: 100%;
  justify-content: center;
}

/* Mobile phone link at bottom of nav panel */
.site-nav__phone {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: auto;
  padding-top: var(--space-6);
  color: var(--color-brand-cyan-400);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: var(--weight-semibold);
  font-size: var(--text-lg);
  transition: color var(--duration-fast) var(--easing-default);
}

.site-nav__phone:hover {
  color: var(--header-text);
}

/* =======================================================================
   Desktop navigation — 768px+
   ======================================================================= */

@media (min-width: 48rem) {
  .site-header__toggle {
    display: none;
  }

  .site-header__actions {
    display: flex;
  }

  /* Reset overlay → inline row */
  .site-nav {
    position: static;
    width: auto;
    max-width: none;
    background: none;
    padding: 0;
    overflow: visible;
    transform: none;
    transition: none;
    flex-direction: row;
    align-items: center;
    z-index: auto;
  }

  .site-nav__list {
    flex-direction: row;
    align-items: center;
    gap: var(--space-1);
  }

  .site-nav__link {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-base);
    font-weight: var(--weight-medium);
  }

  /* Services dropdown — desktop (hover/focus) */
  .site-nav__item--has-children {
    position: relative;
  }

  .site-nav__item--has-children > .site-nav__link::after {
    transform: rotate(45deg) translateY(-0.15em);
    width: 0.35em;
    height: 0.35em;
  }

  .site-nav__item--has-children:hover > .site-nav__link::after,
  .site-nav__item--has-children:focus-within > .site-nav__link::after {
    transform: rotate(-135deg) translateY(-0.15em);
  }

  .site-nav__dropdown {
    display: block;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 14rem;
    background-color: var(--color-surface-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: var(--space-3) 0;
    margin-top: var(--space-2);
    opacity: 0;
    visibility: hidden;
    transition:
      opacity var(--duration-fast) var(--easing-default),
      visibility var(--duration-fast) var(--easing-default);
    z-index: var(--z-dropdown);
  }

  /* Hover bridge — prevents dropdown from closing when mouse moves from link to dropdown */
  .site-nav__item--has-children::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: var(--space-2);
  }

  .site-nav__item--has-children:hover .site-nav__dropdown,
  .site-nav__item--has-children:focus-within .site-nav__dropdown {
    opacity: 1;
    visibility: visible;
  }

  .site-nav__dropdown-link {
    color: var(--text-primary);
    padding: var(--space-2) var(--space-5);
    font-size: var(--text-sm);
  }

  .site-nav__dropdown-link:hover,
  .site-nav__dropdown-link:focus-visible {
    background-color: var(--color-surface-ice);
    color: var(--color-brand-cyan-600);
  }

  /* Header CTA — proportional to larger nav text */
  .site-header__actions .btn--sm {
    padding: var(--space-3) var(--space-8);
    font-size: var(--text-base);
  }

  /* Hide mobile-only elements */
  .site-nav__item--cta {
    display: none;
  }

  .site-nav__phone {
    display: none;
  }

  /* No backdrop on desktop */
  body.nav-open::before {
    display: none;
  }
}

/* =======================================================================
   Trust Strip
   ======================================================================= */

.trust-strip {
  background-color: var(--color-surface-mist);
  padding-block: var(--space-5);
}

.trust-strip__inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  text-align: center;
}

.trust-strip__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
  color: var(--color-navy-900);
  white-space: nowrap;
}

.trust-strip__icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--color-brand-cyan-600);
}

.trust-strip__item a {
  color: var(--color-brand-cyan-600);
  text-decoration: none;
  font-weight: var(--weight-bold);
}

.trust-strip__item a:hover {
  color: var(--color-brand-cyan-500);
  text-decoration: underline;
}

@media (min-width: 48rem) {
  .trust-strip__inner {
    grid-template-columns: repeat(4, auto);
    justify-content: center;
    gap: var(--space-10);
  }
}

/* =======================================================================
   Site Footer
   ======================================================================= */

.site-footer {
  padding-block: var(--space-16) 0;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  padding-bottom: var(--space-12);
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.site-footer__logo {
  width: auto;
  height: 3rem;
}

.site-footer__tagline {
  color: var(--color-ink-300);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  max-width: none;
}

.site-footer__heading {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--color-brand-cyan-400);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  margin-bottom: var(--space-4);
}

.site-footer__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.site-footer__list a {
  color: var(--color-ink-300);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color var(--duration-fast) var(--easing-default);
}

.site-footer__list a:hover,
.site-footer__list a:focus-visible {
  color: var(--color-text-inverse);
}

.site-footer__legal {
  border-top: 1px solid var(--color-navy-700);
  padding-block: var(--space-8);
}

.site-footer__legal p {
  color: var(--color-ink-400);
  font-size: var(--text-xs);
  line-height: var(--leading-relaxed);
  max-width: none;
}

.site-footer__copyright {
  margin-top: var(--space-3);
}

/* Footer responsive — 2-col at tablet, 4-col at desktop */
@media (min-width: 48rem) {
  .site-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .site-footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

/* =======================================================================
   Hero
   ======================================================================= */

.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  background-color: var(--color-navy-900);
  background-size: cover;
  background-position: center;
  color: var(--text-on-dark);
  overflow: hidden;
}

/* Dark overlay for background images */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(14, 34, 53, 0.85) 0%,
    rgba(14, 34, 53, 0.65) 100%
  );
  z-index: 1;
}

.hero > .container {
  position: relative;
  z-index: 2;
}

.hero__content {
  max-width: 40rem;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--weight-extrabold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-surface-white);
  margin-bottom: var(--space-4);
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  line-height: var(--leading-normal);
  color: var(--color-ink-300);
  margin-bottom: var(--space-8);
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* Ghost/outline button for hero — white border on dark bg */
.btn--ghost {
  background-color: transparent;
  color: var(--color-surface-white);
  border-color: var(--color-surface-white);
}

.btn--ghost:hover {
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--color-surface-white);
  border-color: var(--color-surface-white);
}

/* Tablet+ */
@media (min-width: 48rem) {
  .hero {
    min-height: 70vh;
  }

  .hero__title {
    font-size: var(--text-4xl);
  }

  .hero__subtitle {
    font-size: var(--text-xl);
  }

  .hero__actions {
    flex-direction: row;
  }
}

/* Desktop */
@media (min-width: 64rem) {
  .hero__title {
    font-size: var(--text-5xl);
  }
}

/* Hero variants — inner pages get a shorter hero */
.hero--service,
.hero--contact,
.hero--faq,
.hero--about {
  min-height: auto;
  padding-block: var(--space-16);
}

.hero--service::before,
.hero--contact::before,
.hero--faq::before,
.hero--about::before {
  background: linear-gradient(
    135deg,
    rgba(14, 34, 53, 0.92) 0%,
    rgba(14, 34, 53, 0.80) 100%
  );
}

/* =======================================================================
   Service Card
   ======================================================================= */

.service-card {
  display: flex;
  flex-direction: column;
  background-color: var(--card-bg);
  border: var(--border-width) solid var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: var(--space-8);
  text-decoration: none;
  color: var(--text-primary);
  transition:
    box-shadow var(--duration-normal) var(--easing-default),
    transform var(--duration-normal) var(--easing-default);
}

.service-card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-4px);
}

.service-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-md);
  background-color: var(--color-surface-ice);
  color: var(--color-brand-cyan-500);
  margin-bottom: var(--space-5);
  flex-shrink: 0;
}

.service-card__icon svg,
.service-card__icon img {
  width: 1.75rem;
  height: 1.75rem;
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  line-height: var(--leading-snug);
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.service-card__desc {
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-secondary);
  margin-bottom: var(--space-5);
  flex-grow: 1;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--link-color);
  text-decoration: none;
  transition: color var(--duration-fast) var(--easing-default);
}

.service-card__link:hover {
  color: var(--link-hover);
}

/* Arrow indicator */
.service-card__link::after {
  content: '→';
  transition: transform var(--duration-fast) var(--easing-default);
}

.service-card:hover .service-card__link::after {
  transform: translateX(4px);
}

/* =======================================================================
   Feature / Trust Card (reusable info card)
   ======================================================================= */

.feature-card {
  text-align: center;
  padding: var(--space-8);
}

.feature-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  margin-inline: auto;
  margin-bottom: var(--space-5);
  border-radius: var(--radius-full);
  background-color: var(--color-surface-ice);
  color: var(--color-brand-cyan-500);
}

.feature-card__icon svg,
.feature-card__icon img {
  width: 2rem;
  height: 2rem;
}

.feature-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  line-height: var(--leading-snug);
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.feature-card__desc {
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-secondary);
}

/* =======================================================================
   Quote CTA (dark section CTA block)
   ======================================================================= */

.quote-cta .container {
  text-align: center;
  max-width: var(--container-narrow);
}

.quote-cta__title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  color: var(--color-surface-white);
  margin-bottom: var(--space-4);
}

.quote-cta__text {
  font-size: var(--text-lg);
  line-height: var(--leading-normal);
  color: var(--color-ink-300);
  margin-bottom: var(--space-8);
}

.quote-cta__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

@media (min-width: 48rem) {
  .quote-cta__title {
    font-size: var(--text-3xl);
  }

  .quote-cta__actions {
    flex-direction: row;
    justify-content: center;
  }
}

/* =======================================================================
   Section Heading (consistent pattern for named sections)
   ======================================================================= */

.section-heading {
  text-align: center;
  max-width: var(--container-narrow);
  margin-inline: auto;
  margin-bottom: var(--space-12);
}

.section-heading__title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.section-heading__subtitle {
  font-size: var(--text-lg);
  line-height: var(--leading-normal);
  color: var(--text-secondary);
}

/* On dark sections, override text colors */
.section--dark .section-heading__title {
  color: var(--color-surface-white);
}

.section--dark .section-heading__subtitle {
  color: var(--color-ink-300);
}

@media (min-width: 48rem) {
  .section-heading__title {
    font-size: var(--text-3xl);
  }
}

/* =======================================================================
   Form Components
   ======================================================================= */

.form {
  width: 100%;
}

.form__group {
  margin-bottom: var(--space-6);
}

.form__label {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.form__label--required::after {
  content: ' *';
  color: var(--color-error);
}

.form__input,
.form__select,
.form__textarea {
  display: block;
  width: 100%;
  padding: var(--input-padding);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-snug);
  color: var(--text-primary);
  background-color: var(--input-bg);
  border: var(--border-width-thick) solid var(--input-border);
  border-radius: var(--input-radius);
  transition:
    border-color var(--duration-fast) var(--easing-default),
    box-shadow var(--duration-fast) var(--easing-default);
  appearance: none;
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--input-border-focus);
  box-shadow: 0 0 0 3px rgba(70, 200, 242, 0.2);
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: var(--text-muted);
}

.form__textarea {
  min-height: 8rem;
  resize: vertical;
}

/* Custom select dropdown arrow */
.form__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23516579' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  padding-right: var(--space-10);
}

/* Validation states */
.form__group--error .form__input,
.form__group--error .form__select,
.form__group--error .form__textarea {
  border-color: var(--color-error);
}

.form__group--error .form__input:focus,
.form__group--error .form__select:focus,
.form__group--error .form__textarea:focus {
  box-shadow: 0 0 0 3px rgba(192, 59, 59, 0.15);
}

.form__helper {
  display: block;
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--text-secondary);
  margin-top: var(--space-1);
}

.form__error {
  display: block;
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--color-error);
  margin-top: var(--space-1);
}

/* Form row — side-by-side fields on wider screens */
.form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 48rem) {
  .form__row {
    grid-template-columns: repeat(2, 1fr);
  }

  .form__row .form__group {
    margin-bottom: 0;
  }
}

/* Submit area */
.form__submit {
  padding-top: var(--space-4);
}

.form__submit .btn {
  width: 100%;
}

@media (min-width: 48rem) {
  .form__submit .btn {
    width: auto;
  }
}

/* =======================================================================
   Testimonial / Quote Block
   ======================================================================= */

.testimonial {
  position: relative;
  background-color: var(--color-surface-ice);
  border-radius: var(--card-radius);
  padding: var(--space-8);
  padding-top: var(--space-10);
}

/* Decorative quotation mark */
.testimonial::before {
  content: '\201C';
  position: absolute;
  top: var(--space-3);
  left: var(--space-6);
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  line-height: 1;
  color: var(--color-brand-cyan-300);
  pointer-events: none;
}

.testimonial__text {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-style: italic;
  line-height: var(--leading-relaxed);
  color: var(--text-primary);
  margin-bottom: var(--space-5);
}

.testimonial__author {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-secondary);
}

.testimonial__role {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* =======================================================================
   FAQ Accordion (details/summary)
   ======================================================================= */

.faq-group {
  margin-bottom: var(--space-10);
}

.faq-group__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: var(--border-width-thick) solid var(--color-brand-cyan-500);
}

.faq-item {
  border-bottom: var(--border-width) solid var(--border-subtle);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  transition: color var(--duration-fast) var(--easing-default);
}

/* Remove default marker */
.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::marker {
  content: '';
}

/* Chevron indicator */
.faq-item summary::after {
  content: '';
  flex-shrink: 0;
  width: 0.6em;
  height: 0.6em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--duration-fast) var(--easing-default);
}

.faq-item[open] summary::after {
  transform: rotate(-135deg);
}

.faq-item summary:hover {
  color: var(--color-brand-cyan-600);
}

.faq-item__body {
  padding-bottom: var(--space-6);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-secondary);
}

.faq-item__body p + p {
  margin-top: var(--space-3);
}

/* =======================================================================
   Breadcrumb Navigation
   ======================================================================= */

.breadcrumb {
  padding-block: var(--space-3);
  background-color: var(--color-surface-mist);
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.breadcrumb__item {
  display: inline-flex;
  align-items: center;
}

/* Separator */
.breadcrumb__item + .breadcrumb__item::before {
  content: '/';
  margin-right: var(--space-1);
  color: var(--text-muted);
}

.breadcrumb__item a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--easing-default);
}

.breadcrumb__item a:hover {
  color: var(--link-color);
  text-decoration: underline;
}

/* Current page — no link, muted text */
.breadcrumb__item[aria-current="page"] {
  color: var(--text-muted);
  font-weight: var(--weight-medium);
}

/* =======================================================================
   Content Section (generic body content blocks)
   ======================================================================= */

.content-section {
  max-width: var(--container-narrow);
  margin-inline: auto;
}

.content-section h2 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

/* =======================================================================
   WhatsApp Chat Widget
   ======================================================================= */

.whatsapp-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Floating button -------------------------------------------------------- */

.whatsapp-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #25D366;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform var(--duration-fast, 150ms) ease, box-shadow var(--duration-fast, 150ms) ease;
  animation: whatsapp-pulse 2s ease-in-out 1;
}

.whatsapp-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.whatsapp-btn svg {
  width: 32px;
  height: 32px;
  fill: #fff;
  pointer-events: none;
}

@keyframes whatsapp-pulse {
  0%   { transform: scale(1); }
  20%  { transform: scale(1.15); }
  40%  { transform: scale(1); }
  60%  { transform: scale(1.1); }
  80%  { transform: scale(1); }
}

/* Chat popup ------------------------------------------------------------- */

.whatsapp-popup {
  position: absolute;
  bottom: 72px;
  right: 0;
  width: 360px;
  max-width: calc(100vw - 48px);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  background: #fff;
  display: none;
  opacity: 0;
  transform: translateY(12px);
}

.whatsapp-popup.is-open {
  display: block;
  animation: whatsapp-slide-in 250ms ease forwards;
}

@keyframes whatsapp-slide-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Header */

.whatsapp-popup__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background-color: #075E54;
  color: #fff;
}

.whatsapp-popup__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.whatsapp-popup__avatar svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.whatsapp-popup__info {
  flex: 1;
  min-width: 0;
}

.whatsapp-popup__name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
}

.whatsapp-popup__status {
  font-size: 12px;
  opacity: 0.85;
  margin: 0;
}

.whatsapp-popup__close {
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  opacity: 0.8;
  transition: opacity 150ms ease;
}

.whatsapp-popup__close:hover {
  opacity: 1;
}

/* Body / chat area */

.whatsapp-popup__body {
  padding: 20px 16px;
  background: #E5DDD5
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Crect fill='%23E5DDD5' width='200' height='200'/%3E%3Cg opacity='.04'%3E%3Ccircle cx='40' cy='40' r='3' fill='%23000'/%3E%3Ccircle cx='120' cy='80' r='3' fill='%23000'/%3E%3Ccircle cx='80' cy='160' r='3' fill='%23000'/%3E%3C/g%3E%3C/svg%3E");
}

.whatsapp-popup__bubble {
  background: #fff;
  border-radius: 0 8px 8px 8px;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.45;
  color: #303030;
  max-width: 85%;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
}

.whatsapp-popup__bubble + .whatsapp-popup__bubble {
  margin-top: 8px;
}

/* Footer / input area */

.whatsapp-popup__footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid #e0e0e0;
  background: #f0f0f0;
}

.whatsapp-popup__input {
  flex: 1;
  padding: 10px 14px;
  border: none;
  border-radius: 20px;
  background: #fff;
  font-size: 14px;
  color: #303030;
  outline: none;
  cursor: pointer;
}

.whatsapp-popup__input::placeholder {
  color: #999;
}

.whatsapp-popup__send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #25D366;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 150ms ease;
}

.whatsapp-popup__send:hover {
  background-color: #1ebe5b;
}

.whatsapp-popup__send svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

/* Responsive — mobile */

@media (max-width: 480px) {
  .whatsapp-widget {
    bottom: 16px;
    right: 16px;
  }

  .whatsapp-popup {
    right: -8px;
    width: calc(100vw - 32px);
    max-width: none;
  }
}

.content-section h3 {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.content-section p {
  margin-bottom: var(--space-4);
  line-height: var(--leading-normal);
  color: var(--text-secondary);
}

.content-section ul,
.content-section ol {
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
  color: var(--text-secondary);
  line-height: var(--leading-normal);
}

.content-section li + li {
  margin-top: var(--space-2);
}

/* =======================================================================
   Checklist (tick-list for feature/benefit lists)
   ======================================================================= */

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checklist__item {
  position: relative;
  padding-left: var(--space-8);
  padding-block: var(--space-2);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-secondary);
}

.checklist__item::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: var(--space-2);
  font-weight: var(--weight-bold);
  color: var(--color-brand-cyan-500);
}

/* =======================================================================
   Form Validation States & Messages
   ======================================================================= */

/* Inline field error text (added dynamically by JS) */
.form__group--error .form__label {
  color: var(--color-error);
}

/* Success message shown after form submit */
.form-success {
  text-align: center;
  padding: var(--space-10) var(--space-6);
}

.form-success__title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--color-success);
  margin-bottom: var(--space-3);
}

.form-success__text {
  font-size: var(--text-lg);
  line-height: var(--leading-normal);
  color: var(--text-secondary);
}

/* Form-level error message (shown on submit failure) */
.form-error-message {
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background-color: var(--color-accent-rose-200);
  color: var(--color-error);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-normal);
}

/* Hidden success container (revealed by JS) */
[data-form-success] {
  display: none;
}

/* Disabled submit button state */
.form__submit .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* -----------------------------------------------------------------------
   Visual Service Cards (image-led design)
   Used on: homepage, services hub
   ----------------------------------------------------------------------- */

.services-grid__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

.service-visual-card {
  display: flex;
  flex-direction: column;
  background-color: var(--card-bg);
  border: var(--border-width) solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--text-primary);
  transition:
    box-shadow var(--duration-normal) var(--easing-default),
    transform var(--duration-normal) var(--easing-default);
}

.service-visual-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

/* Illustration image area */
.service-visual-card__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #F5F9FC;
  padding: var(--space-6);
}

.service-visual-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--duration-normal) var(--easing-default);
}

.service-visual-card:hover .service-visual-card__image img {
  transform: scale(1.05);
}

/* Card body */
.service-visual-card__body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: var(--space-6) var(--space-6) var(--space-8);
}

.service-visual-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-snug);
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.service-visual-card__desc {
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
  flex-grow: 1;
}

.service-visual-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-8);
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--action-primary-text);
  background-color: var(--action-primary-bg);
  border: var(--border-width-thick) solid var(--action-primary-bg);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition:
    background-color var(--duration-fast) var(--easing-default),
    border-color var(--duration-fast) var(--easing-default);
  align-self: flex-start;
}

.service-visual-card:hover .service-visual-card__cta {
  background-color: var(--action-primary-hover);
  border-color: var(--action-primary-hover);
}

/* Responsive: 2 cols on tablet, 3 on desktop */
@media (min-width: 40rem) {
  .services-grid__cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .services-grid__cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =======================================================================
   Google Reviews
   ======================================================================= */

/* -- Full section (homepage) — dark Trustpilot-style layout ------------ */

.google-reviews {
  padding: var(--space-12, 3rem) 0;
  background: var(--color-navy-900);
}

.google-reviews__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-8, 2rem);
}

@media (min-width: 64rem) {
  .google-reviews__inner {
    flex-direction: row;
    align-items: center;
    gap: var(--space-10, 2.5rem);
  }
}

/* Left column — rating summary */
.google-reviews__summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3, 0.75rem);
  text-align: center;
  flex-shrink: 0;
}

@media (min-width: 64rem) {
  .google-reviews__summary {
    align-items: flex-start;
    text-align: left;
    min-width: 210px;
  }
}

.google-reviews__excellent {
  font-family: var(--font-heading);
  font-size: var(--text-2xl, 1.5rem);
  font-weight: var(--weight-bold);
  color: #fff;
}

.google-reviews__stars {
  display: flex;
  gap: 2px;
}

.google-reviews__star {
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
}

.google-reviews__count {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.8);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.google-reviews__count:hover {
  color: #fff;
}

.google-reviews__count-number {
  font-weight: var(--weight-semibold);
}

.google-reviews__brand {
  display: flex;
  align-items: center;
  gap: var(--space-2, 0.5rem);
  margin-top: var(--space-1, 0.25rem);
}

.google-reviews__g-icon {
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
}

.google-reviews__brand-text {
  font-family: var(--font-heading);
  font-size: var(--text-base, 1rem);
  font-weight: var(--weight-semibold);
  color: rgba(255, 255, 255, 0.9);
}

/* Right column — review cards */
.google-reviews__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4, 1rem);
  flex: 1;
  min-width: 0;
}

@media (min-width: 40rem) {
  .google-reviews__cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .google-reviews__cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Individual card */
.google-reviews__card {
  background: #fff;
  border-radius: var(--radius-lg, 0.75rem);
  padding: var(--space-5, 1.25rem);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: var(--space-2, 0.5rem);
}

.google-reviews__card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3, 0.75rem);
}

.google-reviews__card-stars {
  font-size: 1.125rem;
  color: #FBBC04;
  letter-spacing: 1px;
  line-height: 1;
}

.google-reviews__verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-xs, 0.75rem);
  color: #34A853;
  font-weight: var(--weight-medium, 500);
  white-space: nowrap;
}

.google-reviews__card-title {
  font-family: var(--font-heading);
  font-size: var(--text-base, 1rem);
  font-weight: var(--weight-bold);
  color: var(--text-primary, #1a1a1a);
  margin: 0;
  line-height: 1.3;
}

.google-reviews__card-text {
  font-size: var(--text-sm, 0.875rem);
  color: var(--text-secondary, #5f6368);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.google-reviews__card-author {
  font-size: var(--text-xs, 0.75rem);
  color: var(--text-tertiary, #9aa0a6);
  margin-top: auto;
}

/* -- Compact footer variant -------------------------------------------- */

.google-reviews-compact {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
  flex-wrap: wrap;
}

.google-reviews-compact__g-icon {
  width: 1.25rem;
  height: 1.25rem;
  max-width: 1.25rem;
  max-height: 1.25rem;
  flex-shrink: 0;
}

.google-reviews-compact__stars {
  display: flex;
  gap: 1px;
}

.google-reviews-compact__star {
  width: 0.875rem;
  height: 0.875rem;
  color: #FBBC04;
}

.google-reviews-compact__rating {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: inherit;
}

.google-reviews-compact__link {
  font-size: var(--text-sm);
  color: #FBBC04;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.google-reviews-compact__link:hover {
  color: #fff;
}
