/* ==========================================================================
   Pool Dial - Business Website Template Stylesheet
   Mobile-first responsive design with CSS custom properties for theming
   ========================================================================== */

/* CSS Custom Properties (defaults overridden per-site via inline :root styles) */
:root {
  --color-primary: #2196F3;
  --color-secondary: #37474F;
  --color-accent: #26C6DA;
  --color-white: #ffffff;
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;
  --color-danger: #dc2626;
  --color-success: #16a34a;
  --font-heading: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --container-max: 75rem;
  --header-height: 4.5rem;
  --section-padding-y: 3.5rem;
  --border-radius: 0.5rem;
  --border-radius-lg: 0.75rem;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --transition-base: 0.2s ease;
  --transition-slow: 0.3s ease;
}


/* ==========================================================================
   Reset & Base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-gray-800);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-base);
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.btn:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--color-primary);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-secondary);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.625rem; }
h3 { font-size: 1.25rem; }

ul, ol {
  list-style: none;
}


/* ==========================================================================
   Layout
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

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

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
  font-size: 1.625rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 3.75rem;
  height: 3px;
  background-color: var(--color-accent);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}


/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  border: 2px solid transparent;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background-color var(--transition-base), color var(--transition-base), border-color var(--transition-base), transform var(--transition-base);
  text-align: center;
  min-height: 2.75rem;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
  color: var(--color-white);
}

.btn-accent {
  background-color: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.btn-accent:hover {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  filter: brightness(0.85);
  color: var(--color-white);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn-outline:hover {
  background-color: var(--color-white);
  color: var(--color-secondary);
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1.0625rem;
  min-height: 3.25rem;
}


/* ==========================================================================
   Skip Link (accessibility)
   ========================================================================== */

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 10000;
  padding: 0.5rem 1rem;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 0.875rem;
}

.skip-link:focus {
  top: 0.5rem;
}


/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--color-white);
  transition: box-shadow var(--transition-slow);
  height: var(--header-height);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-height);
}

.header-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  max-height: 2.5rem;
  width: auto;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-secondary);
}

.header-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  background-color: var(--color-white);
  flex-direction: column;
  padding: 1rem 0;
  box-shadow: var(--shadow-lg);
  z-index: 999;
}

.header-nav.open {
  display: flex;
}

.nav-link {
  display: block;
  padding: 0.75rem 1.25rem;
  color: var(--color-gray-700);
  font-weight: 500;
  font-size: 1rem;
  transition: color var(--transition-base), background-color var(--transition-base);
}

.nav-link:hover {
  color: var(--color-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.header-phone {
  display: none;
}

.customer-login {
  display: none;
  font-size: 0.875rem;
  color: var(--color-gray-600);
  text-decoration: none;
  transition: color var(--transition-base);
}

.customer-login:hover {
  color: var(--color-primary);
}

.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-btn span {
  display: block;
  width: 1.375rem;
  height: 2px;
  background-color: var(--color-gray-700);
  border-radius: 1px;
  transition: transform var(--transition-slow), opacity var(--transition-slow);
}

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

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

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

/* Spacer to prevent content from hiding under fixed header */
main {
  padding-top: var(--header-height);
}


/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 3rem 0;
  background-color: var(--color-secondary);
  background-image: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
  color: var(--color-white);
  margin-top: calc(var(--header-height) * -1);
  padding-top: calc(var(--header-height) + 3rem);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13, 33, 55, 0.7) 0%,
    rgba(13, 33, 55, 0.5) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 3;
}

