/* ===== Saeed Furniture House — shared styles ===== */
:root {
  --wood: #6b3f21;
  --wood-dark: #4a2a14;
  --gold: #c9962c;
  --cream: #faf6f0;
  --ink: #2b2320;
  --muted: #756a62;
  --card: #ffffff;
  --shadow: 0 10px 30px rgba(43, 35, 32, 0.12);
  --radius: 14px;
  --wa-green: #25d366;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: linear-gradient(90deg, var(--wood-dark), var(--wood));
  box-shadow: 0 4px 18px rgba(0,0,0,.18);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: 1180px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .3px;
}
.brand .logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--wood-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  transition: transform .4s ease;
}
.site-header:hover .logo-mark { transform: rotate(12deg) scale(1.08); }

.nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
}
.nav-links a {
  position: relative;
  color: #f3e9da;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 8px;
  transition: color .25s ease, background .25s ease;
  cursor: pointer;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(255,255,255,0.08);
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: all .3s ease;
}

/* ===== Back button ===== */
.back-bar {
  background: #f1e7d8;
  border-bottom: 1px solid #e6d8c3;
}
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 10px 20px;
  padding: 9px 16px;
  background: #fff;
  border: 2px solid var(--wood);
  color: var(--wood-dark);
  font-weight: 700;
  border-radius: 999px;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, transform .2s ease;
}
.back-btn:hover {
  background: var(--wood);
  color: #fff;
  transform: translateX(-3px);
}
.back-btn:active { transform: translateX(-1px) scale(.97); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: #000;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("https://images.pexels.com/photos/189333/pexels-photo-189333.jpeg?auto=compress&cs=tinysrgb&w=1600");
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  animation: heroZoom 16s ease-in-out infinite alternate;
  filter: brightness(.55);
}
@keyframes heroZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1.18); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(74,42,20,.55), rgba(20,14,10,.75));
}
.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 20px;
  max-width: 780px;
}
.hero-content .eyebrow {
  display: inline-block;
  color: var(--gold);
  letter-spacing: 3px;
  font-weight: 700;
  font-size: .85rem;
  text-transform: uppercase;
  margin-bottom: 14px;
  opacity: 0;
  animation: fadeUp .8s ease forwards .1s;
}
.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin: 0 0 16px;
  opacity: 0;
  animation: fadeUp .9s ease forwards .3s;
}
.hero-content p {
  font-size: 1.1rem;
  color: #f1e7d8;
  margin: 0 0 28px;
  opacity: 0;
  animation: fadeUp .9s ease forwards .5s;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp .9s ease forwards .7s;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease;
}
.btn:active { transform: scale(.96); }
.btn-primary {
  background: var(--gold);
  color: var(--wood-dark);
  box-shadow: 0 8px 22px rgba(201,150,44,.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(201,150,44,.45); }
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.btn-outline:hover { background: #fff; color: var(--wood-dark); transform: translateY(-3px); }
.btn-dark {
  background: var(--wood);
  color: #fff;
}
.btn-dark:hover { background: var(--wood-dark); transform: translateY(-3px); }
.btn-wa {
  background: var(--wa-green);
  color: #fff;
}
.btn-wa:hover { background: #1ebe57; transform: translateY(-3px); }
.btn-block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* ===== Section basics ===== */
.section { padding: 70px 0; }
.section-tight { padding: 40px 0; }
.section-title {
  text-align: center;
  margin-bottom: 10px;
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  color: var(--wood-dark);
}
.section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 44px;
}
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ===== Product grid & cards ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.product-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .35s ease, box-shadow .35s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(43,35,32,.2);
}
.product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.product-card:hover .product-media img { transform: scale(1.08); }
.product-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--gold);
  color: var(--wood-dark);
  font-size: .72rem;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.product-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.product-body h3 { margin: 0; font-size: 1.08rem; color: var(--ink); }
.product-cat { color: var(--muted); font-size: .85rem; }
.product-price { color: var(--wood); font-weight: 800; font-size: 1.15rem; }
.product-desc { color: var(--muted); font-size: .9rem; flex: 1; }
.product-actions { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.product-actions .btn { padding: 10px 18px; font-size: .88rem; }

/* ===== Home featured strip ===== */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 34px;
}
.filter-btn {
  padding: 9px 18px;
  border-radius: 999px;
  border: 2px solid var(--wood);
  background: transparent;
  color: var(--wood-dark);
  font-weight: 700;
  cursor: pointer;
  transition: all .25s ease;
}
.filter-btn.active,
.filter-btn:hover {
  background: var(--wood);
  color: #fff;
}

