/* ═══════════════════════════════════════════════════════════
   Zayne Solutions — Main Stylesheet
   Matches: zaynesolutions.com (Lovable original)
   Fonts: DM Serif Display + DM Sans
═══════════════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --color-bg:        #f7f6f2;
  --color-surface:   #ffffff;
  --color-border:    #e5e3dc;
  --color-text:      #1a1a18;
  --color-text-2:    #5a5a52;
  --color-text-3:    #9a9a90;
  --color-accent:    #1a2e1a;   /* deep forest green — matches site */
  --color-accent-lt: #e8ede8;
  --color-gold:      #c8a96e;   /* warm gold for badges */

  --font-display:    'DM Serif Display', Georgia, serif;
  --font-body:       'DM Sans', system-ui, sans-serif;

  --radius:          10px;
  --radius-sm:       6px;
  --radius-lg:       16px;

  --shadow-sm:       0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:       0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:       0 12px 40px rgba(0,0,0,0.14);

  --header-h:        72px;
  --max-w:           1140px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
address { font-style: normal; }

/* ── Container ─────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ═══════════════════════════════════════════════════════════
   HEADER / NAV
═══════════════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(247, 246, 242, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.2s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-logo img.logo-img,
.site-logo .custom-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links li a {
  display: block;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-2);
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}
.nav-links li a:hover,
.nav-links li.current-menu-item a {
  color: var(--color-text);
  background: var(--color-accent-lt);
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s, box-shadow 0.15s;
  white-space: nowrap;
  line-height: 1;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.btn-primary:hover {
  background: #243824;
  box-shadow: var(--shadow-sm);
}

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

.btn-lg {
  padding: 14px 30px;
  font-size: 15px;
}

.nav-cta { font-size: 13px; padding: 8px 18px; }

/* ═══════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 4rem) 0 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 20, 10, 0.82) 0%,
    rgba(10, 20, 10, 0.55) 60%,
    rgba(10, 20, 10, 0.3) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  max-width: 720px;
  margin-left: max(2rem, calc((100vw - var(--max-w)) / 2 + 2rem));
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.85);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(4px);
}
.badge-dot {
  width: 6px; height: 6px;
  background: var(--color-gold);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 1.1;
  color: #fff;
  margin-bottom: 1.25rem;
  font-weight: 400;
}

.hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.78);
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════
   PARTNER STRIP
═══════════════════════════════════════════════════════════ */
.partners-strip {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 1.75rem 2rem;
  overflow-x: auto;
}

.partners-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0;
  min-width: max-content;
}

.partner-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 28px;
  flex-shrink: 0;
}

.partner-badge {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--color-accent);
  background: var(--color-accent-lt);
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
  letter-spacing: 0.04em;
}

.partner-info { display: flex; flex-direction: column; }
.partner-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text);
  white-space: nowrap;
}
.partner-sub {
  font-size: 11px;
  color: var(--color-text-3);
}

.partner-divider {
  width: 1px;
  height: 36px;
  background: var(--color-border);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   WATERMARK BANNER
═══════════════════════════════════════════════════════════ */
.watermark-banner {
  background: var(--color-accent);
  color: rgba(255,255,255,0.06);
  padding: 3rem 2rem;
  text-align: center;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 1.5rem;
  overflow: hidden;
  user-select: none;
}
.watermark-banner span {
  font-family: var(--font-display);
  font-size: clamp(3rem, 12vw, 9rem);
  line-height: 1;
  color: rgba(255,255,255,0.07);
  letter-spacing: 0.05em;
}
.watermark-banner .wm-small {
  font-size: clamp(1.5rem, 5vw, 3.5rem);
  color: rgba(255,255,255,0.05);
}
.watermark-banner .wm-est {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.25);
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════
   SECTION LABELS (eyebrow / title / subtitle)
═══════════════════════════════════════════════════════════ */
.section-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-3);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}
.section-subtitle {
  font-size: 1rem;
  color: var(--color-text-2);
  max-width: 560px;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════
   WHY ZAYNE
═══════════════════════════════════════════════════════════ */
.why-zayne {
  padding: 6rem 0;
  background: var(--color-bg);
}
.why-zayne .container { }
.why-zayne .section-subtitle { margin-bottom: 3.5rem; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.why-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.why-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.why-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--color-border);
  line-height: 1;
  margin-bottom: 1rem;
}

.why-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}
.why-card p {
  font-size: 0.9rem;
  color: var(--color-text-2);
  line-height: 1.75;
}

