/* ===========================================================
   Safa Distributors LLC — Site Stylesheet (warm corporate)
   =========================================================== */

:root {
  --cream: #faf6ee;
  --cream-card: #ffffff;
  --navy-900: #16304d;
  --navy-800: #1c3b5e;
  --navy-700: #274a72;
  --terracotta-700: #a4522a;
  --terracotta-600: #c1622d;
  --terracotta-500: #d9793f;
  --terracotta-100: #f6e6d8;
  --green-600: #3f7a52;
  --green-100: #e4efe6;
  --stone-900: #2b2622;
  --stone-700: #5b544a;
  --stone-500: #8a8172;
  --stone-300: #cfc4ac;
  --stone-200: #e6dcc8;
  --stone-100: #f1e9da;
  --border: var(--stone-200);
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(43, 38, 34, 0.06);
  --shadow-md: 0 10px 28px rgba(43, 38, 34, 0.10);
  --max-width: 1160px;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-head: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  background: var(--cream);
  color-scheme: light;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--stone-900);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy-900);
  line-height: 1.22;
  margin: 0 0 14px;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); }
h3 { font-size: 1.08rem; }

p { margin: 0 0 14px; color: var(--stone-700); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta-600);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--terracotta-600);
  flex-shrink: 0;
}

.lede { font-size: 1.08rem; color: var(--stone-700); max-width: 620px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.1s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; }

.btn-primary { background: var(--terracotta-600); color: #fff; }
.btn-primary:hover { background: var(--terracotta-700); }

.btn-outline { background: transparent; border-color: rgba(255,255,255,0.5); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.12); }

.btn-navy { background: var(--navy-900); color: #fff; border: 1.5px solid var(--navy-900); }
.btn-navy:hover { background: var(--navy-700); border-color: var(--navy-700); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 238, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s ease;
}
.site-header.scrolled { box-shadow: 0 2px 14px rgba(43, 38, 34, 0.08); }

.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; max-width: var(--max-width); margin: 0 auto; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 30px; height: 30px; flex-shrink: 0; color: var(--navy-900); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--navy-900); }
.brand-sub { font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--terracotta-600); font-weight: 700; }

.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: 0.92rem; font-weight: 600; color: var(--stone-700); 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(--navy-900); border-color: var(--terracotta-600); }

.nav-cta { background: var(--navy-900) !important; color: #fff !important; padding: 10px 18px !important; border-radius: var(--radius-sm); border-bottom: none !important; }
.nav-cta:hover { background: var(--navy-700) !important; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy-900); margin: 5px 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 88px 0 84px;
  overflow: hidden;
  background: var(--cream);
  background-image: radial-gradient(ellipse 700px 420px at 82% -10%, rgba(193, 98, 45, 0.14), transparent 65%),
                     radial-gradient(ellipse 600px 380px at 5% 100%, rgba(22, 48, 77, 0.08), transparent 65%);
}

.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.hero .lede { color: var(--stone-700); }

.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-actions .btn-outline { background: transparent; border-color: var(--navy-900); color: var(--navy-900); }
.hero-actions .btn-outline:hover { background: rgba(22,48,77,0.06); }

.hero-panel {
  background: var(--cream-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-md);
}
.hero-panel h3 { margin-bottom: 16px; }

