/* ==========================================================================
   PoshHaus Tile — Main Stylesheet
   Design system: Black & white base, antique gold accent
   Fonts: Manrope (display/headings) + Inter (body)
   ========================================================================== */

:root {
  --color-black: #0e0e0e;
  --color-charcoal: #1c1c1c;
  --color-white: #ffffff;
  --color-off-white: #f7f6f4;
  --color-stone: #e9e7e2;
  --color-gray: #6b6b6b;
  --color-gray-light: #9a9a9a;
  --color-gold: #b08d4f;
  --color-gold-light: #c9ab72;
  --color-gold-dark: #8a6d3a;

  --font-display: 'Manrope', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  --max-width: 1400px;
  --nav-height: 84px;

  --transition: 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-charcoal);
  background: var(--color-white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--color-black);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.7rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p { color: var(--color-gray); font-size: 1.02rem; }

a { color: inherit; text-decoration: none; }

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

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

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  display: inline-block;
  margin-bottom: 14px;
}

.section {
  padding: 88px 0;
}
.section--tight { padding: 56px 0; }
.section--dark {
  background: var(--color-black);
  color: var(--color-white);
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--color-white); }
.section--dark p { color: #b8b8b8; }
.section--stone { background: var(--color-off-white); }

/* Dark hero sections need explicit white headings — h1/h2/h3 default to black
   and are NOT automatically inherited white just because a parent is dark. */
.hero h1, .hero h2, .hero h3, .hero h4,
.page-hero h1, .page-hero h2, .page-hero h3, .page-hero h4 {
  color: var(--color-white);
}
.hero .eyebrow, .page-hero .eyebrow { color: var(--color-gold-light); }

.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  padding: 15px 30px;
  border-radius: 2px;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn--gold {
  background: var(--color-gold);
  color: var(--color-black);
}
.btn--gold:hover { background: var(--color-gold-dark); color: var(--color-white); }
.btn--dark {
  background: var(--color-black);
  color: var(--color-white);
}
.btn--dark:hover { background: var(--color-gold-dark); }
.btn--outline {
  background: transparent;
  border-color: currentColor;
}
.btn--outline:hover { background: var(--color-white); color: var(--color-black); }
.section--dark .btn--outline:hover { background: var(--color-white); color: var(--color-black); }
.btn--outline-dark { border-color: var(--color-black); color: var(--color-black); }
.btn--outline-dark:hover { background: var(--color-black); color: var(--color-white); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-stone);
}
.nav-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: nowrap;
}
.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: var(--color-black);
  white-space: nowrap;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-img { height: 40px; width: auto; display: block; flex-shrink: 0; }
.logo-badge {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  border: 1px solid var(--color-gold);
  border-radius: 3px;
  padding: 3px 8px;
  margin-left: 2px;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-block;
}
.footer-logo-img { height: 34px; width: auto; filter: invert(1) brightness(1.7); }
.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 1 1 auto;
  justify-content: center;
  flex-wrap: nowrap;
  min-width: 0;
}
.main-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
  color: var(--color-charcoal);
  padding: 8px 1px;
  position: relative;
  white-space: nowrap;
  flex-shrink: 0;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--color-gold);
  transition: width 0.25s ease;
}
.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--color-gold-dark); }

