/* ==========================================================================
   GLC Property Care - Modern Mobile-First Stylesheet (Flexbox / Grid)
   ========================================================================== */

:root {
  /* Brand Color Palette */
  --lf-deep-green: #0d462b;
  --lf-forest-dark: #072818;
  --lf-accent-lime: #c5d329;
  --lf-accent-lime-hover: #d6e838;
  --lf-cream-bg: #f9f5e8;
  --lf-off-white: #f8fafc;
  --lf-white: #ffffff;
  --lf-text-dark: #1e293b;
  --lf-text-muted: #475569;
  --lf-border-subtle: #e2e8f0;
  
  /* Modern Elevation Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Corner Radii */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  /* Header & Navigation Sizing */
  --header-height: 68px;
}

/* Base Document Styles & Smooth Scrolling */
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  background-color: var(--lf-white);
  color: var(--lf-text-dark);
  line-height: 1.65;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings Typography */
h1, h2, h3, h4, .platinum-title {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-weight: 700 !important;
  color: var(--lf-deep-green);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(1.85rem, 3.5vw + 1rem, 2.75rem); }
h2 { font-size: clamp(1.45rem, 2.5vw + 0.8rem, 2.15rem); }
h3 { font-size: clamp(1.2rem, 1.5vw + 0.6rem, 1.5rem); }

/* ==========================================================================
   Sticky Header Navigation & Contrasting Tap-to-Call CTA
   ========================================================================== */

.site-header, .w3-top.site-header {
  position: sticky !important;
  top: 0 !important;
  left: 0;
  right: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.97) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 12px rgba(13, 70, 43, 0.08) !important;
  border-bottom: 1px solid var(--lf-border-subtle);
  z-index: 1000 !important;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px;
  min-height: var(--header-height);
  gap: 12px;
}

.brand-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--lf-deep-green) !important;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: -0.5px;
  transition: opacity 0.2s ease;
}

.brand-logo:hover {
  opacity: 0.9;
}

/* Desktop Navigation */
.desktop-nav {
  display: none;
  align-items: center;
  gap: 6px;
}

@media (min-width: 880px) {
  .desktop-nav {
    display: flex;
  }
}

.nav-link {
  color: var(--lf-text-dark);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link:focus {
  color: var(--lf-deep-green);
  background-color: var(--lf-cream-bg);
}

/* Header Action Group */
.header-cta-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* HIGHLY VISIBLE, CONTRASTING TAP-TO-CALL CTA BUTTON */
.nav-tap-to-call {
  background-color: var(--lf-accent-lime) !important;
  color: var(--lf-deep-green) !important;
  font-weight: 700 !important;
  font-size: 0.92rem !important;
  padding: 8px 16px !important;
  border-radius: var(--radius-pill) !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  border: 2px solid #b6c323 !important;
  box-shadow: 0 2px 8px rgba(197, 211, 41, 0.45) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  white-space: nowrap !important;
  min-height: 42px;
}

.nav-tap-to-call:hover, .nav-tap-to-call:focus {
  background-color: var(--lf-accent-lime-hover) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(197, 211, 41, 0.6) !important;
  color: #062817 !important;
}

.call-text-mobile {
  display: none;
}

@media (max-width: 600px) {
  .call-text-full {
    display: none;
  }
  .call-text-mobile {
    display: inline;
  }
  .nav-tap-to-call {
    font-size: 0.85rem !important;
    padding: 7px 12px !important;
  }
}

/* Mobile Hamburger Button */
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--lf-deep-green);
  color: var(--lf-white);
  border: none;
  font-size: 1.35rem;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.mobile-menu-toggle:hover {
  background-color: var(--lf-forest-dark);
}

@media (min-width: 880px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* ==========================================================================
   Mobile Sidebar Navigation (Off-Canvas)
   ========================================================================== */

.mobile-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 300px;
  max-width: 85vw;
  background: #111827;
  color: var(--lf-white);
  z-index: 10000;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.35);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-brand {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--lf-white);
}

.sidebar-close-btn {
  background: transparent;
  border: none;
  color: var(--lf-white);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.sidebar-link {
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.sidebar-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--lf-accent-lime);
  padding-left: 18px;
}

.sidebar-bottom {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-call-btn {
  display: block;
  background-color: var(--lf-accent-lime);
  color: var(--lf-deep-green);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  padding: 12px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 10px rgba(197, 211, 41, 0.4);
}

/* ==========================================================================
   Modern CSS Grid & Flexbox Layouts
   ========================================================================== */

/* Responsive Grid for Services (Mobile-First) */
.services-grid, .modern-services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 28px;
}

