/* ============================================
   Bashir Painting & Decorating
   Design tokens
   ============================================ */
:root {
  --ink: #1E3532;
  --ink-deep: #162826;
  --plaster: #E9E4D6;
  --plaster-light: #F3F0E7;
  --brick: #A8481F;
  --brick-dark: #8B3A18;
  --mustard: #C9932C;
  --sage: #6B7B5E;
  --charcoal: #23231F;
  --warm-white: #FAF8F3;
  --line: rgba(35, 35, 31, 0.14);
  --line-on-dark: rgba(250, 248, 243, 0.18);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;
  --space-7: 140px;

  --max-width: 1180px;
  --radius: 3px;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--plaster-light);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

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

a { color: inherit; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.01em;
}

p { margin: 0; }

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

:focus-visible {
  outline: 3px solid var(--mustard);
  outline-offset: 2px;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
  min-height: 48px;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--brick);
  color: var(--warm-white);
}
.btn-primary:hover { background: var(--brick-dark); }

.btn-ghost-dark {
  background: transparent;
  color: var(--warm-white);
  border-color: var(--line-on-dark);
}
.btn-ghost-dark:hover { border-color: var(--warm-white); }

.btn-ghost-light {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost-light:hover { border-color: var(--ink); }

/* ============================================
   Header
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--ink);
  border-bottom: 1px solid var(--line-on-dark);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--warm-white);
}

.logo-mark {
  width: auto;
  height: 36px;
  flex: none;
}

.logo-full {
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: fit-content;
}

.logo-full-mark {
  display: block;
  width: 104px;
  height: auto;
  margin-bottom: 8px;
}

.logo-full-name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.1;
  letter-spacing: 0.05em;
  color: var(--warm-white);
}

.logo-full-sub {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11.5px;
  line-height: 1.4;
  letter-spacing: 0.34em;
  padding-left: 0.34em;
  color: var(--plaster);
}

.logo-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  line-height: 1;
  color: var(--warm-white);
}

.logo-sub {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--plaster);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  list-style: none;
  margin: 0;
  padding: 0;
}

.logo-sub,
.nav-links a,
.header-phone,
.header-actions .btn {
  white-space: nowrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--plaster);
  font-size: 15px;
  font-weight: 500;
  transition: color 150ms ease;
}
.nav-links a:hover { color: var(--warm-white); }

.header-actions { display: flex; align-items: center; gap: var(--space-3); }

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--warm-white);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.header-phone svg { width: 18px; height: 18px; color: var(--mustard); flex: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--warm-white);
  padding: 8px;
  cursor: pointer;
}
.nav-toggle svg { width: 26px; height: 26px; }

.mobile-nav {
  background: var(--ink);
  border-top: 1px solid var(--line-on-dark);
}
.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: var(--space-2) var(--space-3) var(--space-3);
}
.mobile-nav li + li { margin-top: 4px; }
.mobile-nav a {
  display: block;
  padding: 12px 4px;
  text-decoration: none;
  color: var(--plaster);
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid var(--line-on-dark);
}
.mobile-nav a:hover { color: var(--warm-white); }

.mobile-nav-cta {
  color: var(--brick) !important;
  font-weight: 700 !important;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  background: var(--ink);
  color: var(--warm-white);
  position: relative;
  overflow: hidden;
  padding: var(--space-6) 0 0;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-5);
  align-items: center;
  padding-bottom: var(--space-6);
}

.hero-eyebrow {
  font-size: 15px;
  color: var(--mustard);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.hero h1 {
  font-size: clamp(40px, 5.2vw, 64px);
  line-height: 1.06;
  color: var(--warm-white);
  max-width: 15ch;
}

.hero-lede {
  margin-top: var(--space-3);
  font-size: 19px;
  line-height: 1.6;
  color: var(--plaster);
  max-width: 46ch;
}

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

.hero-art {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background:
    linear-gradient(155deg, rgba(201,147,44,0.25), transparent 55%),
    repeating-linear-gradient(100deg, #2A4744 0 42px, #26433F 42px 84px);
  overflow: hidden;
  border: 1px solid var(--line-on-dark);
}

.hero-art-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

/* swatch strip: literal paint-deck device, used once, deliberately */
.swatch-strip {
  display: flex;
  border-top: 1px solid var(--line-on-dark);
}
.swatch-strip .chip {
  flex: 1;
  height: 14px;
}

/* ============================================
   Trust bar
   ============================================ */
.trust-bar {
  background: var(--plaster-light);
  border-bottom: 1px solid var(--line);
}
.trust-bar .container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.trust-item svg { width: 20px; height: 20px; color: var(--brick); flex: none; }

/* ============================================
   Section scaffolding
   ============================================ */
section { padding: var(--space-6) 0; }

.section-head {
  max-width: 640px;
  margin-bottom: var(--space-5);
}

.section-kicker {
  color: var(--brick);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.15;
}

.section-head p {
  margin-top: var(--space-2);
  font-size: 17px;
  color: #4B4B44;
  line-height: 1.65;
}

.section-dark {
  background: var(--ink);
  color: var(--warm-white);
}
.section-dark .section-head p { color: var(--plaster); }
.section-dark h2, .section-dark h3 { color: var(--warm-white); }

/* ============================================
   About
   ============================================ */
.about .container {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--space-5);
  align-items: center;
}

