/* ============ Nick's Hardwood LLC — styles ============ */

:root {
  --bg: #FBF8F4;
  --surface: #FFFFFF;
  --ink: #221C15;
  --muted: #6B6156;
  --soft: #8A7B68;
  --line: #EFE7DC;
  --line-strong: #E2D7C8;
  --accent: #B4762F;
  --accent-hover: #98621F;
  --accent-link: #A66A28;
  --accent-tint: #F3E9DA;
  --accent-deep: #8A5A24;
  --gold: #E9A94C;
  --star: #D99A2B;
  --green: #5E7A4A;
  --dark: #221C15;
  --dark-2: #241A0F;
  --radius: 18px;
  --font-display: "Bricolage Grotesque", "Avenir Next", "Trebuchet MS", sans-serif;
  --font-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

a { color: var(--accent-link); text-decoration: none; }
a:hover { color: #7E4E1B; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.01em;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border: none;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(180, 118, 47, 0.28);
}
.btn-primary:hover { background: var(--accent-hover); color: #fff; }

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1.5px solid var(--line-strong);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent-deep); }

.btn-gold {
  background: var(--gold);
  color: var(--dark-2);
}
.btn-gold:hover { background: #F0B95F; color: var(--dark-2); }

.btn-lg { min-height: 52px; padding: 0 28px; font-size: 17px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 244, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.site-nav a {
  font-size: 15px;
  font-weight: 500;
  color: #55493B;
}
.site-nav a:hover { color: var(--accent-deep); }

.header-actions { display: flex; align-items: center; gap: 16px; }

.phone-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  white-space: nowrap;
}
.phone-link svg { color: var(--accent); }
.phone-link:hover { color: var(--accent-deep); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero { padding: 64px 0 72px; }

.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px;
  align-items: center;
}

.hero-copy { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 14px;
  background: var(--accent-tint);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent-deep);
}

.hero h1 {
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.06;
}

.hero-sub {
  margin: 0;
  font-size: 19px;
  color: var(--muted);
  max-width: 480px;
}

.hero-ctas { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.trust-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  font-weight: 500;
  color: #55493B;
}
.trust-row li { display: flex; align-items: center; gap: 7px; }
.ic-check { color: var(--green); flex: none; }
.ic-star { color: var(--star); flex: none; }

.hero-visual { position: relative; }
.hero-visual > img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 24px 48px rgba(88, 58, 24, 0.18);
}

.hero-review-card {
  position: absolute;
  left: -24px;
  bottom: 32px;
  width: 280px;
  margin: 0;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(34, 28, 21, 0.16);
}
.hero-review-card blockquote {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #3A3128;
}
.hero-review-card figcaption {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--soft);
}

.stars { display: flex; gap: 3px; color: var(--star); }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-white { background: var(--surface); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 36px;
}

.kicker {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-head h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 700; }

.section-lede {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
  max-width: 340px;
  text-align: right;
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.section:not(.section-white) .service-card { background: var(--surface); }

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--accent-tint);
  border-radius: 12px;
  color: var(--accent);
}

.service-card h3 { font-size: 19px; font-weight: 700; }
.service-card p { margin: 0; font-size: 14.5px; color: var(--muted); }

.services-footnote {
  margin: 28px 0 0;
  font-size: 14px;
  color: var(--soft);
  text-align: center;
}

/* ---------- Portfolio ---------- */
.filter-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }

.chip {
  min-height: 40px;
  padding: 0 18px;
  background: var(--surface);
  color: #55493B;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}
.chip:hover { border-color: var(--accent); color: var(--accent-deep); }
.chip.is-active {
  background: var(--dark);
  color: #fff;
  border-color: var(--dark);
  font-weight: 600;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.tile {
  position: relative;
  margin: 0;
  height: 260px;
  border-radius: var(--radius);
  overflow: hidden;
}
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.tile:hover img { transform: scale(1.04); }
.tile figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 40px 18px 14px;
  background: linear-gradient(180deg, rgba(24, 16, 8, 0) 0%, rgba(24, 16, 8, 0.62) 100%);
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
}
.tile.is-hidden { display: none; }

/* ---------- Reviews ---------- */
.toppro-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 9px 16px;
  background: var(--dark);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #EDB44A;
  white-space: nowrap;
}

.reviews-grid {
  display: grid;
  grid-template-columns: 300px repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
  margin-bottom: 36px;
}

.rating-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 28px 24px;
  background: var(--dark);
  border-radius: var(--radius);
  color: #fff;
}
.rating-number {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 52px;
  line-height: 1;
}
.stars-lg { gap: 4px; color: #EDB44A; }
.rating-meta { margin: 0; font-size: 14px; color: #C9BBA8; }

.review-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 26px 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.review-card blockquote {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: #3A3128;
}
.review-card figcaption {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  font-size: 12.5px;
  color: var(--soft);
}
.review-card figcaption strong { font-size: 13.5px; color: var(--ink); }

.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: none;
  background: #E8DAC4;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-deep);
}

.credentials-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.credentials-strip li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  background: #F5F1E9;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  color: #3A3128;
}
.credentials-strip svg { color: var(--green); flex: none; }

