/* =========================================================================
   Saifee Hardware & Garden — Beautify NYC redesign
   Utilitarian warmth: hardware-store bin labels + garden-store softness.
   Palette from the logo (cream on espresso). Roboto Slab / Inter.
   ========================================================================= */

/* ---------- Tokens ---------- */
:root {
  --ink:        #3B2A21;   /* logo espresso — headers, text, footer */
  --ink-deep:   #2C1F18;   /* derived darker ink for footer depth */
  --paper:      #F4EEE3;   /* warm cream page background */
  --paper-card: #FBF7EF;   /* derived lighter card fill */
  --hardware:   #C8542B;   /* rust-orange accent */
  --hardware-dk:#A8401D;   /* derived darker orange for AA text on paper */
  --garden:     #5B7A52;   /* moss/fern green accent */
  --garden-dk:  #47613F;   /* derived darker green for AA text */
  --border:     #D9CFBC;   /* soft warm tan rules/dividers */
  --ink-70:     rgba(59, 42, 33, 0.70);  /* 4.86:1 on paper — AA */
  --ink-55:     rgba(59, 42, 33, 0.68);  /* 4.60:1 on paper — AA (small labels) */

  --font-display: "Roboto Slab", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --wrap: 1160px;
  --gutter: clamp(1.25rem, 5vw, 4rem);

  --radius: 3px;
  --shadow-card: 0 1px 0 var(--border), 0 10px 24px -18px rgba(44, 31, 24, 0.5);
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

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

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

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

a { color: inherit; }

h1, h2, h3 { margin: 0; font-family: var(--font-display); line-height: 1.08; }

p { margin: 0; }

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

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

.num, .link-num, .btn-phone-num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: 0.01em;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 0; top: -100%;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1.25rem;
  z-index: 200;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

.muted { color: var(--ink-55); }

/* ---------- Bin-label tag (the signature device) ---------- */
.tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.34rem 0.7rem 0.3rem;
  border: 1.5px solid currentColor;
  border-radius: var(--radius);
  line-height: 1;
}
.tag-orange { color: var(--hardware-dk); border-color: var(--hardware); }
.tag-ink    { color: var(--ink); }
.section-tag { margin-bottom: 1.1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.7rem 1.35rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.18s var(--ease),
              color 0.18s var(--ease),
              transform 0.18s var(--ease);
}
.btn-solid {
  background: var(--hardware-dk);   /* white-on-orange 6.15:1 — AA */
  color: #fff;
  border-color: var(--hardware-dk);
}
.btn-solid:hover { background: #8f3416; border-color: #8f3416; }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--paper); }

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

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 3px solid var(--hardware);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 66px;
  padding-block: 0.55rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--paper);
}
.brand-mark {
  height: 46px;
  width: auto;
  border-radius: 2px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.28rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.brand-sub {
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 238, 227, 0.72);
  margin-top: 2px;
}

.site-nav { display: flex; align-items: center; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--paper);
  border: 1.5px solid rgba(244, 238, 227, 0.4);
  border-radius: var(--radius);
  padding: 0.55rem 0.8rem;
  min-height: 44px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.nav-toggle-bars {
  position: relative;
  width: 18px; height: 2px;
  background: currentColor;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px; height: 2px;
  background: currentColor;
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after  { top: 6px; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.nav-menu a {
  text-decoration: none;
  color: var(--paper);
  font-weight: 500;
  font-size: 0.98rem;
}
.nav-menu > li > a:not(.btn) { position: relative; padding-block: 0.25rem; }
.nav-menu > li > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--hardware);
  transition: width 0.2s var(--ease);
}
.nav-menu > li > a:not(.btn):hover::after,
.nav-menu > li > a:not(.btn):focus-visible::after { width: 100%; }