.about-art {
  aspect-ratio: 1 / 1.05;
  border-radius: var(--radius);
  background:
    linear-gradient(200deg, rgba(168,72,31,0.14), transparent 60%),
    var(--plaster);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.about-art-grid {
  position: absolute;
  inset: var(--space-3);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 6px;
}
.about-art-grid span { border-radius: 2px; }

.about-copy p + p { margin-top: var(--space-2); }
.about-copy p { font-size: 16.5px; line-height: 1.7; color: #3E3E38; }

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: var(--space-4);
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
}
.about-stat-num {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--ink);
  font-weight: 600;
}
.about-stat-label {
  font-size: 13.5px;
  color: #5C5C54;
  margin-top: 4px;
}

/* ============================================
   Services — paint-deck list, not card kit
   ============================================ */
.services { background: var(--plaster-light); }

.service-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-top: 1px solid var(--line);
}
.service-row:last-child { border-bottom: 1px solid var(--line); }

.service-chip {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-chip svg { width: 22px; height: 22px; color: var(--warm-white); }

.service-body h3 {
  font-size: 20px;
  font-weight: 600;
}
.service-body p {
  margin-top: 6px;
  font-size: 15.5px;
  color: #5C5C54;
  max-width: 60ch;
}

.service-tag {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  white-space: nowrap;
}

/* ============================================
   Our Work
   ============================================ */
.work-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--space-4);
}

.work-tab {
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
  min-height: 44px;
}
.work-tab:hover { border-color: var(--ink); }
.work-tab.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--warm-white);
}

.work-group[hidden] { display: none; }
.work-group.no-divider {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.work-group + .work-group {
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
}

.work-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.work-group-head h3 {
  font-size: 22px;
}

.work-group-loc {
  font-size: 14.5px;
  color: #5C5C54;
  margin-top: 4px;
}

.work-group .work-grid {
  margin-top: var(--space-3);
}

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

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

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

.work-card {
  margin: 0;
}

.work-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.work-caption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: var(--space-2);
}

.work-caption-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}

.work-caption-loc {
  font-size: 14px;
  color: #5C5C54;
}

.work-tag {
  margin-top: 10px;
  display: inline-block;
}

/* ============================================
   Testimonials
   ============================================ */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.testimonial-mark {
  font-family: var(--font-display);
  font-size: 52px;
  line-height: 1;
  color: var(--mustard);
  margin-bottom: var(--space-2);
}

.testimonial blockquote {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
}

.testimonial cite {
  display: block;
  margin-top: var(--space-3);
  font-style: normal;
  font-size: 14.5px;
  font-weight: 600;
  color: #5C5C54;
}

/* ============================================
   Service areas
   ============================================ */
.areas { background: var(--plaster-light); }

.areas-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.area-list {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: var(--space-3);
}
.area-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
  break-inside: avoid;
}

