/* ===========================================================
   KARACHI FURNITURE HOUSE — Design Tokens
   Cream:        #F6F1E7
   Card cream:   #FBF8F2
   Walnut:       #4A3826  (headings)
   Taupe brown:  #8B6F52  (logo brown / accents)
   Taupe light:  #A9876A
   Flag green:   #1A7A4C
   Flag red:     #C8312E
   Display font: Playfair Display
   Body font:    Poppins
   =========================================================== */

:root {
  --cream: #F6F1E7;
  --cream-card: #FBF8F2;
  --cream-deep: #EFE7D8;
  --walnut: #4A3826;
  --walnut-soft: #6B5440;
  --taupe: #8B6F52;
  --taupe-light: #A9876A;
  --green: #1A7A4C;
  --red: #C8312E;
  --cream-rgb: 246, 241, 231;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Poppins', sans-serif;

  --shadow-soft: 0 10px 30px rgba(74, 56, 38, 0.08);
  --shadow-card: 0 6px 20px rgba(74, 56, 38, 0.07);
  --radius-lg: 18px;
  --radius-md: 12px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--walnut-soft);
  background-color: var(--cream);
  overflow-x: hidden;
  font-weight: 400;
  line-height: 1.7;
}

h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  color: var(--walnut);
  font-weight: 700;
}

a { text-decoration: none; }

::selection { background: var(--taupe-light); color: #fff; }

/* Focus visibility for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

/* ===================== UTILITY BITS ===================== */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--green);
  margin-bottom: 0.6rem;
}
.eyebrow.light { color: #C9A57B; }

.flag-dash { display: inline-block; width: 22px; height: 3px; border-radius: 2px; }
.flag-green { background: var(--green); }
.flag-red { background: var(--red); }

.section-title {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  margin-bottom: 1rem;
}
.section-title.light { color: #FBF8F2; }

.section-text {
  color: var(--walnut-soft);
  font-size: 1.02rem;
}
.section-text.light { color: #D9CDBD; }

.section { padding: 5.5rem 0; position: relative; }

/* ===================== TOP BAR ===================== */
.topbar {
  background: var(--walnut);
  color: #E7DCCB;
  font-size: 0.82rem;
  padding: 8px 0;
  letter-spacing: 0.02em;
}
.topbar-item i { color: var(--green); margin-right: 6px; }

/* ===================== NAVBAR ===================== */
.main-nav {
  background: rgba(246, 241, 231, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(139, 111, 82, 0.15);
  padding: 0.6rem 0;
  transition: all 0.3s ease;
}
.brand-icon { height: 46px; width: auto; transition: height 0.3s ease; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--walnut);
  letter-spacing: 0.03em;
}
.brand-sub {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 600;
}

.nav-link {
  color: var(--walnut-soft) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.9rem !important;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0.9rem; right: 0.9rem; bottom: 0.25rem;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.nav-link:hover { color: var(--walnut) !important; }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.active { color: var(--walnut) !important; font-weight: 600; }
.nav-link.active::after { transform: scaleX(1); }

.btn-cta {
  background: var(--green);
  border: none;
  color: #fff !important;
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  box-shadow: 0 6px 16px rgba(26, 122, 76, 0.25);
  transition: all 0.25s ease;
}
.btn-cta:hover { background: #145c3a; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(26, 122, 76, 0.32); color: #fff; }

.btn-cta-sm {
  background: var(--green);
  color: #fff !important;
  border: none;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.45rem 1.2rem;
  border-radius: 50px;
}
.btn-cta-sm:hover { background: #145c3a; }

.btn-outline-brand {
  border: 1.5px solid var(--taupe);
  color: var(--walnut) !important;
  font-weight: 600;
  padding: 0.58rem 1.4rem;
  border-radius: 50px;
  background: transparent;
  transition: all 0.25s ease;
}
.btn-outline-brand:hover { background: var(--taupe); color: #fff !important; }

.btn-whatsapp {
  background: #2EAE5C;
  border: none;
  color: #fff !important;
  font-weight: 600;
  border-radius: 50px;
  padding: 0.6rem 1.2rem;
}
.btn-whatsapp:hover { background: #258f4b; color: #fff !important; }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  background: linear-gradient(180deg, #FBF8F2 0%, var(--cream) 55%, var(--cream-deep) 100%);
  overflow: hidden;
}
.min-vh-90 { min-height: 80vh; }

.hero-ornament {
  position: absolute;
  width: 380px; height: 320px;
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
.hero-ornament-tl {
  top: -40px; left: -60px;
  background-image: url('corner_tl.png');
}
.hero-ornament-br {
  bottom: 0; right: -80px;
  background-image: url('corner_br.png');
  transform: scale(1.1);
}

.hero-title {
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  line-height: 1.15;
  margin-bottom: 1.2rem;
}
.hero-title em { font-style: italic; color: var(--green); }

.hero-lead {
  font-size: 1.12rem;
  color: var(--walnut-soft);
  max-width: 520px;
}

.hero-stats { max-width: 480px; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--taupe);
  line-height: 1;
}
.stat-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--walnut-soft);
  margin-top: 4px;
}

.hero-image-wrap {
  position: relative;
  z-index: 1;
}
.hero-logo-img {
  max-width: 92%;
  filter: drop-shadow(0 20px 35px rgba(74,56,38,0.18));
}

.hero-wave {
  position: relative;
  line-height: 0;
  margin-top: -2px;
}
.hero-wave svg { width: 100%; height: 60px; display: block; }
.hero-wave path { fill: var(--cream-card); }

/* ===================== PAGE BANNER (inner pages) ===================== */
.page-banner {
  position: relative;
  background: linear-gradient(180deg, #FBF8F2 0%, var(--cream) 60%, var(--cream-deep) 100%);
  padding: 3.6rem 0 3rem;
  overflow: hidden;
  text-align: center;
}
.page-banner .hero-ornament-tl { top: -60px; left: -80px; width: 300px; height: 250px; opacity: 0.45; }
.page-banner .hero-ornament-br { bottom: -60px; right: -80px; width: 300px; height: 250px; opacity: 0.45; }
.page-banner-content { position: relative; z-index: 1; }
.breadcrumb-trail {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--walnut-soft);
  margin-top: 0.8rem;
}
.breadcrumb-trail a { color: var(--green); font-weight: 500; }
.breadcrumb-trail a:hover { text-decoration: underline; }
.breadcrumb-trail .sep { color: var(--taupe-light); }
.page-banner .hero-wave { margin-top: 0; }

/* ===================== ORNAMENT STRIP (divider) ===================== */
.ornament-strip {
  height: 4px;
  width: 140px;
  margin: 0 auto 0;
  background: linear-gradient(90deg, var(--red), var(--cream-deep) 35%, var(--green) 65%, var(--cream-deep) 100%);
  border-radius: 4px;
  position: relative;
  top: -2px;
}

/* ===================== ABOUT ===================== */
.section-about { background: var(--cream-card); }

.mission-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--walnut);
  border-left: 3px solid var(--green);
  padding: 0.5rem 0 0.5rem 1.2rem;
  margin-top: 1.6rem;
  position: relative;
}
.mission-quote i { color: var(--taupe-light); font-size: 1.6rem; display: block; margin-bottom: 0.2rem; }

.value-card {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 1.6rem 1.4rem;
  height: 100%;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.value-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); }
.value-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--green), #2a9760);
  color: #fff;
  border-radius: 12px;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.value-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.value-card p { font-size: 0.9rem; color: var(--walnut-soft); margin: 0; }

.promise-card {
  background: var(--cream);
  border: 1px solid rgba(139,111,82,0.18);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  height: 100%;
}
.promise-card h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--walnut);
  margin-bottom: 0.5rem;
}
.promise-card h3 i { color: var(--red); margin-right: 8px; }
.promise-card p { font-size: 0.9rem; margin: 0; color: var(--walnut-soft); }