.hero-content h1 {
  color: var(--color-white);
  font-size: 2rem;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-sub {
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-estimate-form {
  max-width: 28rem;
  margin: 0 auto 1.5rem;
  position: relative;
}

.hero-form-fields {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero-form-input {
  width: 100%;
  padding: 0.875rem 1.25rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--border-radius);
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  backdrop-filter: blur(4px);
  transition: border-color var(--transition-base), background-color var(--transition-base);
  min-height: 3.25rem;
}

.hero-form-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.hero-form-input:focus {
  outline: none;
  border-color: var(--color-accent);
  background-color: rgba(255, 255, 255, 0.25);
}

.hero-form-btn {
  width: 100%;
  white-space: nowrap;
}

.hero-form-success {
  max-width: 28rem;
  margin: 0 auto 1.5rem;
  padding: 1.25rem 1.5rem;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--border-radius);
  text-align: center;
}

.hero-form-success p {
  color: var(--color-white);
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}


/* ==========================================================================
   Page Header (interior pages)
   ========================================================================== */

.page-header {
  position: relative;
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
  color: var(--color-white);
  padding: 3rem 0;
  text-align: center;
  margin-top: calc(var(--header-height) * -1);
  padding-top: calc(var(--header-height) + 2rem);
}

.page-header h1 {
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.page-description {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.125rem;
  max-width: 40rem;
  margin: 0 auto;
}


/* ==========================================================================
   Decorative Section Backgrounds
   ========================================================================== */

/* Floating orbs background mixin via pseudo-elements */
.services-section,
.about-section,
.faq-section,
.services-detail-section,
.about-detail-section,
.gallery-section,
.contact-section,
.team-section {
  position: relative;
  overflow: hidden;
}

.services-section::before,
.about-section::before,
.faq-section::before,
.services-detail-section::before,
.about-detail-section::before,
.gallery-section::before,
.contact-section::before,
.team-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 35% 40% at 5% 20%, rgba(var(--orb-r, 33), var(--orb-g, 150), var(--orb-b, 243), 0.08), transparent),
    radial-gradient(ellipse 30% 35% at 95% 80%, rgba(var(--orb-r, 33), var(--orb-g, 150), var(--orb-b, 243), 0.06), transparent),
    radial-gradient(ellipse 25% 30% at 80% 10%, rgba(38, 198, 218, 0.05), transparent),
    radial-gradient(ellipse 20% 25% at 20% 90%, rgba(38, 198, 218, 0.04), transparent);
  pointer-events: none;
  z-index: 0;
}

.services-section > .container,
.about-section > .container,
.faq-section > .container,
.services-detail-section > .container,
.about-detail-section > .container,
.gallery-section > .container,
.contact-section > .container,
.team-section > .container {
  position: relative;
  z-index: 1;
}

/* Testimonials section: accent bg with subtle glow */
.testimonials-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--color-white) 0%, var(--color-gray-50) 100%);
}

.testimonials-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 40% 50% at 50% 0%, rgba(var(--orb-r, 33), var(--orb-g, 150), var(--orb-b, 243), 0.06), transparent),
    radial-gradient(ellipse 30% 40% at 10% 70%, rgba(38, 198, 218, 0.05), transparent),
    radial-gradient(ellipse 30% 40% at 90% 60%, rgba(38, 198, 218, 0.04), transparent);
  pointer-events: none;
  z-index: 0;
}

.testimonials-section > .container {
  position: relative;
  z-index: 1;
}

/* Service area section with gradient background */
.service-area-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--color-gray-50) 0%, var(--color-white) 100%);
}

.service-area-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 35% 45% at 90% 20%, rgba(var(--orb-r, 33), var(--orb-g, 150), var(--orb-b, 243), 0.07), transparent),
    radial-gradient(ellipse 30% 35% at 10% 80%, rgba(38, 198, 218, 0.05), transparent);
  pointer-events: none;
  z-index: 0;
}

.service-area-section > .container {
  position: relative;
  z-index: 1;
}

/* CTA section wave top + gradient bg */
.cta-section {
  position: relative;
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
  overflow: hidden;
}

.cta-section > .container {
  position: relative;
  z-index: 2;
}


