/* ==========================================================================
   TWG Painting Contractors LLC — deep charcoal + brand blue (theworkinguy.com), editorial
   ========================================================================== */

:root {
  --charcoal-deep: #14181a;
  --charcoal: #1c2224;
  --charcoal-mid: #2a3234;
  --line: #3a4548;
  --paper: #f6f4ef;
  --paper-dim: #ece8de;
  --white: #ffffff;
  --teal: #005eae;
  --teal-bright: #3d9ae0;
  --teal-deep: #001641;
  --ink: #14181a;
  --ink-soft: #4c5658;

  --font-head: "Fraunces", "Georgia", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;

  --radius: 4px;
  --max-width: 1200px;
}

@font-face {
  font-family: "Fraunces";
  src: local("Georgia");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 var(--space-2);
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 var(--space-2);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

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

.btn--primary:hover {
  background: var(--teal-deep);
}

.btn--outline {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn--outline-dark {
  background: transparent;
  border-color: var(--charcoal);
  color: var(--charcoal);
}

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

/* ---------- Top bar ---------- */

.topbar {
  background: var(--charcoal-deep);
  color: var(--paper);
  font-size: 0.85rem;
}

.topbar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.topbar a {
  text-decoration: none;
  color: var(--teal-bright);
  font-weight: 600;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 32px;
}

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--charcoal-deep);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--paper);
}

.logo {
  display: block;
  height: 38px;
  width: auto;
  max-width: 45vw;
  object-fit: contain;
}

.brand-mark {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}

.brand-mark span {
  color: var(--teal-bright);
}

.brand-sub {
  display: none;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--paper);
}

.nav-toggle .bars {
  position: relative;
  width: 20px;
  height: 14px;
}

.nav-toggle .bars span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle .bars span:nth-child(1) { top: 0; }
.nav-toggle .bars span:nth-child(2) { top: 6px; }
.nav-toggle .bars span:nth-child(3) { top: 12px; }

.nav-toggle[aria-expanded="true"] .bars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .bars span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.main-nav {
  position: fixed;
  inset: 0;
  top: 0;
  background: var(--charcoal-deep);
  padding: var(--space-6) var(--space-3) var(--space-3);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 99;
  overflow-y: auto;
}

.main-nav.is-open {
  transform: translateX(0);
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.main-nav a {
  display: block;
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 0.6rem 0.25rem;
  text-decoration: none;
  color: var(--paper);
  font-weight: 600;
  font-size: 1.1rem;
  border-bottom: 1px solid var(--line);
}

.main-nav a:hover {
  color: var(--teal-bright);
}

.main-nav .btn {
  margin-top: var(--space-3);
  width: 100%;
}

.nav-close {
  position: absolute;
  top: var(--space-2);
  right: var(--space-3);
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: transparent;
  color: var(--paper);
  font-size: 1.4rem;
  cursor: pointer;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--charcoal-deep);
  color: var(--paper);
  overflow: hidden;
}

.hero-inner {
  position: relative;
  padding: var(--space-5) 0 var(--space-6);
  display: grid;
  gap: var(--space-4);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-bright);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.hero h1 {
  font-size: clamp(2.4rem, 8vw, 4.6rem);
  color: var(--white);
  max-width: 16ch;
}

.hero h1 em {
  font-style: normal;
  color: var(--teal-bright);
}

.hero-lede {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: #cfd6d6;
  max-width: 48ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
}

.hero-stat .num {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  color: var(--teal-bright);
  display: block;
}

.hero-stat .label {
  font-size: 0.85rem;
  color: #a9b2b2;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-swatch {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
}

.hero-swatch--1 {
  width: 280px;
  height: 280px;
  background: var(--teal);
  top: -80px;
  right: -100px;
}

.hero-swatch--2 {
  width: 220px;
  height: 220px;
  background: var(--teal-deep);
  bottom: -100px;
  left: -80px;
  opacity: 0.25;
}

/* ---------- Section shell ---------- */

section {
  padding: var(--space-5) 0;
}

.section-head {
  max-width: 60ch;
  margin-bottom: var(--space-4);
}

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

.section--dark {
  background: var(--charcoal-deep);
  color: var(--paper);
}

.section--dark .section-eyebrow {
  color: var(--teal-bright);
}

.section--dark h2 {
  color: var(--white);
}