/* ===== About / info blocks ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}
.about-grid img { border-radius: var(--radius); box-shadow: var(--shadow); }
.info-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  color: var(--muted);
}
.info-list .ic {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--wood);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}

/* ===== Forms ===== */
.form-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px;
  max-width: 720px;
  margin: 0 auto;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .9rem; color: var(--ink); }
.field small { color: var(--muted); font-size: .78rem; }
.field input,
.field select,
.field textarea {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid #e2d6c4;
  font-size: .95rem;
  font-family: inherit;
  background: #fffdfa;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--wood);
  box-shadow: 0 0 0 3px rgba(107,63,33,.14);
}
.field.invalid input,
.field.invalid select { border-color: #d64545; }
.error-msg { color: #d64545; font-size: .78rem; min-height: 14px; }
.form-actions { display: flex; gap: 14px; margin-top: 10px; flex-wrap: wrap; }
.form-note {
  background: #f1e7d8;
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--muted);
  font-size: .85rem;
  margin-bottom: 22px;
}
.success-box {
  display: none;
  background: #e8f8ee;
  border: 1.5px solid #34c471;
  color: #196b3d;
  padding: 16px 18px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-weight: 600;
}
.success-box.show { display: block; animation: fadeUp .5s ease; }

.order-summary {
  background: #f8f2e8;
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 22px;
  display: flex;
  gap: 14px;
  align-items: center;
}
.order-summary img { width: 74px; height: 74px; object-fit: cover; border-radius: 8px; }
.order-summary strong { color: var(--wood-dark); }

/* ===== Contact cards ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
  margin-bottom: 44px;
}
.contact-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 22px;
  text-align: center;
  transition: transform .3s ease;
}
.contact-card:hover { transform: translateY(-6px); }
.contact-card .ic {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--wood);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 14px;
}
.contact-card h3 { margin: 0 0 6px; }
.contact-card p { color: var(--muted); margin: 0 0 14px; word-break: break-word; }

/* ===== Footer ===== */
.site-footer {
  background: var(--wood-dark);
  color: #e7dccb;
  padding: 56px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 34px;
  padding-bottom: 34px;
}
.footer-grid h4 { color: #fff; margin: 0 0 16px; }
.footer-grid p, .footer-grid a { color: #cbb99d; font-size: .92rem; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { transition: color .2s ease, padding-left .2s ease; display: inline-block; }
.footer-links a:hover { color: var(--gold); padding-left: 4px; }
.footer-brand p { line-height: 1.7; }
.social-row { display: flex; gap: 10px; margin-top: 14px; }
.social-row a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  transition: background .25s ease, transform .25s ease;
}
.social-row a:hover { background: var(--gold); color: var(--wood-dark); transform: translateY(-3px); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  text-align: center;
  padding: 18px 0;
  font-size: .85rem;
  color: #b6a488;
}

/* ===== Floating WhatsApp button ===== */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 900;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--wa-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(37,211,102,.45);
  animation: waPulse 2.4s ease-in-out infinite;
  transition: transform .25s ease;
}
.wa-float:hover { transform: scale(1.1); }
.wa-float svg { width: 32px; height: 32px; }
@keyframes waPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,.5), 0 10px 24px rgba(37,211,102,.45); }
  50% { box-shadow: 0 0 0 14px rgba(37,211,102,0), 0 10px 24px rgba(37,211,102,.45); }
}

#terms, #privacy { scroll-margin-top: 90px; }

/* ===== Page banner (for inner pages) ===== */
.page-banner {
  background: linear-gradient(120deg, var(--wood-dark), var(--wood));
  color: #fff;
  text-align: center;
  padding: 54px 20px;
}
.page-banner h1 { margin: 0 0 8px; font-size: clamp(1.7rem, 4vw, 2.4rem); }
.page-banner p { color: #f1e7d8; margin: 0; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--wood-dark);
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    gap: 2px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
  }
  .nav-links.open { max-height: 400px; }
  .nav-toggle { display: flex; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .info-list li { text-align: left; }
}
