/* =====================================================
   ALCONIZATOR / GEN·ION — style.css
   Design language: state-patent / certificate aesthetic.
   Deep petrol ink, champagne-gold engraving, ivory paper.
===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500&family=Manrope:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root{
  /* ---- palette ---- */
  --ink:        #0B1210;   /* near-black, green undertone */
  --petrol:     #103433;   /* deep teal — echoes GEN·ION mark */
  --petrol-2:   #163F3E;
  --gold:       #C6A15B;   /* champagne gold — engraving / seals */
  --gold-bright:#E7CD93;
  --ivory:      #F4EFE2;   /* parchment paper */
  --paper:      #FBF8F1;
  --steel:      #6E7A75;   /* muted graphite for secondary text */
  --line:       rgba(198,161,91,0.28);

  /* ---- type ---- */
  --f-display: 'Playfair Display', 'PT Serif', Georgia, serif;
  --f-body:    'Manrope', -apple-system, 'Segoe UI', sans-serif;
  --f-mono:    'JetBrains Mono', ui-monospace, monospace;

  --container: 1200px;
}

/* ---------------------------------------------------
   Base
--------------------------------------------------- */
html{ background: var(--paper); }
body{
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.65;
}

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

h1,h2,h3,h4{ font-family: var(--f-display); letter-spacing: -0.01em; }

a{ transition: color .2s ease, opacity .2s ease; }

img{ display:block; }

.section{ position: relative; padding: 108px 0; }
.section--tight{ padding: 84px 0; }
.section--dark{ background: var(--ink); color: var(--ivory); }
.section--petrol{ background: var(--petrol); color: var(--ivory); }
.section--paper{ background: var(--paper); }
.section--ivory{ background: var(--ivory); }

.section-head{ max-width: 720px; margin: 0 auto 56px; text-align:center; }
.section-head--left{ margin: 0 0 48px; text-align:left; max-width:620px; }

