/* Estay Furniture — shared styles */

:root {
  --charcoal: #1a1a1a;
  --charcoal-soft: #2b2b2b;
  --cream: #f6f3ee;
  --white: #ffffff;
  --wood: #a9713f;
  --wood-dark: #7c5128;
  --line: #e3ddd2;
  --text-muted: #6b665e;
  --max-width: 1200px;
  --radius: 2px;
  font-size: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26,26,26,0.96);
  color: var(--white);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.logo span { color: var(--wood); }
.logo-img {
  height: 42px;
  width: 42px;
  border-radius: 6px;
  background: var(--white);
  padding: 3px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  opacity: 0.85;
  transition: opacity .2s;
}
.nav-links a:hover, .nav-links a.active { opacity: 1; color: var(--wood); }

.nav-links a.btn-inquiry {
  background: var(--wood);
  color: var(--white);
  padding: 10px 20px;
  border-radius: var(--radius);
  opacity: 1;
}
.nav-links a.btn-inquiry:hover { background: var(--wood-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 840px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--charcoal);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }
  .nav-links.open { max-height: 400px; }
  .nav-links a {
    padding: 16px 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .nav-links a.btn-inquiry { border-radius: 0; text-align: center; }
}

/* Hero */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: var(--white);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,20,20,0.55), rgba(20,20,20,0.8));
}
.hero .container { position: relative; z-index: 1; }
.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  color: var(--wood);
  font-weight: 600;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  max-width: 780px;
  margin-bottom: 20px;
}
.hero p {
  max-width: 560px;
  font-size: 1.1rem;
  opacity: 0.92;
  margin-bottom: 32px;
}

.btn {
  display: inline-block;
  padding: 14px 30px;
  background: var(--wood);
  color: var(--white);
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
}
.btn:hover { background: var(--wood-dark); }
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--charcoal); }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* Page banner (non-home pages) */
.page-banner {
  position: relative;
  padding: 140px 0 60px;
  color: var(--white);
  background-size: cover;
  background-position: center;
}
.page-banner::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(20,20,20,0.68);
}
.page-banner .container { position: relative; z-index: 1; }
.page-banner h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.page-banner p { opacity: 0.9; margin-top: 10px; max-width: 600px; }

/* Stats strip */
.stats {
  background: var(--charcoal);
  color: var(--white);
  padding: 48px 0;
}
.stats .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stats .num {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--wood);
}
.stats .label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.75;
  margin-top: 4px;
}
@media (max-width: 700px) {
  .stats .container { grid-template-columns: repeat(2, 1fr); }
}

/* Sections */
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.section-tight { padding: 48px 0; }
.section-alt { background: var(--white); }
.section-dark { background: var(--charcoal); color: var(--white); }

.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--wood);
  font-weight: 700;
  margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.section-head p { color: var(--text-muted); margin-top: 12px; }
.section-dark .section-head p { color: rgba(255,255,255,0.75); }

.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Product grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 26px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,0.1); }
.card .thumb {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #ece7dc;
}
.card .thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s;
}
.card:hover .thumb img { transform: scale(1.06); }
.card .info { padding: 14px 16px; }
.card .info h3 { font-size: 1rem; }
.card .info .code { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }

.section-cta {
  text-align: center;
  margin-top: 48px;
}

/* Trusted-by strip */
.trusted {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 40px 0;
}
.trusted .label {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.trusted .names {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 18px;
}
.trusted .names span {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--charcoal);
  padding: 8px 22px;
  border: 1px solid var(--line);
}

/* Capability / feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}
.feature {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
}
.feature .icon { font-size: 1.8rem; margin-bottom: 14px; }
.feature h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature p { color: var(--text-muted); font-size: 0.94rem; }

/* Two column */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; }
}
.two-col img { border-radius: var(--radius); }

/* Category tabs */
.tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.tab-btn {
  padding: 10px 22px;
  border: 1px solid var(--line);
  background: var(--white);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: var(--radius);
}
.tab-btn.active { background: var(--charcoal); color: var(--white); border-color: var(--charcoal); }

/* Exhibition strip */
.exhibition-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.exhibition-grid img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover;
  cursor: pointer;
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(10,10,10,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%; max-height: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox .lb-close {
  position: absolute; top: 24px; right: 32px;
  color: var(--white); font-size: 2rem;
  background: none; border: none; cursor: pointer;
  line-height: 1;
}
.lightbox .lb-caption {
  position: absolute; bottom: 28px; left: 0; right: 0;
  text-align: center; color: rgba(255,255,255,0.85); font-size: 0.9rem;
}

/* Inquiry form */
.form-wrap {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 40px;
  max-width: 720px;
  margin: 0 auto;
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
}
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--cream);
  border-radius: var(--radius);
}
.form-row textarea { resize: vertical; min-height: 120px; }
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 600px) {
  .form-grid-2 { grid-template-columns: 1fr; }
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  margin-top: 48px;
  text-align: center;
}
.contact-info .item .label { color: var(--text-muted); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.contact-info .item .value { font-weight: 600; font-size: 1.05rem; }

.map-embed {
  max-width: 720px;
  margin: 40px auto 0;
  border: 1px solid var(--line);
  overflow: hidden;
}
.map-embed iframe { display: block; }

/* Footer */
.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
.footer-grid h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--wood); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* Utility */
.mt-lg { margin-top: 48px; }
.text-muted { color: var(--text-muted); }
