/* InfoPharm.am — brand colors from the logo, tuned for WCAG AA contrast */
:root {
  --navy: #032b5f;
  --navy-900: #021b3d;
  --blue: #3b559a;
  --green: #8bc152;          /* decorative / backgrounds only (navy text on it = 6.5:1) */
  --green-700: #3f7d1f;      /* green text on white = 5.0:1 */
  --green-50: #eef7e4;
  --ink: #14213d;
  --muted: #55607a;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --line: #e3e9f2;
  --wa: #1da851;             /* WhatsApp green, deepened for 3:1 on white */
  --viber: #7360f2;          /* Viber purple, 4.5:1 on white */
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 32px;
  --shadow-sm: 0 2px 8px rgba(3, 43, 95, .06);
  --shadow: 0 18px 50px -18px rgba(3, 43, 95, .25);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Noto Sans Armenian", "Noto Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --header-h: 72px;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.65; font-size: 17px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { color: var(--navy); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.icon { width: 1.2em; height: 1.2em; flex: none; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip-link:focus { top: 12px; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 6px 14px 6px 10px; border-radius: 999px; background: var(--green-50); color: var(--green-700); font-size: .82rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow-plain { padding: 0; background: none; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green-700); box-shadow: 0 0 0 0 rgba(63, 125, 31, .5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(63, 125, 31, 0); } 100% { box-shadow: 0 0 0 0 rgba(63, 125, 31, 0); } }
.lead { font-size: 1.15rem; color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 48px; padding: .8em 1.4em; border: 0; border-radius: 999px; cursor: pointer; font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-lg { min-height: 56px; padding: .9em 1.6em; font-size: 1.05rem; }
.btn-sm { min-height: 42px; padding: .55em 1.1em; font-size: .95rem; }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 10px 24px -10px rgba(3, 43, 95, .6); }
.btn-primary:hover { background: var(--blue); }
.btn-accent { background: var(--green); color: var(--navy); }
.btn-accent:hover { background: #9dd062; }
/* Messenger buttons: no fill, brand-colored logo, navy text */
.btn-whatsapp, .btn-viber { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-whatsapp:hover, .btn-viber:hover { box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-whatsapp .icon { color: var(--wa); }
.btn-viber .icon { color: var(--viber); }
.btn-whatsapp .icon, .btn-viber .icon { width: 1.45em; height: 1.45em; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; padding: 12px 0; transition: padding .3s var(--ease); }
.header-bar { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); padding: 0 12px 0 22px; border-radius: 999px; background: rgba(255, 255, 255, .78); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border: 1px solid rgba(227, 233, 242, .9); box-shadow: var(--shadow-sm); transition: box-shadow .3s; }
.site-header.is-scrolled .header-bar { box-shadow: var(--shadow); }
.brand img { width: 118px; }
.main-nav { display: flex; gap: 6px; margin-left: auto; }
.main-nav a { padding: .5em .95em; border-radius: 999px; color: var(--navy); font-weight: 600; text-decoration: none; transition: background .2s; }
.main-nav a:hover { background: var(--bg-soft); }
.lang-switch { display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--bg-soft); }
.lang-switch a { min-width: 44px; padding: .35em .7em; border-radius: 999px; color: var(--muted); font-size: .88rem; font-weight: 700; text-align: center; text-decoration: none; }
.lang-switch a[aria-current] { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }
.menu-toggle { display: none; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--bg-soft); color: var(--navy); cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle .icon { width: 22px; height: 22px; }
.menu-close, [aria-expanded="true"] .menu-open { display: none; }
[aria-expanded="true"] .menu-close { display: inline-flex; }

/* Hero */
.hero { position: relative; overflow: hidden; margin-top: calc(-1 * (var(--header-h) + 24px)); padding: calc(var(--header-h) + 56px) 0 64px; }
.hero-bg { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(40rem 30rem at 85% 20%, rgba(139, 193, 82, .22), transparent 60%),
  radial-gradient(36rem 28rem at 10% 0%, rgba(59, 85, 154, .16), transparent 60%),
  linear-gradient(180deg, #f6f9fd 0%, #fff 100%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); font-weight: 800; letter-spacing: -.03em; text-wrap: balance; }
.accent { display: block; color: var(--green-700); background: linear-gradient(90deg, var(--green-700), #5d9c2f); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero .lead { max-width: 32em; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero-visual { position: relative; justify-self: center; width: min(100%, 480px); }
.hero-orb { aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #eef3fa 70%); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.hero-orb img { width: 74%; animation: float 7s ease-in-out infinite; }
.float-card { position: absolute; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--navy); font-weight: 700; font-size: .95rem; white-space: nowrap; }
.float-card-1 { left: -8%; bottom: 14%; animation: float 6s ease-in-out infinite; }
.float-card-2 { right: -4%; top: 10%; animation: float 6s ease-in-out -3s infinite; }
.float-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--green-50); color: var(--green-700); }
@keyframes float { 50% { transform: translateY(-10px); } }

/* Features (bento cards) */
.features { padding: 24px 0 96px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { position: relative; padding: 32px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.feature-index { position: absolute; top: 24px; right: 28px; color: #c5cfdf; font-weight: 800; font-size: 1.1rem; }
.feature-icon { display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 22px; border-radius: 20px; background: var(--bg-soft); }
.feature-icon img { width: 56px; }
.feature-card p { color: var(--muted); margin: 0; }

/* About */
.about { padding: 96px 0; background: var(--bg-soft); border-radius: var(--radius-lg); margin-inline: 12px; }
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: center; }
.about-visual { justify-self: center; width: min(100%, 420px); padding: 18px; border-radius: 50%; background: linear-gradient(135deg, var(--green-50), #fff); }
.about-visual img { border-radius: 50%; box-shadow: var(--shadow); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 32px; }
.stat { padding: 22px 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.stat-value { display: block; color: var(--navy); font-size: clamp(2rem, 3.4vw, 2.6rem); font-weight: 800; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat-label { display: block; margin-top: 8px; color: var(--muted); font-size: .92rem; line-height: 1.35; }

/* Services */
.services { padding: 112px 0 96px; }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.service-list { display: grid; gap: 24px; }
.service-card { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; padding: 40px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.service-card:nth-child(even) .service-media { order: 2; }
.service-media { display: grid; place-items: center; border-radius: var(--radius); background: linear-gradient(160deg, #eef3fa, #f8fbff); padding: 20px; }
.service-media img { max-width: 360px; width: 100%; }
.service-tag { display: inline-block; margin-bottom: 14px; padding: 4px 12px; border-radius: 999px; background: var(--green-50); color: var(--green-700); font-weight: 800; font-size: .85rem; }
.service-body h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.service-body p { color: var(--muted); }

/* CTA */
.cta { padding: 0 0 112px; }
.cta-card { position: relative; overflow: hidden; isolation: isolate; padding: clamp(40px, 7vw, 80px); border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--navy) 0%, #0b3c7a 55%, var(--blue) 100%); color: #dbe5f4; text-align: center; }
.cta-glow { position: absolute; z-index: -1; inset: auto -10% -60% auto; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(139, 193, 82, .45), transparent 65%); }
.cta-card h2 { max-width: 18em; margin-inline: auto; color: #fff; }
.cta-phone { display: inline-flex; align-items: center; gap: .35em; margin: 8px 0 20px; color: var(--green); font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 800; letter-spacing: -.02em; text-decoration: none; font-variant-numeric: tabular-nums; }
.cta-phone:hover { color: #a8dc72; }
.cta-card p { max-width: 40em; margin-inline: auto; }
.cta-note { color: #d3ddee; }
.cta-actions { margin-top: 28px; }

/* Footer */
.site-footer { background: var(--navy-900); color: #b9c7de; padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr 1.4fr; gap: 48px; }
.footer-logo { display: inline-block; padding: 10px 14px; border-radius: 16px; background: #fff; margin-bottom: 16px; }
.footer-logo img { width: 116px; }
.footer-brand p { max-width: 22em; }
.footer-col h2 { margin-bottom: 14px; color: #fff; font-size: 1rem; letter-spacing: 0; }
.footer-col a:not(.btn) { color: #dbe5f4; text-decoration: none; }
.footer-col a:not(.btn):hover { color: var(--green); }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.site-footer .btn-whatsapp, .site-footer .btn-viber { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .2); }
.site-footer .btn-whatsapp:hover, .site-footer .btn-viber:hover { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6); }
.site-footer .btn-whatsapp .icon { color: #25d366; }
.site-footer .btn-viber .icon { color: #9d8df7; }
.footer-col ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.footer-col .footer-phones { grid-template-columns: repeat(2, max-content); column-gap: 28px; margin-bottom: 20px; font-variant-numeric: tabular-nums; }
.footer-col .messengers { flex-direction: column; align-items: flex-start; }
.messengers { display: flex; flex-wrap: wrap; gap: 10px; }
.copyright { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .9rem; color: #8fa1c0; }

/* Contact dialog */
.contact-dialog { width: min(440px, calc(100% - 32px)); padding: 36px 32px 32px; border: 0; border-radius: var(--radius-lg); box-shadow: 0 40px 100px rgba(2, 27, 61, .35); }
.contact-dialog[open] { animation: pop .3s var(--ease); }
.contact-dialog::backdrop { background: rgba(2, 27, 61, .55); backdrop-filter: blur(4px); }
.contact-dialog .messengers { flex-direction: column; }
.contact-dialog p { color: var(--muted); }
.dialog-close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--bg-soft); color: var(--navy); cursor: pointer; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.97); } }

/* Mobile action bar */
.mobile-bar { display: none; }

/* Above-the-fold entrance: pure CSS, never depends on JS */
.intro { animation: rise .8s var(--ease) both; }
.intro-late { animation-delay: .15s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

/* Scroll reveal (only when JS runs; content is visible without JS) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--delay, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Tablet */
@media (max-width: 1024px) {
  .hero-grid, .about-grid { grid-template-columns: 1fr; }
  .hero-visual { width: min(100%, 380px); order: -1; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-card:last-child { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-visual { width: min(100%, 340px); }
}

/* Mobile */
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .main-nav { position: absolute; top: calc(100% + 4px); left: 20px; right: 20px; flex-direction: column; gap: 4px; padding: 12px; margin: 0; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility .25s; }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .main-nav a { padding: .85em 1em; font-size: 1.05rem; }
  .lang-switch { margin-left: auto; }
  .header-call { display: none; }
}
@media (max-width: 640px) {
  :root { --header-h: 60px; }
  body { font-size: 16px; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .container { width: min(100% - 32px, 1180px); }
  .site-header { padding: 8px 0; }
  .header-bar { gap: 8px; padding: 0 6px 0 14px; }
  .brand img { width: 96px; }
  .lang-switch a { min-width: 36px; padding: .35em .45em; font-size: .8rem; }
  .menu-toggle { width: 42px; height: 42px; }
  .hero { padding-top: calc(var(--header-h) + 48px); }
  .hero-visual { width: min(70%, 260px); }
  .float-card { font-size: .8rem; padding: 8px 10px; }
  .float-icon { width: 28px; height: 28px; }
  .float-card-1 { left: -18%; }
  .float-card-2 { right: -18%; }
  .hero-actions .btn { width: 100%; }
  .feature-grid, .stats { grid-template-columns: 1fr; }
  .feature-card { padding: 26px; }
  .about { margin-inline: 0; border-radius: 0; padding: 72px 0; }
  .service-card { grid-template-columns: 1fr; gap: 24px; padding: 20px; }
  .service-card:nth-child(even) .service-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .mobile-bar { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