/* ===================== SERVICES ===================== */
.section-services { background: var(--cream); }

.service-card {
  background: var(--cream-card);
  border-radius: var(--radius-lg);
  padding: 2rem 1.7rem;
  height: 100%;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border-top: 3px solid transparent;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
  border-top-color: var(--green);
}
.service-icon {
  width: 58px; height: 58px;
  display: flex; align-items: center; justify-content: center;
  background: var(--cream-deep);
  color: var(--taupe);
  border-radius: 50%;
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
}
.service-card h3 { font-size: 1.12rem; margin-bottom: 0.6rem; }
.service-card p { font-size: 0.92rem; color: var(--walnut-soft); margin: 0; }
.service-card-cta {
  background: linear-gradient(135deg, var(--walnut), #5c4632);
  color: #EFE7D8;
}
.service-card-cta h3 { color: #fff; }
.service-card-cta p { color: #D9CDBD; }
.service-card-cta .service-icon { background: rgba(255,255,255,0.12); color: #C9A57B; }

/* ===================== PRODUCTS ===================== */
.section-products { background: var(--cream-card); }

.product-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.product-img-wrap {
  height: 210px;
  overflow: hidden;
}
.product-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.07); }
.product-body { padding: 1.4rem 1.3rem; }
.product-body h3 { font-size: 1.08rem; margin-bottom: 0.4rem; }
.product-body p { font-size: 0.9rem; color: var(--walnut-soft); margin: 0; }

.product-card-cta {
  background: linear-gradient(160deg, var(--green), #156142);
  display: flex;
}
.product-card-cta .product-body { color: #EAF4ED; }
.product-card-cta h3 { color: #fff; }
.product-card-cta p { color: #D7EBDE; }
.product-card-cta .btn-outline-brand {
  border-color: rgba(255,255,255,0.7);
  color: #fff !important;
}
.product-card-cta .btn-outline-brand:hover {
  background: #fff;
  color: var(--green) !important;
  border-color: #fff;
}
.cta-stars { font-size: 2rem; color: #C9A57B; margin-bottom: 0.4rem; }

/* ===================== WHY US ===================== */
.section-why { background: var(--cream); }

.why-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--cream-card);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  height: 100%;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease;
}
.why-item:hover { transform: translateY(-3px); }
.why-item i {
  font-size: 1.4rem;
  color: var(--red);
  background: rgba(200,49,46,0.08);
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  flex-shrink: 0;
}
.why-item h3 { font-size: 0.98rem; margin-bottom: 0.25rem; }
.why-item p { font-size: 0.86rem; color: var(--walnut-soft); margin: 0; }

/* ===================== TESTIMONIALS ===================== */
.section-testimonials { background: var(--cream-card); }

.testimonial-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  height: 100%;
  position: relative;
  box-shadow: var(--shadow-card);
}
.testimonial-quote-icon {
  font-size: 2.2rem;
  color: var(--cream-deep);
  position: absolute;
  top: 1.2rem; right: 1.5rem;
}
.testimonial-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--walnut);
  margin-bottom: 1.2rem;
}
.testimonial-stars { color: #D9A23B; font-size: 0.9rem; margin-bottom: 0.6rem; }
.testimonial-author { font-weight: 600; color: var(--taupe); font-size: 0.9rem; }

/* ===================== CONTACT ===================== */
.section-contact {
  background: linear-gradient(160deg, var(--walnut) 0%, #3a2c1e 100%);
  position: relative;
}
.section-contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('corner_br.png');
  background-position: top right;
  background-repeat: no-repeat;
  background-size: 340px;
  opacity: 0.07;
  pointer-events: none;
}

.contact-info-card, .contact-form-card {
  background: rgba(251, 248, 242, 0.97);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  height: 100%;
  box-shadow: var(--shadow-soft);
}
.contact-info-card h3, .contact-form-card h3 { font-size: 1.3rem; }

.contact-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.3rem;
  align-items: flex-start;
}
.contact-row i {
  font-size: 1.1rem;
  color: #fff;
  background: var(--green);
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}
.contact-row strong { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--taupe); }
.contact-row p { margin: 0.15rem 0 0; color: var(--walnut-soft); font-size: 0.95rem; }
.contact-row a { color: var(--walnut-soft); }
.contact-row a:hover { color: var(--green); }

.contact-form-card .form-label { font-weight: 500; font-size: 0.88rem; color: var(--walnut); }
.contact-form-card .form-control, .contact-form-card .form-select {
  background: #fff;
  border: 1px solid rgba(139,111,82,0.25);
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
  font-size: 0.95rem;
}
.contact-form-card .form-control:focus, .contact-form-card .form-select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(26,122,76,0.12);
}

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  filter: sepia(8%) saturate(92%);
}