/* ═══════════════════════════════════════════════════════════
   PRODUCTS
═══════════════════════════════════════════════════════════ */
.products {
  padding: 6rem 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.products .section-subtitle { margin-bottom: 3rem; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.product-card {
  display: block;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.product-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.product-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.product-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 0.4rem;
  color: var(--color-text);
}
.product-card p {
  font-size: 0.85rem;
  color: var(--color-text-2);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}
.product-cta {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════════════════════════
   CTA BANNER
═══════════════════════════════════════════════════════════ */
.cta-banner {
  background: var(--color-bg);
  padding: 6rem 0;
}
.cta-inner {
  text-align: center;
}
.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 400;
  margin-bottom: 0.75rem;
}
.cta-inner p {
  color: var(--color-text-2);
  margin-bottom: 2rem;
  font-size: 1rem;
}

/* ═══════════════════════════════════════════════════════════
   INNER HERO (sub-pages)
═══════════════════════════════════════════════════════════ */
.inner-hero {
  padding: calc(var(--header-h) + 3.5rem) 0 3.5rem;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}
.inner-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  margin-bottom: 0.75rem;
}
.inner-hero-desc {
  color: var(--color-text-2);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════
   CERTIFICATIONS PAGE
═══════════════════════════════════════════════════════════ */
.certs-section { padding: 5rem 0; }
.certs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.cert-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: box-shadow 0.2s;
}
.cert-card:hover { box-shadow: var(--shadow-md); }
.cert-card.cert-featured {
  grid-column: span 3;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem 2rem;
  align-items: start;
  background: var(--color-accent);
  color: #fff;
  border-color: transparent;
}
.cert-featured .cert-issuer { color: rgba(255,255,255,0.6); }
.cert-featured p { color: rgba(255,255,255,0.75); }
.cert-featured h3 { color: #fff; }

.cert-badge-lg {
  font-family: var(--font-display);
  font-size: 1.4rem;
  background: var(--color-accent-lt);
  color: var(--color-accent);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  align-self: start;
}
.cert-featured .cert-badge-lg {
  background: rgba(255,255,255,0.15);
  color: #fff;
}
.cert-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  margin-bottom: 0.3rem;
}
.cert-issuer {
  font-size: 12px;
  color: var(--color-text-3);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}
.cert-card p {
  font-size: 0.88rem;
  color: var(--color-text-2);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════
   CLIENTS PAGE
═══════════════════════════════════════════════════════════ */
.clients-section { padding: 5rem 0; }
.clients-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.client-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.client-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.client-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1rem;
  background: var(--color-accent-lt);
  color: var(--color-accent);
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 1rem;
}
.client-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  margin-bottom: 0.6rem;
}
.client-card p {
  font-size: 0.88rem;
  color: var(--color-text-2);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════
   QUOTE FORM
═══════════════════════════════════════════════════════════ */
.quote-section { padding: 5rem 0; }
.quote-container { max-width: 700px; }
.quote-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-2);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  background: var(--color-surface);
  color: var(--color-text);
  outline: none;
  transition: border-color 0.15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
}
.form-group textarea { resize: vertical; min-height: 130px; }

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--color-text);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 0;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem 3rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 3rem;
}

.footer-logo img {
  height: 36px;
  width: auto;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}
.footer-tagline {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
  max-width: 300px;
}

.footer-nav h4,
.footer-contact h4 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1rem;
}
.footer-nav ul { display: flex; flex-direction: column; gap: 6px; }
.footer-nav ul li a {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  transition: color 0.15s;
}
.footer-nav ul li a:hover { color: #fff; }

.footer-contact address {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-contact p {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,0.6);
}
.footer-contact a { transition: color 0.15s; }
.footer-contact a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.25rem 2rem;
  text-align: center;
}
.footer-bottom p {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════
   GENERIC PAGE CONTENT
═══════════════════════════════════════════════════════════ */
.page-content {
  padding: calc(var(--header-h) + 3rem) 0 5rem;
}
.page-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
}
.entry-content { max-width: 720px; line-height: 1.8; color: var(--color-text-2); }
.entry-content p { margin-bottom: 1rem; }
.entry-content h2 { font-family: var(--font-display); font-size: 1.6rem; margin: 2rem 0 0.75rem; font-weight: 400; color: var(--color-text); }

/* ═══════════════════════════════════════════════════════════
   SCROLL REVEAL (JS-driven)
═══════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .certs-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-card.cert-featured { grid-column: span 2; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 768px) {
  :root { --header-h: 60px; }

  .nav-toggle { display: flex; }

  .primary-nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 1.5rem 2rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    box-shadow: var(--shadow-md);
  }
  .primary-nav.open { display: flex; }

  .nav-links { flex-direction: column; align-items: flex-start; width: 100%; }
  .nav-cta { width: 100%; justify-content: center; margin-top: 0.5rem; }

  .hero-content { margin-left: 2rem; }
  .hero-title { font-size: clamp(2rem, 7vw, 3rem); }

  .why-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr 1fr; }
  .certs-grid { grid-template-columns: 1fr; }
  .cert-card.cert-featured { grid-column: span 1; grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .btn-lg { width: 100%; justify-content: center; }
  .partners-inner { gap: 0; }
  .partner-item { padding: 0 16px; }
}