.nav-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; flex-wrap: nowrap; }
.call-btn {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-black);
  border: 1px solid var(--color-stone);
  padding: 10px 16px;
  border-radius: 30px;
  white-space: nowrap;
  transition: var(--transition);
  flex-shrink: 0;
}
.call-btn:hover { border-color: var(--color-gold); background: var(--color-off-white); }
.call-btn svg { width: 16px !important; height: 16px !important; flex-shrink: 0; stroke: var(--color-gold-dark); }
.call-btn .call-btn-num { display: inline; white-space: nowrap; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px; height: 24px;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span { display: block; height: 2px; background: var(--color-black); width: 100%; }

/* Material photo strip under nav */
.material-strip {
  display: flex;
  overflow-x: auto;
  border-bottom: 1px solid var(--color-stone);
  background: var(--color-off-white);
  scrollbar-width: none;
}
.material-strip::-webkit-scrollbar { display: none; }
.material-strip a {
  flex: 0 0 auto;
  width: 128px;
  text-align: center;
  padding: 12px 8px 14px;
  border-right: 1px solid var(--color-stone);
}
.material-strip a:first-child { border-left: 1px solid var(--color-stone); }
.material-tile-img {
  width: 100%;
  height: 64px;
  border-radius: 3px;
  object-fit: cover;
  margin-bottom: 8px;
  filter: saturate(0.9);
  transition: var(--transition);
}
.material-strip a:hover .material-tile-img { filter: saturate(1.1); transform: scale(1.03); }
.material-strip a span {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-charcoal);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  background: var(--color-black);
  color: var(--color-white);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.55;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(0,0,0,0.92) 20%, rgba(0,0,0,0.55) 65%, rgba(0,0,0,0.35) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 640px; }
.hero-content p.lead { color: #d7d7d7; font-size: 1.12rem; margin: 20px 0 32px; max-width: 540px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.page-hero {
  position: relative;
  padding: 150px 0 70px;
  background: var(--color-black);
  color: var(--color-white);
  overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.38;
}
.page-hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.75), rgba(0,0,0,0.92)); }
.page-hero .container { position: relative; z-index: 2; }
.breadcrumb {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-gold-light);
  margin-bottom: 16px;
  letter-spacing: 0.03em;
}
.breadcrumb a { color: var(--color-gold-light); }
.breadcrumb a:hover { text-decoration: underline; }
.page-hero p.lead { max-width: 620px; color: #c9c9c9; font-size: 1.08rem; margin-top: 16px; }

/* ---------- Grids / Cards ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--color-white);
  border: 1px solid var(--color-stone);
  border-radius: 4px;
  overflow: hidden;
  transition: var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,0.1); border-color: var(--color-gold-light); }
.card-img { width: 100%; height: 220px; object-fit: cover; }
.card-body { padding: 24px; }
.card-body h3 { margin-bottom: 8px; }
.card-body p { font-size: 0.95rem; margin-bottom: 14px; }
.card-link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-gold-dark);
}

/* Gallery grid (masonry-ish via simple grid) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gallery-grid img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 3px;
  cursor: pointer;
  transition: var(--transition);
}
.gallery-grid img:hover { transform: scale(1.02); box-shadow: 0 10px 30px rgba(0,0,0,0.18); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(10,10,10,0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: 4px; }
.lightbox-close {
  position: absolute; top: 24px; right: 32px;
  color: var(--color-white); font-size: 2rem; cursor: pointer;
  font-family: var(--font-display);
}

/* ---------- Stats / feature rows ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--color-gold);
}
.stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-gray-light);
  font-weight: 600;
  font-family: var(--font-display);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.two-col img { border-radius: 4px; width: 100%; height: 460px; object-fit: cover; }

/* Feature list */
.feature-list { list-style: none; margin-top: 20px; }
.feature-list li {
  padding-left: 30px;
  position: relative;
  margin-bottom: 14px;
  color: var(--color-charcoal);
  font-size: 1rem;
}
.feature-list li::before {
  content: '';
  position: absolute; left: 0; top: 8px;
  width: 14px; height: 2px;
  background: var(--color-gold);
}

/* Town / list chip grid */
.chip-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  border: 1px solid var(--color-stone);
  padding: 10px 20px;
  border-radius: 30px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  transition: var(--transition);
}
.chip:hover { background: var(--color-black); color: var(--color-white); border-color: var(--color-black); }

/* Brand logo strip */
.brand-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.brand-tile {
  border: 1px solid var(--color-stone);
  padding: 26px 16px;
  text-align: center;
  border-radius: 4px;
  transition: var(--transition);
}
.brand-tile:hover { border-color: var(--color-gold); background: var(--color-off-white); }
.brand-tile-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
}
.brand-tile-tag { font-size: 0.78rem; color: var(--color-gray-light); margin-top: 4px; }

