/* ==========================================================================
   CSS Variables
   ========================================================================== */

:root {
  --bg: #111111;
  --bg-alt: #181818;
  --primary: #2563EB;
  --primary-light: #3B82F6;
  --accent: #2563EB;
  --accent-light: #3B82F6;
  --text: #F0F0F0;
  --text-light: rgba(240, 240, 240, 0.5);
  --surface: #1E1E1E;
  --border: rgba(255, 255, 255, 0.09);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
  --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.6);
  --transition: 0.3s ease;
}

/* ==========================================================================
   Resets
   ========================================================================== */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: #111111;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Crect x='0' y='0' width='1' height='32' fill='%23ffffff' opacity='0.025'/%3E%3Crect x='0' y='0' width='32' height='1' fill='%23ffffff' opacity='0.025'/%3E%3C/svg%3E");
  background-repeat: repeat;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-label {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(0.75rem, 1vw, 0.875rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 20px;
  color: var(--text);
}

.section-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--text-light);
  max-width: 600px;
  line-height: 1.7;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header .section-subtitle {
  margin: 0 auto;
}

/* ==========================================================================
   Components -- Navigation
   ========================================================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: background-color var(--transition), box-shadow var(--transition), padding var(--transition);
}

.nav.scrolled {
  background-color: var(--surface);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
  padding: 14px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav-logo svg {
  flex-shrink: 0;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-logo-name {
  font-family: 'DM Serif Display', serif;
  font-size: 1.125rem;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.nav-logo-est {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--accent);
  line-height: 1;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(240, 240, 240, 0.65);
  position: relative;
  padding: 7px 18px;
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  will-change: transform, opacity;
}

.nav-links a::after {
  display: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
}

.nav-cta {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}

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

.btn-primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--surface);
  transform: translateY(-1px);
}

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

.btn-white:hover {
  background-color: var(--bg);
  transform: translateY(-1px);
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--surface);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 24px;
  flex-direction: column;
  gap: 4px;
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(240, 240, 240, 0.75);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition), color var(--transition);
}

.mobile-menu a:hover,
.mobile-menu a.active {
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.mobile-menu .btn {
  margin-top: 8px;
  text-align: center;
}

/* ==========================================================================
   Components -- Hero
   ========================================================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.12) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 24px;
  color: var(--text);
  line-height: 1.1;
}

.hero-subtitle {
  font-size: clamp(1.0625rem, 1.8vw, 1.25rem);
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-fade {
  opacity: 0;
  animation: heroFadeIn 0.8s ease forwards;
}

.hero-fade-delay {
  opacity: 0;
  animation: heroFadeIn 0.8s ease 0.2s forwards;
}

.hero-fade-delay-2 {
  opacity: 0;
  animation: heroFadeIn 0.8s ease 0.4s forwards;
}

/* ==========================================================================
   Components -- Service Cards
   ========================================================================== */

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.service-card {
  background-color: var(--surface);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
  will-change: transform, opacity;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  color: var(--primary);
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--text);
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ==========================================================================
   Components -- Why Choose Us
   ========================================================================== */

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

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.why-block {
  text-align: center;
  padding: 32px 20px;
  will-change: transform, opacity;
}

.why-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  background-color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--surface);
}

.why-icon svg {
  width: 24px;
  height: 24px;
}

.why-block h3 {
  font-size: 1.125rem;
  margin-bottom: 12px;
}

.why-block p {
  font-size: 0.9375rem;
  color: var(--text-light);
  line-height: 1.7;
  max-width: 280px;
  margin: 0 auto;
}

/* ==========================================================================
   Components -- Stats
   ========================================================================== */

.stats-section {
  padding: 64px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item {
  will-change: transform, opacity;
}

.stat-number {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.25rem, 5vw, 3rem);
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.9375rem;
  color: var(--text-light);
  font-weight: 500;
}

/* ==========================================================================
   Components -- Testimonials
   ========================================================================== */

.section--testimonials {
  background-color: #0D0D0D;
  background-image: none;
}

.section--testimonials .section-label {
  color: var(--accent-light);
}

.section--testimonials .section-title {
  color: #F5F2ED;
}

