/* ==========================================================================
   OASIS POOL SERVICES — Base Stylesheet
   Shared across ALL pages: properties, reset, utilities, buttons, nav, footer
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CUSTOM PROPERTIES
   -------------------------------------------------------------------------- */
:root {
  /* Brand Palette */
  --color-primary:     #0C2340;
  --color-secondary:   #00B4D8;
  --color-cta:         #FF6B2C;
  --color-cta-hover:   #E55A1B;
  --color-bg:          #FAFCFF;
  --color-dark-bg:     #0B1B2E;
  --color-surface:     #F0F4F8;
  --color-text:        #1A1A2E;
  --color-text-light:  #6B7280;
  --color-white:       #FFFFFF;

  /* Typography */
  --font-heading: 'Clash Display', sans-serif;
  --font-body:    'General Sans', sans-serif;

  /* Layout */
  --max-width: 1200px;
  --section-pad-y: clamp(2rem, 3.5vw, 3rem);
  --section-pad-x: clamp(1.25rem, 4vw, 2rem);

  /* Shadows */
  --shadow-card:  0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.14);

  /* Border Radius */
  --radius:        12px;
  --radius-lg:     20px;

  /* Shadows (extended) */
  --shadow-lg:     0 12px 48px rgba(12, 35, 64, 0.12);

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition:    0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

picture {
  display: block;
  width: 100%;
  height: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

/* --------------------------------------------------------------------------
   3. UTILITY
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--section-pad-x);
  padding-right: var(--section-pad-x);
}

.section-padding {
  padding-top: var(--section-pad-y);
  padding-bottom: var(--section-pad-y);
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 0.75rem;
}

.section-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.15;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.section-heading--light {
  color: var(--color-white);
}

.section-sub {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--color-text-light);
  max-width: 620px;
  margin-bottom: 1rem;
}

.section-sub--light {
  color: rgba(255, 255, 255, 0.7);
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 8px 16px;
  z-index: 10000;
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 0;
}

/* --------------------------------------------------------------------------
   4. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 2rem;
  border-radius: 60px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-cta);
  color: var(--color-white);
  box-shadow: 0 4px 20px rgba(255, 107, 44, 0.35);
}

.btn--primary:hover {
  background: var(--color-cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 107, 44, 0.45);
}

.btn--outline {
  border: 2px solid var(--color-white);
  color: var(--color-white);
}

.btn--outline:hover {
  background: var(--color-white);
  color: var(--color-primary);
  transform: translateY(-2px);
}

.btn--outline-dark {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.btn--outline-dark:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn--sm {
  padding: 0.6rem 1.6rem;
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   5. NAVIGATION
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.15rem 0;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

.nav.scrolled {
  background: rgba(12, 35, 64, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.7rem 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  background: transparent;
  line-height: 0;
}

.nav__logo img {
  height: 52px;
  width: auto;
  display: block;
  mix-blend-mode: screen;
}

/* Gallery page uses nav__brand / footer__brand */
.nav__brand {
  display: inline-flex;
  align-items: center;
  background: transparent;
  line-height: 0;
}

.nav__brand img {
  height: 52px;
  width: auto;
  display: block;
}

.footer__brand {
  display: inline-flex;
  background: transparent;
  line-height: 0;
}

.footer__brand img {
  height: 48px;
  width: auto;
  display: block;
}

.nav__links {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-size: 1.05rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  transition: color 0.3s ease;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-secondary);
  transition: width 0.3s ease;
}

.nav__link:hover {
  color: var(--color-white);
}

.nav__link:hover::after {
  width: 100%;
}

/* Nav active state */
.nav__link--active {
  color: var(--color-white);
}

.nav__link--active::after {
  width: 100%;
}

.nav__cta-group {
  display: none;
  align-items: center;
  gap: 0.6rem;
}

.nav__cta {
  padding: 0.6rem 1.4rem;
  font-size: 0.82rem;
}

