/* ===================================================
   Kitchen Redux — Cabinet Painting Article Page
   Palette drawn from a painter's swatch deck:
   cream ground, sage cabinet-paint accent, brass hardware
=================================================== */

:root {
  --cream: #FAF7F1;
  --panel: #F1E8D9;
  --ink: #2B2A28;
  --ink-soft: #5A564E;
  --sage: #5C6E5A;
  --sage-dark: #3E4A3D;
  --brass: #B08D57;
  --brass-light: #D9BD8C;
  --rule: rgba(43, 42, 40, 0.12);

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

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

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--sage-dark);
  color: #fff;
  padding: 12px 18px;
  z-index: 100;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

a {
  color: var(--sage-dark);
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 2px;
}

/* ---------- Topbar ---------- */
.topbar {
  border-bottom: 1px solid var(--rule);
  background: var(--cream);
  position: sticky;
  top: 0;
  z-index: 20;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  max-width: 900px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.topbar-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 8px 16px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.topbar-call:hover {
  border-color: var(--sage);
  color: var(--sage-dark);
}
.call-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage);
  display: inline-block;
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 56px;
  max-width: 900px;
  margin: 0 auto;
}
.hero-inner {
  max-width: 900px;
}

.swatch-fan {
  display: flex;
  margin-bottom: 32px;
}
.swatch {
  width: 44px;
  height: 64px;
  border-radius: 3px;
  margin-right: -14px;
  box-shadow: 0 2px 6px rgba(43,42,40,0.12);
  transform: rotate(var(--r, 0deg));
  transition: transform 0.25s ease;
}
.swatch-fan:hover .swatch {
  transform: rotate(var(--r, 0deg)) translateY(-6px);
}
.s1 { background: var(--panel); --r: -8deg; }
.s2 { background: var(--brass-light); --r: -4deg; }
.s3 { background: var(--brass); --r: 0deg; z-index: 2;}
.s4 { background: var(--sage); --r: 4deg; }
.s5 { background: var(--sage-dark); --r: 8deg; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sage-dark);
  margin: 0 0 14px;
}
.eyebrow-light {
  color: var(--brass-light);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  max-width: 14ch;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 0 32px;
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: var(--radius);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}
.btn-primary {
  background: var(--sage-dark);
  color: #fff;
}
.btn-primary:hover {
  background: var(--sage);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(62, 74, 61, 0.28);
}
.btn-secondary {
  background: var(--brass);
  color: #241d10;
  margin-top: 8px;
}
.btn-secondary:hover {
  background: var(--brass-light);
  transform: translateY(-1px);
}

/* ---------- Article ---------- */
.article {
  padding: 8px 0 8px;
}
.article > p:first-child {
  font-size: 1.15rem;
  color: var(--ink);
}

.article h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  margin: 52px 0 16px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  position: relative;
}
.article h2::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--brass);
}
.article > h2:first-of-type {
  margin-top: 44px;
}

.article p {
  margin: 0 0 18px;
  color: var(--ink);
}

.article a {
  color: var(--sage-dark);
  text-decoration: underline;
  text-decoration-color: var(--brass);
  text-underline-offset: 3px;
  font-weight: 600;
}
.article a:hover {
  color: var(--brass);
}

/* ---------- Related services ---------- */
.related {
  margin-top: 48px;
}
.related-card {
  background: var(--panel);
  border-radius: 8px;
  padding: 28px 28px;
}
.related-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--sage-dark);
  margin: 0 0 14px;
}
.related-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.related-list a {
  display: inline-block;
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.related-list a:hover {
  border-color: var(--sage);
  color: var(--sage-dark);
}

/* ---------- Contact ---------- */
.contact {
  background: var(--sage-dark);
  color: #F4F0E6;
  margin-top: 72px;
  padding: 64px 0;
}
.contact-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}
.contact-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 14px;
  color: #fff;
}
.contact-text {
  color: rgba(244, 240, 230, 0.82);
  max-width: 42ch;
  margin: 0;
}
.contact-card {
  background: rgba(250, 247, 241, 0.06);
  border: 1px solid rgba(250, 247, 241, 0.18);
  border-radius: 8px;
  padding: 28px;
}
.contact-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(250, 247, 241, 0.14);
}
.contact-row:first-child {
  padding-top: 0;
}
.contact-label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brass-light);
}
.contact-row a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
}
.contact-row span:not(.contact-label) {
  color: #fff;
  font-weight: 500;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 40px 0 56px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  max-width: 900px;
}
.footer-brand {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0 0 4px;
}
.footer-address {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}
.footer-links a:hover {
  color: var(--sage-dark);
}
.footer-copy {
  width: 100%;
  margin: 8px 0 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .hero { padding: 48px 0 40px; }
  .contact-inner {
    grid-template-columns: 1fr;
  }
  .contact { padding: 48px 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .swatch { width: 34px; height: 50px; }
  .btn { width: 100%; text-align: center; }
}