.section--testimonials .section-subtitle {
  color: rgba(245, 242, 237, 0.65);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.testimonial-card {
  background-color: rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  will-change: transform, opacity;
}

.testimonial-card .testimonial-text {
  color: rgba(245, 242, 237, 0.88);
}

.testimonial-card .testimonial-author {
  color: #F5F2ED;
}

.testimonial-card .testimonial-location {
  color: rgba(245, 242, 237, 0.55);
}

.testimonial-quote {
  position: absolute;
  top: 20px;
  left: 24px;
  font-family: 'DM Serif Display', serif;
  font-size: 4rem;
  color: var(--accent);
  opacity: 0.2;
  line-height: 1;
  pointer-events: none;
}

.testimonial-text {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 24px;
  padding-top: 16px;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--primary);
}

.testimonial-location {
  font-size: 0.8125rem;
  color: var(--text-light);
  margin-top: 2px;
}

/* ==========================================================================
   Components -- CTA Banner
   ========================================================================== */

.cta-banner {
  background-color: var(--primary);
  padding: 80px 0;
  text-align: center;
}

.cta-banner h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--surface);
  margin-bottom: 16px;
}

.cta-banner p {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 36px;
}

/* ==========================================================================
   Components -- Footer
   ========================================================================== */

.footer {
  background-color: var(--bg-alt);
  padding: 64px 0 32px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 0.9375rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-top: 12px;
  max-width: 300px;
}

.footer-heading {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text);
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.9375rem;
  color: var(--text-light);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.9375rem;
  color: var(--text-light);
}

.footer-contact-item svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--accent);
}

.footer-contact-item a {
  color: var(--text-light);
}

.footer-contact-item a:hover {
  color: var(--primary);
}

.footer-areas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-area-tag {
  font-size: 0.8125rem;
  padding: 4px 12px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-light);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-light);
}

/* ==========================================================================
   Components -- Contact Page
   ========================================================================== */

.contact-header {
  padding: 140px 0 60px;
}

.contact-section {
  padding: 0 0 100px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}

.contact-info-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-light);
  margin-bottom: 4px;
}

.contact-info-value {
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.6;
}

a.contact-info-value:hover {
  color: var(--primary);
}

.contact-service-areas {
  padding-top: 8px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

.contact-areas-heading {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text);
  margin-bottom: 4px;
}

.contact-areas-note {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-bottom: 12px;
}

.contact-area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.contact-area-tag {
  font-size: 0.8125rem;
  padding: 4px 12px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-light);
}

.contact-form-card {
  background-color: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 40px 32px;
  box-shadow: var(--shadow);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
}

.form-input {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9375rem;
  color: var(--text);
  background-color: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  transition: border-color var(--transition);
  width: 100%;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
}

.form-input::placeholder {
  color: var(--text-light);
  opacity: 0.6;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%235A5A5A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.form-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.form-radio input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.form-radio-mark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  transition: border-color var(--transition);
}

.form-radio input[type="radio"]:checked + .form-radio-mark {
  border-color: var(--primary);
}

.form-radio input[type="radio"]:checked + .form-radio-mark::after {
  content: '';
  position: absolute;
  inset: 3px;
  background-color: var(--primary);
  border-radius: 50%;
}

.form-radio-text {
  font-size: 0.9375rem;
  color: var(--text);
}

.form-submit {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
}

.form-success {
  display: none;
  padding: 16px;
  background-color: rgba(100, 200, 100, 0.08);
  border: 1px solid rgba(100, 200, 100, 0.2);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  color: #7ACA7A;
  text-align: center;
}

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

@media (min-width: 768px) {
  .contact-header {
    padding: 160px 0 60px;
  }

  .contact-grid {
    grid-template-columns: 1fr 1.3fr;
    gap: 64px;
    align-items: start;
  }
}

/* ==========================================================================
   Components -- Gallery Page
   ========================================================================== */

.gallery-header {
  padding: 140px 0 60px;
}

.gallery-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 40px;
}

.filter-tab {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-light);
  background-color: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 24px;
  padding: 8px 22px;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-tab:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.filter-tab.active {
  color: var(--surface);
  background-color: var(--primary);
  border-color: var(--primary);
}