.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--stone-100); color: var(--stone-700); font-size: 0.92rem; font-weight: 500; }
.check-list li:last-child { border-bottom: none; }
.check-icon { flex-shrink: 0; width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--green-100); color: var(--green-600); box-sizing: content-box; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section-alt { background: var(--stone-100); }
.section-navy { background: var(--navy-900); }
.section-navy h2 { color: #fff; }
.section-navy p { color: rgba(255,255,255,0.75); }

.section-head { max-width: 620px; margin: 0 0 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.card {
  background: var(--cream-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--stone-300); }

.icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--terracotta-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.icon-badge svg { width: 20px; height: 20px; color: var(--terracotta-700); }

.card h3 { margin-bottom: 8px; }
.card p { margin-bottom: 0; font-size: 0.9rem; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--stone-100);
  border: 1px solid var(--stone-200);
  color: var(--navy-800);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  margin: 0 6px 6px 0;
}

.divider { height: 1px; background: var(--border); margin: 8px 0 44px; }

.category-card { background: var(--cream-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.category-head { display: flex; align-items: center; gap: 14px; padding: 22px 24px; background: var(--navy-900); }
.category-head h3 { color: #fff; margin: 0; }
.category-head .icon-badge { background: rgba(255,255,255,0.14); margin-bottom: 0; }
.category-head .icon-badge svg { color: #fff; }
.category-body { padding: 24px; }
.category-body ul { margin: 0 0 18px; padding-left: 0; list-style: none; color: var(--stone-700); }
.category-body li { margin-bottom: 9px; padding-left: 20px; position: relative; font-size: 0.9rem; }
.category-body li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--terracotta-500); }

.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { padding-top: 4px; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--navy-900); color: #fff; font-weight: 700; font-family: var(--font-head);
  margin-bottom: 16px;
}
.step p { font-size: 0.9rem; }

.quote-block { border-left: 3px solid var(--terracotta-600); padding: 6px 0 6px 22px; font-style: italic; color: var(--navy-900); font-size: 1.1rem; max-width: 760px; margin: 0 auto; }

/* ---------- Table ---------- */
.info-table { width: 100%; border-collapse: collapse; background: var(--cream-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.info-table th, .info-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--stone-100); font-size: 0.9rem; }
.info-table th { background: var(--navy-900); color: #fff; font-family: var(--font-head); font-weight: 700; }
.info-table td:first-child { color: var(--stone-500); }
.info-table td:last-child { color: var(--stone-900); font-weight: 600; }
.info-table tr:last-child td { border-bottom: none; }

/* ---------- CTA band ---------- */
.cta-band {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  padding: 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,0.75); margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.2fr; gap: 40px; align-items: start; }

.contact-info-card { background: var(--cream-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.contact-row { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--stone-100); }
.contact-row:last-child { border-bottom: none; padding-bottom: 0; }
.contact-row:first-child { padding-top: 0; }
.contact-icon { width: 20px; height: 20px; color: var(--terracotta-600); flex-shrink: 0; margin-top: 2px; }
.contact-row strong { display: block; color: var(--navy-900); font-size: 0.9rem; }
.contact-row span, .contact-row a { font-size: 0.9rem; color: var(--stone-700); }

.form-card { background: var(--cream-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-md); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--navy-900); margin-bottom: 6px; }

.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--stone-300); border-radius: var(--radius-sm);
  font-size: 0.9rem; font-family: var(--font-body); color: var(--stone-900); background: var(--cream);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy-700); box-shadow: 0 0 0 3px rgba(22, 58, 99, 0.1);
}
.field textarea { resize: vertical; min-height: 110px; }
.field-hint { font-size: 0.78rem; color: var(--stone-500); margin-top: 6px; }

.field-error { font-size: 0.78rem; color: #b3261e; margin-top: 6px; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #b3261e; }
.field.invalid .field-error { display: block; }

.form-footnote { font-size: 0.8rem; color: var(--stone-500); margin-top: 4px; }

#form-status { margin-top: 16px; padding: 13px 15px; border-radius: var(--radius-sm); font-size: 0.88rem; display: none; border: 1px solid transparent; }
#form-status.visible { display: block; }
#form-status.success { background: var(--green-100); color: var(--green-600); border-color: #b7e3c6; }
#form-status.error { background: #fbeaea; color: #b3261e; border-color: #f1c3c1; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,0.75); padding: 56px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-brand { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.footer-brand .brand-name { color: #fff; }
.footer-col h4 { color: var(--terracotta-500); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 15px; font-weight: 700; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: rgba(255,255,255,0.72); font-size: 0.9rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; font-size: 0.8rem; color: rgba(255,255,255,0.5); flex-wrap: wrap; gap: 10px; }

/* ---------- Page header ---------- */
.page-header { background: var(--navy-900); padding: 52px 0 58px; }
.page-header h1 { color: #fff; margin-bottom: 10px; }
.page-header .lede { color: rgba(255,255,255,0.78); margin-bottom: 0; }
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.55); margin-bottom: 14px; }
.breadcrumb a { color: rgba(255,255,255,0.85); }
.breadcrumb a:hover { color: var(--terracotta-500); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column; align-items: flex-start;
    padding: 20px 24px; gap: 18px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-cta { width: 100%; text-align: center; justify-content: center; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  section { padding: 52px 0; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
                transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
    transition-delay: var(--reveal-delay, 0s);
  }
  .reveal.in-view { opacity: 1; transform: translateY(0); }

  .fade-in {
    opacity: 0;
    transform: translateY(12px);
    animation: fadeUp 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
    animation-delay: var(--fade-delay, 0s);
  }
  @keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
  }
}
