/* ==========================================================================
   Agexs (Agraneeh Exim Services) — design system
   ========================================================================== */

:root {
  --ivory: #f7f2e7;
  --ivory-dark: #efe4cf;
  --paper: #fffdf8;
  --gold: #b8873a;
  --gold-dark: #96692a;
  --terracotta: #bd5a3d;
  --terracotta-dark: #9c4830;
  --charcoal: #2a2420;
  --brown: #6b5847;
  --brown-light: #8c7a68;
  --white: #ffffff;
  --line: rgba(42, 36, 32, 0.12);
  --shadow: 0 12px 32px rgba(42, 36, 32, 0.1);
  --shadow-sm: 0 4px 14px rgba(42, 36, 32, 0.08);
  --radius: 14px;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Satoshi", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--charcoal);
  background: var(--ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  text-wrap: balance;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--charcoal);
}

h1 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; color: var(--brown); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.9em;
}

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

section {
  padding: 88px 0;
}

section.tight { padding: 56px 0; }

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head p { margin: 0 auto; }

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--terracotta);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--terracotta-dark); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--line);
}
.btn-outline:hover { border-color: var(--charcoal); }

.btn-light {
  background: var(--white);
  color: var(--charcoal);
}
.btn-light:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }

/* ---- Header / Nav ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 242, 231, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--charcoal);
}

.logo .mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.logo-img {
  height: 44px;
  width: auto;
  display: block;
}

.logo .tagline-mini {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brown-light);
  margin-top: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--brown);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--charcoal);
  border-color: var(--gold);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---- Hero ---- */

.hero {
  position: relative;
  padding: 100px 0 90px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 85% 15%, rgba(184, 135, 58, 0.16), transparent 55%),
    radial-gradient(ellipse at 10% 90%, rgba(189, 90, 61, 0.14), transparent 55%),
    var(--ivory);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero h1 { margin-bottom: 0.4em; }

.hero .lede {
  font-size: 1.12rem;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 52px;
  flex-wrap: wrap;
}

.hero-stats div strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.7rem;
  color: var(--terracotta);
}

.hero-stats div span {
  font-size: 0.82rem;
  color: var(--brown-light);
}

.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background:
    linear-gradient(160deg, var(--gold) 0%, var(--terracotta) 55%, var(--gold-dark) 100%);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.09) 0px,
      rgba(255, 255, 255, 0.09) 2px,
      transparent 2px,
      transparent 14px
    ),
    repeating-linear-gradient(
      -45deg,
      rgba(42, 36, 32, 0.08) 0px,
      rgba(42, 36, 32, 0.08) 2px,
      transparent 2px,
      transparent 14px
    );
}

.hero-visual .weave-label {
  position: absolute;
  left: 24px;
  bottom: 24px;
  right: 24px;
  z-index: 2;
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

.hero-visual img,
.media-block img,
.product-swatch img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-visual.has-photo::before { display: none; }

.hero-visual.has-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(20, 16, 12, 0.65), rgba(20, 16, 12, 0) 55%);
}

/* ---- Logo strip ---- */

.strip {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.strip-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px 40px;
  color: var(--brown-light);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ---- Cards ---- */

.grid {
  display: grid;
  gap: 28px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--ivory-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--terracotta);
}

.card .icon svg { width: 24px; height: 24px; }

/* Product card */

.product-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.product-swatch {
  aspect-ratio: 4 / 3;
  position: relative;
}

.product-body { padding: 22px 24px 26px; }

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
}

.tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--ivory-dark);
  color: var(--brown);
}

/* Alternate section backgrounds */

.section-alt {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-dark {
  background: var(--charcoal);
  color: var(--ivory);
}
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(247, 242, 231, 0.72); }

/* ---- Two column feature ---- */

.feature-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.feature-split.reverse { direction: rtl; }
.feature-split.reverse > * { direction: ltr; }

.media-block {
  aspect-ratio: 5 / 4;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--ivory-dark), var(--gold) 130%);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.media-block.terracotta { background: linear-gradient(135deg, #e7c9a9, var(--terracotta) 140%); }
.media-block.charcoal { background: linear-gradient(135deg, #58493d, var(--charcoal) 140%); }
.media-block.portrait { aspect-ratio: 4 / 5; }
.media-block.portrait img { object-position: center top; }

/* ---- Founder quote ---- */

.founder-quote {
  border-left: 3px solid var(--gold);
  padding-left: 18px;
  margin: 24px 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--charcoal);
}

.founder-title {
  color: var(--gold-dark);
  font-weight: 600;
  margin: -8px 0 18px;
}

.check-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--brown);
}

.check-list svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--gold-dark);
  margin-top: 2px;
}

/* ---- Stats band ---- */

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stats-band strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--gold);
}
.stats-band span { font-size: 0.85rem; color: var(--brown-light); }
.section-dark .stats-band span { color: rgba(247,242,231,0.6); }

/* ---- Timeline / process ---- */

.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.process-list.cols-5 {
  grid-template-columns: repeat(5, 1fr);
}