.gallery-section {
  padding: 0 0 100px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.project-card {
  background-color: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  will-change: transform, opacity;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.project-card.hidden {
  display: none;
}

.project-illustration {
  background-color: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 24px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-illustration svg {
  width: 100%;
  height: 100%;
}

.project-info {
  padding: 24px;
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.project-type-badge {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 20px;
}

.project-type-badge.residential {
  background-color: rgba(37, 99, 235, 0.15);
  color: var(--primary);
}

.project-type-badge.commercial {
  background-color: rgba(37, 99, 235, 0.08);
  color: var(--accent-light);
}

.project-type-badge.repair {
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--text-light);
}

.project-location {
  font-size: 0.8125rem;
  color: var(--text-light);
}

.project-title {
  font-size: 1.125rem;
  color: var(--text);
  margin-bottom: 8px;
}

.project-description {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
}

.gallery-empty {
  display: none;
  text-align: center;
  padding: 80px 0;
  font-size: 1rem;
  color: var(--text-light);
}

.gallery-empty.visible {
  display: block;
}

@media (min-width: 768px) {
  .gallery-header {
    padding: 160px 0 60px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   Components -- About Section
   ========================================================================== */

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

.about-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}

.about-content .section-title {
  margin-bottom: 24px;
}

.about-text {
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-text:last-of-type {
  margin-bottom: 32px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.about-stat {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
}

.about-stat-num {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}

.about-stat-label {
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-light);
}

@media (min-width: 768px) {
  .about-inner {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
  }
}

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

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(32px) scale(0.98);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ==========================================================================
   Responsive -- 768px+
   ========================================================================== */

@media (min-width: 768px) {
  .section {
    padding: 100px 0;
  }

  .nav-links {
    display: flex;
  }

  .nav-cta {
    display: inline-flex;
  }

  .hamburger {
    display: none;
  }

  .mobile-menu {
    display: none !important;
  }

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

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  }

  .hero-content {
    max-width: 640px;
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .why-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .container {
    padding: 0 40px;
  }
}

/* ==========================================================================
   Components -- Marquee Strip
   ========================================================================== */

.marquee-strip {
  background-color: var(--primary);
  overflow: hidden;
  padding: 14px 0;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 36px;
  width: max-content;
  animation: marqueeScroll 30s linear infinite;
  will-change: transform;
}

.marquee-strip:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-item {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.marquee-sep {
  display: inline-block;
  width: 5px;
  height: 5px;
  background-color: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   Components -- Hero Visual Badge
   ========================================================================== */

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.hero-visual {
  display: none;
}

.hero-badge {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto;
}

.hero-badge-ring {
  width: 100%;
  height: 100%;
  animation: ringRotate 45s linear infinite;
  will-change: transform;
}

.hero-badge-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
}

.hero-badge-monogram {
  font-family: 'DM Serif Display', serif;
  font-size: 2.75rem;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.02em;
}

.hero-badge-rule {
  width: 52px;
  height: 1.5px;
  background-color: var(--accent);
}

.hero-badge-year {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--text-light);
}

.hero-chip {
  position: absolute;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  box-shadow: var(--shadow-hover);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  animation: chipFloat 4s ease-in-out infinite;
  will-change: transform;
}

.hero-chip--1 {
  top: 10px;
  right: -10px;
  animation-delay: 0s;
  animation-duration: 4.2s;
}

.hero-chip--2 {
  bottom: 50px;
  right: -24px;
  animation-delay: 1.4s;
  animation-duration: 3.8s;
}

.hero-chip--3 {
  bottom: 10px;
  left: -10px;
  animation-delay: 0.8s;
  animation-duration: 4.6s;
}

.hero-chip-number {
  font-family: 'DM Serif Display', serif;
  font-size: 1.375rem;
  color: var(--primary);
  line-height: 1;
}

.hero-chip-label {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

@keyframes ringRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes chipFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 64px;
  }

  .hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .hero-content {
    max-width: none;
  }
}

/* ==========================================================================
   Components -- Cost Estimator
   ========================================================================== */

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

.estimator-card {
  display: grid;
  grid-template-columns: 1fr;
  background-color: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.estimator-body {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.estimator-step-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
}

.estimator-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.estimator-option {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-light);
  background-color: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 18px;
  cursor: pointer;
  transition: all var(--transition);
}

.estimator-option:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.estimator-option.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--surface);
}

.estimator-slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.estimator-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  outline: none;
  cursor: pointer;
}

.estimator-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 2px var(--primary);
  transition: box-shadow var(--transition);
}

.estimator-slider::-webkit-slider-thumb:hover {
  box-shadow: 0 0 0 4px rgba(44, 62, 45, 0.18);
}

.estimator-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 2px var(--primary);
}

.estimator-slider-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.estimator-slider-labels span {
  font-size: 0.8125rem;
  color: var(--text-light);
}

.estimator-slider-labels .sqft-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--primary);
}

.estimator-result {
  background-color: var(--primary);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

.estimator-range-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: rgba(255, 255, 255, 0.55);
}

