/* ========================================
   CLEARSTONE PRESSURE WASHING — styles.css
   Design: Clean / Industrial / Professional
   Fonts: Barlow Condensed (headings) + Barlow (body)
======================================== */

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

:root {
  --navy:    #0e1824;
  --navy-mid:#162032;
  --dark:    #1a2535;
  --slate:   #2d3f55;
  --mid:     #5a7290;
  --light:   #e8edf3;
  --white:   #ffffff;
  --accent:  #1fa2e0;
  --accent-d:#1787bc;
  --accent-l:#4dbef0;
  --warn:    #f0822a;

  --font-head: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;

  --radius:  10px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.08);
  --shadow:    0 6px 28px rgba(0,0,0,0.12);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.18);

  --section-pad: 96px;
}

html { scroll-behavior: smooth; font-size: 16px; }

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

img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; transition: color .2s; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- TYPOGRAPHY ---------- */
.section-label {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-label.light { color: var(--accent-l); }

.section-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  color: var(--navy);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.section-title.light { color: var(--white); }

.section-sub {
  font-size: 1.05rem;
  color: var(--mid);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 52px;
}
.section-sub.light { color: rgba(255,255,255,0.7); }

.section { padding: var(--section-pad) 0; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 30px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .22s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-d);
  border-color: var(--accent-d);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(31,162,224,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}
.btn-full { width: 100%; justify-content: center; font-size: 1.05rem; padding: 16px; }

/* ========================================
   HEADER
======================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0;
  transition: background .3s, box-shadow .3s, padding .3s;
}
.site-header.scrolled {
  background: var(--navy);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-text {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  color: var(--white);
  line-height: 1.1;
  display: flex;
  flex-direction: column;
}
.logo-sub {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent-l);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  padding: 8px 12px;
  border-radius: 6px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.nav-links .nav-cta {
  background: var(--accent);
  color: var(--white);
  padding: 9px 20px;
  margin-left: 6px;
}
.nav-links .nav-cta:hover { background: var(--accent-d); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ========================================
   HERO
======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.04);
  animation: heroZoom 14s ease-out forwards;
}
@keyframes heroZoom {
  to { transform: scale(1); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(10,18,30,0.88) 0%,
    rgba(14,24,36,0.72) 55%,
    rgba(14,24,36,0.45) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 100px;
  max-width: 700px;
  animation: heroFadeUp .9s ease both;
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-badge {
  display: inline-block;
  background: rgba(31,162,224,0.18);
  border: 1px solid rgba(31,162,224,0.5);
  color: var(--accent-l);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 4px;
  margin-bottom: 20px;
}
.hero-headline {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(3rem, 7vw, 5.5rem);
  color: var(--white);
  line-height: 1.0;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.accent-text { color: var(--accent); }
.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 520px;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}
.hero-trust {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 18px 24px;
  width: fit-content;
  backdrop-filter: blur(6px);
}
.trust-item {
  display: flex;
  flex-direction: column;
  padding: 0 24px;
}
.trust-item:first-child { padding-left: 0; }
.trust-item:last-child { padding-right: 0; }
.trust-item strong {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--white);
  line-height: 1;
}
.trust-item span {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.04em;
  margin-top: 2px;
}
.trust-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.18);
}
.scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.45);
  animation: bounce 2.2s infinite;
  z-index: 2;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ========================================
   SERVICES
======================================== */
.services { background: var(--white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card--wide {
  grid-column: span 2;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid #e5eaf0;
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.service-img-wrap {
  position: relative;
  overflow: hidden;
  height: 200px;
}
.service-card--wide .service-img-wrap {
  height: 220px;
}
.service-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.service-card:hover .service-img-wrap img {
  transform: scale(1.06);
}
.service-card-body {
  padding: 24px;
  flex: 1;
}
.service-icon {
  width: 40px;
  height: 40px;
  background: rgba(31,162,224,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 14px;
}
.service-card h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  color: var(--navy);
  margin-bottom: 8px;
}
.service-card p {
  font-size: 0.92rem;
  color: var(--mid);
  line-height: 1.65;
}

/* ========================================
   WHY US
======================================== */
.why-us {
  position: relative;
  overflow: hidden;
}
.why-bg-img {
  position: absolute;
  inset: 0;
}
.why-bg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.why-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(10,18,30,0.95) 0%,
    rgba(10,18,30,0.88) 55%,
    rgba(10,18,30,0.6) 100%
  );
}
.why-inner {
  position: relative;
  z-index: 2;
}
.why-content {
  max-width: 640px;
}
.why-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.why-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.why-check {
  width: 28px;
  height: 28px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  color: white;
}
.why-item strong {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  display: block;
  margin-bottom: 4px;
}
.why-item p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
}

/* ========================================
   RESULTS
======================================== */
.results { background: #f4f7fb; }

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 44px;
}
.result-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid #e0e7ef;
  transition: transform .25s, box-shadow .25s;
}
.result-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.result-imgs {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
}
.result-img-wrap {
  position: relative;
  flex: 1;
  height: 200px;
  overflow: hidden;
}
.result-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Darken the before image to visually sell the contrast */
.result-img-before img {
  filter: saturate(0.45) brightness(0.8);
}
.result-label {
  position: absolute;
  bottom: 8px;
  left: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
  color: var(--white);
}
.result-label.before { background: rgba(0,0,0,0.55); }
.result-label.after  { background: var(--accent); }
.result-arrow {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  background: var(--navy);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.result-desc {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
}
.result-desc strong {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
}
.result-desc span {
  font-size: 0.84rem;
  color: var(--mid);
  margin-top: 2px;
}
.results-cta { text-align: center; }

/* ========================================
   TESTIMONIALS
======================================== */
.testimonials { background: var(--white); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid #e0e7ef;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform .25s, box-shadow .25s;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.stars {
  color: #f5a623;
  font-size: 1.1rem;
  letter-spacing: 2px;
}
.testimonial-card blockquote {
  font-size: 0.97rem;
  color: var(--slate);
  line-height: 1.7;
  font-style: italic;
  flex: 1;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 8px;
  border-top: 1px solid #edf1f6;
}
.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--navy));
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.testimonial-author strong {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  display: block;
}
.testimonial-author span {
  font-size: 0.8rem;
  color: var(--mid);
}

