/* ==========================================================================
   Franklin & Lennon Paint Co. — Design tokens
   ========================================================================== */

:root {
  --ink: #1D3A5F;
  --ink-dark: #14293F;
  --red: #C81D3E;
  --red-dark: #A11730;
  --cream: #F5F1E8;
  --cream-dim: #EFE9DB;
  --charcoal: #2B2926;
  --ochre: #E8B33D;
  --putty: #D9D2C2;
  --white: #FFFFFF;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --wrap: 1180px;
  --radius: 10px;

  --shadow-sm: 0 2px 8px rgba(20, 41, 63, 0.08);
  --shadow-md: 0 8px 28px rgba(20, 41, 63, 0.12);
}

/* ==========================================================================
   Reset
   ========================================================================== */

*, *::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(--cream);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, dl, dd, table { margin: 0; }
button { font: inherit; background: none; border: none; cursor: pointer; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--ochre);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.9rem;
  display: block;
}
.section-label--center { text-align: center; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
}
.section-title--center { text-align: center; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--red);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--white);
  transform: translateY(-2px);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 241, 232, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--putty);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  flex-shrink: 1;
  min-width: 0;
}
.wordmark-line {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
  white-space: nowrap;
}
.wordmark-sub {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--red);
  margin-top: 0.2rem;
}

.main-nav ul {
  display: flex;
  gap: 2rem;
}
.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--charcoal);
  transition: color 0.15s ease;
  position: relative;
}
.main-nav a:hover { color: var(--red); }

.header-cta { display: flex; }
.phone-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.15s ease, transform 0.15s ease;
}
.phone-chip:hover {
  background: var(--ink-dark);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--putty);
  background: var(--cream);
}
.mobile-nav.is-open { display: block; }
.mobile-nav ul {
  padding: 1rem 24px 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.mobile-nav a {
  display: block;
  padding: 0.75rem 0;
  font-weight: 600;
  border-bottom: 1px solid var(--putty);
}
.mobile-nav li:last-child a {
  border-bottom: none;
  color: var(--red);
}

/* ==========================================================================
   Hero — swatch deck signature
   ========================================================================== */

.hero {
  position: relative;
  padding: 4.5rem 0 5rem;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.chip-deck {
  position: relative;
  width: 100%;
  max-width: 640px;
  height: clamp(180px, 32vw, 260px);
  margin-bottom: 1.5rem;
}

.chip {
  position: absolute;
  bottom: 0;
  width: clamp(90px, 16vw, 130px);
  height: clamp(150px, 27vw, 220px);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  transform-origin: bottom center;
  opacity: 0;
  animation: chip-in 0.7s cubic-bezier(.2,.8,.2,1) forwards;
}

@keyframes chip-in {
  from { opacity: 0; transform: translateY(40px) rotate(var(--rot, 0deg)) scale(0.9); }
  to   { opacity: 1; transform: translateY(0) rotate(var(--rot, 0deg)) scale(1); }
}

.chip--ink   { left: 50%; margin-left: -220px; background: var(--ink);   --rot: -14deg; z-index: 1; animation-delay: 0.05s; }
.chip--red   { left: 50%; margin-left: -125px; background: var(--red);   --rot: -7deg;  z-index: 2; animation-delay: 0.15s; }
.chip--ochre { left: 50%; margin-left: -32px;  background: var(--ochre); --rot: 0deg;   z-index: 3; animation-delay: 0.25s; }
.chip--putty { left: 50%; margin-left: 62px;   background: var(--putty); --rot: 7deg;   z-index: 2; animation-delay: 0.35s; }
.chip--ink2  { left: 50%; margin-left: 155px;  background: var(--ink-dark); --rot: 14deg; z-index: 1; animation-delay: 0.45s; }

@media (prefers-reduced-motion: reduce) {
  .chip { opacity: 1; animation: none; transform: rotate(var(--rot, 0deg)); }
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.1rem;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 8vw, 4.6rem);
  line-height: 1.02;
  color: var(--ink);
  letter-spacing: -0.01em;
  max-width: 14ch;
}

.hero-copy {
  margin-top: 1.4rem;
  max-width: 46ch;
  font-size: 1.1rem;
  color: var(--charcoal);
}

.hero-actions {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ==========================================================================
   About
   ========================================================================== */

.about {
  background: var(--ink);
  color: var(--cream);
  padding: 4.5rem 0;
}

.about-inner {
  display: grid;
  gap: 3rem;
}

.about .section-label { color: var(--ochre); }

.about-lede {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  font-weight: 400;
  line-height: 1.45;
  max-width: 62ch;
  color: var(--white);
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  border-top: 1px solid rgba(245, 241, 232, 0.2);
  padding-top: 2rem;
}

.stat dt {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 0.4rem;
}

.stat dd {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 600;
  color: var(--white);
}

/* ==========================================================================
   What We Carry
   ========================================================================== */

.carry {
  padding: 5rem 0;
}

.carry .section-title { margin-bottom: 2.75rem; }

.carry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.carry-card {
  background: var(--white);
  border: 1px solid var(--putty);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.carry-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.carry-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--cream-dim);
  color: var(--ink);
  margin-bottom: 1.25rem;
}

.carry-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.6rem;
}

