/* ============================================================
   CSS VARIABLES & RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #028151;
  --primary-dark: #016641;
  --primary-rgb: 2, 129, 81;
  --white: #FFFFFF;
  --dark: #1A1A1A;
  --card-bg: #FFFFFF;
  --card-border: #E5E5E5;
  --surface: #F5F5F5;
  --surface-alt: #FFFFFF;
  --nav-bg: #FFFFFF;
  --nav-border: #E5E5E5;
  --footer-bg: #0A0A0A;
  --footer-border: #222222;
  --text-muted: #666666;
  --form-card-bg: #0D0D0D;
  --font-heading: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--dark);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1 { font-size: clamp(2rem, 5vw, 3.75rem);   font-weight: 800; line-height: 1.1;  letter-spacing: -0.02em; font-family: var(--font-heading); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; font-family: var(--font-heading); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem);  font-weight: 700; line-height: 1.25; font-family: var(--font-heading); }
p  { font-size: clamp(1rem, 1.5vw, 1.1rem);   line-height: 1.6; font-weight: 500; }

/* ============================================================
   UTILITIES & SHARED BUTTONS
   ============================================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

.eyebrow {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
  display: block;
}

.section-header { margin-bottom: 3rem; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  color: var(--white);
  padding: 0.85rem 1.75rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: clamp(1rem, 1.5vw, 1.05rem);
  border: 2px solid var(--primary);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

.btn-hero-call {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  color: #ffffff;
  padding: 0.85rem 1.75rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: clamp(1rem, 1.5vw, 1.05rem);
  border: 2px solid var(--primary);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  text-decoration: none;
}
.btn-hero-call:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

.hero-cta-hint {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  font-style: italic;
  white-space: nowrap;
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--white);
  padding: 0.85rem 1.75rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: clamp(1rem, 1.5vw, 1.05rem);
  border: 2px solid var(--white);
  transition: background 0.2s, color 0.2s;
}
.btn-outline-white:hover { background: var(--white); color: var(--primary); }

.section-cta { text-align: center; margin-top: 2rem; }

/* ============================================================
   NAVIGATION
   ============================================================ */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  box-shadow: 0 1px 12px rgba(0,0,0,0.07);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 120px;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-logo img {
  height: 100px;
  width: auto;
  display: block;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 0.95;
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-logo-coastal {
  color: #111111;
}

.nav-logo-lawn {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 1rem;
  font-weight: 600;
  color: #444;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav-links a:hover { color: var(--dark); }
.nav-links a.nav-link--active { color: var(--primary); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--primary);
  color: var(--white);
  padding: 0.6rem 1.4rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--primary-dark); }

.nav-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: #1877F2;
  color: white;
  transition: opacity 0.2s;
  flex-shrink: 0;
}
.nav-social:hover { opacity: 0.85; }

