/* =========================================================
   El Moatz for General Supplies — stylesheet
   Mobile-first. Breakpoints: 480 / 768 / 960 / 1200
   ========================================================= */

:root {
  /* Colors */
  --navy-950: #081426;
  --navy-900: #0b1f36;
  --navy-800: #102b45;
  --navy-700: #16385a;
  --navy-600: #1e4771;

  --amber-500: #f5a524;
  --amber-600: #dc8b0e;
  --amber-100: #fef3e0;

  --slate-900: #0f172a;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;

  --success-bg: #ecfdf5;
  --success-text: #065f46;
  --success-border: #a7f3d0;
  --error-bg: #fef2f2;
  --error-text: #991b1b;
  --error-border: #fecaca;

  /* Type */
  --font-heading: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  /* Layout */
  --container-width: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 2px rgba(8, 20, 38, 0.06), 0 1px 3px rgba(8, 20, 38, 0.08);
  --shadow-md: 0 8px 24px rgba(8, 20, 38, 0.08);
  --shadow-lg: 0 20px 45px rgba(8, 20, 38, 0.14);

  --transition: 180ms ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, figure, blockquote, address {
  margin: 0;
}
ul { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, textarea { font: inherit; }

body {
  font-family: var(--font-body);
  color: var(--slate-700);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--navy-900);
  line-height: 1.2;
  font-weight: 800;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; font-weight: 700; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy-900);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.icon { width: 22px; height: 22px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--amber-500);
  color: var(--navy-950);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--amber-600); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent;
  color: var(--navy-900);
  border-color: var(--slate-200);
}
.btn-outline:hover { border-color: var(--navy-900); transform: translateY(-1px); }
.btn-lg { padding: 0.9rem 1.8rem; font-size: 1rem; }
.btn-sm { padding: 0.55rem 1.15rem; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--slate-200);
}
/* Kept off .site-header itself: backdrop-filter on an ancestor creates a
   new containing block for position:fixed descendants (like .main-nav),
   which would size the fixed mobile menu against the header's own box
   instead of the viewport. */
.header-bg {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
}
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 1rem;
}

.brand { display: flex; align-items: center; gap: 0.65rem; }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--navy-800), var(--navy-950));
  color: var(--amber-500);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-heading); font-weight: 800; font-size: 1.05rem; color: var(--navy-900); }
.brand-text small { font-size: 0.68rem; color: var(--slate-600); letter-spacing: 0.04em; text-transform: uppercase; }

.main-nav {
  position: fixed;
  inset: 76px 0 0 0;
  background: var(--white);
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  overflow-y: auto;
  border-top: 1px solid var(--slate-200);
}
.main-nav.is-open {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}
.main-nav ul {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  gap: 0.25rem;
}
.nav-link {
  display: block;
  padding: 0.9rem 0.5rem;
  font-weight: 600;
  color: var(--navy-900);
  border-bottom: 1px solid var(--slate-100);
}
.nav-link.is-active { color: var(--amber-600); }
.nav-cta { align-self: flex-start; margin-top: 0.75rem; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--navy-900);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.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); }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .main-nav {
    position: static;
    inset: auto;
    background: transparent;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    border-top: none;
    overflow: visible;
  }
  .main-nav ul { flex-direction: row; align-items: center; padding: 0; gap: 0.5rem; }
  .nav-link { border-bottom: none; padding: 0.5rem 0.85rem; border-radius: var(--radius-full); }
  .nav-link:hover { background: var(--slate-100); }
  .nav-link.is-active { background: var(--amber-100); }
  .nav-cta { margin-top: 0; margin-left: 0.5rem; }
}

/* ---------- Flash messages ---------- */
.flash-container { padding-top: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid;
  font-weight: 500;
  font-size: 0.95rem;
}
.alert-success { background: var(--success-bg); color: var(--success-text); border-color: var(--success-border); }
.alert-error { background: var(--error-bg); color: var(--error-text); border-color: var(--error-border); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-800) 100%);
  color: var(--white);
  overflow: hidden;
  padding-block: 3.5rem 4rem;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 85% 15%, rgba(245, 165, 36, 0.18), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(30, 71, 113, 0.5), transparent 50%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
}
.hero-copy { max-width: 62ch; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-500);
  margin-bottom: 0.9rem;
}
.hero h1 { color: var(--white); margin-bottom: 1.1rem; }
.hero-lead { color: var(--slate-200); font-size: 1.05rem; max-width: 46ch; margin-bottom: 1.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: 2.5rem; }
.hero .btn-outline { color: var(--white); border-color: rgba(255,255,255,0.35); }
.hero .btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.06); }

.hero-facts { display: flex; flex-wrap: wrap; gap: 1.75rem; }
.hero-facts li { display: flex; flex-direction: column; gap: 0.15rem; }
.hero-fact-num { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 800; color: var(--amber-500); }
.hero-fact-label { font-size: 0.8rem; color: var(--slate-400); max-width: 16ch; }

@media (min-width: 960px) {
  .hero { padding-block: 6rem; }
}

/* ---------- Sections ---------- */
.section { padding-block: 3.5rem; scroll-margin-top: 88px; }
.section-alt { background: var(--slate-50); }
.section-intro { margin-bottom: 2.5rem; }
.section-intro h2 { margin-bottom: 0.85rem; }
.section-intro p { color: var(--slate-600); max-width: 62ch; }

.page-header {
  padding-block: 3rem 2.5rem;
  background: linear-gradient(180deg, var(--slate-50), var(--white));
  border-bottom: 1px solid var(--slate-100);
}
.page-header h1 { margin-bottom: 0.75rem; }
.page-header .lead-paragraph { max-width: 65ch; margin-top: 0.75rem; }

