/* CLNXteriorPros — site styles
   Placeholder brand wordmark until real logo file is supplied.
   Placeholder pricing rates — see README.md before launch. */

:root {
  --navy: #0b2b3c;
  --ink: #12202b;
  --blue: #0a6e91;
  --blue-dark: #084f68;
  --aqua: #1fb6cf;
  --aqua-light: #e6f7fa;
  --bg: #f6faf9;
  --white: #ffffff;
  --border: #dbe7e9;
  --success: #1f9d55;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 43, 60, 0.08);
  --shadow-sm: 0 4px 14px rgba(11, 43, 60, 0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

h1, h2, h3, h4 {
  font-family: 'Sora', 'Inter', sans-serif;
  color: var(--navy);
  margin: 0 0 0.5em;
  line-height: 1.2;
}

p { margin: 0 0 1em; }
a { color: inherit; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 0.6em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  font-family: inherit;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--aqua), var(--blue));
  color: var(--white);
  box-shadow: 0 8px 20px rgba(10, 110, 145, 0.35);
}
.btn-primary:hover { box-shadow: 0 10px 26px rgba(10, 110, 145, 0.45); }

.btn-outline {
  background: var(--white);
  color: var(--blue-dark);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--blue); }

.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

/* Top utility bar */
.topbar {
  background: var(--navy);
  color: #cfe9ef;
  font-size: 0.85rem;
  padding: 8px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { color: #9fe0ec; text-decoration: none; font-weight: 600; }

/* Header */
header.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--aqua), var(--blue-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.brand-text .brand-name {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.brand-text .brand-sub {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 700;
}

nav.main-nav {
  display: flex;
  align-items: center;
}
nav.main-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
nav.main-nav a {
  text-decoration: none;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.96rem;
}
nav.main-nav a:hover { color: var(--blue); }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--navy);
}

@media (max-width: 860px) {
  nav.main-nav .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 24px 22px;
  }
  nav.main-nav .nav-links.open { display: flex; }
  nav.main-nav .nav-links a { padding: 10px 0; width: 100%; }
  nav.main-nav .nav-links a.btn { width: auto; margin-top: 8px; }
  .nav-toggle { display: inline-flex; }
  header.site-header { position: sticky; }
  .site-header .container { position: relative; }
}

/* Hero */
.hero {
  background: radial-gradient(circle at top right, var(--aqua-light), var(--bg) 60%);
  padding: 64px 0 56px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 20px;
}
.badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success);
}
.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  margin-bottom: 0.4em;
}
.hero h1 span { color: var(--blue); }
.hero p.lead {
  font-size: 1.1rem;
  color: #3a4a52;
  max-width: 46ch;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 26px 0 30px;
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.trust-row .item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
}
.trust-row .item svg { flex-shrink: 0; color: var(--success); }

.hero-photo {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-photo img { width: 100%; height: 420px; object-fit: cover; }

/* Before / After slider */
.ba-section { padding: 64px 0; }
.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }

.ba-slider {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  max-width: 640px;
  margin: 0 auto;
  user-select: none;
  touch-action: pan-y;
}
.ba-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ba-slider .ba-after { z-index: 1; }
.ba-slider .ba-before-wrap {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  width: 50%;
}
.ba-slider .ba-before-wrap img { width: var(--ba-img-width, 640px); max-width: none; height: 100%; }
.ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 44px;
  margin-left: -22px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: ew-resize;
}
.ba-handle::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 3px;
  background: var(--white);
  transform: translateX(-50%);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
}
.ba-handle-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  color: var(--blue-dark);
  z-index: 3;
}
.ba-tag {
  position: absolute;
  top: 14px;
  padding: 5px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  z-index: 4;
  color: white;
}
.ba-tag.before-tag { left: 14px; background: #6b7280; }
.ba-tag.after-tag { right: 14px; background: var(--success); }
.ba-hint {
  text-align: center;
  font-size: 0.85rem;
  color: #5a6b73;
  margin-top: 14px;
  font-weight: 600;
}
.ba-pairs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.ba-pair figcaption {
  text-align: center;
  margin-top: 12px;
  font-weight: 600;
  color: var(--navy);
}
@media (max-width: 760px) {
  .ba-pairs { grid-template-columns: 1fr; }
}

/* Services */
.services-section { padding: 64px 0; background: var(--white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}
.service-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  background: var(--bg);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.service-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.service-icon {
  width: 50px; height: 50px;
  border-radius: 12px;
  background: var(--aqua-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-dark);
  margin-bottom: 16px;
}
.service-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.service-card p { font-size: 0.92rem; color: #4a5a62; margin-bottom: 14px; }
.service-price { font-weight: 800; color: var(--blue-dark); }
.service-price small { font-weight: 500; color: #6b7b83; }

/* Why choose us */
.why-section { padding: 64px 0; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.why-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.why-card .service-icon { background: linear-gradient(135deg, var(--aqua), var(--blue)); color: white; }
.why-card h3 { font-size: 1.02rem; }
.why-card p { font-size: 0.9rem; color: #4a5a62; margin-bottom: 0; }

/* Quote calculator */
.quote-section {
  padding: 64px 0;
  background: linear-gradient(180deg, var(--white), var(--aqua-light));
}
.quote-card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 36px;
  max-width: 720px;
  margin: 0 auto;
}
.quote-disclaimer {
  background: #fff7e6;
  border: 1px solid #ffe1a8;
  color: #7a5b00;
  font-size: 0.85rem;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 24px;
}
.form-row { margin-bottom: 22px; }
.form-row label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 10px;
  color: var(--navy);
}
.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 480px) { .checkbox-grid { grid-template-columns: 1fr; } }
.checkbox-card {
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
}
.checkbox-card:has(input:checked) {
  border-color: var(--blue);
  background: var(--aqua-light);
}
.checkbox-card input { width: 18px; height: 18px; accent-color: var(--blue); }
.checkbox-card .price-hint { margin-left: auto; font-weight: 700; color: var(--blue-dark); font-size: 0.85rem; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .two-col { grid-template-columns: 1fr; } }

select, input[type="text"], input[type="tel"], input[type="email"], textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--white);
}
select:focus, input:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
}
textarea { resize: vertical; min-height: 90px; }

.upload-zone {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 22px;
  text-align: center;
  cursor: pointer;
  background: var(--bg);
}
.upload-zone:hover { border-color: var(--blue); }
.upload-zone input { display: none; }
.upload-zone .upload-icon { color: var(--blue); margin-bottom: 8px; }
.upload-zone p { margin: 0; font-size: 0.88rem; color: #4a5a62; }
.photo-preview {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.photo-preview .thumb {
  position: relative;
  width: 84px; height: 84px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.photo-preview .thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-preview .thumb button {
  position: absolute;
  top: 2px; right: 2px;
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  border-radius: 50%;
  width: 20px; height: 20px;
  font-size: 12px;
  cursor: pointer;
  line-height: 1;
}

.estimate-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  background: var(--navy);
  color: white;
  border-radius: 14px;
  padding: 20px 24px;
  margin: 26px 0;
}
.estimate-box .label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: #9fd7e2; font-weight: 700; }
.estimate-box .amount { font-size: 2.1rem; font-weight: 800; font-family: 'Sora', sans-serif; }
.estimate-box .amount small { font-size: 1rem; font-weight: 600; color: #9fd7e2; }

.form-status {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  display: none;
}
.form-status.show { display: block; }
.form-status.success { background: #eafaf0; color: #14622f; border: 1px solid #b6ecc8; }
.form-status.error { background: #fdeceb; color: #8a1f16; border: 1px solid #f5c2bd; }

/* Service area */
.area-section { padding: 64px 0; background: var(--white); }
.area-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 860px) { .area-grid { grid-template-columns: 1fr; } }
.area-map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 0; }
.area-map iframe { width: 100%; height: 340px; border: 0; display: block; }
.area-list { list-style: none; padding: 0; margin: 20px 0; }
.area-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.area-list li svg { color: var(--blue); flex-shrink: 0; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--blue-dark), var(--blue));
  color: white;
  padding: 56px 0;
  text-align: center;
}
.cta-band h2 { color: white; }
.cta-band p { color: #cdeaf0; max-width: 46ch; margin: 0 auto 26px; }
.cta-band .btn-outline { background: white; border-color: white; }

/* Footer */
footer.site-footer {
  background: var(--navy);
  color: #b9d2d8;
  padding: 48px 0 26px;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: white; font-size: 0.95rem; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { text-decoration: none; color: #b9d2d8; }
.footer-grid a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  font-size: 0.82rem;
  color: #7f9aa1;
  text-align: center;
}

.roadmap-note {
  font-size: 0.78rem;
  color: #7f9aa1;
  text-align: center;
  margin-top: 8px;
}