/* Hamburger */
.nav__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}

.nav__hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.nav__mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 360px;
  height: 100vh;
  background: var(--color-primary);
  padding: 6rem 2rem 2rem;
  transition: right 0.4s var(--ease);
  z-index: 999;
}

.nav__mobile-menu.open {
  right: 0;
}

.nav__mobile-menu a {
  display: block;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--color-white);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: color 0.3s ease;
}

.nav__mobile-menu a:hover {
  color: var(--color-secondary);
}

.nav__mobile-menu .btn {
  margin-top: 1.5rem;
  width: 100%;
}

.nav__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 998;
}

.nav__overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Desktop nav */
@media (min-width: 1024px) {
  .nav__links {
    display: flex;
  }

  .nav__cta-group {
    display: flex;
  }

  .nav__hamburger {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   6. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background: #070F1A;
  padding: 4rem 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer__brand-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
  margin-top: 0.75rem;
  max-width: 320px;
}

.footer .nav__logo img {
  height: 48px;
  width: auto;
  mix-blend-mode: screen;
}

.footer__heading {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-white);
  margin-bottom: 1rem;
}

.footer__links a {
  display: block;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  padding: 0.35rem 0;
  transition: color 0.3s ease;
}

.footer__links a:hover {
  color: var(--color-secondary);
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.75rem;
}

.footer__contact-item svg {
  width: 18px;
  height: 18px;
  stroke: var(--color-secondary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer__socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.footer__social-link {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.footer__social-link:hover {
  background: var(--color-secondary);
  transform: translateY(-2px);
}

.footer__social-link svg {
  width: 18px;
  height: 18px;
  fill: rgba(255, 255, 255, 0.7);
}

.footer__social-link:hover svg {
  fill: var(--color-white);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* --------------------------------------------------------------------------
   REDUCED MOTION
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   QUICK WIN ANIMATIONS
   -------------------------------------------------------------------------- */

/* --- Text Reveal (words rise from below) --- */
.text-reveal {
  overflow: hidden;
  display: inline-block;
}

.text-reveal__word {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
}

.text-reveal__word.is-visible {
  transform: translateY(0);
  opacity: 1;
}

/* --- Image Reveal (overlay wipe) --- */
.img-reveal {
  position: relative;
  overflow: hidden;
}

.img-reveal::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-secondary);
  z-index: 2;
  transform-origin: right;
  transform: scaleX(1);
}

.img-reveal.is-revealed::after {
  transform: scaleX(0);
  transition: transform 0.9s cubic-bezier(0.77, 0, 0.175, 1);
}

.img-reveal img,
.img-reveal video {
  transform: scale(1.3);
  transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.15s;
}

.img-reveal.is-revealed img,
.img-reveal.is-revealed video {
  transform: scale(1);
}

/* --- Magnetic Button --- */
.btn--magnetic {
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              background 0.3s ease,
              box-shadow 0.3s ease;
}

/* --- Parallax Image Container --- */
.parallax-img {
  overflow: hidden;
}

.parallax-img img {
}

/* --- Stats Counter Bar --- */
.stats-bar {
  background: var(--color-primary);
  padding: 48px 0;
}

.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  text-align: center;
}

.stats-bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stats-bar__number {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1;
}

.stats-bar__label {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (min-width: 768px) {
  .stats-bar__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* --- Scroll Progress Bar --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--color-secondary);
  z-index: 1002;
  transform-origin: left;
  transform: scaleX(0);
}

/* --------------------------------------------------------------------------
   PAGE HERO (Shared by About, Contact, Gallery, Financing sub-pages)
   -------------------------------------------------------------------------- */
.page-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, #0a3060 50%, var(--color-dark-bg) 100%);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(0, 180, 216, 0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(255, 107, 44, 0.08) 0%, transparent 50%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 120px 24px 80px;
}

