/* ==========================================================================
   CSS Variables & Base Reset
   ========================================================================== */

:root {
  --bg-light: #e0e0e0;
  --color-primary: #ea873b;
  --color-secondary: #1d3557;
  --color-dark: #222;
  --color-white: #fff;
  --color-border: #ddd;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--color-dark);
  line-height: 1.5;
  padding-bottom: 60px;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 18px;
}

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

.hero {
  background: var(--bg-light);
  color: var(--color-dark);
  padding: 65px 0 50px;
  text-align: center;
}

.logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.logo-img {
  width: 180px;
  height: 180px;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

/* ==========================================================================
   Animations
   ========================================================================== */

/* Animate the checkmark on each logo as it appears */
.logo-checkmark {
  clip-path: inset(0 100% 0 0);
}

.logo-checkmark.is-visible {
  animation: draw-checkmark 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.logo-wrap,
.sticky-brand a {
  transition: transform 180ms ease, filter 180ms ease;
}

.logo-wrap:hover,
.logo-wrap:focus-within,
.sticky-brand a:hover,
.sticky-brand a:focus-visible {
  transform: translateY(-1px) scale(1.02);
}

.logo-img,
.logo-bottom {
  transition: transform 180ms ease, filter 180ms ease;
}

.logo-wrap:hover .logo-img,
.sticky-brand a:hover .logo-bottom {
  transform: scale(1.03);
  filter: drop-shadow(0 2px 4px rgba(29, 53, 87, 0.14));
}

@keyframes draw-checkmark {
  0% {
    clip-path: inset(0 100% 0 0);
  }
  100% {
    clip-path: inset(0 0 0 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-wrap,
  .sticky-brand a,
  .logo-img,
  .logo-bottom {
    transition: none;
  }
}

/* ==========================================================================
   Typography & Buttons
   ========================================================================== */

.subtitle {
  font-size: 19px;
  margin-top: 8px;
  opacity: 0.9;
}

.tagline {
  margin-top: 10px;
  opacity: 0.8;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.cta-row {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 18px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.desktop-email {
  display: inline-flex;
}

.mobile-sms {
  display: none;
}

/* ==========================================================================
   Layout Sections & Cards
   ========================================================================== */

.section {
  padding: 10px 0;
  background: var(--color-white);
}

.section.alt {
  background: var(--bg-light);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.card {
  background: var(--color-white);
  padding: 14px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

.project-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  display: block;
  border-radius: 6px;
}

.price-box {
  margin-top: 18px;
  padding: 14px;
  border-left: 4px solid var(--color-secondary);
  background: var(--color-white);
}

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

.service-area-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.service-chip {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  padding: 7px 11px;
  border-radius: 20px;
  font-size: 14px;
}

/* ==========================================================================
   Contact & Footer
   ========================================================================== */

.contact a {
  color: var(--color-secondary);
  text-decoration: none;
}

footer {
  text-align: center;
  padding: 6px 0 6px;
}

/* ==========================================================================
   Sticky Navigation Bar
   ========================================================================== */

.sticky-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: stretch;
  background: var(--color-white);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  z-index: 1000;
}

.sticky-nav.hidden {
  display: none;
}

.sticky-brand {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  background: var(--bg-light);
  padding-left: 12px;
}

.logo-bottom {
  height: 44px;
  width: auto;
}

.sticky-btn {
  flex: 1;
  text-align: center;
  color: var(--color-white);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sticky-btn.call {
  background: var(--color-primary);
}

.sticky-btn.text {
  background: var(--color-secondary);
}

.sticky-nav .desktop-email {
  display: flex;
}

.sticky-nav .mobile-sms {
  display: none;
}

/* ==========================================================================
   Responsive / Mobile Styles
   ========================================================================== */

@media (max-width: 768px) {
  .hero {
    padding: 55px 0 45px;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .cta-row {
    flex-direction: column;
  }

  .desktop-email {
    display: none;
  }

  .mobile-sms {
    display: inline-flex;
  }

  .sticky-nav .desktop-email {
    display: none;
  }

  .sticky-nav .mobile-sms {
    display: flex;
  }

  .container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .cta-row .btn {
    max-width: 100%;
    padding: 10px 12px;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .service-area-grid {
    justify-content: center;
  }
}