.btn-phone {
  background: var(--hardware-dk);   /* white text 6.15:1 — AA */
  color: #fff;
  flex-direction: column;
  gap: 0;
  line-height: 1.1;
  padding: 0.4rem 0.95rem;
}
.btn-phone:hover { background: #8f3416; }
.btn-phone-label {
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.9;
}
.btn-phone-num { font-size: 0.95rem; font-weight: 700; }

/* Mobile nav */
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink-deep);
    border-bottom: 3px solid var(--hardware);
    padding: 0.5rem var(--gutter) 1.25rem;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 0.28s var(--ease), visibility 0s linear 0.28s;
  }
  .nav-menu.open {
    max-height: 26rem;
    visibility: visible;
    transition: max-height 0.28s var(--ease);
  }
  .nav-menu > li { border-bottom: 1px solid rgba(244, 238, 227, 0.12); }
  .nav-menu > li:last-child { border-bottom: 0; padding-top: 0.9rem; }
  .nav-menu a:not(.btn) { display: block; padding: 0.9rem 0.2rem; font-size: 1.05rem; }
  .btn-phone { flex-direction: row; gap: 0.5rem; }
  .btn-phone-label { font-size: 0.72rem; }
}
@media (min-width: 821px) {
  .nav-toggle { display: none; }
  .nav-menu { max-height: none; visibility: visible; }
}

/* ---------- Hazard-stripe rule (used once, at hero top) ---------- */
.hazard-rule {
  height: 12px;
  background-image: repeating-linear-gradient(
    -45deg,
    var(--ink) 0, var(--ink) 12px,
    var(--hardware) 12px, var(--hardware) 24px
  );
  opacity: 0.9;
}

/* ---------- Hero ---------- */
.hero { background: var(--paper); }
.hero-inner {
  padding-top: clamp(2.75rem, 8vw, 5.5rem);
  padding-bottom: clamp(2.75rem, 8vw, 5.5rem);
  max-width: 60rem;
}
.hero-eyebrow { margin-bottom: 1.4rem; }
.hero-title {
  font-weight: 800;
  font-size: clamp(2.35rem, 8vw, 5rem);
  letter-spacing: -0.015em;
  color: var(--ink);
}
.hero-amp { color: var(--garden-dk); font-weight: 700; }
.hero-title-line {
  display: block;
  color: var(--hardware-dk);
  font-weight: 700;
  margin-top: 0.1em;
}
.hero-lede {
  margin-top: 1.5rem;
  max-width: 42rem;
  font-size: clamp(1.05rem, 2.4vw, 1.28rem);
  color: var(--ink-70);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.1rem;
}

/* ---------- Generic section ---------- */
.section {
  padding-block: clamp(3rem, 8vw, 5.5rem);
  border-top: 1px solid var(--border);
}
.section-title {
  font-weight: 700;
  font-size: clamp(1.8rem, 4.5vw, 2.85rem);
  letter-spacing: -0.01em;
  max-width: 20ch;
}
.section-intro {
  margin-top: 0.9rem;
  max-width: 46rem;
  color: var(--ink-70);
  font-size: 1.06rem;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  gap: 1.75rem 3rem;
  margin-top: 0.5rem;
}
.about-lead-line {
  font-weight: 700;
  font-size: clamp(1.5rem, 3.6vw, 2.3rem);
  letter-spacing: -0.01em;
  color: var(--ink);
  border-left: 4px solid var(--hardware);
  padding-left: 1.1rem;
}
.about-body p { margin-bottom: 1rem; color: var(--ink-70); font-size: 1.06rem; }
.about-body p:last-child { margin-bottom: 0; }

@media (min-width: 800px) {
  .about-grid { grid-template-columns: 1.05fr 1fr; align-items: start; }
}

.brands {
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px dashed var(--border);
}
.brands-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-55);
  margin-bottom: 0.9rem;
}
.brand-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.chip {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: var(--paper-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem 0.9rem;
}

/* ---------- Departments (bins) ---------- */
.departments { background: var(--paper); }
.dept-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2.25rem;
}
@media (min-width: 560px) {
  .dept-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .dept-grid { grid-template-columns: repeat(3, 1fr); }
}

