/* Haptor Barrett — Site Stylesheet
   ---------------------------------
   Design direction: sophisticated, gallery-like, heritage. Ivory background,
   serif display type, generous whitespace. Mobile-first.
*/

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1a1a1a;
  background: #faf8f4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ---------- Typography ---------- */
.font-display {
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  font-weight: 500;
  letter-spacing: 0.005em;
}
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  font-weight: 500;
  letter-spacing: 0.005em;
  margin: 0 0 0.6em;
  color: #1a1a1a;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); line-height: 1.1; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); line-height: 1.2; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.3; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-weight: 600;
  color: #8b6f47;
  margin-bottom: 1rem;
  font-family: 'Inter', sans-serif;
}
p { margin: 0 0 1.25em; }
.lead { font-size: 1.125rem; color: #4a4a4a; }

/* ---------- Layout ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container-narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
section { padding: 5rem 0; }
@media (max-width: 640px) { section { padding: 3rem 0; } }

/* ---------- Header ---------- */
.site-header {
  background: #faf8f4;
  border-bottom: 1px solid #e5e0d6;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo-tagline {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.625rem;
  letter-spacing: 0.25em;
  color: #8b6f47;
  text-transform: uppercase;
  margin-top: 2px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav a {
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4a4a4a;
  transition: color 0.15s ease;
}
.nav a:hover, .nav a.active { color: #1a1a1a; }
.nav-cta {
  background: #1a1a1a;
  color: #faf8f4 !important;
  padding: 0.625rem 1.25rem;
  border: 1px solid #1a1a1a;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-cta:hover { background: #8b6f47; border-color: #8b6f47; }
.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #1a1a1a;
  margin: 5px 0;
  transition: all 0.2s ease;
}
@media (max-width: 880px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0;
         background: #faf8f4; flex-direction: column; padding: 1.5rem;
         border-bottom: 1px solid #e5e0d6; gap: 1.25rem; align-items: flex-start; }
  .nav.open { display: flex; }
  .menu-toggle { display: block; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  font-size: 0.8125rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid #1a1a1a;
  background: #1a1a1a;
  color: #faf8f4;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: #8b6f47; border-color: #8b6f47; }
.btn-outline {
  background: transparent;
  color: #1a1a1a;
}
.btn-outline:hover { background: #1a1a1a; color: #faf8f4; }

/* ---------- Hero ---------- */
.hero {
  padding: 6rem 0 5rem;
  background: linear-gradient(180deg, #faf8f4 0%, #f3eee4 100%);
  text-align: center;
}
.hero .eyebrow { justify-content: center; }
.hero h1 { margin-bottom: 1.5rem; }
.hero .lead { max-width: 640px; margin: 0 auto 2.5rem; }
.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Audience split (homepage) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; gap: 2rem; }
}
.split-card {
  padding: 2.5rem;
  background: #ffffff;
  border: 1px solid #e5e0d6;
}
.split-card h3 { color: #1a1a1a; margin-bottom: 1rem; }
.split-card ul { padding-left: 1.25rem; margin: 0 0 1.5rem; }
.split-card li { margin-bottom: 0.5rem; color: #4a4a4a; }

/* ---------- Value props ---------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}
.value-item h3 {
  font-size: 1.25rem;
  color: #8b6f47;
  margin-bottom: 0.75rem;
}

/* ---------- Brands grid ---------- */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}
.brand-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: #ffffff;
  border: 1px solid #e5e0d6;
  min-height: 110px;
  text-align: center;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.125rem;
  letter-spacing: 0.04em;
  color: #1a1a1a;
  transition: border-color 0.15s ease, transform 0.15s ease;
  gap: 0.375rem;
}
.brand-card:hover { border-color: #8b6f47; }
a.brand-card { cursor: pointer; }
a.brand-card:hover { transform: translateY(-2px); }

/* ---------- Featured brands (homepage) ---------- */
.featured-brands {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}
.featured-brand {
  padding: 2rem 1.5rem;
  background: #ffffff;
  border: 1px solid #e5e0d6;
  text-align: center;
  transition: all 0.15s ease;
}
.featured-brand:hover { border-color: #8b6f47; }
.featured-brand h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.featured-brand p {
  font-size: 0.875rem;
  color: #5a5a5a;
  margin: 0;
}
.featured-brand a {
  display: block;
  margin-top: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8b6f47;
  font-weight: 600;
}

/* ---------- Testimonials ---------- */
.testimonials {
  background: #f3eee4;
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.testimonial {
  padding: 2rem;
  background: #ffffff;
  border-left: 3px solid #8b6f47;
}
.testimonial blockquote {
  margin: 0 0 1rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.125rem;
  font-style: italic;
  color: #1a1a1a;
  line-height: 1.5;
}
.testimonial cite {
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8b6f47;
  font-style: normal;
  font-weight: 600;
}

/* ---------- CTA strip ---------- */
.cta-strip {
  background: #1a1a1a;
  color: #faf8f4;
  text-align: center;
}
.cta-strip h2 { color: #faf8f4; }
.cta-strip .lead { color: #c9c2b3; }
.cta-strip .btn { background: #faf8f4; color: #1a1a1a; border-color: #faf8f4; }
.cta-strip .btn:hover { background: #8b6f47; color: #faf8f4; border-color: #8b6f47; }

/* ---------- Page header (interior pages) ---------- */
.page-header {
  padding: 4rem 0 2.5rem;
  border-bottom: 1px solid #e5e0d6;
  text-align: center;
}
.page-header h1 { margin-bottom: 0.5rem; }
.page-header p { color: #5a5a5a; max-width: 640px; margin: 0 auto; }

/* ---------- Forms ---------- */
form { display: grid; gap: 1.25rem; max-width: 560px; }
label {
  display: block;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: #4a4a4a;
  margin-bottom: 0.375rem;
}
input, textarea, select {
  width: 100%;
  padding: 0.75rem;
  font: inherit;
  font-size: 1rem;
  border: 1px solid #d4cdbf;
  background: #ffffff;
  color: #1a1a1a;
  border-radius: 0;
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid #8b6f47;
  outline-offset: -1px;
  border-color: #8b6f47;
}
textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- Info cards (contact / about) ---------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.info-item h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8b6f47;
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.info-item p { margin: 0; color: #1a1a1a; }

/* ---------- Footer ---------- */
.site-footer {
  background: #1a1a1a;
  color: #c9c2b3;
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand h3 {
  color: #faf8f4;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.footer-brand p { font-size: 0.875rem; color: #9a9384; }
.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #faf8f4;
  font-weight: 600;
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.625rem; font-size: 0.875rem; }
.footer-col a:hover { color: #faf8f4; }
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid #2d2d2d;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8125rem;
  color: #6e6757;
}
.footer-social { display: flex; gap: 1rem; }
.footer-social a:hover { color: #faf8f4; }

/* ---------- Brand-page specific ---------- */
.brand-hero {
  padding: 4rem 0 3rem;
  background: #f3eee4;
  text-align: center;
  border-bottom: 1px solid #e5e0d6;
}
.brand-hero .eyebrow { display: block; }
.brand-hero h1 { margin: 0 0 0.75rem; }
.brand-hero .tagline { font-size: 1.125rem; color: #5a5a5a; max-width: 640px; margin: 0 auto; }
.brand-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 880px) {
  .brand-content { grid-template-columns: 1fr; }
}
.brand-sidebar {
  background: #ffffff;
  border: 1px solid #e5e0d6;
  padding: 2rem;
  position: sticky;
  top: 100px;
}
.brand-sidebar h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8b6f47;
  margin-bottom: 1rem;
  font-weight: 600;
}
.brand-sidebar ul { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.brand-sidebar li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0ebe1;
  font-size: 0.9375rem;
}
.brand-sidebar li:last-child { border-bottom: none; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0 !important; }
.mt-2 { margin-top: 2rem; }
.divider { height: 1px; background: #e5e0d6; margin: 3rem 0; }

/* ---------- Showroom image grid (homepage) ---------- */
.showroom-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 880px) {
  .showroom-grid { grid-template-columns: 1fr 1fr; }
  .showroom-grid .showroom-feature { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .showroom-grid { grid-template-columns: 1fr; }
}
.showroom-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 3 / 4;
}
.showroom-grid .showroom-feature img { aspect-ratio: 4 / 5; }

/* Split image+text section */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 880px) {
  .feature-split { grid-template-columns: 1fr; gap: 2rem; }
}
.feature-split img {
  width: 100%;
  height: auto;
  display: block;
}

/* Brand-page hero image */
.brand-feature-img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
  margin: 0 0 2rem;
}

/* Inline content image (for About / brand pages) */
.content-img {
  width: 100%;
  height: auto;
  display: block;
  margin: 2rem 0;
}
.content-img-caption {
  font-size: 0.8125rem;
  color: #5a5a5a;
  text-align: center;
  margin-top: 0.5rem;
  font-style: italic;
}

/* Two-image row (Vanguard MIY pairing) */
.image-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
}
@media (max-width: 640px) { .image-pair { grid-template-columns: 1fr; } }
.image-pair img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4; }

/* ---------- Skip link (accessibility) ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #1a1a1a;
  color: #faf8f4;
  padding: 0.75rem 1rem;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

/* ---------- Homepage image slideshow ---------- */
.slideshow {
  position: relative;
  width: 100%;
  height: 520px;
  overflow: hidden;
  background: #1a1a1a;
}
@media (max-width: 768px) { .slideshow { height: 300px; } }

.slideshow .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
  pointer-events: none;
}
.slideshow .slide.active {
  opacity: 1;
  pointer-events: auto;
}
.slideshow .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slideshow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(26,26,26,0.45);
  color: #faf8f4;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s;
}
.slideshow-btn:hover { background: rgba(26,26,26,0.75); }
.slideshow-btn.prev { left: 1rem; }
.slideshow-btn.next { right: 1rem; }

.slideshow-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}
.slideshow-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(250,248,244,0.5);
  cursor: pointer;
  transition: background 0.2s;
}
.slideshow-dots .dot.active { background: #faf8f4; }

/* ---------- Brand card name / category stacking ---------- */
.brand-name {
  display: block;
  width: 100%;
}
.brand-card .category-tag {
  display: block;
  width: 100%;
  margin-top: 0.375rem;
}

/* ---------- Header wordmark next to logo ---------- */
.logo-wordmark {
  display: flex;
  flex-direction: column;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #1a1a1a;
  line-height: 1;
}
@media (max-width: 640px) { .logo-wordmark { display: none; } }
