/* ==========================================================================
   Mehrana Trade — Design System
   ========================================================================== */

:root {
  --forest: #1F3B2C;
  --forest-dark: #14251A;
  --charcoal: #1A1A18;
  --charcoal-70: rgba(26, 26, 24, 0.7);
  --charcoal-15: rgba(26, 26, 24, 0.12);
  --ivory: #F7F3EA;
  --ivory-2: #EFE9DC;
  --gold: #B08D42;
  --gold-light: #D4B571;
  --white: #FFFFFF;

  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-editorial: "Fraunces", Georgia, serif;

  --container: 1240px;
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 28px;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; line-height: 1.65; color: var(--charcoal-70); }

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

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--white);
  padding: 10px 16px; z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  padding: 14px 28px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
  white-space: nowrap;
}
.btn--gold { background: var(--gold); color: var(--white); }
.btn--gold:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ivory); border-color: rgba(247,243,234,0.4); }
.btn--ghost:hover { border-color: var(--ivory); transform: translateY(-2px); }
.btn--sm { padding: 10px 20px; font-size: 0.85rem; }
.btn--lg { padding: 16px 34px; font-size: 1rem; }
.btn--block { display: flex; width: 100%; }

/* --- Header / Nav --- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 243, 234, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--charcoal-15);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-weight: 800; font-size: 1.05rem; letter-spacing: 0.01em; }
.brand__tagline { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--charcoal-70); }
.brand__name--footer { color: var(--ivory); font-size: 1.3rem; display: block; margin-bottom: 10px; }

.main-nav { flex: 1; display: flex; justify-content: center; }
.main-nav ul { list-style: none; display: flex; gap: 32px; margin: 0; padding: 0; }
.main-nav a { font-weight: 600; font-size: 0.92rem; position: relative; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.main-nav a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; border: none; background: transparent; cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--charcoal); margin: 0 auto; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none; flex-direction: column; gap: 20px; padding: 24px;
  background: var(--ivory); border-top: 1px solid var(--charcoal-15);
}
.mobile-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.mobile-nav a { font-weight: 600; font-size: 1.05rem; }
.mobile-nav.is-open { display: flex; }

@media (max-width: 900px) {
  .main-nav, .main-nav__cta { display: none; }
  .nav-toggle { display: flex; }
}

/* --- Site messages --- */
.site-messages { padding-top: 20px; }
.site-message { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 12px; font-size: 0.9rem; }
.site-message--success { background: rgba(31,59,44,0.1); color: var(--forest); border: 1px solid rgba(31,59,44,0.25); }
.site-message--error { background: rgba(176,60,42,0.08); color: #8a2f1f; border: 1px solid rgba(176,60,42,0.25); }

/* --- Eyebrow / editorial type --- */
.eyebrow {
  display: inline-block; font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 700; color: var(--gold-light); margin-bottom: 16px;
}
.eyebrow--dark { color: var(--gold); }
.editorial-heading { font-family: var(--font-editorial); font-weight: 500; font-style: normal; font-size: clamp(2rem, 4vw, 2.8rem); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; overflow: hidden; color: var(--ivory);
  background: linear-gradient(160deg, var(--forest) 0%, var(--forest-dark) 100%);
  padding: 96px 0 88px;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__blob { position: absolute; top: -220px; right: -220px; width: 780px; height: 780px; opacity: 0.55; animation: floaty 16s ease-in-out infinite; }
.hero__grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  mix-blend-mode: overlay; pointer-events: none;
}
.hero__particle {
  position: absolute; border-radius: 50%; background: var(--gold-light); opacity: 0.5; filter: blur(1px);
  animation: floaty 10s ease-in-out infinite;
}
.hero__particle--1 { width: 8px; height: 8px; top: 22%; left: 12%; animation-delay: 0s; }
.hero__particle--2 { width: 5px; height: 5px; top: 60%; left: 22%; animation-delay: 2s; }
.hero__particle--3 { width: 6px; height: 6px; top: 40%; left: 6%; animation-delay: 4s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }

.hero__inner { position: relative; z-index: 1; max-width: 780px; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); margin-bottom: 0.4em; }
.hero__lede { color: rgba(247,243,234,0.82); font-size: 1.1rem; max-width: 560px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; margin: 32px 0 48px; }
.hero__markets { font-size: 0.85rem; color: rgba(247,243,234,0.7); display: flex; flex-direction: column; gap: 4px; }
.hero__markets strong { color: var(--gold-light); font-weight: 600; }