.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  color: var(--color-white);
  margin-bottom: 20px;
  letter-spacing: -1px;
  line-height: 1.1;
}

.page-hero h1 span {
  color: var(--color-secondary);
}

.page-hero p {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   STICKY MOBILE CTA
   -------------------------------------------------------------------------- */
.sticky-mobile-cta {
  display: none;
}

@media (max-width: 767px) {
  .sticky-mobile-cta {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 900;
    background: var(--color-primary);
    padding: 12px 16px;
    gap: 10px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  }

  .sticky-mobile-cta a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px;
    border-radius: 10px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    transition: all 0.3s ease;
  }

  .sticky-mobile-cta .sticky-call {
    background: var(--color-secondary);
    color: var(--color-white);
  }

  .sticky-mobile-cta .sticky-quote {
    background: var(--color-cta);
    color: var(--color-white);
  }

  .sticky-mobile-cta svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  /* Add padding to footer so it's not hidden behind sticky CTA */
  .footer {
    padding-bottom: 80px;
  }
}

/* --------------------------------------------------------------------------
   SERVICE AREAS (shared between home + contact)
   -------------------------------------------------------------------------- */
.service-areas__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto;
}

.service-areas__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 1rem;
  min-height: 56px;
  background: var(--color-white);
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease;
  text-align: center;
  white-space: nowrap;
}

.service-areas__item:hover {
  transform: translateY(-2px) !important;
}