.lead-paragraph { font-size: 1.05rem; color: var(--slate-600); }

/* ---------- Values ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}
.value-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.value-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--amber-500);
  margin-bottom: 1rem;
}
.value-card h3 { margin-bottom: 0.5rem; }
.value-card p { color: var(--slate-600); font-size: 0.92rem; }

/* ---------- CTA banner ---------- */
.cta-banner { background: var(--navy-900); color: var(--white); padding-block: 3rem; }
.cta-banner-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
  justify-content: space-between;
}
.cta-banner h2 { color: var(--white); margin-bottom: 0.35rem; }
.cta-banner p { color: var(--slate-400); }
@media (min-width: 768px) {
  .cta-banner-inner { flex-direction: row; align-items: center; }
}

/* ---------- About page ---------- */
.about-layout {
  display: grid;
  gap: 2.5rem;
}
.about-copy p { margin-bottom: 1.1rem; color: var(--slate-600); }
.prose h2 { margin-bottom: 1.1rem; max-width: 70ch; }
.prose p { color: var(--slate-600); margin-bottom: 1.1rem; max-width: 70ch; }
.prose p:last-child { margin-bottom: 0; }

.workshops-note { max-width: 70ch; margin-top: 2rem; color: var(--slate-600); }

.pull-quote {
  border-left: 4px solid var(--amber-500);
  padding: 0.5rem 0 0.5rem 1.25rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-top: 1.5rem;
}
.about-facts {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  align-self: start;
}
.about-facts h2 { font-size: 1.1rem; margin-bottom: 1.25rem; }
.fact-list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }
.fact-list li { display: flex; flex-direction: column; gap: 0.15rem; padding-bottom: 0.85rem; border-bottom: 1px solid var(--slate-200); }
.fact-list li:last-child { border-bottom: none; padding-bottom: 0; }
.fact-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--slate-400); }
.fact-value { font-weight: 700; color: var(--navy-900); }

@media (min-width: 900px) {
  .about-layout { grid-template-columns: 1.6fr 1fr; align-items: start; }
}

/* ---------- Clients logo wall ---------- */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}
.client-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  min-height: 150px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.client-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: transparent; }
.client-card-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--slate-700);
}
.client-logo-box {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
}
.client-logo-box img {
  max-height: 56px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

/* ---------- Services listing page ---------- */
.services-list { display: flex; flex-direction: column; gap: 1.5rem; }
.service-panel {
  scroll-margin-top: 96px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.service-panel-header { display: flex; gap: 1.25rem; align-items: flex-start; margin-bottom: 1.25rem; }
.service-panel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--navy-900);
  color: var(--amber-500);
  flex-shrink: 0;
}
.service-panel-header h2 { font-size: 1.3rem; margin-bottom: 0.35rem; }
.service-panel-header p { color: var(--slate-600); font-size: 0.95rem; }
.service-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.service-items li {
  background: var(--slate-100);
  color: var(--slate-700);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ---------- Contact page ---------- */
.contact-layout { display: grid; gap: 2.5rem; }
.contact-info h2, .contact-form-wrap h2 { margin-bottom: 1.5rem; }
.contact-info-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.contact-info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--amber-100);
  color: var(--amber-600);
  flex-shrink: 0;
}
.contact-info-item h3 { font-size: 0.95rem; margin-bottom: 0.2rem; }
.contact-info-item p { color: var(--slate-600); font-size: 0.95rem; }
.contact-info-item a:hover { color: var(--amber-600); }

.contact-map {
  margin-top: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px dashed var(--slate-200);
  background: var(--slate-50);
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.9rem;
}
.contact-map-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--amber-100);
  color: var(--amber-600);
}
.contact-map p { color: var(--slate-600); font-size: 0.92rem; max-width: 36ch; }
.btn-icon { width: 16px; height: 16px; }

.contact-form-wrap {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.form-row { margin-bottom: 1.25rem; display: flex; flex-direction: column; gap: 0.4rem; }
.form-row-split { display: grid; gap: 1.25rem; }
.form-row-split > div { display: flex; flex-direction: column; gap: 0.4rem; }
.form-row label { font-size: 0.85rem; font-weight: 700; color: var(--navy-900); }
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--slate-900);
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--amber-500);
  box-shadow: 0 0 0 3px var(--amber-100);
}
.form-error { color: var(--error-text); font-size: 0.82rem; font-weight: 600; }
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (min-width: 900px) {
  .contact-layout { grid-template-columns: 1fr 1.15fr; align-items: start; }
  .form-row-split { grid-template-columns: 1fr 1fr; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--slate-400); padding-top: 3.5rem; }
.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-brand p { margin-top: 1rem; font-size: 0.9rem; max-width: 32ch; }
.brand-footer .brand-name { color: var(--white); }
.brand-footer .brand-text small { color: var(--slate-400); }
.footer-col h4 { color: var(--white); font-size: 0.9rem; letter-spacing: 0.03em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col a { font-size: 0.92rem; }
.footer-col a:hover { color: var(--white); }
address { font-style: normal; font-size: 0.92rem; line-height: 1.8; }
address a:hover { color: var(--white); }
.footer-bottom-inner { padding-block: 1.5rem; font-size: 0.82rem; }

@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1.2fr; }
}

/* ---------- 404 ---------- */
.error-section { padding-block: 5rem; }
.error-content { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }
.error-content .eyebrow { font-size: 3rem; font-weight: 800; color: var(--amber-500); margin: 0; }
.error-content p { color: var(--slate-600); max-width: 40ch; }

/* ---------- Larger screens ---------- */
@media (min-width: 1280px) {
  .container { padding-inline: 1.5rem; }
}
