/* ==========================================================================
   pages-v2.css — design harmonisation for the Services & Gallery pages.
   Loaded after sass/main.css. Keeps the photo backgrounds; modernises
   panels, typography, buttons, and accents to match the new homepage
   (navy / teal / cream, Quicksand).
   (1rem = 9px — html { font-size: 56.25% } in main.css.)
   ========================================================================== */

:root {
  --pv2-teal: #2fb5b0;
  --pv2-teal-bright: #43d6cf;
  --pv2-navy: #0c2233;
  --pv2-navy-deep: #081420;
  --pv2-cream: #f4efe4;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
.services-body h1,
.services-body h2,
.services-body h3,
.services-body h4,
.gallery-body h1,
.gallery-body h2,
.gallery-body h3,
.gallery-body h4 {
  font-family: "Quicksand", "Nunito", sans-serif;
}

/* --------------------------------------------------------------------------
   Kill the emoji injected via CSS (markup emoji are removed in the HTML)
   -------------------------------------------------------------------------- */
.services-core-subtitle h4::before,
.reflection-card-front::after,
.reflection-card-back::after {
  content: none;
}

/* Inline SVG icons that replaced the emoji */
.icon svg {
  width: 1em;
  height: 1em;
  stroke: var(--pv2-teal-bright);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.12em;
}

/* The "Three Core Services — But We Handle It All" separators */
.services-specialties-heading .mobile-arrow,
.services-specialties-heading .desktop-arrow {
  color: var(--pv2-teal-bright);
}

/* --------------------------------------------------------------------------
   Panels — two consistent surfaces: dark glass & light glass
   -------------------------------------------------------------------------- */
.services-advice-banner,
.services-network,
.gallery-hero {
  background: linear-gradient(
    165deg,
    rgba(14, 37, 54, 0.92) 0%,
    rgba(8, 20, 32, 0.92) 100%
  );
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  border: 1px solid rgba(67, 214, 207, 0.25);
  border-radius: 2.2rem;
  box-shadow: 0 18px 44px rgba(4, 12, 20, 0.35);
}

.services-comprehensive,
.services-cta,
.gallery-cta {
  background: rgba(250, 248, 243, 0.93);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  border: 1px solid rgba(12, 34, 51, 0.08);
  border-radius: 2.2rem;
  box-shadow: 0 18px 44px rgba(4, 12, 20, 0.22);
  color: var(--pv2-navy);
}

.services-cta h2,
.gallery-cta h2,
.services-comprehensive .first-line {
  color: var(--pv2-navy);
}

/* Section heading bands */
.section-heading,
.services-specialties-heading {
  border-radius: 2.2rem;
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.service-card {
  border-radius: 2rem;
  border: 1px solid rgba(12, 34, 51, 0.06);
  border-top: 3px solid var(--pv2-teal);
  box-shadow: 0 14px 34px rgba(4, 12, 20, 0.18);
}

.service-card h3 {
  color: var(--pv2-navy);
}

/* Tick marks in the card lists */
.service-card li::before {
  color: var(--pv2-teal);
}

.comparison-card,
.portfolio-item {
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(4, 12, 20, 0.25);
}

.portfolio-caption h4 {
  color: var(--pv2-navy);
}

.reflection-card-front,
.reflection-card-back {
  border-radius: 2rem;
}

/* Front face: swap the old bright-blue gradient for the site's navy→teal,
   keeping the original light text (dark titles read wrong here). */
.reflection-card-front {
  background: linear-gradient(140deg, #14324a 0%, #11475f 60%, #1d7d84 130%);
  border: 1px solid rgba(67, 214, 207, 0.3);
}

.reflection-card-front h4 {
  color: var(--pv2-cream);
}

.reflection-card-front p {
  color: rgba(244, 239, 228, 0.85);
}

/* --------------------------------------------------------------------------
   Buttons — match the homepage pills
   -------------------------------------------------------------------------- */
.call-now-button,
.cta-button {
  background: var(--pv2-teal) !important;
  color: #052028 !important;
  font-family: "Quicksand", "Nunito", sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: none;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(47, 181, 176, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.call-now-button:hover,
.cta-button:hover,
.call-now-button:focus-visible,
.cta-button:focus-visible {
  background: var(--pv2-teal-bright) !important;
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(67, 214, 207, 0.45);
}

/* --------------------------------------------------------------------------
   Header — compact sticky strip (logo · title · contact) that follows
   the visitor down the page, matching the homepage's dark-glass style.
   -------------------------------------------------------------------------- */

/* overflow-y: auto on the containers would break position: sticky;
   they never actually scroll themselves, so visible is safe. */
.services-container,
.gallery-container {
  overflow-y: visible;
}

.services-header,
.gallery-header {
  position: sticky;
  top: 1rem;
  z-index: 300;
  display: flex;
  align-items: center;
  width: min(1240px, 100%);
  margin-inline: auto;
  min-height: 0;
  padding: 1.1rem 2rem;
  gap: 1.6rem;
  background: rgba(8, 20, 32, 0.85);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  border: 1px solid rgba(67, 214, 207, 0.22);
  border-radius: 1.8rem;
  box-shadow: 0 10px 30px rgba(4, 12, 20, 0.35);
}

/* DOM order is logo → contact → title; flex `order` puts the title
   in the middle. */
.services-header .services-logo,
.gallery-header .gallery-logo {
  order: 1;
  flex-shrink: 0;
  display: inline-flex;
}

.services-header .services-title,
.gallery-header .gallery-title {
  order: 2;
  flex: 1;
  margin-top: 0;
  text-align: center;
  min-width: 0;
}

.services-header .services-contact-btn,
.gallery-header .gallery-contact-btn {
  order: 3;
  flex-shrink: 0;
}

.services-header .services-logo img,
.gallery-header .gallery-logo img {
  height: 8.4rem;
  width: auto;
  border-radius: 0.8rem;
  display: block;
}

.services-header .services-title h2,
.gallery-header .gallery-title h2 {
  display: inline;
  margin: 0 0.5rem 0 0;
  font-size: 2.3rem;
  vertical-align: 0.3em;
  color: var(--pv2-teal-bright);
}

.services-header .services-title h1,
.gallery-header .gallery-title h1 {
  display: inline;
  font-size: 3.6rem;
}

/* Desktop: horizontal pill with icon + "Contact us", matching the
   homepage button's look */
.services-header .services-contact-btn,
.gallery-header .gallery-contact-btn {
  flex-direction: row;
  width: auto;
  height: auto;
  aspect-ratio: auto;
  border-radius: 999px;
  padding: 1.2rem 2.2rem;
  gap: 0.9rem;
}

.services-header .contact-btn2__icon,
.gallery-header .contact-btn2__icon {
  width: 2.4rem;
}

.services-header .contact-btn2__label,
.gallery-header .contact-btn2__label {
  font-size: 1.9rem;
  white-space: nowrap;
}

@media only screen and (max-width: 640px) {
  .services-header,
  .gallery-header {
    top: 0.8rem;
    padding: 0.7rem 1.2rem;
    gap: 1rem;
  }

  .services-header .services-logo img,
  .gallery-header .gallery-logo img {
    height: 5.8rem;
  }

  .services-header .services-title h1,
  .gallery-header .gallery-title h1 {
    font-size: 2.5rem;
  }

  .services-header .services-title h2,
  .gallery-header .gallery-title h2 {
    font-size: 1.7rem;
  }

  /* Phones: icon-only circle — the label doesn't fit the strip */
  .services-header .services-contact-btn,
  .gallery-header .gallery-contact-btn {
    padding: 0;
    width: 6.2rem;
    height: 6.2rem;
    border-radius: 50%;
  }

  .services-header .contact-btn2__icon,
  .gallery-header .contact-btn2__icon {
    width: 45%;
  }

  .services-header .contact-btn2__label,
  .gallery-header .contact-btn2__label {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Footer accents
   -------------------------------------------------------------------------- */
.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--pv2-teal-bright);
}

.footer-nav a.active {
  border-bottom-color: var(--pv2-teal-bright);
}