.nav-call-mobile { display: none; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: #FFFFFF;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  color: var(--dark);
  font-family: var(--font-heading);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.mobile-menu a:hover { color: var(--primary); }
.mobile-menu-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--dark);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background-image: url('../images/coastal-hero.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  scroll-margin-top: 120px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to right,
    rgba(0, 29, 19, 0.952) 0%,
    rgba(0, 0, 0, 0.30) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 3rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem;
  min-height: 100vh;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #00e08a;
  border: 1px solid rgba(0,224,138,0.45);
  background: rgba(0,224,138,0.12);
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

.hero h1 { color: var(--white); margin-bottom: 1.25rem; display: flex; flex-direction: column; gap: 0.25rem; }

.hero-line {
  display: flex;
  align-items: center;
  gap: 0.55em;
  white-space: nowrap;
}

.hero-sub {
  font-size: 1.15rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  max-width: 480px;
  margin-bottom: 2rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
}
.hero-badge svg { flex-shrink: 0; }

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ============================================================
   HERO ENTRANCE ANIMATIONS
   ============================================================ */
@keyframes hero-slide-left {
  from { opacity: 0; transform: translateX(-48px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes hero-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hero-eyebrow {
  animation: hero-slide-left 0.45s ease-out both;
  animation-delay: 0.05s;
}
.hero-line:nth-child(1) {
  animation: hero-slide-left 0.35s ease-out both;
  animation-delay: 0.18s;
}
.hero-line:nth-child(2) {
  animation: hero-slide-left 0.35s ease-out both;
  animation-delay: 0.32s;
}
.hero-line:nth-child(3) {
  animation: hero-slide-left 0.35s ease-out both;
  animation-delay: 0.46s;
}
.hero-sub {
  animation: hero-fade-up 0.45s ease-out both;
  animation-delay: 0.62s;
}
.hero-badges {
  animation: hero-fade-up 0.45s ease-out both;
  animation-delay: 0.72s;
}
.hero-buttons {
  animation: hero-fade-up 0.45s ease-out both;
  animation-delay: 0.82s;
}
.hero-form-col {
  animation: hero-fade-up 0.55s ease-out both;
  animation-delay: 0.3s;
}

@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow,
  .hero-line,
  .hero-sub,
  .hero-badges,
  .hero-buttons,
  .hero-form-col { animation: none; }
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  overflow: hidden;
  padding: 1.5rem 0;
  background: var(--primary);
}

.trust-track {
  display: flex;
  width: max-content;
  animation: trust-scroll 20s linear infinite;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 2.5rem;
  white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  flex-shrink: 0;
}

.trust-item-text strong {
  display: block;
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  font-weight: 800;
  line-height: 1.2;
}
.trust-item-text span { font-size: 1rem; opacity: 0.85; }

@keyframes trust-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .trust-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 1rem;
    padding: 0 1rem;
  }
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  background: var(--surface);
  padding: 6rem 2rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 1.75rem 1.5rem;
  cursor: pointer;
  transition: box-shadow 0.25s, border-color 0.25s, transform 0.25s;
  text-decoration: none;
  display: block;
}
.service-card:hover {
  box-shadow: 0 8px 32px rgba(var(--primary-rgb), 0.15);
  border-color: var(--primary);
  transform: translateY(-3px);
}

.service-icon {
  width: 48px;
  height: 48px;
  background: rgba(var(--primary-rgb), 0.10);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--primary);
}

.service-card h3 { color: var(--dark); margin-bottom: 0.5rem; }
.service-card p  { color: var(--text-muted); font-size: 1rem; }

.services-cta { margin-top: 3rem; text-align: center; }

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  position: relative;
  overflow: hidden;
  padding: 6rem 2rem;
  background-image: url('../images/coastal-why-choose-us.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.about.parallax-section { background-attachment: fixed; }

.about::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(var(--primary-rgb), 0.30) 100%
  );
}

.about-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about .eyebrow { color: rgba(255,255,255,0.75); }
.about h2 { color: var(--white); margin-bottom: 1.25rem; }
.about .about-desc { color: rgba(255,255,255,0.85); margin-bottom: 2rem; font-weight: 600; }

.about-features { display: flex; flex-direction: column; gap: 1.25rem; }

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.about-feature-icon {
  width: 44px;
  height: 44px;
  background: rgba(var(--primary-rgb), 0.25);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7de8bc;
  flex-shrink: 0;
}

.about-feature-text h3 { color: var(--white); margin-bottom: 0.3rem; }
.about-feature-text p  { color: rgba(255,255,255,0.75); font-size: 1rem; font-weight: 600; }

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

.about-stat {
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: 10px;
  padding: 1.75rem 1.5rem;
  text-align: center;
}

.about-stat strong {
  display: block;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  color: var(--white);
  font-family: var(--font-heading);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.about-stat span { color: rgba(255,255,255,0.75); font-size: 1rem; }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery {
  background: var(--surface-alt);
  padding: 6rem 2rem 3.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--surface);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.04); }

.gallery-marquee { display: none; }

