/* ============================================
   Buying House — Textile Manufacturer Website
   Shared stylesheet
   ============================================ */

:root {
  --bg-dark: #111204;
  --cta-bg: #132911;
  --accent: #20fb8b;
  --accent-2: #1ffc8a;
  --text-muted: #ababb2;
  --card-dark: #1c1d10;
  --white: #ffffff;
  --off-white: #f7f7f7;
  --orange: #fb6f20;
  --radius-lg: 35px;
  --radius-md: 18px;
  --radius-sm: 8px;
  --max-width: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Outfit", "Segoe UI", Arial, sans-serif;
  background: var(--bg-dark);
  color: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

ul { list-style: none; margin: 0; padding: 0; }

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

h1, h2, h3, h4, p { margin: 0; }

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1.5px;
  font-size: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  padding: 15px 30px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #0d1a08; }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-md);
}
.btn-light {
  background: var(--white);
  color: #111;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 20px rgba(0,0,0,.12);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 20px 0;
}
.site-header.is-static { position: relative; background: var(--bg-dark); }

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 32px;
}

.logo img { height: 64px; width: auto; }

.nav-pill {
  flex: 1;
  max-width: 720px;
  background: rgba(255,255,255,0.15);
  border-radius: 40px;
  padding: 12px 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}
.nav-pill a {
  font-size: 16px;
  color: var(--white);
  white-space: nowrap;
}
.nav-pill a.active,
.nav-pill a:hover { color: var(--accent); }

.nav-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-icon svg { width: 24px; height: 24px; }

.nav-toggle { display: none; }