.section--tint {
  background: var(--paper-dim);
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  gap: var(--space-4);
}

.about-copy p {
  font-size: 1.05rem;
  color: var(--ink-soft);
}

.about-founder {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  padding: var(--space-3);
  border-radius: var(--radius);
}

.about-founder .role {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--teal-deep);
  font-weight: 700;
}

.about-founder h3 {
  margin-bottom: 0.3rem;
  font-size: 1.4rem;
}

.about-badges {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.about-badge {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-2);
  text-align: center;
}

.about-badge .num {
  font-family: var(--font-head);
  font-size: 1.8rem;
  color: var(--teal-deep);
  display: block;
}

.about-badge .label {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* ---------- Services ---------- */

.services-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--teal);
  box-shadow: 0 12px 30px -18px rgba(20, 24, 26, 0.35);
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--charcoal-deep);
  color: var(--teal-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.2rem;
}

.service-card p {
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}

.service-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.service-card li {
  margin-bottom: 0.3rem;
}

.service-card .card-link {
  margin-top: auto;
  font-weight: 700;
  color: var(--teal-deep);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* ---------- Process ---------- */

.process-list {
  display: grid;
  gap: var(--space-3);
}

.process-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-2);
  align-items: flex-start;
}

.process-num {
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: var(--teal-bright);
  width: 3rem;
}

.process-step h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.process-step p {
  color: #c3cccc;
  font-size: 0.95rem;
}

/* ---------- Testimonial carousel ---------- */

.tc-widget {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-2);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-2);
}

.tc-card {
  text-align: center;
  animation: tc-fade 0.4s ease;
}

@keyframes tc-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.tc-quote {
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: var(--space-1);
}

.tc-author {
  font-size: 0.9rem;
  color: var(--teal-deep);
  font-weight: 700;
  margin: 0;
}

.tc-arrow {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.tc-arrow:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

.tc-dots {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: var(--space-2);
}

.tc-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: var(--line);
  cursor: pointer;
}

.tc-dot-active {
  background: var(--teal);
  width: 24px;
  border-radius: 6px;
}

/* fallback for no-JS / before hydration */
.tc-noscript {
  display: none;
}

.no-js .tc-widget {
  display: none;
}

.no-js .tc-noscript {
  display: grid;
  gap: var(--space-3);
}

/* ---------- Service area ---------- */

.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: var(--space-2);
}

.area-chip {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  gap: var(--space-4);
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-3);
}

.contact-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) 0;
  border-bottom: 1px solid var(--paper-dim);
  min-height: 44px;
}

.contact-row:last-child {
  border-bottom: none;
}

.contact-row a {
  text-decoration: none;
  font-weight: 700;
  color: var(--teal-deep);
}

.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--paper-dim);
  color: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.map-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-form {
  display: grid;
  gap: var(--space-2);
}

.contact-form label {
  font-weight: 700;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.3rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  background: var(--paper);
  color: var(--ink);
}

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

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
}

.form-note {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--charcoal-deep);
  color: #a9b2b2;
  padding: var(--space-4) 0 var(--space-3);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.footer-brand {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--white);
}

.footer-brand span {
  color: var(--teal-bright);
}

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

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.4rem;
}

.footer-col a {
  color: #a9b2b2;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--teal-bright);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: var(--space-2);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8rem;
}

/* ==========================================================================
   Tablet — 768px+
   ========================================================================== */

@media (min-width: 768px) {
  .brand-sub {
    display: block;
  }

  .logo {
    height: 46px;
    max-width: none;
  }

  .nav-toggle {
    display: none;
  }

  .main-nav {
    position: static;
    transform: none;
    background: transparent;
    padding: 0;
    display: flex;
    align-items: center;
    width: auto;
    overflow: visible;
  }

  .main-nav ul {
    flex-direction: row;
    gap: var(--space-3);
  }

  .main-nav a {
    border-bottom: none;
    min-height: auto;
    font-size: 0.95rem;
  }

  .main-nav .btn {
    margin-top: 0;
    margin-left: var(--space-2);
    width: auto;
  }

  .nav-close {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    padding: var(--space-6) 0;
  }

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

  .about-grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }

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

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

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

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

/* ==========================================================================
   Desktop — 1200px+
   ========================================================================== */

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

  .hero-stats {
    max-width: 90%;
  }
}