/* ========================================
   SERVICE AREA
======================================== */
.service-area { background: #f4f7fb; }

.service-area-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.service-area-text p {
  color: var(--mid);
  line-height: 1.7;
  margin-bottom: 16px;
  font-size: 0.97rem;
}
.service-area-text .section-title { margin-bottom: 20px; }
.area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.area-tag {
  background: var(--white);
  border: 1px solid #d0dae6;
  color: var(--slate);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  padding: 6px 14px;
  border-radius: 6px;
}
.service-area-visual {
  position: relative;
}
.service-area-visual img {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}
.service-area-badge {
  position: absolute;
  bottom: -16px;
  right: -16px;
  background: var(--navy);
  color: var(--accent-l);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow);
}
.service-area-badge svg { color: var(--accent); }

/* ========================================
   CONTACT
======================================== */
.contact { background: var(--white); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 72px;
  align-items: start;
}
.contact-info .section-title { margin-bottom: 16px; }
.contact-info > p {
  color: var(--mid);
  line-height: 1.7;
  margin-bottom: 32px;
  font-size: 0.97rem;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.97rem;
  color: var(--slate);
  font-weight: 500;
  transition: color .2s;
}
a.contact-detail-item:hover { color: var(--accent); }
.contact-detail-item svg { color: var(--accent); flex-shrink: 0; }

/* FORM */
.quote-form {
  background: var(--white);
  border: 1px solid #e0e7ef;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
  position: relative;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.form-group label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
}
.req { color: var(--accent); }
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.97rem;
  color: var(--dark);
  background: #f6f9fc;
  border: 1.5px solid #d8e2ec;
  border-radius: 8px;
  padding: 12px 16px;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  width: 100%;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #a0b0c0; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31,162,224,0.12);
  background: var(--white);
}
.form-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--mid);
  margin-top: 12px;
}
.form-success {
  display: none;
  position: absolute;
  inset: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 40px;
  animation: fadeIn .4s ease;
}
.form-success.visible { display: flex; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.form-success strong { font-family: var(--font-head); font-size: 1.5rem; color: var(--navy); }
.form-success p { color: var(--mid); }

/* ========================================
   FOOTER
======================================== */
.footer {
  background: var(--navy);
  padding-top: 64px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.65;
  margin-top: 16px;
  max-width: 280px;
}
.footer-brand .logo { margin-bottom: 4px; }

.footer-links h4,
.footer-contact h4 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-l);
  margin-bottom: 18px;
}
.footer-links,
.footer-contact {
  display: flex;
  flex-direction: column;
}
.footer-links a,
.footer-contact a,
.footer-contact p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  line-height: 1;
  margin-bottom: 12px;
  transition: color .2s;
}
.footer-links a:hover,
.footer-contact a:hover { color: var(--white); }

.footer-bottom {
  padding: 20px 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom span {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

/* ========================================
   REVEAL ANIMATIONS
======================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 1024px) {
  :root { --section-pad: 72px; }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-card--wide {
    grid-column: span 2;
  }
  .results-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto 44px; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .service-area-inner { grid-template-columns: 1fr; gap: 40px; }
  .service-area-badge { bottom: 12px; right: 12px; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 768px) {
  :root { --section-pad: 56px; }

  .nav-links {
    display: none;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 20px 24px 28px;
    gap: 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 12px 16px; border-radius: 8px; }
  .nav-links .nav-cta { margin-left: 0; margin-top: 8px; text-align: center; justify-content: center; }

  .hamburger { display: flex; }

  .hero-headline { font-size: clamp(2.5rem, 9vw, 3.8rem); }
  .hero-ctas { flex-direction: column; }
  .hero-trust { flex-wrap: wrap; }

  .services-grid { grid-template-columns: 1fr; }
  .service-card--wide { grid-column: span 1; }

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

  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }

  .form-row { grid-template-columns: 1fr; }
  .quote-form { padding: 28px 22px; }

  .footer-bottom .container { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-trust { padding: 14px 16px; }
  .trust-item { padding: 0 12px; }
  .section-title { font-size: clamp(1.7rem, 7vw, 2.2rem); }
}