/* ---------- Hero (home) ---------- */
.hero-home {
  position: relative;
  min-height: 700px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 140px;
  padding-bottom: 80px;
}
.hero-home::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17,18,4,.55) 0%, rgba(17,18,4,.85) 100%);
}
.hero-home .hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1000px;
  padding: 0 20px;
}
.hero-home h1 {
  font-size: clamp(38px, 6vw, 76px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
  text-transform: capitalize;
}
.hero-home h1 em {
  font-style: italic;
  font-weight: 800;
  color: var(--accent);
}
.hero-home .btn { margin-top: 36px; }

/* ---------- Hero (interior pages) ---------- */
.hero-page {
  position: relative;
  min-height: 400px;
  background-size: cover;
  background-position: center;
  padding-top: 140px;
  padding-bottom: 60px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.hero-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(17,18,4,.6);
}
.hero-page .title-card {
  position: relative;
  z-index: 2;
  background: var(--white);
  color: #111;
  padding: 22px 48px;
  border-radius: 25px 25px 0 0;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
}

/* ---------- Brands strip (home) ---------- */
.brands-strip {
  background: #222;
  border-radius: 22px;
  padding: 32px 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.brands-strip img {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .9;
}
.brands-heading {
  text-align: center;
  margin-bottom: 28px;
}
.brands-heading .rule {
  display: inline-block;
  width: 50px;
  height: 2px;
  background: var(--accent);
  margin: 0 12px;
  vertical-align: middle;
}

/* ---------- Section spacing ---------- */
.section { padding: 90px 0; }
.section-tight { padding: 60px 0; }
.section-white { background: var(--white); color: #111204; }
.section-offwhite { background: var(--off-white); color: #111204; }
.section-tint { background: rgba(32,251,139,.08); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.section-head h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 700; letter-spacing: -1px; }
.section-head p { color: var(--text-muted); margin-top: 12px; font-size: 17px; }
.section-white .section-head p { color: #666; }

/* ---------- About / split content ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split img { border-radius: 16px; width: 100%; height: 480px; object-fit: cover; }
.split .tag {
  display: inline-block;
  background: var(--accent);
  color: #0d1a08;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 4px;
  margin-bottom: 20px;
}
.split h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 500; line-height: 1.2; margin-bottom: 18px; }
.split p { color: var(--text-muted); margin-bottom: 26px; }

/* ---------- Product grid (home masonry-ish) ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.product-grid figure {
  margin: 0;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 3/3.5;
}
.product-grid img { width: 100%; height: 100%; object-fit: cover; }
.product-grid figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: rgba(0,0,0,.55);
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
}

/* ---------- News / article cards ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.news-card {
  background: #1a1b0f;
  border: 1px solid rgba(32,251,139,.25);
  border-radius: 12px;
  overflow: hidden;
  transition: transform .2s ease;
}
.news-card:hover { transform: translateY(-4px); }
.news-card img { width: 100%; height: 190px; object-fit: cover; }
.news-card .body { padding: 22px; }
.news-card .cat { color: var(--accent); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.news-card h3 { font-size: 19px; font-weight: 700; margin: 10px 0; }
.news-card p { color: var(--text-muted); font-size: 15px; }

.load-more-wrap { text-align: center; margin-top: 50px; }

/* ---------- Licenses / logos strip ---------- */
.logo-cloud {
  background: rgba(32,251,139,.08);
  border-radius: 10px;
  padding: 60px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: center;
}
.logo-cloud img { max-height: 90px; width: auto; object-fit: contain; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--cta-bg);
  border-radius: var(--radius-lg);
  padding: 70px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner p.lead { color: var(--text-muted); margin-bottom: 20px; font-size: 17px; }
.cta-banner h2 {
  font-size: clamp(30px, 5vw, 58px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.5px;
  max-width: 780px;
  margin: 0 auto 34px;
  text-transform: capitalize;
}

/* ---------- Footer ---------- */
.site-footer { padding: 80px 0 30px; }
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-brand img { height: 90px; margin-bottom: 18px; }
.footer-brand p { color: var(--text-muted); max-width: 320px; }
.footer-col h4 { font-size: 15px; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); margin-bottom: 18px; }
.footer-contact li { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; color: var(--white); }
.footer-contact .ic {
  width: 20px; height: 20px; flex-shrink: 0; color: var(--accent);
}
.social-row { display: flex; gap: 14px; margin-top: 20px; }
.social-row a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
}
.social-row a:hover { background: var(--accent); color: #111; }
.social-row svg { width: 17px; height: 17px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 14px;
}
.footer-menu { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-menu a:hover { color: var(--accent); }

/* ---------- Misc content blocks ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 24px;
}
.step-item { text-align: center; }
.step-item img { border: 2px solid #111; border-radius: 8px; height: 120px; width: 100%; object-fit: cover; margin-bottom: 16px; }
.step-item span { font-weight: 500; letter-spacing: 1px; text-transform: uppercase; font-size: 15px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }

.stat-strip {
  display: flex;
  justify-content: space-around;
  text-align: center;
  flex-wrap: wrap;
  gap: 20px;
  background: var(--off-white);
  border-radius: 10px;
  padding: 24px;
}
.stat-strip div { color: var(--orange); font-weight: 600; }

table.spec-table { width: 100%; border-collapse: collapse; }
table.spec-table td { padding: 10px 0; border-bottom: 1px solid rgba(0,0,0,.08); font-size: 16px; }
table.spec-table td:first-child { color: #666; width: 45%; }

.contact-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 40px;
}
.contact-card {
  background: #f4f0ec;
  border-radius: 40px;
  padding: 50px 34px;
  color: #111;
}
.contact-card li { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; font-size: 17px; }
.contact-card .ic { width: 40px; height: 40px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-form { color: #111; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 26px; }
.form-field label { display: block; font-size: 15px; color: #333; margin-bottom: 10px; }
.form-field input, .form-field textarea {
  width: 100%; border: none; border-bottom: 1px solid #999; padding: 8px 0; font-size: 16px; background: transparent; font-family: inherit; color: #111;
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--accent); }
.form-field.full { grid-column: 1 / -1; }

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  align-items: center;
  border: 2px solid var(--accent);
  border-radius: 26px;
  padding: 20px 30px;
  margin-bottom: 50px;
}
.category-tabs a { font-weight: 600; color: #292f36; padding: 10px 20px; border-radius: 18px; }
.category-tabs a.active { background: var(--accent); color: #111; }

.gallery-masonry {
  columns: 2;
  column-gap: 20px;
}
.gallery-masonry img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 20px;
  break-inside: avoid;
}

.product-detail-grid { display: grid; grid-template-columns: 1fr 120px; gap: 20px; }
.product-detail-grid .main-img { grid-row: span 6; border-radius: 12px; overflow: hidden; height: 520px; }
.product-detail-grid .main-img img { width: 100%; height: 100%; object-fit: cover; }
.thumb { border-radius: 8px; overflow: hidden; height: 78px; cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

.spec-box { background: var(--off-white); border-radius: 10px; padding: 30px; margin-top: 30px; }
.spec-box h3 { font-size: 26px; margin-bottom: 18px; }

blockquote.testimonial {
  background: var(--white);
  color: #111;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  font-size: 15px;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .split, .two-col { grid-template-columns: 1fr; }
  .split img { height: 320px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .product-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-pill { display: none; }
  .nav-toggle {
    display: flex; width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255,255,255,.15); align-items: center; justify-content: center;
  }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .gallery-masonry { columns: 1; }
  .cta-banner { padding: 50px 20px; }
}