/* CTA band */
.cta-band {
  background: var(--color-gold);
  color: var(--color-black);
  padding: 64px 0;
  text-align: center;
}
.cta-band h2 { color: var(--color-black); }
.cta-band p { color: #3a2f1c; font-size: 1.05rem; margin: 12px 0 30px; }

/* ---------- Quote / Contact form ---------- */
.form-card {
  background: var(--color-white);
  border: 1px solid var(--color-stone);
  border-radius: 6px;
  padding: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--color-stone);
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--color-off-white);
}
.form-group textarea { resize: vertical; min-height: 110px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-black);
  color: #cfcfcf;
  padding: 72px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-logo { font-family: var(--font-display); font-weight: 800; color: var(--color-white); font-size: 1.3rem; margin-bottom: 14px; }
.footer-logo span { color: var(--color-gold); }
.footer-col h5 {
  color: var(--color-white);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #b8b8b8; font-size: 0.92rem; transition: var(--transition); }
.footer-col a:hover { color: var(--color-gold-light); }
.footer-bottom {
  border-top: 1px solid #2b2b2b;
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: #8a8a8a;
}
.footer-bottom a { color: #8a8a8a; }
.footer-bottom a:hover { color: var(--color-gold-light); }

/* ---------- Pros / Cons ---------- */
.proscons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 20px;
}
.proscons-col {
  border-radius: 6px;
  padding: 28px;
}
.proscons-col.pros { background: #f4f8f4; border: 1px solid #d7e8d7; }
.proscons-col.cons { background: #faf4f0; border: 1px solid #ecdccf; }
.proscons-col h4 { margin-bottom: 14px; }
.proscons-col ul { list-style: none; }
.proscons-col li { padding-left: 24px; position: relative; margin-bottom: 12px; font-size: 0.95rem; color: var(--color-charcoal); }
.proscons-col.pros li::before { content: '+'; position: absolute; left: 0; color: #3f7d3f; font-weight: 800; }
.proscons-col.cons li::before { content: '\2212'; position: absolute; left: 0; color: #a15b3a; font-weight: 800; }

/* ---------- FAQ Accordion ---------- */
.faq-item {
  border-bottom: 1px solid var(--color-stone);
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 22px 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--color-black);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-question .faq-icon { font-size: 1.3rem; color: var(--color-gold-dark); flex-shrink: 0; transition: transform 0.25s ease; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer p { padding-bottom: 20px; font-size: 0.96rem; }
.faq-item.open .faq-answer { max-height: 400px; }

/* ---------- Blog ---------- */
.blog-card-img { height: 200px; }
.blog-meta {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  margin-bottom: 10px;
}
.blog-post-body h2 { margin-top: 40px; margin-bottom: 14px; }
.blog-post-body h3 { margin-top: 28px; margin-bottom: 10px; }
.blog-post-body p { margin-bottom: 16px; font-size: 1.02rem; }
.blog-post-body ul, .blog-post-body ol { margin: 0 0 16px 22px; color: var(--color-gray); }
.blog-post-body li { margin-bottom: 8px; }
.blog-post-hero-img { width: 100%; height: 380px; object-fit: cover; border-radius: 6px; margin-bottom: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .call-btn .call-btn-num { display: none; }
  .call-btn { padding: 10px 12px; border-radius: 50%; }
  .two-col { grid-template-columns: 1fr; }
  .two-col img { height: 320px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .brand-strip { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .proscons { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .section { padding: 60px 0; }
  .brand-strip { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 520px; }
  .nav-wrap { padding: 0 16px; gap: 10px; }
  .logo-badge { display: none; }
  .btn { padding: 13px 18px; font-size: 0.85rem; }
  .page-hero { padding: 130px 0 50px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .form-card { padding: 24px; }
}
@media (max-width: 400px) {
  .nav-actions .btn--dark { display: none; }
}