.areas-copy p { font-size: 16px; line-height: 1.7; color: #3E3E38; }
.areas-copy p + p { margin-top: var(--space-2); }

.areas-dark .areas-copy p { color: var(--plaster); }
.areas-dark .area-list li { border-bottom-color: var(--line-on-dark); }

/* ============================================
   Quote / contact
   ============================================ */
.quote { background: var(--ink); color: var(--warm-white); }
.quote h2 { color: var(--warm-white); }

.quote-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-5);
}

.quote-info-item {
  display: flex;
  gap: 14px;
  padding: var(--space-2) 0;
  border-top: 1px solid var(--line-on-dark);
}
.quote-info-item:last-child { padding-bottom: 0; }
.quote-info-item svg { width: 22px; height: 22px; color: var(--mustard); flex: none; margin-top: 2px; }
.quote-info-item h4 { color: var(--warm-white); font-size: 15.5px; font-family: var(--font-body); font-weight: 600; }
.quote-info-item p { color: var(--plaster); font-size: 14.5px; margin-top: 3px; }

.quote-form {
  background: var(--plaster-light);
  border-radius: var(--radius);
  padding: var(--space-4);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}
.form-grid .field-full { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--space-2); }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--warm-white);
  color: var(--charcoal);
  min-height: 48px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid var(--mustard);
  outline-offset: 1px;
  border-color: var(--brick);
}

.form-note {
  font-size: 13px;
  color: #6B6B62;
  margin-top: var(--space-1);
}

.form-status {
  margin-top: var(--space-2);
  font-size: 14.5px;
  font-weight: 600;
}
.form-status[data-state="success"] { color: var(--sage); }
.form-status[data-state="error"] { color: var(--brick); }

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--ink-deep);
  color: var(--plaster);
  padding: var(--space-5) 0 var(--space-3);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--line-on-dark);
}

.footer-brand .logo-word { font-size: 20px; }
.footer-brand p {
  margin-top: var(--space-2);
  font-size: 14.5px;
  line-height: 1.65;
  max-width: 34ch;
  color: var(--plaster);
}

.footer-col h4 {
  font-family: var(--font-body);
  color: var(--warm-white);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li + li { margin-top: 10px; }
.footer-col a { text-decoration: none; color: var(--plaster); font-size: 14.5px; }
.footer-col a:hover { color: var(--warm-white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding-top: var(--space-3);
  font-size: 13px;
  color: #9A9A8E;
}

/* ============================================
   Hero load-in — one orchestrated moment
   ============================================ */
.hero-eyebrow, .hero h1, .hero-lede, .hero-actions, .hero-art {
  opacity: 0;
  transform: translateY(14px);
  animation: hero-in 700ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-eyebrow { animation-delay: 60ms; }
.hero h1 { animation-delay: 140ms; }
.hero-lede { animation-delay: 240ms; }
.hero-actions { animation-delay: 340ms; }
.hero-art { animation-delay: 200ms; transform: translateY(20px) scale(0.98); }

@keyframes hero-in {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow, .hero h1, .hero-lede, .hero-actions, .hero-art {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1180px) {
  .header-phone span { display: none; }
}

@media (max-width: 1060px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; }
}

@media (max-width: 560px) {
  .header-actions .btn-primary { display: none; }
  .logo-sub { display: none; }
  .site-header .container { height: 64px; }
}

@media (max-width: 980px) {

  .hero .container { grid-template-columns: 1fr; gap: var(--space-4); padding-bottom: var(--space-4); }
  .hero-art { order: -1; aspect-ratio: 16 / 10; }

  .about .container { grid-template-columns: 1fr; }
  .about-art { aspect-ratio: 16 / 9; order: -1; }
  .about-stats { grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }

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

  .work-grid-3, .work-grid-4 { grid-template-columns: 1fr 1fr; }

  .areas-layout { grid-template-columns: 1fr; }
  .quote-layout { grid-template-columns: 1fr; }

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

@media (max-width: 640px) {
  :root { --space-6: 64px; --space-7: 88px; }
  section { padding: var(--space-5) 0; }
  .service-row { grid-template-columns: 44px 1fr; }
  .service-tag { grid-column: 2; width: fit-content; }
  .form-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .trust-bar .container { justify-content: flex-start; gap: var(--space-3); }
}