.carry-card p {
  font-size: 0.95rem;
  color: var(--charcoal);
  opacity: 0.85;
}

/* ==========================================================================
   Color of the Year callout
   ========================================================================== */

.coty {
  background: var(--cream-dim);
  border-top: 1px solid var(--putty);
  border-bottom: 1px solid var(--putty);
  padding: 3.5rem 0;
}

.coty-inner {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.coty-chips {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}
.coty-chip {
  width: 44px;
  height: 68px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}
.coty-chip--1 { background: var(--ochre); }
.coty-chip--2 { background: var(--red); }
.coty-chip--3 { background: var(--ink); }

.coty-text { flex: 1; min-width: 240px; }

.coty-copy {
  font-size: 1.05rem;
  max-width: 56ch;
}

/* ==========================================================================
   Visit
   ========================================================================== */

.visit {
  padding: 5rem 0;
}

.visit-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
}

.visit-block .section-title {
  margin-bottom: 1.6rem;
}

.contact-lines {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.contact-lines a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  color: var(--ink);
  width: fit-content;
  transition: color 0.15s ease;
}
.contact-lines a:hover { color: var(--red); }

.hours-block {
  background: var(--white);
  border: 1px solid var(--putty);
  border-radius: var(--radius);
  padding: 2rem;
  align-self: start;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.hours-table tr { border-bottom: 1px solid var(--cream-dim); }
.hours-table tr:last-child { border-bottom: none; }
.hours-table th,
.hours-table td {
  padding: 0.6rem 0;
  text-align: left;
  font-weight: 500;
}
.hours-table th { color: var(--charcoal); font-weight: 600; }
.hours-table td { text-align: right; color: var(--charcoal); opacity: 0.8; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--charcoal);
  color: var(--cream);
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-bottom: 1px solid rgba(245, 241, 232, 0.15);
  padding-bottom: 2rem;
}

.footer-brand .wordmark-line {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
}
.footer-brand p {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-top: 0.3rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a {
  font-size: 0.9rem;
  opacity: 0.8;
  transition: opacity 0.15s ease;
}
.footer-links a:hover { opacity: 1; color: var(--ochre); }

.footer-note {
  font-size: 0.8rem;
  opacity: 0.55;
  margin-top: 1.5rem;
  max-width: 60ch;
}
.footer-copyright {
  font-size: 0.8rem;
  opacity: 0.55;
  margin-top: 0.5rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 860px) {
  .main-nav,
  .header-cta { display: none; }
  .nav-toggle { display: flex; }

  .about-inner { gap: 2rem; }
  .stat-strip { grid-template-columns: 1fr; gap: 1.2rem; }

  .visit-inner { grid-template-columns: 1fr; }

  .coty-inner { text-align: left; }
}

@media (max-width: 480px) {
  .hero { padding: 3rem 0 3.5rem; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }

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

  .footer-inner { flex-direction: column; align-items: flex-start; }
}