@media (max-width: 600px) {
  .hero { padding: 64px 0 56px; }
  .hero__blob { width: 520px; height: 520px; top: -160px; right: -180px; }
}

/* ==========================================================================
   Sections / grid layout
   ========================================================================== */
.section { padding: 96px 0; }
@media (max-width: 700px) { .section { padding: 64px 0; } }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head--light .eyebrow, .section-head--light h2 { color: var(--ivory); }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.section-head__lede { font-size: 1.05rem; }
.empty-state { color: var(--charcoal-70); font-style: italic; }

/* ==========================================================================
   Products
   ========================================================================== */
.products { background: var(--ivory); }
.product-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
@media (max-width: 980px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .product-grid { grid-template-columns: 1fr; } }

.product-card {
  background: var(--white); border-radius: var(--radius-md); overflow: hidden;
  box-shadow: 0 1px 2px rgba(26,26,24,0.06); transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(26,26,24,0.12); }
.product-card__media { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; background: var(--ivory-2); }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.product-card:hover .product-card__media img { transform: scale(1.06); }
.product-card__media--empty { background: linear-gradient(135deg, var(--ivory-2), var(--ivory)); }
.product-card__glow {
  position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(26,26,24,0.35) 100%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.product-card:hover .product-card__glow { opacity: 1; }
.product-card__body { padding: 24px; }
.product-card__body h3 { font-size: 1.15rem; margin-bottom: 8px; }
.product-card__body p { font-size: 0.92rem; margin-bottom: 14px; }

.link-arrow { font-weight: 700; font-size: 0.88rem; color: var(--gold); display: inline-flex; gap: 6px; align-items: center; }
.link-arrow span { transition: transform .3s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

/* ==========================================================================
   About split
   ========================================================================== */
.about-split__grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center;
}
@media (max-width: 860px) { .about-split__grid { grid-template-columns: 1fr; gap: 40px; } }
.about-split__media { position: relative; }
.about-split__frame { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5; }
.about-split__frame img { width: 100%; height: 100%; object-fit: cover; }
.about-split__accent { position: absolute; width: 130px; height: 130px; bottom: -30px; right: -30px; opacity: 0.5; }
@media (max-width: 860px) { .about-split__accent { display: none; } }
.about-split__content p { font-size: 1.02rem; }

/* ==========================================================================
   Why grid
   ========================================================================== */
.why {
  background: linear-gradient(160deg, var(--forest) 0%, var(--forest-dark) 100%);
  color: var(--ivory); position: relative; overflow: hidden;
}
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }
.why-card {
  background: rgba(247,243,234,0.05); border: 1px solid rgba(247,243,234,0.12);
  border-radius: var(--radius-md); padding: 32px 26px; transition: transform .4s var(--ease), background .4s var(--ease);
}
.why-card:hover { transform: translateY(-4px); background: rgba(247,243,234,0.08); }
.why-card h3 { color: var(--ivory); font-size: 1.05rem; }
.why-card p { color: rgba(247,243,234,0.65); font-size: 0.9rem; margin-bottom: 0; }
.why-card__icon {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-bottom: 20px; border-radius: 50%;
  background: rgba(212,181,113,0.12); transition: background .35s var(--ease), transform .35s var(--ease);
}
.why-card:hover .why-card__icon { background: rgba(212,181,113,0.2); transform: scale(1.06); }
.why-card__icon svg { width: 22px; height: 22px; }

/* ==========================================================================
   Markets
   ========================================================================== */
.markets__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .markets__grid { grid-template-columns: 1fr; gap: 36px; } }
.markets__list { list-style: none; margin: 24px 0 0; padding: 0; columns: 2; gap: 12px; }
.markets__list li { padding: 10px 0; border-bottom: 1px solid var(--charcoal-15); font-weight: 600; font-size: 0.95rem; break-inside: avoid; }
.markets__visual-frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1/1;
}
.markets__visual-frame img { width: 100%; height: 100%; object-fit: cover; }
.markets__visual-glow {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(31,59,44,0.15), transparent 55%);
  pointer-events: none;
}

/* ==========================================================================
   Process
   ========================================================================== */
