/* ============================================================
   TECHLAJU WEBSITE REDESIGN — shared site styles
   Tokens come from ../colors_and_type.css
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg-body);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
p { text-wrap: pretty; margin: 0 0 var(--sp-4) 0; }
h1, h2, h3, h4 { margin: 0 0 var(--sp-4) 0; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 var(--sp-6); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: var(--w-semibold);
  font-size: 15.5px; line-height: 1;
  padding: 15px 26px; border-radius: var(--r-pill);
  border: 1.5px solid transparent; cursor: pointer;
  text-decoration: none !important;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out),
              background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--tl-blue); color: var(--fg-on-blue); box-shadow: var(--sh-blue); }
.btn-primary:hover { background: var(--tl-blue-hover); transform: translateY(-2px); box-shadow: 0 14px 36px rgba(12,155,255,0.38); }
.btn-primary:active { background: var(--tl-blue-press); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--ink-300); }
.btn-ghost:hover { border-color: var(--tl-blue); color: var(--tl-blue); transform: translateY(-2px); }
.btn-white { background: var(--white); color: var(--tl-blue); box-shadow: var(--sh-md); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--sh-lg); }
.btn .lucide { width: 18px; height: 18px; }

/* ---------- Eyebrow + section heads ---------- */
.eyebrow {
  font-family: var(--font-body); font-weight: var(--w-bold);
  font-size: var(--fs-eyebrow); letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase; color: var(--tl-blue);
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 var(--sp-4) 0;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--tl-blue); border-radius: 2px; }
.section { padding: var(--sp-24) 0; }
.section-tint { background: var(--bg-subtle); }
.section-head { max-width: 720px; margin-bottom: var(--sp-12); }
.section-head h2 { font-family: var(--font-brand); font-weight: var(--w-semibold); font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: var(--ls-h2); color: var(--fg); text-wrap: balance; }
.section-head .lead { font-size: var(--fs-lead); line-height: var(--lh-lead); color: var(--fg-body); margin: 0; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid #e8eef3;
}
.nav .container { max-width: 1200px; }
.nav-inner { display: flex; align-items: center; gap: var(--sp-6); height: 74px; }
.nav-logo img { height: 32px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-links a {
  font-family: var(--font-display); font-weight: var(--w-medium); font-size: 14.5px;
  color: #243140; text-decoration: none; padding: 9px 12px; border-radius: var(--r-pill);
  display: inline-flex; align-items: center; gap: 4px;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav-links a .lucide { width: 15px; height: 15px; }
.nav-links a:hover { color: var(--tl-blue); background: var(--blue-50); text-decoration: none; }
.nav-links a.active { color: var(--tl-blue); background: var(--blue-50); font-weight: var(--w-semibold); }
.nav .btn { padding: 11px 18px; font-size: 14px; }
.nav-drop { position: relative; }
.nav-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  padding: 8px;
  background: #fff;
  border: 1px solid #e6eef5;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(16, 40, 70, 0.12);
}
.nav-menu a { border-radius: 10px; }
.nav-drop:hover .nav-menu,
.nav-drop:focus-within .nav-menu { display: flex; flex-direction: column; }

/* ---------- Image placeholder ---------- */
.ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 180px;
  padding: 28px;
  border-radius: 20px;
  border: 1.5px dashed #b7c5d4;
  background: repeating-linear-gradient(-45deg, #f4f7fb, #f4f7fb 10px, #eef3f8 10px, #eef3f8 20px);
  color: #5c6b7a;
  text-align: center;
}
.ph span {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tl-blue);
}
.ph strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: #243140;
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); box-shadow: var(--sh-sm);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.icon-tile {
  width: 48px; height: 48px; border-radius: var(--r-md);
  background: var(--blue-50); color: var(--tl-blue);
  display: inline-flex; align-items: center; justify-content: center;
}
.icon-tile .lucide { width: 23px; height: 23px; }

/* ---------- Product cards ---------- */
.product-card { overflow: hidden; display: flex; flex-direction: column; text-decoration: none !important; color: inherit; }
.product-card .shot { aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--border); background: var(--ink-100); }
.product-card .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform var(--dur-slow) var(--ease-out); }
.product-card:hover .shot img { transform: scale(1.025); }
.product-card .body { padding: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-2); flex: 1; }
.product-card h3 { font-family: var(--font-display); font-weight: var(--w-bold); font-size: 19px; color: var(--fg); margin: 0; display: flex; align-items: center; gap: 10px; }
.product-card .tag { font-family: var(--font-body); font-weight: var(--w-bold); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-muted); }
.product-card p { font-size: var(--fs-sm); line-height: var(--lh-sm); margin: 0; }
.product-card .visit { margin-top: auto; padding-top: var(--sp-3); font-family: var(--font-display); font-weight: var(--w-semibold); font-size: 14px; color: var(--tl-blue); display: inline-flex; align-items: center; gap: 6px; }
.product-card .visit .lucide { width: 15px; height: 15px; transition: transform var(--dur) var(--ease-out); }
.product-card:hover .visit .lucide { transform: translateX(3px); }