/* ---------- CTA band ---------- */
.cta-section { padding: 40px 0; }

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 44px 48px;
  border-radius: 24px;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0 2px, rgba(255, 255, 255, 0) 2px 64px),
    linear-gradient(140deg, #3A2B1B 0%, #241A0F 100%);
  color: #fff;
}
.cta-band h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; }
.cta-band p { margin: 10px 0 0; font-size: 16px; color: #CDBEA9; }

.cta-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.cta-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 16px;
  color: #fff;
  white-space: nowrap;
}
.cta-phone svg { color: var(--gold); }
.cta-phone:hover { color: var(--gold); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 32px;
  align-items: start;
}

.form-card {
  padding: 36px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(88, 58, 24, 0.06);
}
.form-card h2 { font-size: 28px; font-weight: 700; }
.form-lede { margin: 8px 0 20px; font-size: 15px; color: var(--muted); }

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field-label { font-size: 13.5px; font-weight: 600; color: #55493B; }
.field-label em { font-style: normal; font-weight: 400; color: var(--soft); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
}
.field textarea { resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
  border-color: var(--accent);
}
.field input.is-invalid { border-color: #B4482F; outline-color: #B4482F; }

.form-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--soft);
}
.form-note svg { color: var(--green); flex: none; }

.form-success {
  margin: 14px 0 0;
  padding: 12px 16px;
  background: #EFF4EA;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #45613A;
}

.contact-side { display: flex; flex-direction: column; gap: 18px; }

.info-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.info-card h3 { font-size: 20px; font-weight: 700; }
.info-card a,
.info-card p {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 15px;
  color: #3A3128;
}
.info-card a:hover { color: var(--accent-deep); }
.info-card svg { color: var(--accent); flex: none; }

.service-area-text { font-size: 14.5px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: #C9BBA8;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 28px;
  padding-bottom: 28px;
}
.site-footer .brand-name { font-size: 16px; color: #fff; }
.footer-nav { display: flex; align-items: center; gap: 28px; }
.footer-nav a { font-size: 14px; color: #C9BBA8; }
.footer-nav a:hover { color: #fff; }
.footer-legal { margin: 0; font-size: 13px; }

/* ---------- Mobile CTA bar ---------- */
.mobile-cta-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  display: none;
  gap: 10px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(34, 28, 21, 0.08);
}
.mobile-cta-bar .btn-secondary { flex: 0 0 auto; min-width: 110px; }
.mobile-cta-bar .btn-primary { flex: 1; }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(24, 16, 8, 0.55);
  overflow-y: auto;
}
.modal-backdrop[hidden] { display: none; }

.modal {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 36px 36px 28px;
  background: var(--surface);
  border-radius: 22px;
  box-shadow: 0 32px 80px rgba(20, 12, 4, 0.4);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #F5F1E9;
  border: none;
  border-radius: 999px;
  color: #55493B;
  cursor: pointer;
}
.modal-close:hover { background: var(--accent-tint); color: var(--accent-deep); }

.modal-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 40px;
  margin-bottom: 8px;
}
.modal-head h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.01em; }

.modal-lede { margin: 0 0 18px; font-size: 15px; color: var(--muted); }

.modal-reassure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--soft);
}
.modal-reassure li { display: flex; align-items: center; gap: 6px; }
.modal-reassure svg { color: var(--green); flex: none; }

body.modal-open { overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual > img { height: 380px; }
  .hero-review-card { left: 16px; bottom: -20px; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reviews-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .credentials-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .site-nav { display: none; }
  .phone-link span { display: none; }
}

@media (max-width: 980px) {
  .nav-toggle { display: flex; }
  .site-nav.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px rgba(34, 28, 21, 0.1);
  }
  .site-nav.is-open a {
    padding: 16px 24px;
    border-top: 1px solid var(--line);
    font-size: 16px;
  }
}

@media (max-width: 640px) {
  .section { padding: 48px 0; }
  .hero { padding: 40px 0 56px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 28px; }
  .section-lede { text-align: left; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .service-card { padding: 18px 16px; }
  .service-card h3 { font-size: 16px; }
  .service-card p { font-size: 13px; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .credentials-strip { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-card { padding: 24px 20px; }
  .cta-band { padding: 32px 24px; }
  .btn-header { display: none; }
  .mobile-cta-bar { display: flex; }
  body { padding-bottom: 76px; }
  .site-footer { padding-bottom: 8px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .hero-visual > img { height: 240px; }
  .hero-review-card { position: static; width: auto; margin-top: 14px; }
  .modal { padding: 26px 20px 22px; }
}