.estimator-range {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--surface);
  line-height: 1.05;
  transition: opacity 0.2s;
}

.estimator-disclaimer {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.65;
}

.estimator-result .btn {
  align-self: flex-start;
  background-color: var(--accent);
  color: var(--surface);
  border: none;
  margin-top: 8px;
}

.estimator-result .btn:hover {
  background-color: var(--accent-light);
  transform: translateY(-1px);
}

@media (min-width: 900px) {
  .estimator-card {
    grid-template-columns: 1.25fr 1fr;
  }
}

/* ==========================================================================
   Components -- Floating Widget
   ========================================================================== */

.float-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 48px;
  padding: 8px 8px 8px 20px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.14);
  z-index: 500;
  transform: translateY(80px);
  opacity: 0;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.55s ease;
  pointer-events: none;
  will-change: transform, opacity;
}

.float-widget.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.float-widget-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  transition: color var(--transition);
}

.float-widget-phone svg {
  color: var(--accent);
  flex-shrink: 0;
}

.float-widget-phone:hover {
  color: var(--primary);
}

.float-widget .btn {
  border-radius: 36px;
  padding: 10px 20px;
  font-size: 0.875rem;
}

.float-widget-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-alt);
  font-size: 0.875rem;
  color: var(--text-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color var(--transition);
  padding: 0;
}

.float-widget-close:hover {
  background-color: var(--border);
  color: var(--text);
}

@media (max-width: 480px) {
  .float-widget {
    bottom: 16px;
    right: 16px;
    left: 16px;
    border-radius: 14px;
    padding: 12px 16px;
    gap: 10px;
  }

  .float-widget .btn {
    flex: 1;
    border-radius: 10px;
  }
}

/* ==========================================================================
   Components -- Custom Cursor
   ========================================================================== */

@media (pointer: fine) {
  body {
    cursor: none;
  }

  a, button {
    cursor: none;
  }

  .cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 7px;
    height: 7px;
    background-color: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease, opacity 0.2s;
    will-change: left, top, transform;
  }

  .cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--text);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                height 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.25s ease,
                opacity 0.2s;
    opacity: 0.45;
    will-change: left, top;
  }

  .cursor-ring.expanded {
    width: 52px;
    height: 52px;
    border-color: var(--accent);
    opacity: 0.65;
  }

  .cursor-dot.hidden,
  .cursor-ring.hidden {
    opacity: 0;
  }
}

/* ==========================================================================
   Components -- Page Transition
   ========================================================================== */

.page-transition {
  position: fixed;
  inset: 0;
  background-color: var(--bg);
  z-index: 9990;
  opacity: 1;
  transition: opacity 0.4s ease;
  pointer-events: all;
}

.page-transition.loaded {
  opacity: 0;
  pointer-events: none;
}

/* ==========================================================================
   Components -- Promo Banner
   ========================================================================== */

.promo-banner {
  background-color: var(--accent);
  padding: 10px 0;
  position: relative;
  z-index: 1001;
}

.promo-banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: relative;
}

.promo-banner-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--surface);
  text-align: center;
}

.promo-banner-text a {
  color: var(--surface);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.promo-banner.hidden {
  display: none;
}

.promo-banner-close {
  position: absolute;
  right: 0;
  color: rgba(255,255,255,0.8);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition);
}

.promo-banner-close:hover {
  color: #fff;
}

/* ==========================================================================
   Components -- How It Works
   ========================================================================== */

.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 1.5px;
  background: linear-gradient(to bottom, var(--border), transparent);
  pointer-events: none;
}

.process-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 28px;
  align-items: start;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  will-change: transform, opacity;
}

.process-step:last-child {
  border-bottom: none;
}

.process-step-num {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  color: var(--accent);
  line-height: 1;
  padding-top: 4px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.process-step-content h3 {
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 10px;
}

.process-step-content p {
  font-size: 0.9375rem;
  color: var(--text-light);
  line-height: 1.75;
}

@media (min-width: 768px) {
  .process-steps {
    grid-template-columns: 1fr 1fr;
    gap: 0 64px;
  }
  .process-steps::before {
    display: none;
  }
  .process-step {
    grid-template-columns: 48px 1fr;
    gap: 20px;
  }
}

/* ==========================================================================
   Components -- Trust Strip
   ========================================================================== */

.trust-strip {
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}

.trust-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  will-change: transform, opacity;
}