/* ==========================================================================
   Service Cards
   ========================================================================== */

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.service-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.9));
  border: 1px solid rgba(203, 213, 225, 0.5);
  border-top: 4px solid var(--color-primary);
  border-radius: var(--border-radius-lg);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.06),
    0 1px 3px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  overflow: hidden;
  transition: transform var(--transition-slow), box-shadow var(--transition-slow), border-color var(--transition-slow);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.1),
    0 4px 12px rgba(38, 198, 218, 0.06);
  border-color: rgba(203, 213, 225, 0.8);
}

.service-card-img {
  height: 12rem;
  background-size: cover;
  background-position: center;
}

.service-card-body {
  padding: 1.5rem;
}

.service-card-body h3 {
  margin-bottom: 0.5rem;
}

.service-card-body p {
  color: var(--color-gray-600);
  line-height: 1.6;
}


/* ==========================================================================
   Services Detail (services page)
   ========================================================================== */

.services-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.service-detail-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.9));
  border: 1px solid rgba(203, 213, 225, 0.5);
  border-top: 4px solid var(--color-primary);
  border-radius: var(--border-radius-lg);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.06),
    0 1px 3px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  overflow: hidden;
  transition: transform var(--transition-slow), box-shadow var(--transition-slow), border-color var(--transition-slow);
}

.service-detail-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.1),
    0 4px 12px rgba(38, 198, 218, 0.06);
  border-color: rgba(203, 213, 225, 0.8);
}

.service-detail-img img {
  width: 100%;
  height: 12rem;
  object-fit: cover;
}

.service-detail-body {
  padding: 1.5rem;
}

.service-detail-body h2 {
  font-size: 1.375rem;
  margin-bottom: 0.75rem;
}

.service-detail-body p {
  color: var(--color-gray-600);
  margin-bottom: 1rem;
}

.service-features {
  list-style: none;
  padding: 0;
}

.service-features li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-gray-700);
}

.service-features li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}


/* ==========================================================================
   About Section
   ========================================================================== */

.about-content p {
  color: var(--color-gray-600);
  max-width: 48rem;
  margin: 0 auto 2rem;
  text-align: center;
  font-size: 1.0625rem;
  line-height: 1.7;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  justify-content: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background-color: var(--color-gray-100);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-gray-700);
  transition: background-color var(--transition-base);
}

.badge:hover {
  background-color: var(--color-gray-200);
}

.trust-badges-large .badge {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.about-trust-copy {
  color: var(--color-gray-600);
  max-width: 48rem;
  margin: 0 auto 2rem;
  text-align: center;
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* About section with profile image */
.about-content-with-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.about-profile-image {
  flex-shrink: 0;
}

.about-profile-image img {
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}

.about-content-with-image .about-text p {
  text-align: center;
}

/* About detail page - mission section */
.about-mission-title {
  font-size: 1.375rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

/* ==========================================================================
   Team / Owner
   ========================================================================== */

.team-section {
  background-color: var(--color-gray-50);
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.team-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.9));
  border: 1px solid rgba(203, 213, 225, 0.5);
  border-radius: var(--border-radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.06),
    0 1px 3px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  width: 14rem;
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.1),
    0 4px 12px rgba(38, 198, 218, 0.06);
}

.team-avatar {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.team-name {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.team-role {
  color: var(--color-gray-500);
  font-size: 0.875rem;
  margin: 0;
}


/* ==========================================================================
   Service Area
   ========================================================================== */

/* service-area-section bg is set in Decorative Section Backgrounds above */

.cities-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.city-tag {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--color-primary);
  border: none;
  border-radius: 2rem;
  font-size: 1.0625rem;
  color: var(--color-white);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.city-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}


/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.testimonial-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.9));
  border: 1px solid rgba(203, 213, 225, 0.5);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.06),
    0 1px 3px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

.testimonial-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.08),
    0 4px 12px rgba(38, 198, 218, 0.06);
}

.stars {
  margin-bottom: 0.75rem;
}

.star {
  color: var(--color-accent);
  font-size: 1.125rem;
}

