/* ============================================================
   Laji Rugs — site styles
   Brand terracotta pulled from the logo: #b8743d
   ============================================================ */

:root {
  --terra: #b8743d;
  --terra-dark: #8f5527;
  --terra-deep: #6e3f1c;
  --ink: #2b241c;
  --ink-soft: #5c5245;
  --cream: #faf6ef;
  --cream-2: #f3ecdf;
  --card: #ffffff;
  --line: #e6dccb;
  --gold: #c9a227;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(43, 36, 28, 0.08);
  --shadow-lg: 0 24px 60px rgba(43, 36, 28, 0.16);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Hanken Grotesk", -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, .display { font-family: var(--font-display); font-weight: 550; letter-spacing: -0.01em; }

.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--terra-dark);
  margin-bottom: 14px;
}

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.wordmark { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.wordmark img { width: 40px; height: 40px; }
.wordmark .wm-text { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: 0.04em; }
.wordmark .wm-text em { font-style: normal; color: var(--terra-dark); }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a { text-decoration: none; font-size: 15px; font-weight: 600; color: var(--ink-soft); }
.nav-links a:hover { color: var(--terra-dark); }
.nav-cta {
  background: var(--terra); color: #fff !important;
  padding: 9px 18px; border-radius: 999px; font-weight: 700 !important;
}
.nav-cta:hover { background: var(--terra-dark); color: #fff !important; }
.nav-menu-btn { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-menu-btn span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* ============ HERO ============ */
.hero { padding: 72px 0 64px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5vw, 58px); line-height: 1.08; margin-bottom: 20px; }
.hero h1 em { font-style: italic; color: var(--terra-dark); }
.hero p.lede { font-size: 18px; color: var(--ink-soft); max-width: 480px; margin-bottom: 30px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 26px; border-radius: 999px; text-decoration: none;
  font-weight: 700; font-size: 15.5px; border: none; cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  font-family: var(--font-body);
}
.btn-primary { background: var(--terra); color: #fff; box-shadow: 0 6px 18px rgba(184, 116, 61, 0.35); }
.btn-primary:hover { background: var(--terra-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); background: #fff; }
.btn-ghost:hover { border-color: var(--terra); color: var(--terra-dark); }
.hero-stats { display: flex; gap: 36px; margin-top: 40px; }
.hero-stats .stat b { display: block; font-family: var(--font-display); font-size: 28px; color: var(--terra-deep); }
.hero-stats .stat span { font-size: 13.5px; color: var(--ink-soft); }

.hero-collage { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-collage .tile {
  border-radius: var(--radius); overflow: hidden; background: var(--cream-2);
  box-shadow: var(--shadow);
}
.hero-collage .tile img { width: 100%; height: 100%; object-fit: cover; }
.hero-collage .tile:nth-child(1) { grid-row: span 2; min-height: 380px; }
.hero-collage .tile:nth-child(2) { min-height: 183px; }
.hero-collage .tile:nth-child(3) { min-height: 183px; }

/* ============ TRUST STRIP ============ */
.trust { background: var(--terra-deep); color: #f6ead9; padding: 18px 0; }
.trust-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.trust span { font-size: 14.5px; font-weight: 600; display: flex; align-items: center; gap: 9px; }
.trust svg { flex: none; }

/* ============ SECTIONS ============ */
section { padding: 84px 0; }
.section-head { max-width: 620px; margin-bottom: 42px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 42px); margin-bottom: 12px; }
.section-head p { color: var(--ink-soft); font-size: 17px; }

/* ============ FILTERS ============ */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.chip {
  border: 1.5px solid var(--line); background: #fff; color: var(--ink-soft);
  padding: 8px 17px; border-radius: 999px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all 0.15s ease; font-family: var(--font-body);
}
.chip:hover { border-color: var(--terra); color: var(--terra-dark); }
.chip.active { background: var(--terra); border-color: var(--terra); color: #fff; }
.filters-row2 { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.size-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.size-filters .chip { padding: 6px 14px; font-size: 13px; }
.count-note { font-size: 13.5px; color: var(--ink-soft); }

/* ============ GALLERY ============ */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .ph { position: relative; aspect-ratio: 3 / 4; background: var(--cream-2); overflow: hidden; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.card:hover .ph img { transform: scale(1.04); }
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px;
}
.badge-antique { background: rgba(43, 36, 28, 0.82); color: #f0e6d2; }
.badge-sold { background: #a33; color: #fff; left: auto; right: 12px; }
.card-body { padding: 16px 17px 18px; }
.card-body h3 { font-size: 17.5px; margin-bottom: 3px; }
.card-body .dims { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 10px; }
.price-row { display: flex; align-items: baseline; gap: 9px; }
.price { font-weight: 800; font-size: 17px; color: var(--terra-deep); }
.compare { font-size: 13.5px; color: #a89a86; text-decoration: line-through; }
.img-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background:
    repeating-linear-gradient(45deg, var(--cream-2) 0 12px, #ece2cf 12px 24px);
  color: var(--terra-dark); font-size: 13px; font-weight: 700; text-align: center; padding: 12px;
}
.show-more-row { text-align: center; margin-top: 38px; }

/* ============ MODAL ============ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(30, 24, 17, 0.6); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--cream); border-radius: 18px; max-width: 880px; width: 100%;
  max-height: 92vh; overflow-y: auto; position: relative; box-shadow: var(--shadow-lg);
}
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 5;
  width: 38px; height: 38px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(43, 36, 28, 0.75); color: #fff; font-size: 19px; line-height: 1;
}
.modal-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; }
.modal-photo { position: relative; background: var(--cream-2); min-height: 420px; }
.modal-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(250, 246, 239, 0.9); color: var(--ink); font-size: 18px; font-weight: 700;
}
.carousel-btn.prev { left: 12px; } .carousel-btn.next { right: 12px; }
.carousel-dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 7px; z-index: 4; }
.carousel-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.55); }
.carousel-dots i.on { background: var(--terra); }
.modal-info { padding: 40px 34px; }
.modal-info h3 { font-size: 27px; margin-bottom: 6px; }
.modal-info .dims { color: var(--ink-soft); margin-bottom: 16px; }
.modal-info .price-row { margin-bottom: 22px; }
.modal-info .price { font-size: 24px; }
.spec-list { list-style: none; margin-bottom: 26px; border-top: 1px solid var(--line); }
.spec-list li {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px;
}
.spec-list li b { color: var(--ink-soft); font-weight: 600; }
.modal-ctas { display: grid; gap: 10px; }
.modal-note { margin-top: 16px; font-size: 13px; color: var(--ink-soft); }

/* ============ STORY ============ */
.story { background: var(--cream-2); }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.story-grid p { color: var(--ink-soft); margin-bottom: 16px; font-size: 16.5px; }
.story-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/4.6; background: var(--cream); }
.story-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ============ AUTHENTICITY ============ */
.auth-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.auth-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px;
}
.auth-card .icon {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 18px;
  background: rgba(184, 116, 61, 0.12); color: var(--terra-dark);
  display: flex; align-items: center; justify-content: center;
}
.auth-card h3 { font-size: 19px; margin-bottom: 9px; }
.auth-card p { font-size: 14.5px; color: var(--ink-soft); }

/* ============ CONTACT ============ */
.contact { background: var(--terra-deep); color: #f6ead9; }
.contact .section-head h2, .contact .eyebrow { color: #fff; }
.contact .eyebrow { color: #e0b98c; }
.contact .section-head p { color: #e8d5ba; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-card {
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius); padding: 28px 24px; text-decoration: none; color: #f6ead9;
  transition: background 0.15s ease, transform 0.15s ease;
}
.contact-card:hover { background: rgba(255, 255, 255, 0.13); transform: translateY(-2px); }
.contact-card .icon { margin-bottom: 14px; color: #e0b98c; }
.contact-card h3 { font-size: 18px; margin-bottom: 5px; }
.contact-card p { font-size: 14px; color: #dcc4a4; }
.appointment-note {
  margin-top: 34px; padding: 20px 26px; border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06); border: 1px dashed rgba(255, 255, 255, 0.25);
  font-size: 15px; color: #ecd9bd;
}

/* ============ FOOTER ============ */
footer { background: #241b12; color: #b9a888; padding: 36px 0; }
.footer-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap;
  font-size: 13.5px;
}
.footer-inner .wordmark img { width: 30px; height: 30px; }
.footer-inner .wm-text { font-size: 17px; color: #e8d5ba; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .hero-grid, .story-grid { grid-template-columns: 1fr; gap: 40px; }
  .auth-grid, .contact-grid { grid-template-columns: 1fr 1fr; }
  .modal-grid { grid-template-columns: 1fr; }
  .modal-photo { min-height: 340px; aspect-ratio: 4/3; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav.open .nav-links {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 16px; padding: 20px 24px;
    background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav-menu-btn { display: block; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .auth-grid, .contact-grid { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
  .hero { padding: 48px 0; }
  .hero-stats { gap: 22px; }
  .trust-inner { justify-content: flex-start; }
}