@media (min-width: 640px) {
  .services-grid, .modern-services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (min-width: 1024px) {
  .services-grid, .modern-services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
}

/* Service Card Components */
.service-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  border: 1px solid var(--lf-border-subtle);
  background-color: var(--lf-cream-bg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-card h3 {
  margin-top: 0;
  font-size: 1.35rem;
}

/* Card with Image Background */
.card-with-bg {
  position: relative;
  overflow: hidden;
  color: var(--lf-white) !important;
  border-radius: var(--radius-lg);
  background-position: center;
  background-size: cover;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  text-align: left !important;
}

.card-with-bg::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(13, 70, 43, 0.35) 0%, rgba(7, 40, 24, 0.9) 100%);
  z-index: 1;
  transition: background 0.3s ease;
}

.card-with-bg:hover::before {
  background: linear-gradient(180deg, rgba(13, 70, 43, 0.2) 0%, rgba(7, 40, 24, 0.95) 100%);
}

.card-with-bg h3, .card-with-bg p {
  color: var(--lf-white) !important;
  position: relative;
  z-index: 2;
  margin-bottom: 8px;
}

.card-with-bg h3 {
  font-size: 1.3rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.card-with-bg p {
  font-size: 0.95rem;
  line-height: 1.5;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}

.card-with-bg .service-link {
  position: relative;
  z-index: 2;
  margin-top: 12px;
  align-self: flex-start;
}

/* Buttons - Pill Shape & Touch Targets */
.w3-button, .w3-btn, .button-primary, .service-link {
  border-radius: var(--radius-pill) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 600;
  padding: 10px 24px !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 44px;
}

.button-primary, .w3-green, .w3-hover-green:hover {
  background-color: var(--lf-deep-green) !important;
  color: var(--lf-white) !important;
}

.button-primary:hover, .w3-green:hover {
  background-color: var(--lf-forest-dark) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.w3-light-green, .w3-hover-light-green:hover {
  background-color: var(--lf-accent-lime) !important;
  color: var(--lf-deep-green) !important;
}

.service-link {
  background-color: var(--lf-white);
  color: var(--lf-deep-green);
  font-size: 0.9rem;
  padding: 8px 18px !important;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}

.service-link:hover {
  background-color: var(--lf-accent-lime);
  color: var(--lf-deep-green);
  transform: translateY(-2px);
}

/* Modern Pricing Grid */
.modern-pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 32px;
}

@media (min-width: 768px) {
  .modern-pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
}

/* Modern Showcase & Gallery Grid */
.showcase-grid, .modern-showcase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 28px;
}

@media (min-width: 600px) {
  .showcase-grid, .modern-showcase-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (min-width: 960px) {
  .showcase-grid, .modern-showcase-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

/* Core Web Vitals Image Optimization */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

img[loading="lazy"] {
  content-visibility: auto;
}

.service-feature-img {
  width: 100%;
  max-width: 800px;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin: 20px auto 28px auto;
  display: block;
  border: 1px solid var(--lf-border-subtle);
}

.showcase-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.showcase-img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

/* Lead Capture Form Modernization */
.hero-form-container {
  background: rgba(255, 255, 255, 0.96);
  border: 2px solid var(--lf-accent-lime);
  border-radius: var(--radius-lg);
  padding: 24px;
  color: var(--lf-text-dark);
  box-shadow: var(--shadow-xl);
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 12px;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  font-size: 1rem;
  min-height: 46px;
  background-color: var(--lf-white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--lf-deep-green);
  box-shadow: 0 0 0 3px rgba(13, 70, 43, 0.15);
}

/* Testimonial Track (Smooth Animation) */
.testimonial-slider-container {
  width: 100%;
  overflow: hidden;
  padding: 24px 0;
}

.testimonial-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: slideTrack 28s linear infinite;
}

.testimonial-track:hover {
  animation-play-state: paused;
}

.testimonial-card-slide {
  background: var(--lf-cream-bg);
  border-left: 4px solid var(--lf-accent-lime);
  border-radius: var(--radius-md);
  padding: 20px;
  width: 320px;
  flex: 0 0 auto;
  box-shadow: var(--shadow-sm);
}

@keyframes slideTrack {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-320px * 4 - 20px * 4)); }
}

.verified-badge {
  color: #15803d;
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Section Spacing & Breadcrumbs */
section {
  content-visibility: auto;
  contain-intrinsic-size: 1px 400px;
}

.breadcrumb-nav a {
  color: var(--lf-deep-green);
  font-weight: 600;
  text-decoration: none;
}

.breadcrumb-nav a:hover {
  text-decoration: underline;
}

/* Mobile Friendly Footer */
.site-footer {
  background-color: var(--lf-deep-green);
  color: var(--lf-white);
  padding: 48px 16px 36px 16px;
  margin-top: 48px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--lf-accent-lime);
}
