/* ============================================================
   Amar Micro Inc. — homepage styles
   Fonts: Archivo + Manrope + Space Mono (Google) · YaroOpen (local)
   ============================================================ */

@font-face { font-family: 'YaroOpen'; src: url('assets/fonts/YaroOp.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'YaroOpen'; src: url('assets/fonts/YaroOp-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'YaroOpen'; src: url('assets/fonts/YaroOp-Thin.woff2') format('woff2'); font-weight: 200; font-display: swap; }

:root {
  --ink: #15130f;
  --paper: #f3f0e9;
  --cream: #f7f4ee;
  --accent: #e2542a;          /* Amar Micro vermilion */
  --pill-blue: #2f80ed;       /* Pillgram */
  --pill-blue-lt: #6aa8ff;
  --wed-rose: #cf9a9a;        /* wed.money */
  --wed-sage: #6f8256;
  --sans: 'Manrope', system-ui, sans-serif;
  --display: 'Archivo', sans-serif;
  --mono: 'Space Mono', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.75rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--accent); color: #fff; }
a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }

.wrap { max-width: 150rem; margin: 0 auto; padding: 0 5vw; }

@keyframes flow { to { stroke-dashoffset: -240; } }
@keyframes flow-pulse { to { stroke-dashoffset: -312; } } /* -312 = sum of pulse dasharray, one full cycle */

.wave-animation { animation: flow 4.2s linear infinite; }
.wave-pulse {
  stroke-width: 5;
  stroke-dasharray: 2 20 3 18 5 16 8 240; /* EKG blip: short ticks + long gap */
  stroke-linecap: round;
  animation: flow-pulse 5.46s linear infinite; /* 312/240 * 4.2s = same px/s as base */
}

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(1.6rem); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Respect users who ask their OS for less motion. */
@media (prefers-reduced-motion: reduce) {
  .wave-animation, .wave-pulse { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------------------------------------------------------------- Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: transparent; border-bottom: 1px solid transparent;
  transition: background .35s ease, border-color .35s ease;
  backdrop-filter: blur(0.9rem); -webkit-backdrop-filter: blur(0.9rem);
}
.site-header.scrolled { background: rgba(243,240,233,.86); border-bottom-color: rgba(21,19,15,.1); }
.header-inner {
  max-width: 150rem; margin: 0 auto; padding: 0.95rem 5vw;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand img { height: 1.9rem; width: auto; display: block; filter: drop-shadow(0 2px 0.5rem rgba(0,0,0,.45)); }
.site-header.scrolled .brand img { filter: none; }
.brand .tagline {
  font-family: var(--mono); font-size: 0.65rem; letter-spacing: .09em; text-transform: uppercase;
  line-height: 1.2; padding-left: 0.7rem; border-left: 1px solid rgba(247,244,238,.34);
  color: rgba(247,244,238,.9); text-shadow: 0 1px 0.5rem rgba(0,0,0,.45);
}
.site-header.scrolled .brand .tagline { color: rgba(21,19,15,.7); border-left-color: rgba(21,19,15,.16); text-shadow: none; }

.nav { display: flex; align-items: center; gap: 2.1rem; }
.nav a { font-family: var(--mono); font-size: 0.8rem; letter-spacing: .02em; text-decoration: none; transition: color .2s; }
.nav-link { color: rgba(247,244,238,.9); }
.site-header.scrolled .nav-link { color: rgba(21,19,15,.7); }
.nav-link:hover { color: var(--accent); }
.nav-cta {
  color: #fff; background: var(--accent); padding: 0.7rem 1.25rem; border-radius: 6.25rem;
  transition: transform .2s, box-shadow .2s; box-shadow: 0 0.4rem 1.25rem rgba(226,84,42,.3);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 0.6rem 1.75rem rgba(226,84,42,.46); }

/* ---------------------------------------------------------------- Hero */
.hero {
  position: relative; overflow: hidden; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--cream); background: var(--ink);
}
.media-fill { position: absolute; inset: 0; width: 100%; height: 100%; max-width: 240rem; max-height: 135rem; object-fit: cover; z-index: 0; contain: layout; }
.hero-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(12,14,12,.62) 0%, rgba(12,14,12,.28) 34%, rgba(12,14,12,.5) 72%, rgba(12,14,12,.86) 100%);
}
.hero-wave { position: absolute; left: 0; right: 0; bottom: 9.4rem; width: 100%; height: 13.75rem; z-index: 1; opacity: .5; pointer-events: none; }
.hero-inner { position: relative; z-index: 2; width: 100%; padding-bottom: 7.4rem; }