/* ---------- Navy band ---------- */
.band-navy { background: var(--navy-900); color: #C7D2DF; }
.band-navy h2, .band-navy h3 { color: var(--white); }
.band-navy .eyebrow { color: var(--blue-400); }
.band-navy .eyebrow::before { background: var(--blue-400); }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: #9FB0C2; padding: var(--sp-20) 0 var(--sp-8); }
.footer a { color: #C7D2DF; text-decoration: none; }
.footer a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: var(--sp-10); padding-bottom: var(--sp-12); border-bottom: 1px solid var(--navy-700); }
.footer-brand img { height: 28px; width: auto; margin-bottom: var(--sp-4); }
.footer-brand p { font-size: var(--fs-sm); line-height: var(--lh-sm); color: #9FB0C2; max-width: 300px; }
.footer h4, .footer .footer-h { font-family: var(--font-display); font-weight: var(--w-semibold); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); margin-bottom: var(--sp-4); }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-3); font-size: var(--fs-sm); }
.footer li { display: flex; align-items: flex-start; gap: 8px; }
.footer li .lucide { width: 15px; height: 15px; color: var(--blue-400); flex-shrink: 0; margin-top: 3px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); flex-wrap: wrap; padding-top: var(--sp-6); font-size: var(--fs-xs); color: #6E8096; }

/* ---------- Reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity 560ms var(--ease-out), transform 560ms var(--ease-out); }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .section { padding: var(--sp-16) 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links a { padding: 9px 9px; }
}
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--ink-200);
  background: var(--white);
  color: var(--fg);
  align-items: center; justify-content: center;
  cursor: pointer;
}
.nav-toggle .lucide { width: 20px; height: 20px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin: 0;
    padding: 12px 20px 18px;
    background: rgba(255,255,255,0.98);
    border-bottom: 1px solid var(--ink-200);
  }
  body.nav-open .nav-links { display: flex; }
  .nav-drop { display: flex; flex-direction: column; align-items: stretch; }
  .nav-menu { position: static; display: flex; flex-direction: column; box-shadow: none; border: 0; padding: 0 0 8px 8px; min-width: 0; }
  .nav .btn-primary { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-social { display: inline-flex; gap: 10px; }
.footer-social a { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.08); color: #C7D2DF; transition: background .2s, color .2s; }
.footer-social a:hover { background: var(--blue-500, #0C9BFF); color: #fff; text-decoration: none; }
.footer-social svg { width: 18px; height: 18px; }

/* ---------- WhatsApp click-to-chat button (added by site.js on every page) ---------- */
.wa-float {
  position: fixed; z-index: 90;
  right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 16px; border-radius: 999px;
  background: #25d366; color: #fff !important; text-decoration: none !important;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  box-shadow: 0 10px 28px rgba(18, 140, 74, 0.35);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(18, 140, 74, 0.45); }
.wa-float:focus-visible { outline: 3px solid #0c9bff; outline-offset: 3px; }
.wa-float svg { width: 28px; height: 28px; flex: none; }
@media (max-width: 640px) { .wa-float { width: 56px; padding: 0; justify-content: center; } .wa-float span { display: none; } }
@media print { .wa-float { display: none; } }

.footer .footer-h { margin-top: 0; }

/* ---------- Language switcher (inc/header.php) ---------- */
.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; }
.langsw { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--ink-200, #e3e9ef); border-radius: var(--r-pill, 999px); background: #fff; flex-shrink: 0; }
.langsw-opt {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px 5px 7px; border-radius: var(--r-pill, 999px);
  font-family: var(--font-display); font-weight: var(--w-semibold, 600); font-size: 12.5px; letter-spacing: .02em; line-height: 1;
  color: #5b6876; text-decoration: none;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.langsw-opt img { width: 20px; height: 10px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(16, 40, 70, .14); display: block; }
a.langsw-opt:not(.is-on) img { opacity: .75; filter: saturate(.85); transition: opacity var(--dur) var(--ease), filter var(--dur) var(--ease); }
a.langsw-opt:hover { color: var(--tl-blue); background: var(--blue-50); text-decoration: none; }
a.langsw-opt:hover img { opacity: 1; filter: none; }
.langsw-opt.is-on { color: var(--tl-blue); background: var(--blue-50); }
@media (max-width: 960px) { .nav-inner { gap: var(--sp-4); } }
@media (max-width: 860px) {
  .langsw { margin-left: auto; order: 2; }
  .nav-toggle { margin-left: 0; order: 3; }
}
@media (max-width: 380px) {
  .langsw-opt { padding: 5px 7px; gap: 0; }
  .langsw-opt > span[aria-hidden] { display: none; }
  .langsw-opt img { width: 22px; height: 11px; }
}
.nav-links a, .nav .btn { white-space: nowrap; }
@media (min-width: 861px) and (max-width: 1100px) {
  .langsw-opt { padding: 6px 7px; gap: 0; }
  .langsw-opt > span[aria-hidden] { display: none; }
  .nav-inner { gap: var(--sp-3); }
}
.nav-logo { flex-shrink: 0; }
@media (min-width: 861px) and (max-width: 1000px) {
  .nav-links a { padding: 9px 7px; font-size: 14px; }
  .nav .btn { padding: 10px 14px; }
}
@media (min-width: 861px) and (max-width: 960px) { .nav .btn-primary { display: none; } }