.testimonial-content {
  color: var(--color-gray-700);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.testimonial-author strong {
  display: block;
  color: var(--color-secondary);
}

.testimonial-location {
  font-size: 0.875rem;
  color: var(--color-gray-500);
}


/* ==========================================================================
   FAQ Accordion
   ========================================================================== */

.faq-section {
  background-color: var(--color-gray-50);
}

.faq-list {
  max-width: 48rem;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-gray-200);
}

.faq-item:first-child {
  border-top: 1px solid var(--color-gray-200);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.125rem 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-secondary);
  text-align: left;
  gap: 1rem;
  min-height: 2.75rem;
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-chevron {
  flex-shrink: 0;
  transition: transform var(--transition-slow);
}

.faq-question[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  overflow: hidden;
}

.faq-answer[hidden] {
  display: none;
}

.faq-answer p {
  padding-bottom: 1.125rem;
  color: var(--color-gray-600);
  line-height: 1.7;
}


/* ==========================================================================
   CTA Section
   ========================================================================== */

/* cta-section bg is set in Decorative Section Backgrounds above */
.cta-section {
  color: var(--color-white);
  text-align: center;
  padding-top: var(--section-padding-y);
}

.cta-content h2 {
  color: var(--color-white);
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.cta-content p {
  font-size: 1.0625rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}


/* ==========================================================================
   Gallery
   ========================================================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.gallery-item {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.9));
  border: 1px solid rgba(203, 213, 225, 0.5);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.06),
    0 1px 3px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.1),
    0 4px 12px rgba(38, 198, 218, 0.06);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-caption {
  padding: 0.75rem 1rem;
  background-color: var(--color-white);
  color: var(--color-gray-600);
  font-size: 0.875rem;
}


/* ==========================================================================
   Contact
   ========================================================================== */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.contact-form-wrap h2,
.contact-info h2 {
  font-size: 1.375rem;
  margin-bottom: 1.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-group label {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-gray-700);
}

.required {
  color: var(--color-danger);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-gray-300);
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-gray-800);
  background-color: var(--color-white);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  min-height: 2.75rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(1, 110, 195, 0.15);
  outline: none;
}

.form-group textarea {
  resize: vertical;
  min-height: 7.5rem;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-success {
  padding: 1.5rem;
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--border-radius);
  color: var(--color-success);
  text-align: center;
  font-weight: 500;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.contact-info-item svg {
  flex-shrink: 0;
  margin-top: 0.25rem;
  color: var(--color-primary);
}

.contact-info-item strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--color-secondary);
}

.contact-info-item a {
  color: var(--color-primary);
}

.contact-info-item p {
  color: var(--color-gray-600);
  margin: 0;
}


/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background-color: var(--color-secondary);
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 0 1.5rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.footer-brand strong {
  display: block;
  font-size: 1.125rem;
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.footer-brand p {
  margin-bottom: 0.25rem;
}

.footer-brand a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-brand a:hover {
  color: var(--color-white);
}

.footer-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9375rem;
  transition: color var(--transition-base);
}

.footer-nav a:hover {
  color: var(--color-white);
}

.footer-social {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-social a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9375rem;
  transition: color var(--transition-base);
}

.footer-social a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
}

.footer-bottom p {
  margin-bottom: 0.25rem;
}

.powered-by a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8125rem;
}

.powered-by a:hover {
  color: rgba(255, 255, 255, 0.8);
}


/* ==========================================================================
   Error Page (404)
   ========================================================================== */

.error-section {
  padding: 5rem 0;
}

.error-content {
  text-align: center;
}

.error-content h1 {
  font-size: 5rem;
  color: var(--color-gray-300);
  margin-bottom: 0.5rem;
}

.error-content h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.error-content p {
  color: var(--color-gray-500);
  margin-bottom: 2rem;
}


/* ==========================================================================
   Empty State
   ========================================================================== */

.empty-state {
  text-align: center;
  color: var(--color-gray-500);
  font-size: 1.0625rem;
  padding: 2rem 0;
}

.empty-state a {
  color: var(--color-primary);
  text-decoration: underline;
}