/* ===================== FOOTER ===================== */
.site-footer {
  background: #2E2114;
  color: #C9BBA8;
  padding: 4rem 0 1.5rem;
  font-size: 0.92rem;
}
.footer-icon { height: 38px; width: auto; }
.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: #F0E6D6;
  letter-spacing: 0.02em;
}
.footer-brand small { color: #C9A57B; font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; font-family: var(--font-body); font-weight: 600; }
.footer-tagline { color: #A8967E; font-style: italic; font-family: var(--font-display); }
.site-footer h4 { color: #F0E6D6; font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.04em; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.7rem; line-height: 1.4; }
.footer-links a { color: #C9BBA8; }
.footer-links a:hover { color: #2EAE5C; }
.footer-socials a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  color: #C9BBA8;
  transition: all 0.2s ease;
}
.footer-socials a:hover { background: var(--green); color: #fff; }
.footer-divider { border-color: rgba(255,255,255,0.1); margin: 2rem 0 1.2rem; }
.footer-bottom { font-size: 0.82rem; color: #8E7E68; }

/* ===================== BACK TO TOP ===================== */
.back-to-top {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 46px; height: 46px;
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 999;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: #145c3a; color: #fff; }

/* ===================== SCROLL REVEAL ===================== */
[data-aos] { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
[data-aos].aos-in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-aos] { opacity: 1; transform: none; transition: none; }
  .service-card, .value-card, .product-card, .why-item, .back-to-top { transition: none; }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 991.98px) {
  .section { padding: 3.6rem 0; }
  .min-vh-90 { min-height: auto; padding-top: 1.5rem; }
  .navbar-collapse {
    background: var(--cream-card);
    margin-top: 0.8rem;
    border-radius: var(--radius-md);
    padding: 1rem 1.2rem;
    box-shadow: var(--shadow-card);
  }
  .nav-link::after { display: none; }
}

@media (max-width: 575.98px) {
  .hero-stats { text-align: center; }
  .stat-num { font-size: 1.5rem; }
  .brand-icon { height: 38px; }
  .brand-title { font-size: 1.05rem; }
}