.eyebrow{
  display:inline-flex; align-items:center; gap:10px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.eyebrow::before{
  content:"";
  width: 26px; height: 1px;
  background: var(--gold);
  display:inline-block;
}

.section--dark .eyebrow, .section--petrol .eyebrow{ color: var(--gold-bright); }

h2.h-title{
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 600;
  line-height: 1.22;
}

p.lede{
  font-size: 18px;
  color: var(--steel);
  margin-top: 16px;
}
.section--dark p.lede, .section--petrol p.lede{ color: rgba(244,239,226,0.72); }

.content-copy p{ margin-bottom: 14px; color: var(--ink); }
.content-copy p:last-child{ margin-bottom: 0; }
.content-copy a{ color: var(--petrol); text-decoration: underline; text-underline-offset: 3px; }
.section--dark .content-copy p, .section--petrol .content-copy p{ color: rgba(244,239,226,0.82); }

/* reveal-on-scroll (progressive enhancement, JS adds .is-visible) */
.reveal{ opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible{ opacity: 1; transform: translateY(0); }

/* ---------------------------------------------------
   Buttons
--------------------------------------------------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  font-family: var(--f-body); font-weight: 700; font-size: 14px;
  letter-spacing: 0.03em;
  padding: 15px 30px;
  border-radius: 2px;
  cursor:pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn--gold{
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: var(--ink);
}
.btn--gold:hover{ filter: brightness(1.06); }
.btn--outline{
  border-color: var(--gold);
  color: var(--gold-bright);
  background: transparent;
}
.btn--outline:hover{ background: rgba(198,161,91,0.1); }
.btn--outline-dark{
  border-color: var(--petrol);
  color: var(--petrol);
}
.btn--outline-dark:hover{ background: rgba(16,52,51,0.06); }
.btn--sm{ padding: 11px 20px; font-size: 13px; }

/* ---------------------------------------------------
   Certificate frame — the signature device.
   Corner brackets, like a state seal or exhibit plaque.
--------------------------------------------------- */
.frame{
  position: relative;
  padding: 14px;
}
.frame::before, .frame::after,
.frame .frame-c2::before, .frame .frame-c2::after{ content:""; }
.frame::before{
  position:absolute; top:0; left:0; width:26px; height:26px;
  border-top: 2px solid var(--gold); border-left: 2px solid var(--gold);
}
.frame::after{
  position:absolute; bottom:0; right:0; width:26px; height:26px;
  border-bottom: 2px solid var(--gold); border-right: 2px solid var(--gold);
}
.frame .frame-c2{ position:absolute; inset:0; pointer-events:none; }
.frame .frame-c2::before{
  position:absolute; top:0; right:0; width:26px; height:26px;
  border-top: 2px solid var(--gold); border-right: 2px solid var(--gold);
}
.frame .frame-c2::after{
  position:absolute; bottom:0; left:0; width:26px; height:26px;
  border-bottom: 2px solid var(--gold); border-left: 2px solid var(--gold);
}
.frame__media{ overflow:hidden; background:#000; }
.frame__media img{ width:100%; height:100%; object-fit: cover; }
.frame__plate{
  margin-top: 14px;
  display:flex; align-items:baseline; justify-content:space-between;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em;
  color: var(--steel);
}
.section--dark .frame__plate, .section--petrol .frame__plate{ color: rgba(244,239,226,0.6); }
.frame__plate strong{ color: var(--gold); font-weight: 500; }

/* ---------------------------------------------------
   Header / Navigation
--------------------------------------------------- */
.site-header{
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 18px 0;
  background: transparent;
  transition: background .35s ease, padding .35s ease, box-shadow .35s ease;
}
.site-header.is-scrolled{
  background: rgba(11,18,16,0.92);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}
.site-header .container{
  display:flex; align-items:center; justify-content:space-between; gap: 24px;
}
.brand{ display:flex; align-items:center; gap:12px; }
.brand img{ height: 34px; width:auto; }

.main-nav{ display:flex; align-items:center; gap: 30px; }
.main-nav a{
  font-size: 13px; letter-spacing: 0.02em; font-weight: 600;
  color: var(--ivory); opacity: 0.82;
}
.main-nav a:hover{ opacity: 1; color: var(--gold-bright); }

.header-actions{ display:flex; align-items:center; gap:18px; }
.header-phone{ text-align:right; font-family: var(--f-mono); font-size:13px; color: var(--ivory); line-height:1.5; }
.header-phone a{ color:var(--gold-bright); font-weight:500; }
.header-phone a:hover{ color: var(--gold); }

.nav-toggle{
  display:none; flex-direction:column; gap:5px; width:26px;
  background:none; border:0;
}
.nav-toggle span{ height:2px; width:100%; background: var(--ivory); display:block; }

/* ---------------------------------------------------
   Hero
--------------------------------------------------- */
.hero{
  position: relative;
  min-height: 100vh;
  display:flex; align-items:center;
  padding-top: 140px; padding-bottom: 90px;
  background:
    radial-gradient(60% 60% at 82% 18%, rgba(198,161,91,0.14), transparent 60%),
    linear-gradient(180deg, #0B1210 0%, #123634 62%, #0B1210 100%);
  color: var(--ivory);
  overflow:hidden;
}
.hero::before{
  content:"";
  position:absolute; inset:0;
  background-image: url('../assets/icons/pattern-guilloche.svg');
  background-repeat: repeat;
  background-size: 240px;
  opacity: 0.16;
  mix-blend-mode: screen;
  pointer-events:none;
}
.hero .container{
  position:relative; z-index:1;
  display:grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items:center;
}
.hero-kicker{
  font-family: var(--f-mono); font-size:12px; letter-spacing:0.24em; text-transform:uppercase;
  color: var(--gold-bright); display:flex; align-items:center; gap:12px; margin-bottom:22px;
}
.hero-kicker .rule{ width:40px; height:1px; background: var(--gold); }
.hero h1{
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 600; line-height: 1.14;
}
.hero h1 em{ font-style: italic; color: var(--gold-bright); font-weight:500; }
.hero .sub{
  margin-top: 22px; font-size: 19px; font-style: italic;
  font-family: var(--f-display); color: rgba(244,239,226,0.82);
}
.hero-ctas{ display:flex; gap:16px; margin-top:36px; flex-wrap:wrap; }

.hero-badges{
  margin-top: 54px;
  display:grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  border-top: 1px solid var(--line); padding-top: 30px;
}
.badge{ display:flex; flex-direction:column; gap:12px; }
.badge .badge-icon{
  width: 42px; height:42px; border-radius:50%;
  border: 1px solid var(--gold); display:flex; align-items:center; justify-content:center;
  color: var(--gold-bright);
}
.badge .badge-icon svg{ width:20px; height:20px; }
.badge p{ font-size: 13.5px; color: rgba(244,239,226,0.78); line-height:1.5; }

.hero-visual{ position:relative; }
.hero-plaque{
  position:relative; padding: 22px;
  background: rgba(244,239,226,0.03);
  border: 1px solid var(--line);
}
.hero-plaque .frame::before, .hero-plaque .frame::after,
.hero-plaque .frame .frame-c2::before, .hero-plaque .frame .frame-c2::after{ border-color: var(--gold-bright); }
.hero-plaque img{ width:100%; height:auto; }
.hero-seal{
  position:absolute; right: -18px; bottom: -18px;
  width: 108px; height:108px; border-radius:50%;
  background: radial-gradient(circle at 35% 30%, var(--gold-bright), var(--gold) 60%, #9c7c3f 100%);
  display:flex; align-items:center; justify-content:center;
  text-align:center; color: var(--ink);
  box-shadow: 0 14px 34px rgba(0,0,0,0.4);
  font-family: var(--f-mono);
}
.hero-seal .seal-txt{ font-size: 9.5px; line-height:1.35; letter-spacing:0.04em; padding: 0 10px; }
.hero-seal .seal-txt b{ display:block; font-size: 11px; font-family: var(--f-body); font-weight:800; }

/* ---------------------------------------------------
   Exhibit / two-column content blocks
--------------------------------------------------- */
.exhibit{
  display:grid; grid-template-columns: 0.82fr 1.18fr; gap: 60px; align-items:center;
}
.exhibit.reverse{ grid-template-columns: 1.18fr 0.82fr; }
.exhibit.reverse .exhibit-media{ order:2; }
.exhibit-media .frame__media{ aspect-ratio: 3/4; }

/* ---------------------------------------------------
   FAQ Accordion
--------------------------------------------------- */
.faq-layout{ display:grid; grid-template-columns: 1.5fr 0.9fr; gap: 56px; align-items:start; }
.faq-list{ border-top: 1px solid var(--line); }
.faq-item{ border-bottom: 1px solid var(--line); }
.faq-q{
  width:100%; display:flex; align-items:center; justify-content:space-between; gap:20px;
  text-align:left; padding: 24px 4px;
  font-family: var(--f-display); font-size: 19px; font-weight:600; color: var(--ivory);
}
.faq-q .qnum{ font-family: var(--f-mono); font-size:12px; color: var(--gold-bright); margin-right:14px; }
.faq-icon{ width:20px; height:20px; color: var(--gold-bright); flex:none; transition: transform .3s ease; }
.faq-item.is-open .faq-icon{ transform: rotate(45deg); }
.faq-a{
  max-height:0; overflow:hidden; transition: max-height .35s ease, padding .35s ease;
  color: rgba(244,239,226,0.75); font-size:15px;
}
.faq-item.is-open .faq-a{ max-height: 320px; padding-bottom: 26px; }
.faq-a-inner{ padding-right: 40px; }
.faq-a-inner p + p{ margin-top:10px; }

.faq-side{
  border: 1px solid var(--line); padding: 8px;
}
.faq-side .frame__media{ aspect-ratio: 1/1.1; }

/* ---------------------------------------------------
   Gallery
--------------------------------------------------- */
.gallery-grid{
  display:grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.gallery-card{ text-align:center; }
.gallery-card .frame__media{ aspect-ratio: 4/5; background: var(--ivory); }
.gallery-card .frame__media img{ object-fit: contain; padding: 18px; }
.gallery-card figcaption{
  margin-top: 14px; font-family: var(--f-mono); font-size:12px; letter-spacing:0.05em; color: var(--steel);
}
.gallery-card figcaption b{ display:block; font-family: var(--f-display); font-style:italic; font-size:16px; color: var(--ink); margin-bottom:4px; }

/* ---------------------------------------------------
   Credentials (trademark + exhibition diploma)
--------------------------------------------------- */
.cred-grid{
  display:grid; grid-template-columns: repeat(2, 1fr); gap: 40px;
}
.cred-card{ background: var(--paper); padding: 26px; border: 1px solid rgba(16,52,51,0.12); }
.cred-card .frame__media{ aspect-ratio: 3/4; margin-bottom:18px; }
.cred-card h3{ font-size:18px; margin-bottom:8px; }
.cred-card p{ color: var(--steel); font-size:14.5px; }

/* ---------------------------------------------------
   Use-cases
--------------------------------------------------- */
.use-grid{
  display:grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.use-card{
  padding: 30px 22px;
  background: var(--paper);
  border-top: 2px solid var(--gold);
  box-shadow: 0 20px 40px -30px rgba(16,52,51,0.35);
}
.use-card img{ height:52px; width:auto; margin-bottom:20px; }
.use-card p{ font-weight:700; font-size:15px; line-height:1.4; color: var(--ink); }

/* ---------------------------------------------------
   Delivery & payment
--------------------------------------------------- */
.pay-grid{ display:grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items:center; }
.pay-block h4{ font-family: var(--f-body); font-weight:800; font-size:14px; letter-spacing:0.03em; text-transform:uppercase; color: var(--petrol); margin: 22px 0 8px; }
.pay-block h4:first-child{ margin-top:0; }
.pay-visual{ display:flex; justify-content:center; }
.pay-visual img{ max-height: 320px; width:auto; }

/* ---------------------------------------------------
   Contact
--------------------------------------------------- */
.contact-grid{ display:grid; grid-template-columns: repeat(2,1fr); gap: 26px; }
.contact-card{
  border: 1px solid var(--line); padding: 30px; display:flex; gap:20px; align-items:flex-start;
}
.contact-card .ic{ width:44px; height:44px; border-radius:50%; border:1px solid var(--gold); display:flex; align-items:center; justify-content:center; flex:none; }
.contact-card .ic svg{ width:20px; height:20px; color: var(--gold-bright); }
.contact-card h4{ font-family: var(--f-body); text-transform:uppercase; letter-spacing:0.08em; font-size:12.5px; color: rgba(244,239,226,0.6); margin-bottom:8px; }
.contact-card a, .contact-card p{ font-family: var(--f-display); font-size:19px; color: var(--ivory); }
.contact-card a:hover{ color: var(--gold-bright); }

.map-wrap{ position:relative; }
.map-wrap iframe{ width:100%; height:420px; border:0; filter: grayscale(0.25) contrast(1.05); display:block; }
.map-note{
  position:absolute; left: 28px; bottom: 28px;
  background: var(--ink); color: var(--ivory);
  padding: 20px 26px; border: 1px solid var(--gold);
  font-family: var(--f-display); font-size:16px; max-width:280px;
}
.map-note span{ color: var(--gold-bright); }

/* ---------------------------------------------------
   Footer
--------------------------------------------------- */
.site-footer{ background: var(--ink); color: rgba(244,239,226,0.6); padding: 54px 0 26px; }
.footer-top{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid rgba(198,161,91,0.18); }
.footer-brand img{ height: 30px; margin-bottom:14px; }
.footer-brand p{ font-size:13.5px; max-width:240px; }
.footer-col h5{ font-family: var(--f-body); text-transform:uppercase; font-size:12px; letter-spacing:0.08em; color: var(--gold-bright); margin-bottom:16px; }
.footer-col li{ margin-bottom:10px; font-size:14px; }
.footer-col a:hover{ color: var(--gold-bright); }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; padding-top:24px; font-size:12.5px; flex-wrap:wrap; gap:10px; }
.footer-bottom a{ text-decoration:underline; text-underline-offset:3px; }

/* ---------------------------------------------------
   Back to top
--------------------------------------------------- */
.to-top{
  position: fixed; right: 26px; bottom: 26px; z-index: 90;
  width:48px; height:48px; border-radius:50%;
  background: var(--gold); color: var(--ink);
  display:flex; align-items:center; justify-content:center;
  opacity:0; pointer-events:none; transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease;
  box-shadow: 0 10px 24px rgba(0,0,0,0.3);
}
.to-top.is-visible{ opacity:1; pointer-events:auto; transform:none; }
.to-top svg{ width:18px; height:18px; transform: rotate(-90deg); }

/* ---------------------------------------------------
   Modal (callback form)
--------------------------------------------------- */
.modal-overlay{
  position: fixed; inset:0; background: rgba(11,18,16,0.72);
  display:none; align-items:center; justify-content:center; z-index: 200; padding: 24px;
  backdrop-filter: blur(3px);
}
.modal-overlay.is-open{ display:flex; }
.modal-box{
  background: var(--paper); max-width: 440px; width:100%;
  padding: 40px 36px; position:relative;
  border-top: 3px solid var(--gold);
}
.modal-close{
  position:absolute; top:16px; right:16px; width:30px; height:30px;
  display:flex; align-items:center; justify-content:center; color: var(--steel);
  font-size:20px; background:none; border:0;
}
.modal-box h3{ font-size:24px; margin-bottom:8px; }
.modal-box p.hint{ color: var(--steel); font-size:14px; margin-bottom:22px; }
.field{
  width:100%; border: 1px solid rgba(16,52,51,0.22); background: var(--ivory);
  padding: 13px 14px; margin-bottom:12px; font-size:14px;
}
.field:focus{ border-color: var(--petrol); }
.consent{ font-size:11.5px; color: var(--steel); margin: 8px 0 18px; line-height:1.5; }
.consent a{ text-decoration:underline; }
.modal-box .btn{ width:100%; }

/* =====================================================
   Responsive
===================================================== */
@media (max-width: 1024px){
  .hero .container{ grid-template-columns: 1fr; }
  .hero-visual{ max-width: 420px; }
  .exhibit, .exhibit.reverse{ grid-template-columns: 1fr; }
  .exhibit-media{ order: -1 !important; max-width: 380px; margin: 0 auto; }
  .faq-layout{ grid-template-columns: 1fr; }
  .faq-side{ max-width: 320px; margin: 0 auto; }
  .cred-grid{ grid-template-columns: 1fr; max-width: 420px; margin-inline:auto; }
  .use-grid{ grid-template-columns: repeat(2,1fr); }
  .pay-grid{ grid-template-columns: 1fr; }
  .pay-visual{ order:-1; }
  .contact-grid{ grid-template-columns: 1fr; }
  .footer-top{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px){
  .main-nav, .header-phone{ display:none; }
  .nav-toggle{ display:flex; }
  .site-header.nav-open .main-nav{
    display:flex; position:fixed; inset:0; background: var(--ink);
    flex-direction:column; justify-content:center; align-items:center; gap:28px;
  }
  .site-header.nav-open .main-nav a{ font-size:20px; }
  .gallery-grid{ grid-template-columns: 1fr; max-width:340px; margin-inline:auto; }
  .use-grid{ grid-template-columns: 1fr; }
  .footer-top{ grid-template-columns: 1fr; gap:28px; }
  .footer-bottom{ flex-direction:column; align-items:flex-start; }
  .section{ padding: 76px 0; }
  h2.h-title{ font-size: 28px; }
}

/* ---------------------------------------------------
   Lightbox (patent / certificate viewer)
--------------------------------------------------- */
#lightbox{
  position: fixed; inset:0; z-index: 300; background: rgba(11,18,16,0.92);
  display:none; align-items:center; justify-content:center; padding: 40px; cursor: zoom-out;
}
#lightbox.is-open{ display:flex; }
#lightbox img{ max-width: 90vw; max-height: 88vh; width:auto; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }

[data-lightbox]{ cursor: zoom-in; }

/* ---------------------------------------------------
   Contact channel modal — WhatsApp / Telegram picker
--------------------------------------------------- */
.channel-box{ max-width: 460px; }
.channel-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 8px;
}
.channel-option{
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--paper);
  border: 1px solid rgba(16,52,51,0.14);
  border-left: 3px solid transparent;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.channel-option:hover{
  transform: translateX(2px);
  box-shadow: 0 14px 30px -18px rgba(16,52,51,0.4);
  background: var(--ivory);
}
.channel-option--wa:hover{ border-left-color: #25D366; }
.channel-option--tg:hover{ border-left-color: #2AABEE; }

.channel-icon{
  flex: none;
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.channel-icon svg{ width: 22px; height: 22px; }
.channel-icon--wa{ background: #25D366; }
.channel-icon--tg{ background: #2AABEE; }

.channel-label{
  flex: 1;
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.channel-label small{
  font-family: var(--f-body);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--steel);
}

.channel-arrow{
  flex: none;
  width: 20px; height: 20px;
  color: var(--gold);
  transition: transform .2s ease;
}
.channel-option:hover .channel-arrow{ transform: translateX(4px); }