/* ==========================================================================
   Touch Targets (coarse pointer devices)
   ========================================================================== */

@media (pointer: coarse) {
  .nav-link,
  .footer-nav a,
  .footer-social a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .mobile-menu-btn {
    min-width: 44px;
    min-height: 44px;
  }

  .faq-question {
    min-height: 44px;
  }
}


/* ==========================================================================
   Contact Form Mobile Improvements
   ========================================================================== */

@media (max-width: 39.99rem) {
  .contact-form .form-group {
    margin-bottom: 1rem;
  }

  .contact-layout {
    gap: 2rem;
  }

  .contact-info-card {
    padding: 1.25rem;
  }
}


/* ==========================================================================
   Safe Area Insets (notched devices)
   ========================================================================== */

@supports (padding: env(safe-area-inset-bottom)) {
  .site-footer .footer-bottom {
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
  }

  .site-header {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
}


/* ==========================================================================
   Image Rendering & Text Overflow
   ========================================================================== */

img {
  image-rendering: -webkit-optimize-contrast;
}

.service-card-body h3,
.testimonial-card .customer-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-card-body p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* ==========================================================================
   Responsive: Tablet (min-width: 640px)
   ========================================================================== */

@media (min-width: 40rem) {
  :root {
    --section-padding-y: 4.5rem;
  }

  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.875rem; }

  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

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

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

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

  .cta-actions,
  .hero-actions {
    flex-direction: row;
    justify-content: center;
  }

  .contact-layout {
    grid-template-columns: 1.25fr 1fr;
  }

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

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

  /* About section with image - side by side on tablet+ */
  .about-content-with-image {
    flex-direction: row;
    align-items: flex-start;
    gap: 3rem;
    max-width: 56rem;
    margin: 0 auto;
  }

  .about-profile-image img {
    width: 12rem;
    height: 12rem;
  }

  .about-content-with-image .about-text {
    flex: 1;
  }

  .about-content-with-image .about-text p {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
  }

  .about-content-with-image .trust-badges {
    justify-content: flex-start;
  }
}


/* ==========================================================================
   Responsive: Desktop (min-width: 1024px)
   ========================================================================== */

@media (min-width: 64rem) {
  :root {
    --section-padding-y: 5rem;
  }

  h1 { font-size: 3rem; }
  h2 { font-size: 2rem; }

  .header-nav {
    display: flex;
    position: static;
    width: auto;
    flex-direction: row;
    padding: 0;
    box-shadow: none;
    gap: 0.25rem;
  }

  .nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.9375rem;
    border-radius: var(--border-radius);
  }

  .nav-link:hover {
    color: var(--color-primary);
  }

  .header-phone {
    display: inline-flex;
  }

  .customer-login {
    display: inline;
  }

  .mobile-menu-btn {
    display: none;
  }

  .hero {
    padding: 4rem 0;
    padding-top: calc(var(--header-height) + 4rem);
  }

  .hero-content h1 {
    font-size: 3rem;
  }

  .hero-sub {
    font-size: 1.25rem;
  }

  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .cta-content h2 {
    font-size: 2rem;
  }

  .footer-inner {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }

  .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }

  .footer-bottom p {
    margin-bottom: 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .services-detail-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-layout {
    gap: 4rem;
  }
}


/* ==========================================================================
   Responsive: Large Desktop (min-width: 1280px)
   ========================================================================== */

@media (min-width: 80rem) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}


/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
  .site-header,
  .site-footer,
  .mobile-menu-btn,
  .header-phone,
  .cta-section,
  .site-footer .powered-by,
  .contact-form {
    display: none !important;
  }

  main {
    padding-top: 0;
  }

  .hero {
    margin-top: 0;
    min-height: auto;
    padding: 2rem 0;
    background: none !important;
    color: #000 !important;
  }

  .hero-overlay {
    display: none;
  }

  .page-header {
    margin-top: 0;
    background: none;
    color: inherit;
    padding: 1rem 0;
  }



  .page-header h1 {
    color: inherit;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}
