/*
Theme Name: Create Fashion Brand
Theme URI: https://createfashionbrands.com/
Author: Create Fashion Brand
Description: Clothing manufacturer site for Create Fashion Brand — luxury blanks and custom garments made in Pakistan.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.1
Text Domain: cfb
*/

:root {
  --ink: #676566;
  --ink-dark: #4c4c4c;
  --gold: #a99867;
  --gold-btn: #a89a79;
  --bar: #e1dcce;
  --bg: #f9f9f9;
  --white: #ffffff;
  --line: #e4e0d8;
  --soft: #f3f1ec;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, textarea, select { font-family: inherit; }
.wrap { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.wrap-wide { width: min(1280px, calc(100% - 40px)); margin: 0 auto; }

.topbar {
  background: var(--bar);
  text-align: center;
  padding: 9px 16px;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.topbar a { color: var(--ink); text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 28px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.logo img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; margin: 0 auto; }
.nav-item { position: relative; }
.nav-item > a {
  color: var(--ink);
  font-size: 15px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.15;
  padding: 6px 0;
}
.nav-item > a .n {
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-bottom: 3px;
}
.nav-item.gold > a { color: var(--gold); }
.sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  min-width: 240px;
  padding: 12px 0;
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
  border: 1px solid var(--line);
  z-index: 20;
}
.sub a {
  display: block;
  padding: 8px 18px;
  color: var(--ink);
  font-size: 14px;
  text-decoration: none;
}
.sub a:hover { background: var(--soft); color: var(--gold); text-decoration: none; }
.nav-item:hover .sub, .nav-item:focus-within .sub { display: block; }
.mega { min-width: 520px; display: none; padding: 16px 18px 18px; columns: 2; }
.nav-item:hover .mega, .nav-item:focus-within .mega { display: block; }
.mega a { break-inside: avoid; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.help-btn {
  background: var(--gold-btn);
  color: #fcfcfc;
  border-radius: 6px;
  padding: 9px 16px;
  font-size: 14px;
  text-decoration: none;
}
.help-btn:hover { text-decoration: none; filter: brightness(0.96); }
.cart-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  color: var(--ink);
  border-radius: 6px;
}
.burger {
  display: none;
  margin-left: auto;
  border: 1px solid var(--line);
  background: #fff;
  width: 42px; height: 42px;
  border-radius: 6px;
  cursor: pointer;
}
.burger span { display: block; height: 1.5px; background: var(--ink); margin: 5px 10px; }

.hero {
  min-height: calc(100vh - 118px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8vh 8vw 48px;
  background: #fff;
}
.hero h1 {
  margin: 0;
  font-size: clamp(42px, 5.6vw, 81px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--ink);
  max-width: 14ch;
}
.hero-sub {
  margin: 22px 0 0;
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 600;
  line-height: 1.25;
  max-width: 18ch;
  color: var(--ink);
}
.hero-note {
  margin: 18px 0 0;
  font-size: 16px;
  max-width: 46ch;
}
.hero-note a { font-style: italic; }
.fund {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 54px;
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.fund span {
  border: 1px solid var(--line);
  padding: 8px 10px;
  background: #fff;
}

.band {
  position: relative;
  min-height: 420px;
  color: #f5f5f5;
  display: grid;
  align-items: end;
  background: #2c2a29 center/cover no-repeat;
}
.band .shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,18,16,0.15), rgba(20,18,16,0.72));
}
.band .wrap { position: relative; padding: 64px 0; }
.band h2 { margin: 0 0 8px; font-size: clamp(28px, 3vw, 40px); font-weight: 700; line-height: 1.15; color: #f5f5f5; }
.band p { margin: 0; max-width: 46ch; color: #f3f3f3; }

.section { padding: 78px 0; }
.section h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.15;
}
.lead { max-width: 68ch; margin: 0 0 28px; }

.cards-3, .cards-4, .steps, .certs, .press, .news {
  display: grid;
  gap: 22px;
}
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card, .product, .step, .press article, .news article, .cat, .way {
  background: #fff;
  border: 1px solid var(--line);
}
.card img, .product img, .way img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.card .pad, .product .pad, .way .pad { padding: 18px 18px 22px; }
.card h3, .product h3, .way h3 { margin: 0 0 8px; font-size: 20px; font-weight: 600; color: var(--ink-dark); }
.kicker { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin: 0 0 8px; }
.moq { font-size: 14px; margin: 10px 0 0; }

.why { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: start; }
.steps { grid-template-columns: 1fr 1fr; }
.step { padding: 18px; }
.step strong { display: block; color: var(--gold); font-size: 13px; letter-spacing: 0.08em; }

.product .meta { font-size: 13px; margin: 0; }
.pill {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cat {
  padding: 18px 16px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}
.cat:hover { border-color: var(--gold); color: var(--gold); text-decoration: none; }

.ways { display: grid; gap: 28px; }
.way { display: grid; grid-template-columns: 280px 1fr; overflow: hidden; }
.way img { aspect-ratio: auto; height: 100%; object-fit: cover; }
.way .pad { padding: 28px; }
.way h3 { font-size: clamp(28px, 3vw, 40px); }
.check { margin: 10px 0 0; padding: 0; list-style: none; }
.check li { padding-left: 18px; position: relative; margin: 4px 0; }
.check li:before { content: "›"; position: absolute; left: 0; color: var(--gold); }

.icons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.icon {
  background: #fff;
  border: 1px solid var(--line);
  padding: 22px 16px;
  text-align: center;
}
.icon img { width: 72px; height: 72px; object-fit: contain; margin: 0 auto 12px; }
.icon h3 { margin: 0 0 6px; font-size: 16px; }

.certs { grid-template-columns: repeat(4, 1fr); align-items: center; }
.certs div {
  background: #fff;
  border: 1px solid var(--line);
  min-height: 110px;
  display: grid;
  place-items: center;
  padding: 12px;
  text-align: center;
  font-size: 13px;
}
.certs img { max-height: 64px; width: auto; margin: 0 auto 6px; }

.press { grid-template-columns: 1fr 1fr; }
.press article, .news article { padding: 22px; }
.press q { display: block; font-size: 18px; line-height: 1.45; }
.news { grid-template-columns: repeat(3, 1fr); }
.news h3 { margin: 8px 0; font-size: 20px; }
.news a { color: inherit; text-decoration: none; }
.news a:hover h3 { color: var(--gold); }

.page-hero { padding: 72px 0 20px; background: #fff; border-bottom: 1px solid var(--line); }
.page-hero h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 16ch;
}
.page-body { padding: 48px 0 80px; }
.prose { max-width: 760px; }
.prose h2 { font-size: 28px; margin: 28px 0 8px; }
.prose ul { padding-left: 18px; }
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); padding: 22px; }
label { display: block; font-size: 13px; margin: 12px 0 6px; }
input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  padding: 12px 12px;
  color: var(--ink-dark);
  border-radius: 4px;
}
textarea { min-height: 140px; resize: vertical; }
.btn {
  display: inline-block;
  margin-top: 16px;
  background: var(--gold-btn);
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 12px 18px;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { text-decoration: none; filter: brightness(0.97); }
.note { background: #eef6ee; border: 1px solid #cfe3cf; padding: 12px 14px; }
.hp { position: absolute; left: -9999px; }

.faq details { background: #fff; border: 1px solid var(--line); padding: 14px 16px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; }

.site-footer { background: #f3f1ec; color: var(--ink); padding: 56px 0 20px; margin-top: 20px; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 28px; }
.site-footer h3 { margin: 0 0 12px; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 6px 0; }
.legal { display: flex; flex-wrap: wrap; gap: 14px; border-top: 1px solid var(--line); margin-top: 28px; padding-top: 16px; font-size: 13px; }
.copy { font-size: 13px; margin-top: 10px; }

@media (max-width: 980px) {
  .burger { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 0 18px;
    border-bottom: 1px solid var(--line);
    gap: 0;
    margin: 0;
  }
  .nav.open { display: flex; }
  .nav-item > a { align-items: flex-start; padding: 12px 20px; }
  .sub, .mega {
    position: static;
    transform: none;
    display: block;
    box-shadow: none;
    border: 0;
    columns: 1;
    min-width: 0;
    padding: 0 10px 8px 28px;
  }
  .site-header { flex-wrap: wrap; }
  .cards-3, .cards-4, .cats, .icons, .certs, .news, .press, .why, .way, .split, .foot-grid, .steps {
    grid-template-columns: 1fr 1fr;
  }
  .way { grid-template-columns: 1fr; }
  .hero { padding: 48px 22px; min-height: auto; }
}
@media (max-width: 680px) {
  .cards-3, .cards-4, .cats, .icons, .certs, .news, .press, .why, .split, .foot-grid, .steps { grid-template-columns: 1fr; }
  .header-actions .help-btn span { display: none; }
  .wrap, .wrap-wide { width: min(100% - 32px, var(--max)); }
}