.eyebrow { font-family: var(--mono); font-size: 0.85rem; letter-spacing: .18em; text-transform: uppercase; }
.hero .eyebrow { color: #ff8a5f; margin-bottom: 1.6rem; display: flex; align-items: center; gap: 0.75rem; }
.hero .eyebrow::before { content: ""; width: 2.1rem; height: 1px; background: #ff8a5f; display: inline-block; }
.hero h1 {
  font-family: var(--display); font-weight: 900; font-size: clamp(2.9rem, 7vw, 7.5rem);
  line-height: .94; letter-spacing: -.03em; margin: 0; max-width: 15ch; text-shadow: 0 2px 1.9rem rgba(0,0,0,.35);
}
.hero h1 .hl { color: #ff8a5f; }
.hero p { font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.55; color: rgba(247,244,238,.9); max-width: 38.75rem; margin: 2.1rem 0 0; text-shadow: 0 1px 1rem rgba(0,0,0,.4); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.75rem; }

.btn { font-family: var(--mono); font-size: 0.9rem; letter-spacing: .02em; text-decoration: none; border-radius: 6.25rem; display: inline-block; transition: transform .2s, box-shadow .2s, border-color .2s, background .2s; }
.btn-solid { color: #fff; background: var(--accent); padding: 1rem 1.9rem; box-shadow: 0 0.6rem 1.9rem rgba(226,84,42,.4); }
.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 1rem 2.5rem rgba(226,84,42,.56); }
.btn-ghost { color: var(--cream); background: rgba(255,255,255,.06); padding: 1rem 1.9rem; border: 1px solid rgba(247,244,238,.4); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.14); }

/* ---------------------------------------------------------------- Services */
.services { background: var(--paper); color: var(--ink); padding: 7rem 0 7.6rem; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.75rem; margin-bottom: 0.75rem; }
.section-head h2 { font-family: var(--display); font-weight: 800; font-size: clamp(1.9rem, 4.4vw, 3.9rem); line-height: 1.02; letter-spacing: -.02em; margin: 0; }
.services .eyebrow { color: var(--accent); margin-bottom: 1.4rem; font-size: 0.8rem; letter-spacing: .16em; }
.section-head .lede { font-size: 1rem; line-height: 1.6; color: rgba(21,19,15,.62); max-width: 22.5rem; margin: 0 0 0.5rem; }

.service-list { margin-top: 2.75rem; border-bottom: 1px solid rgba(21,19,15,.14); }
.service-row {
  display: grid; grid-template-columns: 5.5rem minmax(0,1.15fr) minmax(0,1fr) 2.75rem;
  align-items: center; gap: 1.6rem; padding: 2.1rem 5vw; border-top: 1px solid rgba(21,19,15,.14);
  text-decoration: none; color: var(--ink); transition: background .4s ease, color .4s ease;
}
.service-row:hover { background: var(--accent); color: #fff; }   /* change hover here */
.service-row .num { font-family: var(--mono); font-size: 0.95rem; opacity: .4; }
.service-row .title { font-family: var(--display); font-weight: 700; font-size: clamp(1.55rem, 3.1vw, 2.9rem); letter-spacing: -.02em; }
.service-row .desc { font-size: 0.95rem; line-height: 1.5; opacity: .66; max-width: 26.25rem; }
.service-row .arrow { font-family: var(--display); font-size: 1.4rem; justify-self: end; }

/* ---------------------------------------------------------------- Products */
.products { background: var(--ink); color: var(--cream); padding: 7rem 0 7.75rem; position: relative; overflow: hidden; }
.products .section-head { margin-bottom: 3rem; }
.products .eyebrow { color: #ff8a5f; margin-bottom: 1.4rem; font-size: 0.8rem; letter-spacing: .16em; }
.switch { display: inline-flex; gap: 0.6rem; background: rgba(247,244,238,.05); padding: 0.45rem; border-radius: 6.25rem; border: 1px solid rgba(247,244,238,.1); }
.switch button {
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: .06em; text-transform: uppercase;
  padding: 0.7rem 1.4rem; border-radius: 6.25rem; cursor: pointer; transition: all .25s ease;
  border: 1px solid transparent; background: transparent; color: rgba(247,244,238,.6);
}
.switch button.active { border-color: var(--accent); background: var(--accent); color: #fff; }

.product { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.05fr); gap: 3.5rem; align-items: center; }
.product[hidden] { display: none; }
.product .eyebrow { font-size: 0.8rem; letter-spacing: .14em; margin-bottom: 1.4rem; }
.product-logo { display: inline-block; transition: opacity .2s; margin-bottom: 1.5rem; }
.product-logo:hover { opacity: .82; }
.product-logo-img { width: min(26.25rem, 82%); height: auto; display: block; }
.product-tagline { font-weight: 700; font-size: clamp(1.45rem, 2.4vw, 2.1rem); letter-spacing: -.01em; margin: 0 0 1rem; }
.product-desc { font-size: 1.05rem; line-height: 1.6; color: rgba(247,244,238,.68); max-width: 28.75rem; margin: 0 0 1.9rem; }

.product-panel {
  border-radius: 1.6rem; min-height: 33.75rem; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.panel-wave { position: absolute; left: 0; right: 0; top: 50%; width: 100%; height: 12.5rem; opacity: .22; pointer-events: none; }
.shot { position: relative; z-index: 2; box-shadow: 0 1.9rem 4.4rem rgba(0,0,0,.4); border-radius: 1rem; }
.shot-landscape { width: min(86%, 38.75rem); aspect-ratio: 16 / 10; object-fit: cover; background: rgba(0,0,0,.15); }

/* Pillgram theme */
.product--pillgram .eyebrow { color: var(--pill-blue-lt); }
.product--pillgram .product-tagline { font-family: 'YaroOpen', var(--sans); color: var(--pill-blue-lt); }
.product--pillgram .btn-solid { background: var(--pill-blue); color: #fff; box-shadow: 0 0.5rem 1.6rem rgba(47,128,237,.36); padding: 0.9rem 1.6rem; }
.product--pillgram .btn-solid:hover { box-shadow: 0 0.9rem 2.25rem rgba(47,128,237,.52); }
.product--pillgram .product-panel { background: linear-gradient(158deg, #0a2550 0%, #1f5fd0 100%); border: 1px solid rgba(47,128,237,.34); }

/* wed.money theme */
.product--wed .eyebrow { color: var(--wed-rose); }
.product--wed .product-tagline { color: var(--cream); }
.product--wed .product-logo img { width: 9.25rem; height: 9.25rem; display: block; border-radius: 1.1rem; }
.product--wed .btn-solid { background: var(--wed-sage); color: #fff; box-shadow: 0 0.5rem 1.6rem rgba(111,130,86,.36); padding: 0.9rem 1.6rem; }
.product--wed .btn-solid:hover { box-shadow: 0 0.9rem 2.25rem rgba(111,130,86,.52); }
.product--wed .product-panel { background: linear-gradient(158deg, #39412e 0%, #7d7161 100%); border: 1px solid rgba(127,145,99,.36); }

/* ---------------------------------------------------------------- About */
.about { position: relative; overflow: hidden; color: var(--cream); padding: 9.4rem 5vw; background: var(--ink); }
.about-scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(120deg, rgba(12,14,12,.86) 0%, rgba(12,14,12,.55) 55%, rgba(12,14,12,.78) 100%); }
.about-inner { position: relative; z-index: 2; max-width: 70rem; margin: 0 auto; text-align: center; }
.about .eyebrow { color: #ff8a5f; margin-bottom: 1.9rem; font-size: 0.8rem; letter-spacing: .16em; justify-content: center; display: block; }
.about .statement { font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 3.6vw, 3.1rem); line-height: 1.14; letter-spacing: -.02em; margin: 0; text-shadow: 0 2px 1.5rem rgba(0,0,0,.4); }
.about .statement .hl { color: #ff8a5f; }
.about .sub { font-size: clamp(1rem, 1.4vw, 1.2rem); line-height: 1.65; color: rgba(247,244,238,.85); max-width: 42.5rem; margin: 2.1rem auto 0; text-shadow: 0 1px 0.9rem rgba(0,0,0,.4); }

/* ---------------------------------------------------------------- Contact / footer */
.contact { background: var(--paper); color: var(--ink); padding: 7.5rem 5vw 4.1rem; position: relative; overflow: hidden; }
.contact-inner { position: relative; max-width: 150rem; margin: 0 auto; text-align: center; }
.contact .eyebrow { color: var(--accent); margin-bottom: 1.6rem; font-size: 0.8rem; letter-spacing: .16em; }
.contact h2 { font-family: var(--display); font-weight: 900; font-size: clamp(2.5rem, 7vw, 7.25rem); line-height: .98; letter-spacing: -.03em; margin: 0; }
.contact h2 .hl { color: var(--accent); }
.contact .sub { font-size: clamp(1rem, 1.5vw, 1.25rem); line-height: 1.55; color: rgba(21,19,15,.66); max-width: 35rem; margin: 2rem auto 2.5rem; }
.contact .btn-solid { font-size: 0.95rem; padding: 1.1rem 2.5rem; box-shadow: 0 0.75rem 2.25rem rgba(226,84,42,.34); }
.contact .btn-solid:hover { box-shadow: 0 1.1rem 3rem rgba(226,84,42,.5); }

/* Contact form */
.contact-form { max-width: 35rem; margin: 2.5rem auto 0; text-align: left; }
.contact-form .field { margin-bottom: 1.1rem; }
.contact-form label {
  display: block; font-family: var(--mono); font-size: 0.75rem; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(21,19,15,.6); margin-bottom: 0.5rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%; box-sizing: border-box; font-family: var(--sans); font-size: 1rem;
  color: var(--ink); background: rgba(21,19,15,.03);
  border: 1px solid rgba(21,19,15,.16); border-radius: 0.75rem; padding: 0.9rem 1rem;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.contact-form textarea { resize: vertical; min-height: 7.5rem; }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none; border-color: var(--accent); background: #fff;
  box-shadow: 0 0 0 0.2rem rgba(226,84,42,.16);
}
.contact-form .btn-solid { margin-top: 0.4rem; border: 0; cursor: pointer; }
.contact-form .btn-solid[disabled] { opacity: .6; cursor: default; }

/* Honeypot — visually removed but present in the DOM for bots. */
.cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.cf-status { margin: 1rem 0 0; font-size: 0.9rem; min-height: 1.2em; }
.cf-status.is-error { color: #b23b1e; }
.cf-status.is-success { color: var(--wed-sage); }

/* Contact modal */
.modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 1.25rem; }
.modal[hidden] { display: none; }
.modal-overlay { position: absolute; inset: 0; background: rgba(12,14,12,.62); backdrop-filter: blur(0.25rem); -webkit-backdrop-filter: blur(0.25rem); }
.modal-dialog {
  position: relative; width: 100%; max-width: 32.5rem; max-height: calc(100vh - 2.5rem); overflow-y: auto;
  background: var(--cream); color: var(--ink); border-radius: 1.25rem; padding: 2.5rem 2.5rem 2.1rem;
  box-shadow: 0 1.9rem 5rem rgba(0,0,0,.45);
  animation: modal-in .28s ease;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(1rem) scale(.98); } to { opacity: 1; transform: none; } }
.modal .eyebrow { color: var(--accent); font-size: 0.8rem; letter-spacing: .16em; margin-bottom: 0.9rem; }
.modal-title { font-family: var(--display); font-weight: 900; font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1; letter-spacing: -.02em; margin: 0 0 1.6rem; }
.modal .contact-form { margin: 0; max-width: none; }
.modal-close {
  position: absolute; top: 0.9rem; right: 1rem; width: 2.5rem; height: 2.5rem; border: 0; cursor: pointer;
  background: transparent; color: rgba(21,19,15,.5); font-size: 1.9rem; line-height: 1; border-radius: 6.25rem;
  transition: background .2s, color .2s;
}
.modal-close:hover { background: rgba(21,19,15,.08); color: var(--ink); }
body.modal-open { overflow: hidden; }

@media (max-width: 32.5em) {
  .modal-dialog { padding: 2rem 1.5rem 1.6rem; }
}


.footer {
  position: relative; max-width: 150rem; margin: 6rem auto 0; padding-top: 2.1rem;
  border-top: 1px solid rgba(21,19,15,.14);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.8rem; }
.footer-brand img { height: 1.9rem; width: auto; display: block; }
.footer-brand .tagline { font-family: var(--mono); font-size: 0.65rem; letter-spacing: .09em; text-transform: uppercase; line-height: 1.2; padding-left: 0.8rem; border-left: 1px solid rgba(21,19,15,.16); color: rgba(21,19,15,.55); }
.footer-nav { display: flex; gap: 1.6rem; }
.footer-nav a { font-family: var(--mono); font-size: 0.8rem; color: rgba(21,19,15,.6); text-decoration: none; }
.footer-nav a:hover { color: var(--accent); }
.footer .copy { font-family: var(--mono); font-size: 0.8rem; color: rgba(21,19,15,.4); }

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 53.75em) {
  .nav { gap: 1.1rem; }
  .nav .nav-link { display: none; }              /* simple mobile nav: logo + CTA */
  .brand .tagline { display: none; }
  .service-row { grid-template-columns: 2.75rem 1fr; grid-auto-rows: auto; gap: 0.5rem 1.1rem; }
  .service-row .desc { grid-column: 2; max-width: none; }
  .service-row .arrow { display: none; }
  .product { grid-template-columns: 1fr; gap: 2rem; }
  .product-panel { min-height: 23.75rem; }
}

/* ---------------------------------------------------------------- Cookie consent */
.cookie-banner {
  position: fixed; left: 1.25rem; right: 1.25rem; bottom: 1.25rem; z-index: 200;
  max-width: 40rem; margin: 0 auto;
  display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; justify-content: space-between;
  padding: 1.1rem 1.4rem; border-radius: 1rem;
  background: rgba(21,19,15,.96); color: var(--cream);
  box-shadow: 0 1.1rem 3.1rem rgba(0,0,0,.4);
  backdrop-filter: blur(0.6rem); -webkit-backdrop-filter: blur(0.6rem);
}
.cookie-banner[hidden] { display: none; }
.cookie-text { margin: 0; flex: 1 1 16.25rem; font-size: 0.9rem; line-height: 1.5; }
.cookie-actions { display: flex; gap: 0.6rem; flex-shrink: 0; }
.cookie-btn {
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: .02em;
  padding: 0.6rem 1.25rem; border-radius: 6.25rem; border: 0; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.cookie-accept { color: #fff; background: var(--accent); box-shadow: 0 0.4rem 1.25rem rgba(226,84,42,.3); }
.cookie-accept:hover { transform: translateY(-2px); box-shadow: 0 0.6rem 1.75rem rgba(226,84,42,.46); }
.cookie-decline { color: rgba(247,244,238,.85); background: rgba(247,244,238,.1); }
.cookie-decline:hover { background: rgba(247,244,238,.18); }

@media (max-width: 32.5em) {
  .cookie-banner { flex-direction: column; align-items: stretch; text-align: center; }
  .cookie-actions { justify-content: center; }
}
