/* =========================================================
   EGO FINE FABRICS — Landing Page Styles
   Brand color extracted from logo: #323B96 (royal blue)
   Edit the variables below to re-theme the whole site.
   ========================================================= */

:root {
  --brand: #323B96;
  --brand-dark: #262e75;
  --brand-light: #4a54c4;
  --brand-tint: #eef0fb;
  --ink: #14172b;
  --muted: #5a5f7a;
  --line: #e6e7f0;
  --bg: #ffffff;
  --bg-soft: #f7f8fc;
  --radius: 16px;
  --shadow: 0 18px 50px -20px rgba(50, 59, 150, 0.35);
  --maxw: 1160px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
h1, h2, h3, h4, .brand-text { font-family: 'Poppins', sans-serif; }

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

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 600; font-size: 15px;
  padding: 14px 28px; border-radius: 999px;
  cursor: pointer; border: 2px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-ghost:hover { background: var(--brand-tint); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 34px; width: auto; }
.brand-text { font-weight: 700; font-size: 15px; letter-spacing: 2px; color: var(--brand); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--ink); transition: color .2s; }
.nav-links a:hover { color: var(--brand); }
.nav-cta {
  background: var(--brand); color: #fff !important;
  padding: 10px 22px; border-radius: 999px; font-weight: 600;
}
.nav-cta:hover { background: var(--brand-dark); }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span { width: 24px; height: 2px; background: var(--brand); border-radius: 2px; transition: .3s; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--bg-soft); }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(50,59,150,.12), transparent 60%),
    radial-gradient(700px 500px at 5% 110%, rgba(74,84,196,.10), transparent 60%);
}
.hero-inner {
  position: relative;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px;
  align-items: center; padding: 80px 24px 90px;
}
.hero h1 { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.08; font-weight: 800; letter-spacing: -1px; }
.hero h1 span { color: var(--brand); }
.hero-sub { font-size: 18px; color: var(--muted); margin: 22px 0 32px; max-width: 540px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 38px; margin-top: 46px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: 'Poppins'; font-size: 22px; color: var(--brand); }
.hero-stats span { font-size: 13px; color: var(--muted); }
.hero-visual img {
  border-radius: 22px; box-shadow: var(--shadow);
  width: 100%; height: 480px; object-fit: cover;
}

/* ---------- Trust bar ---------- */
.trust { background: var(--brand); color: #fff; }
.trust-inner { display: flex; align-items: center; gap: 30px; padding: 22px 24px; flex-wrap: wrap; justify-content: center; }
.trust > .container > span, .trust-inner > span { font-size: 13px; letter-spacing: 1px; text-transform: uppercase; opacity: .8; }
.trust-items { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.trust-items div {
  font-family: 'Poppins'; font-weight: 600; font-size: 15px;
  background: rgba(255,255,255,.12); padding: 8px 18px; border-radius: 999px;
}

/* ---------- Generic section ---------- */
.section { padding: 90px 0; }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 700; letter-spacing: -.5px; }
.section-head p { color: var(--muted); font-size: 17px; margin-top: 14px; }
.section-head.light h2, .section-head.light .eyebrow { color: #fff; }

/* ---------- Products ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .25s ease, box-shadow .25s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-img { height: 280px; overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .product-img img { transform: scale(1.06); }
.product-body { padding: 26px; }
.product-body h3 { font-size: 21px; margin-bottom: 8px; }
.product-body p { color: var(--muted); font-size: 15px; }
.spec { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.spec li { font-size: 12.5px; font-weight: 600; color: var(--brand); background: var(--brand-tint); padding: 6px 12px; border-radius: 999px; }

/* ---------- Quality ---------- */
.quality { background: var(--bg-soft); }
.quality-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.quality-visual img { border-radius: 22px; box-shadow: var(--shadow); height: 480px; width: 100%; object-fit: cover; }
.quality-content h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 700; margin-bottom: 16px; letter-spacing: -.5px; }
.quality-content > p { color: var(--muted); font-size: 17px; margin-bottom: 28px; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature-icon {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand); color: #fff; font-size: 15px; font-weight: 700;
  display: grid; place-items: center;
}
.feature strong { display: block; font-family: 'Poppins'; font-size: 15.5px; }
.feature span { font-size: 14px; color: var(--muted); }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step {
  position: relative; padding: 32px 26px; border-radius: var(--radius);
  background: var(--bg-soft); border: 1px solid var(--line);
}
.step-num { font-family: 'Poppins'; font-weight: 800; font-size: 34px; color: var(--brand); opacity: .25; }
.step h3 { font-size: 19px; margin: 8px 0 8px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* ---------- Why ---------- */
.why { background: var(--brand); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why-card {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius); padding: 30px 26px; color: #fff;
  transition: background .25s ease, transform .25s ease;
}
.why-card:hover { background: rgba(255,255,255,.14); transform: translateY(-4px); }
.why-ic { font-size: 30px; margin-bottom: 14px; }
.why-card h3 { font-size: 19px; margin-bottom: 8px; }
.why-card p { font-size: 14.5px; opacity: .85; }

/* ---------- Order / Form ---------- */
.order-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: start; }
.order-info h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 700; margin-bottom: 16px; letter-spacing: -.5px; }
.order-info > p { color: var(--muted); font-size: 17px; margin-bottom: 28px; }
.contact-list { list-style: none; display: grid; gap: 18px; }
.contact-list li { display: flex; flex-direction: column; border-left: 3px solid var(--brand); padding-left: 16px; }
.contact-list strong { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.contact-list a, .contact-list span { font-family: 'Poppins'; font-weight: 600; font-size: 17px; color: var(--ink); }
.contact-list a:hover { color: var(--brand); }

.order-form {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 34px; box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; margin-bottom: 18px; }
.field label { font-size: 13.5px; font-weight: 600; margin-bottom: 7px; color: var(--ink); }
.field input, .field select, .field textarea {
  font-family: 'Inter', sans-serif; font-size: 15px;
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint);
}
.field textarea { resize: vertical; }
.form-note { margin-top: 14px; font-size: 14.5px; font-weight: 600; text-align: center; }
.form-note.success { color: #1a8a4a; }
.form-note.error { color: #c0392b; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cfd2e6; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding: 64px 24px 44px; }
.footer-logo { height: 36px; margin-bottom: 16px; }
.footer-brand p { font-size: 14.5px; max-width: 340px; opacity: .8; }
.footer-links h4, .footer-contact h4 { font-family: 'Poppins'; color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-links a, .footer-contact a, .footer-contact span { display: block; font-size: 14.5px; margin-bottom: 10px; opacity: .8; transition: opacity .2s, color .2s; }
.footer-links a:hover, .footer-contact a:hover { opacity: 1; color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; font-size: 13.5px; opacity: .7; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-visual img { height: 320px; }
  .quality-inner, .order-inner { grid-template-columns: 1fr; gap: 40px; }
  .product-grid, .steps, .why-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links {
    position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff;
    border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav-links.open { max-height: 360px; }
  .nav-links a { width: 100%; padding: 16px 24px; border-top: 1px solid var(--line); }
  .nav-cta { border-radius: 0; }
  .hamburger { display: flex; }
  .product-grid, .steps, .why-grid, .feature-list, .form-row, .footer-inner { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero-stats { gap: 24px; }
}
