/* ═══════════════════════════════════════════════════════
   ZEPHOR INNOVATIONS — BASE STYLESHEET
   Palette: #110101 bg · #f15a24 accent · #fff text
   Fonts: Playfair Display (display) · Manrope (body)
═══════════════════════════════════════════════════════ */


:root {
  --bg:        #110101;
  --bg-deep:   #0a0000;
  --bg-card:   #1a0303;
  --accent:    #f15a24;
  --accent-dim:#f15a2440;
  --white:     #ffffff;
  --grey-1:    #cccccc;
  --grey-2:    #888888;
  --grey-3:    #333333;
  --radius:    12px;
  --nav-h:     72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* <picture> is a layout-transparent wrapper: let the inner <img> size against
   its real parent (so percentage widths like .hero-logo behave as before). */
picture { display: contents; }

body {
  background-color: var(--bg);
  color: var(--white);
  font-family: 'Manrope', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ── Toast ── */
.toast {
  position: fixed;
  top: 88px; right: 24px;
  min-width: 260px; max-width: 360px;
  background-color: #4BB543;
  color: #fff;
  padding: 14px 22px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: 'Manrope', sans-serif;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 9999;
  transform: translateY(-8px);
}
.toast.show   { opacity: 1; pointer-events: auto; transform: translateY(0); }
.toast.hidden { opacity: 0; transform: translateY(-8px); pointer-events: none; }

/* ── Navigation ── */
header { position: fixed; top: 0; left: 0; right: 0; z-index: 200; }

nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8%;
  height: var(--nav-h);
  background: rgba(17,1,1,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(241,90,36,0.15);
  padding: 0 5%;
}

nav a {
  color: var(--grey-1);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 6px 0;
  transition: color 0.2s;
  position: relative;
}
nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease-out;
}
nav a:hover        { color: var(--white); }
nav a:hover::after { transform: scaleX(1); }
nav a.active       { color: var(--accent); }
nav a.active::after{ transform: scaleX(1); }

/* ── Block content ── */
.block-content { width: 100%; padding-top: var(--nav-h); }

/* ── Footer ── */
footer {
  background: var(--bg-deep);
  color: var(--white);
  padding: 70px 8% 0;
  border-top: 1px solid rgba(241,90,36,0.12);
  position: relative;
}
footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent) 50%, transparent);
  opacity: 0.55;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1.4fr;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 56px;
}

.footer-left h3,
.footer-center h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 18px;
  letter-spacing: 1px;
}

.footer-left p, .footer-right p, .footer-center p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--grey-1);
}

.footer-center a {
  text-decoration: none;
  color: var(--grey-1);
  font-size: 0.9rem;
  line-height: 2.6;
  display: block;
  transition: color 0.2s;
}
.footer-center a:hover { color: var(--accent); }

.footer-right > p {
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--grey-2);
  margin-bottom: 14px;
}

.newsletter-form { display: flex; margin-bottom: 24px; }

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 10px 16px;
  background: var(--bg-card);
  border: 1px solid var(--grey-3);
  border-right: none;
  border-radius: 6px 0 0 6px;
  color: var(--white);
  font-family: 'Manrope', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}
.newsletter-form input[type="email"]:focus { border-color: var(--accent); }
.newsletter-form input[type="email"]::placeholder { color: #555; }

.newsletter-form button {
  padding: 10px 18px;
  background: var(--accent);
  border: none;
  border-radius: 0 6px 6px 0;
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.newsletter-form button:hover { background: #d44d1d; }

.social-icons { display: flex; align-items: center; gap: 14px; }
.social-icons img {
  width: 18px; height: 18px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.2s, transform 0.2s;
  cursor: pointer;
}
.social-icons img:hover { opacity: 1; transform: translateY(-2px); }

.footer-bottom {
  border-top: 1px solid var(--grey-3);
  text-align: center;
  padding: 20px 0;
  font-size: 0.75rem;
  color: var(--grey-2);
  letter-spacing: 1px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Hover underline ── */
.hover-underline-animation { display: inline-block; position: relative; }
.hover-underline-animation::after {
  content: '';
  position: absolute;
  width: 100%; transform: scaleX(0);
  height: 1.5px; bottom: -1px; left: 0;
  background-color: var(--white);
  transform-origin: left;
  transition: transform 0.25s ease-out;
}
.hover-underline-animation:hover::after { transform: scaleX(1); }

/* ── Scroll-reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .footer-container { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  nav { gap: 4%; padding: 0 4%; }
  nav a { font-size: 0.72rem; letter-spacing: 2px; }
  footer { padding: 50px 6% 0; }
}
@media (max-width: 560px) {
  nav { gap: 3.5%; padding: 0 3%; }
  nav a { font-size: 0.64rem; letter-spacing: 1px; }
}
@media (max-width: 400px) {
  nav { gap: 3%; padding: 0 2.5%; }
  nav a { font-size: 0.58rem; letter-spacing: 0.5px; }
}

/* ── Zephor icon system ─────────────────────────────────────────
   Single-family line icons (static/main/images/icons/). Each glyph
   is drawn with stroke="currentColor"; we render it as a CSS mask so
   the shape is painted in the element's own `color`. Size scales with
   font-size (1em). Usage: set the --zi custom property to a
   {% static %} url() on each element; the mask paints it in `color`.
*/
.zicon {
  display: inline-block;
  width: 1em;
  height: 1em;
  background-color: currentColor;
  -webkit-mask: var(--zi) no-repeat center / contain;
          mask: var(--zi) no-repeat center / contain;
  vertical-align: middle;
  flex: none;
}