.bin {
  position: relative;
  background: var(--paper-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem 1.4rem;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.bin:hover {
  transform: translateY(-3px);
  box-shadow: 0 1px 0 var(--border), 0 18px 30px -20px rgba(44, 31, 24, 0.55);
}
/* corner notch = bin-label color tag */
.bin-notch {
  position: absolute;
  top: 0; left: 0;
  width: 46px; height: 8px;
}
.bin-hw { --accent: var(--hardware); --accent-dk: var(--hardware-dk); }
.bin-gd { --accent: var(--garden);   --accent-dk: var(--garden-dk); }
.bin-notch { background: var(--accent); }
.bin-icon {
  width: 30px; height: 30px;
  color: var(--accent-dk);
  margin-bottom: 0.85rem;
}
.bin-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.16rem;
  letter-spacing: -0.005em;
  margin-bottom: 0.45rem;
}
.bin-list {
  font-size: 0.94rem;
  color: var(--ink-70);
  line-height: 1.5;
}

/* ---------- Services ---------- */
.services { background: var(--ink); color: var(--paper); border-top-color: var(--ink); }
.services .section-tag { color: #fff; border-color: var(--hardware); }
.services .section-title { color: var(--paper); }
.svc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  margin-top: 2.25rem;
}
@media (min-width: 720px) {
  .svc-grid { grid-template-columns: repeat(3, 1fr); }
}
.svc {
  border: 1px solid rgba(244, 238, 227, 0.18);
  border-top: 3px solid var(--hardware);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  background: rgba(244, 238, 227, 0.04);
}
.svc-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--hardware);
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.6rem;
}
.svc-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.32rem;
  color: var(--paper);
  margin-bottom: 0.55rem;
}
.svc-desc { color: rgba(244, 238, 227, 0.82); font-size: 1rem; }

/* ---------- Visit ---------- */
.visit { background: var(--paper); }
.visit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 860px) {
  .visit-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}
.visit-details {
  margin: 1.75rem 0 0;
  border-top: 1px solid var(--border);
}
.visit-row {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.visit-row dt {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-55);
  padding-top: 0.15rem;
}
.visit-row dd { margin: 0; }
.visit-row address { font-style: normal; line-height: 1.55; }
.link-num { color: var(--hardware-dk); font-weight: 600; text-decoration: none; }
.link-num:hover { text-decoration: underline; }

.social { margin-top: 1.9rem; }
.social-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-55);
  margin-bottom: 0.85rem;
}
.social-list { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--paper-card);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.social-link:hover { border-color: var(--hardware); background: #fff; }
.social-link img { width: 24px; height: 24px; border-radius: 4px; }
.social-glyph { width: 22px; height: 22px; color: var(--ink); }

.visit-map {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  min-height: 340px;
  background: var(--paper-card);
}
.visit-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink-deep);
  color: var(--paper);
  padding-top: clamp(2.5rem, 6vw, 3.75rem);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid rgba(244, 238, 227, 0.14);
}
@media (min-width: 760px) {
  .footer-inner { grid-template-columns: 1.4fr 1fr 1.4fr; align-items: start; }
}
.footer-mark { height: 58px; width: auto; border-radius: 3px; margin-bottom: 0.9rem; }
.footer-tagline { color: rgba(244, 238, 227, 0.72); font-size: 0.95rem; max-width: 22rem; }

.footer-nav ul { display: grid; gap: 0.65rem; }
.footer-nav a {
  text-decoration: none;
  color: rgba(244, 238, 227, 0.85);
  font-weight: 500;
}
.footer-nav a:hover { color: #fff; }

.footer-contact address {
  font-style: normal;
  line-height: 1.7;
  color: rgba(244, 238, 227, 0.85);
  font-size: 0.95rem;
}
.footer-contact .link-num { color: var(--paper); }
.footer-sep { margin-inline: 0.35rem; color: rgba(244, 238, 227, 0.5); }
.footer-social {
  display: flex;
  gap: 0.65rem;
  margin-top: 1.1rem;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid rgba(244, 238, 227, 0.22);
  border-radius: var(--radius);
  background: rgba(244, 238, 227, 0.06);
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.footer-social a:hover { background: rgba(244, 238, 227, 0.14); border-color: var(--hardware); }
.footer-social img { width: 22px; height: 22px; border-radius: 4px; }
.footer-social .social-glyph { color: var(--paper); width: 22px; height: 22px; }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  padding-block: 1.4rem;
  color: rgba(244, 238, 227, 0.6);
  font-size: 0.85rem;
}
.footer-legal p { margin: 0; }

/* ---------- Scroll reveal ----------
   Reveal is opt-in: the hidden state only applies once JS adds .js-on to
   <html>. With JS off, .reveal elements render fully visible. */
.js-on .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.js-on .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js-on .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .bin, .nav-menu { transition: none; }
}