.service-areas__item svg {
  width: 18px;
  height: 18px;
  stroke: var(--color-secondary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .service-areas__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .service-areas__grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* --------------------------------------------------------------------------
   FLOATING FINANCING BUTTON
   -------------------------------------------------------------------------- */
.floating-financing {
  position: fixed;
  bottom: 60px;
  left: 24px;
  z-index: 950;
  background: var(--color-cta);
  color: var(--color-white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 24px;
  border-radius: 60px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255, 107, 44, 0.35);
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.floating-financing:hover {
  background: var(--color-cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 107, 44, 0.45);
}

@media (max-width: 767px) {
  .floating-financing {
    bottom: 80px;
    left: 16px;
    font-size: 0.82rem;
    padding: 10px 20px;
  }
}

/* ==========================================================================
   MOBILE ENHANCEMENTS
   Scoped entirely within max-width queries -- zero impact on desktop.
   ========================================================================== */

/* ---- Active page indicator in mobile menu ---- */
.nav__mobile-menu a[aria-current="page"],
.nav__mobile-menu a.nav__mobile-link--active {
  color: var(--color-secondary);
  border-bottom-color: rgba(0, 180, 216, 0.3);
}

/* ---- Small-phone fixes (<= 480px) ---- */
@media (max-width: 480px) {

  /* Reduce hero padding -- 120px top wastes viewport on small screens */
  .page-hero-content {
    padding: 100px 20px 56px;
  }

  .hero__content {
    padding-top: 6rem;
    padding-bottom: 3rem;
  }

  .hero--services .hero__content {
    padding-top: 6rem;
    padding-bottom: 2.5rem;
  }

  /* Tighter section padding */
  .section-padding {
    padding-top: clamp(3rem, 8vw, 7rem);
    padding-bottom: clamp(3rem, 8vw, 7rem);
  }

  /* Bump small font sizes for readability */
  .section-label {
    font-size: 0.75rem;
  }

  .service-card__badge,
  .fin-package-card__badge {
    font-size: 0.7rem;
    padding: 5px 14px;
  }

  .fin-package-card__note {
    font-size: 0.82rem;
  }

  /* Reduce FAQ padding for more breathing room */
  .faq-question {
    padding: 16px 18px;
    font-size: 0.95rem;
  }

  .faq-answer-inner {
    padding: 0 18px 16px;
  }

  /* Contact cards -- stack tighter */
  .contact-card {
    padding: 18px;
    gap: 16px;
  }

  .contact-card-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
  }

  /* Finance CTA section padding */
  .fin-cta__inner {
    padding: 40px 24px;
  }

  /* Gallery filter bar -- scroll horizontally */
  .filter-bar {
    padding: 12px 16px;
    gap: 8px;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .filter-bar::-webkit-scrollbar {
    display: none;
  }

  /* Finance section spacing */
  .fin-packages {
    padding: 56px 0 64px;
  }

  .faq-section {
    padding: 56px 0;
  }

  /* Upgrade card header stacks on tiny screens */
  .fin-upgrade-card__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  /* iOS form zoom prevention */
  input, textarea, select {
    font-size: 16px !important;
  }

  /* Ensure form fields are 44px+ touch targets */
  input, textarea, select {
    min-height: 44px;
  }
}

/* ---- Touch target enforcement (<= 768px) ---- */
@media (max-width: 768px) {

  /* Minimum 44px touch targets */
  .filter-btn {
    min-height: 44px;
    padding: 12px 20px;
  }

  .area-tag {
    min-height: 44px;
    padding: 12px 20px;
    display: inline-flex;
    align-items: center;
  }

  .fin-toggle__btn {
    min-height: 44px;
    padding: 12px 28px;
  }

  /* Service area tags -- better wrapping */
  .service-area-grid {
    gap: 10px;
  }

  /* Included features list -- stack vertically */
  .fin-included__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .fin-included {
    padding: 32px 24px;
    text-align: left;
  }

  .fin-included h3 {
    text-align: center;
  }

  /* Map placeholder -- reduce height */
  .map-placeholder {
    min-height: 200px;
  }

  /* Service detail image -- ensure proper height on mobile */
  .service-detail__image {
    min-height: 260px;
  }

  /* Better spacing between service sections */
  .service-detail + .service-detail {
    margin-top: 2rem;
  }

  /* Footer bottom -- stack on mobile */
  .footer__bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   CTA / CONTACT SECTION (shared between home + services)
   -------------------------------------------------------------------------- */
.cta-section {
  background: var(--color-dark-bg);
}

.cta-section__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

.cta-section__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--color-secondary);
  margin-top: 1.5rem;
  transition: color 0.3s ease;
}

.cta-section__phone:hover {
  color: var(--color-white);
}

.cta-section__phone svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Contact Form (dark bg variant) */
.contact-form {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 2.5rem 2rem;
}

.contact-form__group {
  margin-bottom: 1.25rem;
}

.contact-form__label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.4rem;
}

.contact-form__input,
.contact-form__select,
.contact-form__textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  font-size: 0.95rem;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.contact-form__input::placeholder,
.contact-form__textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.contact-form__input:focus,
.contact-form__select:focus,
.contact-form__textarea:focus {
  border-color: var(--color-secondary);
  background: rgba(255, 255, 255, 0.1);
}

.contact-form__select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='rgba(255,255,255,0.5)' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.contact-form__select option {
  background: var(--color-primary);
  color: var(--color-white);
}

.contact-form__textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.contact-form__submit {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
}

.contact-form__error {
  font-size: 0.8rem;
  color: #FF6B6B;
  margin-top: 0.3rem;
  display: none;
}

.contact-form__success {
  text-align: center;
  padding: 2rem;
  color: var(--color-secondary);
  font-weight: 600;
  font-size: 1.1rem;
  display: none;
}

@media (min-width: 768px) {
  .contact-form__row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .cta-section__inner {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

/* =====================================================================
   Mobile video optimization — hide all decorative videos on small screens
   Videos that have a poster or are purely decorative are hidden; bandwidth
   saved, poster image shown instead. JS (bottom of each page) aborts loads.
   ===================================================================== */
@media (max-width: 767px) {
  .page-hero__video,
  .hero-video-bg,
  .service-detail__image video,
  .color-finishes__showcase-video {
    display: none !important;
  }
}