.gallery-marquee-track {
  display: flex;
  width: max-content;
  animation: gallery-scroll 20s linear infinite;
}
.gallery-marquee-track > div { display: flex; }
.gallery-marquee-item {
  width: 75vw;
  height: 56vw;
  max-width: 320px;
  max-height: 240px;
  flex-shrink: 0;
  margin-right: 0.75rem;
  border-radius: 8px;
  overflow: hidden;
}
.gallery-marquee-item img { width: 100%; height: 100%; object-fit: cover; }

@keyframes gallery-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials {
  position: relative;
  overflow: hidden;
  padding: 6rem 2rem;
  background-image: url('../images/coastal-testimonials.webp');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.testimonials.parallax-section { background-attachment: fixed; }

.testimonials::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(1, 37, 23, 0.625) 0%,
    rgba(0, 0, 0, 0.68) 100%
  );
}

.testimonials-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonials-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}
.testimonials-header .eyebrow { color: rgba(255,255,255,0.75); }
.testimonials-header h2 { color: var(--white); }

.testimonials-cards {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.testimonial-card {
  flex: 1;
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 12px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.testimonial-card .quote-mark {
  font-size: 5rem;
  position: absolute;
  top: -0.5rem;
  left: 1rem;
  opacity: 0.3;
  color: var(--primary);
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 1rem;
}
.testimonial-stars svg { color: #F5A623; }

.testimonial-quote {
  color: rgba(255,255,255,0.9);
  font-style: italic;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.testimonial-name {
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  font-weight: 600;
}

.testimonials-cta { text-align: center; }

/* ============================================================
   SERVICE AREA MARQUEE
   ============================================================ */
.service-area {
  background: var(--primary);
  color: var(--white);
  overflow: hidden;
  padding: 1.25rem 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 20s linear infinite;
}

.marquee-item {
  font-size: 1rem;
  font-weight: 600;
  padding: 0 2.5rem;
  white-space: nowrap;
  flex-shrink: 0;
}

@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 1rem;
    gap: 0.5rem 1.5rem;
  }
}

/* ============================================================
   BOTTOM CONTACT FORM
   ============================================================ */
.bottom-contact {
  background: var(--surface);
  padding: 5rem 2rem;
}

#bottom-form { scroll-margin-top: 120px; }

.bottom-contact-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info .eyebrow { color: var(--primary); }
.contact-info h2 { color: var(--dark); margin-bottom: 1rem; }
.contact-info > p { color: var(--text-muted); margin-bottom: 2rem; }

.contact-rows { display: flex; flex-direction: column; gap: 1rem; }

.contact-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.contact-row-icon {
  width: 44px;
  height: 44px;
  background: rgba(var(--primary-rgb), 0.10);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.contact-row-text {
  font-size: 1rem;
  color: var(--dark);
  font-weight: 600;
}
.contact-row-text a {
  color: var(--primary);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.contact-row-text a:hover { color: var(--primary-dark); }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--footer-border);
  color: var(--white);
  padding: 4rem 2rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
}

.footer-brand-name {
  font-size: 1.3rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--white);
  margin-bottom: 0.5rem;
}
.footer-brand-name span { color: var(--primary); }
.footer-tagline { color: #888; font-size: 1rem; margin-bottom: 1rem; }

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-links a {
  color: #888;
  font-size: 1rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.footer-links a:hover { color: var(--primary); }

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-contact-list li {
  color: #888;
  font-size: 1rem;
}
.footer-contact-list a {
  color: #888;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.footer-contact-list a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid #222;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom p {
  color: #555;
  font-size: 1rem;
}
.footer-bottom a {
  color: var(--primary);
  font-weight: 600;
}

/* ============================================================
   MOBILE FLOATING CALL BUTTON
   ============================================================ */
@keyframes phone-jiggle {
  0%, 85%, 100% { transform: rotate(0deg); }
  87%  { transform: rotate(-14deg); }
  89%  { transform: rotate(14deg); }
  91%  { transform: rotate(-10deg); }
  93%  { transform: rotate(10deg); }
  95%  { transform: rotate(-5deg); }
  97%  { transform: rotate(5deg); }
  99%  { transform: rotate(0deg); }
}

@keyframes phone-pulse {
  0%, 80%    { transform: scale(1);   opacity: 0.6; }
  85%        { transform: scale(1.5); opacity: 0; }
  100%       { transform: scale(1);   opacity: 0; }
}

.mobile-call-btn {
  display: none;
  position: fixed;
  bottom: 6rem;
  right: 1.5rem;
  z-index: 998;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  animation: phone-jiggle 5s ease-in-out infinite;
}
.mobile-call-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--primary);
  animation: phone-pulse 5s ease-out infinite;
  z-index: -1;
}
.mobile-call-btn:hover { transform: scale(1.08); box-shadow: 0 8px 30px rgba(0,0,0,0.4); }

/* ============================================================
   ESTIMATE FORM
   ============================================================ */
.estimate-form {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
}

.estimate-form-title {
  color: var(--dark);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  margin-bottom: 0.3rem;
}

.estimate-form-subtitle {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1.4rem;
}

.form-group {
  margin-bottom: 0.9rem;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.3rem;
}

.form-group abbr { text-decoration: none; color: var(--primary); }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--card-border);
  border-radius: 6px;
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

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