.process-item {
  position: relative;
  padding-top: 46px;
}

.process-item::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--gold);
  display: block;
  margin-bottom: 12px;
}

/* ---- CTA band ---- */

.cta-band {
  border-radius: 24px;
  background: linear-gradient(120deg, var(--terracotta), var(--gold-dark));
  color: var(--white);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-band h2 { color: var(--white); margin-bottom: 0.3em; }
.cta-band p { color: rgba(255,255,255,0.85); margin: 0; }

/* ---- Forms ---- */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field.full { grid-column: 1 / -1; }

.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--charcoal);
}

.field input,
.field select,
.field textarea {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--charcoal);
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 135, 58, 0.18);
}

.form-note {
  font-size: 0.82rem;
  color: var(--brown-light);
  margin-top: 14px;
}

.form-status {
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 600;
  display: none;
}
.form-status.visible { display: block; }
.form-status.ok { color: #3f7d4d; }

/* ---- Contact info cards ---- */

.contact-info {
  display: grid;
  gap: 20px;
}

.contact-info .card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px;
}

.contact-info .card .icon { margin-bottom: 0; flex-shrink: 0; }
.contact-info .card h3 { margin-bottom: 4px; font-size: 1.05rem; }
.contact-info .card p { margin: 0; }

/* ---- Map placeholder ---- */

.map-block {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/8;
  border: 1px solid var(--line);
}

.map-block iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ---- Order form ---- */

.order-step { margin: 56px 0 28px; }
.order-step:first-of-type { margin-top: 0; }
.order-step h2 { margin-bottom: 6px; }

.category-select { grid-template-columns: repeat(5, 1fr); margin-bottom: 8px; }

.category-card {
  display: block;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  border: 2px solid var(--line);
  position: relative;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.category-card:hover { border-color: var(--gold); }

.category-card input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.category-card .product-swatch { aspect-ratio: 4 / 3; }

.category-card-body {
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.category-card-body h3 { margin: 0; font-size: 1rem; }

.category-card-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--line);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.category-card-check svg { width: 13px; height: 13px; }

.category-card.selected {
  border-color: var(--terracotta);
  box-shadow: var(--shadow-sm);
}
.category-card.selected .category-card-check {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: var(--white);
}

.order-category-fields {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin-top: 24px;
  background: var(--paper);
}

.order-category-fields h3 { margin-bottom: 18px; font-size: 1.1rem; }

.order-category-fields[hidden] { display: none; }

.order-note {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--brown-light);
  margin: 18px 0 0;
}
.order-note svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--gold-dark); }

/* ---- Order summary (payment page) ---- */

.summary-block { margin-bottom: 28px; }
.summary-block:last-child { margin-bottom: 0; }
.summary-block h3 {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 12px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.summary-row:last-child { border-bottom: none; }
.summary-row span { color: var(--brown-light); }
.summary-row strong { font-weight: 600; color: var(--charcoal); text-align: right; }

.payment-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 32px;
}

.empty-state {
  text-align: center;
  padding: 60px 24px;
}
.empty-state p { max-width: 420px; margin-left: auto; margin-right: auto; }

/* ---- Footer ---- */

.site-footer {
  background: var(--charcoal);
  color: rgba(247, 242, 231, 0.75);
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(247, 242, 231, 0.12);
}

.footer-grid h4 {
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-grid a:hover { color: var(--gold); }

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 14px;
}
.footer-logo .mark { width: 32px; height: 32px; }

.footer-logo-img {
  height: 36px;
  width: auto;
  display: block;
}

.social-row {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.social-row a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(247, 242, 231, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.social-row a:hover { background: var(--gold-dark); border-color: var(--gold-dark); }
.social-row svg { width: 16px; height: 16px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---- Page hero (inner pages) ---- */

.page-hero {
  padding: 64px 0 56px;
  background:
    radial-gradient(ellipse at 90% 0%, rgba(184, 135, 58, 0.15), transparent 55%),
    var(--ivory);
  border-bottom: 1px solid var(--line);
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--brown-light);
  margin-bottom: 14px;
}
.breadcrumb a:hover { color: var(--gold-dark); }

.page-hero h1 { max-width: 640px; }
.page-hero .lede { max-width: 600px; font-size: 1.08rem; }

/* ---- Utility ---- */

.center { text-align: center; }
.mt-0 { margin-top: 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 440px; }
  .feature-split,
  .feature-split.reverse { grid-template-columns: 1fr; direction: ltr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats-band { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .process-list.cols-5 { grid-template-columns: repeat(2, 1fr); }
  .category-select { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  .nav-links, .nav-cta .btn-outline { display: none; }
  .nav-toggle { display: block; }
  body.nav-open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--paper);
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
    gap: 16px;
  }
  section { padding: 60px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: center; padding: 40px 28px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .process-list { grid-template-columns: 1fr; }
  .process-list.cols-5 { grid-template-columns: 1fr; }
  .category-select { grid-template-columns: repeat(2, 1fr); }
}