.process { background: linear-gradient(160deg, var(--forest) 0%, var(--forest-dark) 100%); color: var(--ivory); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
@media (max-width: 900px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process-grid { grid-template-columns: 1fr; } }
.process-step { border-top: 1px solid rgba(247,243,234,0.2); padding-top: 20px; }
.process-step__num { font-family: var(--font-editorial); font-size: 2.4rem; color: var(--gold-light); display: block; margin-bottom: 12px; }
.process-step h3 { color: var(--ivory); font-size: 1.05rem; }
.process-step p { color: rgba(247,243,234,0.65); font-size: 0.9rem; margin-bottom: 0; }

/* ==========================================================================
   Inquiry / forms
   ========================================================================== */
.inquiry { background: var(--ivory-2); }
.inquiry__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; }
@media (max-width: 900px) { .inquiry__grid { grid-template-columns: 1fr; gap: 36px; } }
.inquiry__form-wrap { background: var(--white); border-radius: var(--radius-lg); padding: 40px; box-shadow: 0 1px 2px rgba(26,26,24,0.06); }
@media (max-width: 560px) { .inquiry__form-wrap { padding: 24px; } }

.inquiry-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 20px; margin-bottom: 28px; }
@media (max-width: 620px) { .inquiry-form__grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: 0.82rem; font-weight: 700; color: var(--charcoal); }
.form-control {
  font-family: var(--font-body); font-size: 0.95rem; padding: 13px 16px;
  border: 1px solid var(--charcoal-15); border-radius: var(--radius-sm); background: var(--ivory);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.form-control:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(176,141,66,0.15); }
textarea.form-control { resize: vertical; min-height: 110px; }

.contact-details { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--charcoal-15); }
.contact-details h3 { font-size: 1.1rem; margin-bottom: 4px; }
.contact-details ul { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 0.92rem; }
.contact-details a { color: var(--gold); font-weight: 600; }
.placeholder-text { color: var(--charcoal-70); font-style: italic; }

/* ==========================================================================
   Page hero (inner pages)
   ========================================================================== */
.page-hero {
  background: linear-gradient(160deg, var(--forest) 0%, var(--forest-dark) 100%);
  color: var(--ivory); padding: 72px 0 56px;
}
.page-hero h1 { font-size: clamp(2rem, 4.2vw, 3rem); margin: 0; }

/* --- CTA band --- */
.cta-band { background: var(--forest-dark); }
.cta-band__inner { text-align: center; }
.cta-band__inner h2 { color: var(--ivory); margin-bottom: 28px; font-size: clamp(1.5rem, 3vw, 2.1rem); }

/* --- Product detail --- */
.product-detail__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .product-detail__grid { grid-template-columns: 1fr; gap: 32px; } }
.product-detail__media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 7/6; }
.product-detail__media img { width: 100%; height: 100%; object-fit: cover; }
.product-detail__content h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.product-detail__desc { font-size: 1.05rem; }

/* --- Thank you --- */
.thanks__inner { text-align: center; max-width: 520px; margin: 0 auto; padding: 40px 0; }
.thanks__icon { display: inline-flex; margin-bottom: 24px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  position: relative; overflow: hidden;
  background: var(--charcoal); color: rgba(247,243,234,0.7); padding: 80px 0 0;
}
.site-footer__glow {
  position: absolute; width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(176,141,66,0.15), transparent 70%);
  top: -200px; right: -100px; pointer-events: none;
}
.site-footer__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px;
}
@media (max-width: 900px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .site-footer { padding-top: 56px; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 40px; }
  .site-footer__brand { grid-column: auto; }
}
.site-footer__brand p { color: rgba(247,243,234,0.6); font-size: 0.9rem; max-width: 320px; }
.site-footer__social { display: flex; gap: 16px; margin-top: 16px; flex-wrap: wrap; }
.site-footer__social a { font-size: 0.85rem; font-weight: 600; color: var(--gold-light); }
.site-footer__col h3 { color: var(--ivory); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 18px; }
.site-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 0.88rem; }
.site-footer__col a:hover { color: var(--gold-light); }
.site-footer__bottom {
  position: relative; z-index: 1; border-top: 1px solid rgba(247,243,234,0.1);
  padding: 20px 0; font-size: 0.8rem; color: rgba(247,243,234,0.45);
  word-break: break-word;
}
@media (max-width: 400px) {
  .site-footer { padding-top: 44px; }
  .site-footer__grid { gap: 28px; }
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal-item] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.is-visible [data-reveal-item] { opacity: 1; transform: translateY(0); }
.is-visible [data-reveal-item]:nth-child(1) { transition-delay: .05s; }
.is-visible [data-reveal-item]:nth-child(2) { transition-delay: .15s; }
.is-visible [data-reveal-item]:nth-child(3) { transition-delay: .25s; }
.is-visible [data-reveal-item]:nth-child(4) { transition-delay: .35s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal-item] { opacity: 1; transform: none; }
}