.form-group textarea { resize: vertical; min-height: 75px; }
.form-group select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.85rem center; padding-right: 2.25rem; }

.form-group--checkbox { margin-bottom: 1rem; }

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--primary);
  cursor: pointer;
  appearance: auto;
  -webkit-appearance: auto;
}

.checkbox-label span {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
  font-weight: 400;
}

.checkbox-label span a {
  color: var(--primary);
  text-decoration: underline;
}

.form-submit-btn {
  width: 100%;
  justify-content: center;
  margin-bottom: 0.7rem;
}

.form-submit-btn .btn-loading { display: none; }
.form-submit-btn.is-loading .btn-text { display: none; }
.form-submit-btn.is-loading .btn-loading { display: inline; }
.form-submit-btn.is-loading { opacity: 0.75; cursor: not-allowed; pointer-events: none; }

.form-legal {
  text-align: center;
  font-size: 0.83rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-legal a {
  color: var(--primary);
  text-decoration: underline;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.form-legal a:hover { color: var(--primary-dark); }

.form-success {
  display: none;
  text-align: center;
  padding: 0.85rem 1rem;
  background: rgba(var(--primary-rgb), 0.08);
  border: 1px solid rgba(var(--primary-rgb), 0.25);
  border-radius: 8px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
}

.form-success.visible { display: block; }

.form-error {
  display: none;
  text-align: center;
  padding: 0.75rem 1rem;
  background: rgba(200,0,0,0.06);
  border: 1px solid rgba(200,0,0,0.2);
  border-radius: 8px;
  color: #c00;
  font-size: 0.88rem;
}

.form-error.visible { display: block; }

.field-invalid {
  border-color: #c00 !important;
  background: rgba(200, 0, 0, 0.04) !important;
  outline: none;
}
.field-error-msg {
  display: block;
  color: #c00;
  font-size: 0.8rem;
  margin-top: 0.3rem;
  font-weight: 500;
}

/* ============================================================
   ANIMATIONS & FADE-IN
   ============================================================ */
.fade-in {
  opacity: 0;
  will-change: opacity;
  transition: opacity 600ms ease-in;
}
.fade-in.visible {
  opacity: 1;
}

/* ============================================================
   RESPONSIVE -- 768px
   ============================================================ */
@media (max-width: 1024px) {
  /* Nav collapses to hamburger at 1024px */
  .nav-links, .nav-cta, .nav-social { display: none; }
  .hamburger { display: flex; }
  nav { height: 72px; padding: 0 1.25rem; }
  .nav-logo img { height: 56px; }
  .nav-call-mobile { display: none; }
  .nav-logo-text { font-size: 1rem; }
  .mobile-menu .btn-primary { color: var(--white); }

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

@media (max-width: 768px) {
  body { overflow-x: hidden; }

  /* Mobile hero background */
  .hero { background-image: url('../images/coastal-mobile-hero.jpg'); background-position: 70% 5%; }

  /* Hero */
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 4rem 1.25rem 3rem;
    min-height: auto;
  }
  /* Fix 3 — hero eyebrow centered on mobile */
  .hero-eyebrow {
    font-size: 0.85rem;
    padding: 0.3rem 0.75rem;
    display: block;
    width: fit-content;
    margin-left: 0;
    margin-right: auto;
  }
  .hero-line { white-space: normal; }
  /* Fix 5 — hero sub text larger on mobile */
  .hero-sub { font-size: 1.125rem; }
  .hero-cta-hint { text-align: center; white-space: normal; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons a, .hero-buttons button { width: 100%; justify-content: center; }

  /* Fix 4 — trust bar slower on mobile (~40% slower) */
  .trust-track { animation-duration: 34s; }

  /* Section padding */
  .services { padding: 3.5rem 1.25rem; }
  .about { padding: 3.5rem 1.25rem; background-image: url('../images/coastal-mobile-about.jpg'); }
  .about-feature-text p { display: none; }
  .about-feature { align-items: center; }
  .about-feature-text h3 { margin-bottom: 0; }
  .gallery { padding: 3.5rem 1.25rem 0; }
  .gallery-marquee { margin-bottom: 2rem; }
  .testimonials { padding: 3.5rem 1.25rem; }
  .bottom-contact { padding: 3.5rem 1.25rem; }

  /* Grids */
  .services-grid { grid-template-columns: 1fr 1fr; }
  .about-inner { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }

  /* Fix 7 — about gradient: remove green tint on mobile */
  .about::before {
    background: linear-gradient(
      to bottom,
      rgba(1, 37, 23, 0.72) 0%,
      rgba(0, 0, 0, 0.80) 100%
    );
  }

  /* Gallery swap */
  .gallery-grid { display: none; }
  /* Fix 8 — spacing between CTA button and carousel */
  .gallery .section-cta { margin-bottom: 1.75rem; }
  .gallery-marquee-track { animation-duration: 55s; }
  .gallery-marquee {
    display: block;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
  }

  /* Disable parallax on tablet/mobile — fixed attachment causes jank/gaps on iOS */
  .about.parallax-section,
  .testimonials.parallax-section {
    background-attachment: scroll;
    background-size: cover;
    background-repeat: no-repeat;
  }

  /* Testimonials */
  .testimonials-cards { flex-direction: column; }

  /* Bottom contact */
  .bottom-contact-inner { grid-template-columns: 1fr; gap: 2.5rem; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* Floating call button */
  .mobile-call-btn { display: flex; }

  /* Forms — 16px prevents iOS zoom */
  .form-group input,
  .form-group select,
  .form-group textarea { font-size: 16px; }

  /* 48px minimum tap targets */
  .btn-primary,
  .btn-hero-call,
  .btn-outline-white { min-height: 48px; padding: 0.75rem 1.5rem; }
  .form-submit-btn { min-height: 48px; }
}

/* ============================================================
   RESPONSIVE -- 530px (Fix 6: services single column)
   ============================================================ */
@media (max-width: 530px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   RESPONSIVE -- 480px
   ============================================================ */
@media (max-width: 480px) {
  nav { height: 64px; }
  .nav-logo img { height: 48px; }

  .hero h1 { font-size: clamp(1.45rem, 7vw, 2rem); }
  .hero-inner { padding: 3rem 1rem 2.5rem; }

  .services { padding: 2.5rem 1rem; }

  .about { padding: 2.5rem 1rem; }
  .about-stats { grid-template-columns: 1fr 1fr; }

  .gallery { padding: 2.5rem 1rem 0; }
  .testimonials { padding: 2.5rem 1rem; }
  .bottom-contact { padding: 2.5rem 1rem; }
}

/* ============================================================
   RESPONSIVE -- 364px
   ============================================================ */
@media (max-width: 364px) {
  .hero-eyebrow { font-size: 0.72rem; }
}