.trust-badge-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(196, 112, 58, 0.12);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.trust-badge-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.trust-badge-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-light);
}

.trust-badge-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--primary);
}

.trust-badge-divider {
  width: 1px;
  height: 40px;
  background-color: var(--border);
  flex-shrink: 0;
  display: none;
}

@media (min-width: 768px) {
  .trust-badge-divider {
    display: block;
  }
  .trust-strip-inner {
    flex-wrap: nowrap;
    gap: 32px;
  }
}

/* ==========================================================================
   Components -- Before / After Slider
   ========================================================================== */

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

.ba-slider {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  user-select: none;
  cursor: col-resize;
  will-change: transform, opacity;
}

.ba-after,
.ba-before {
  position: relative;
  width: 100%;
}

.ba-before {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  overflow: hidden;
  width: 50%;
  will-change: width;
}

.ba-illustration {
  width: 100%;
  height: auto;
  display: block;
}

.ba-before .ba-illustration {
  width: 760px;
  max-width: none;
}

.ba-label {
  position: absolute;
  bottom: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #fff;
  padding: 5px 14px;
  border-radius: 20px;
}

.ba-label--after {
  right: 12px;
  background-color: rgba(44, 62, 45, 0.75);
}

.ba-label--before {
  left: 12px;
  background-color: rgba(80, 60, 30, 0.75);
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  will-change: left;
  z-index: 10;
}

.ba-handle-line {
  width: 2px;
  flex: 1;
  background-color: #fff;
  box-shadow: 0 0 8px rgba(0,0,0,0.3);
}

.ba-handle-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: col-resize;
  margin: 0;
  z-index: 20;
}

/* ==========================================================================
   Components -- FAQ
   ========================================================================== */

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  will-change: transform, opacity;
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition);
}

.faq-q:hover {
  color: var(--primary);
}

.faq-icon {
  flex-shrink: 0;
  color: var(--text-light);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), color var(--transition);
  will-change: transform;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1), padding 0.35s ease;
}

.faq-a p {
  font-size: 0.9375rem;
  color: var(--text-light);
  line-height: 1.8;
  padding-bottom: 22px;
}

.faq-item.open .faq-a {
  max-height: 400px;
}

/* ==========================================================================
   Components -- File Upload
   ========================================================================== */

.file-upload-area {
  display: block;
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  background-color: var(--bg);
  transition: border-color var(--transition), background-color var(--transition);
}

.file-upload-area:hover,
.file-upload-area.dragover {
  border-color: var(--primary);
  background-color: rgba(44, 62, 45, 0.04);
}

.file-upload-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.file-upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-light);
  font-size: 0.9375rem;
}

.file-upload-placeholder svg {
  color: var(--primary);
  opacity: 0.5;
}

.file-upload-hint {
  font-size: 0.8125rem;
  color: var(--text-light);
  opacity: 0.7;
}

.file-upload-selected {
  font-size: 0.875rem;
  color: var(--primary);
  font-weight: 500;
}

.file-upload-selected.hidden {
  display: none;
}

/* ==========================================================================
   Components -- Map Embed
   ========================================================================== */

.map-embed {
  margin-top: 56px;
  will-change: transform, opacity;
}

.map-heading {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text);
  margin-bottom: 16px;
}

.map-frame-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.map-frame {
  width: 100%;
  height: 340px;
  display: block;
  border: none;
}

@media (min-width: 768px) {
  .map-frame {
    height: 420px;
  }
}

/* ==========================================================================
   Components -- Tips Page
   ========================================================================== */

.tips-header {
  padding: 80px 0 48px;
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
}

.tips-grid-section {
  padding: 64px 0 80px;
}

.tips-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .tips-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.tip-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
  will-change: transform, opacity;
}

.tip-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.tip-card-illustration {
  width: 100%;
  background-color: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.tip-card-illustration svg {
  width: 100%;
  height: auto;
  display: block;
}

.tip-card-body {
  padding: 28px;
}

.tip-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.tip-card-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
}

.tip-card-read-time {
  font-size: 0.75rem;
  color: var(--text-light);
}

.tip-card-read-time::before {
  content: '\2022';
  margin-right: 8px;
  color: var(--border);
}

.tip-card-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.25rem;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 12px;
}

.tip-card-excerpt {
  font-size: 0.9375rem;
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: 20px;
}

.tip-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: gap var(--transition), color var(--transition);
}

.tip-card-link:hover {
  gap: 10px;
  color: var(--accent);
}
