/* III Electronics website styles. Created 2026-09-22 by Claude (session 853aac2f). */

:root {
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --brand: #4d7c0f;        /* button green, darker shade of the logo lime so white text stays readable */
  --brand-dark: #3f6212;
  --brand-lime: #98c21c;   /* the logo's lime */
  --brand-tint: #f1f8e4;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(15 23 42 / .05), 0 10px 28px rgb(15 23 42 / .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.01em; }

.container { width: min(100% - 32px, 1120px); margin-inline: auto; }
section[id] { scroll-margin-top: 72px; }

.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 16px; }

a:focus-visible, button:focus-visible { outline: 3px solid var(--brand-lime); outline-offset: 2px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / .92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.125rem; }
.brand img { height: 36px; width: auto; }
.nav-menu { display: flex; align-items: center; gap: 28px; }
.nav-menu a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav-menu a:not(.btn):hover { color: var(--ink); }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 20px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-outline { background: #fff; border-color: #cbd5e1; color: var(--ink); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost { border-color: rgb(255 255 255 / .3); color: #fff; }
.btn-ghost:hover { background: rgb(255 255 255 / .08); }
.btn-sm { padding: 8px 14px; font-size: .9rem; }
.btn-block { width: 100%; }

/* Hero */
.hero {
  background: radial-gradient(900px 420px at 85% -10%, rgb(152 194 28 / .18), transparent 65%), var(--ink);
  color: #cbd5e1;
  padding: 72px 0 80px;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--brand-lime); font-weight: 600; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 16px; }
.hero h1 { color: #fff; font-size: clamp(2rem, 1.2rem + 3vw, 3.25rem); letter-spacing: -0.02em; margin-bottom: 16px; }
.lead { font-size: 1.125rem; max-width: 34em; margin: 0 0 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.chips { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .9rem; }
.chips li::before { content: "✓"; color: var(--brand-lime); font-weight: 700; margin-right: 8px; }
.hero-media { margin: 0; background: #fff; border-radius: 20px; padding: 24px; box-shadow: 0 24px 60px rgb(0 0 0 / .35); }
.hero-media img { width: 100%; height: auto; }

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 8px; }
.section-head h2 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.25rem); }
.section-head p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.group-title { display: flex; align-items: center; gap: 12px; font-size: 1.05rem; margin: 40px 0 16px; }
.group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Clients strip */
.clients { padding: 32px 0; border-bottom: 1px solid var(--line); }
.clients-title { margin: 0 0 16px; text-align: center; color: var(--muted); font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.client-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 36px; }
.client-list li { color: #475569; font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }

/* Icons and WhatsApp */
.i { width: 18px; height: 18px; flex: none; }
.btn .i { margin-right: 8px; }
.btn-outline .i, .wa-link .i { color: #25d366; }
.wa-link { display: inline-flex; align-items: center; gap: 6px; }
.wa-float {
  position: fixed; right: 20px; bottom: max(20px, env(safe-area-inset-bottom)); z-index: 60;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 8px 24px rgb(15 23 42 / .25); transition: transform .15s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float .i { width: 30px; height: 30px; }

/* Product cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #cbd5e1; }
/* Fixed 4:3 photo box; the image is pinned inside it so tall portrait photos can't stretch the card. */
.card-media { position: relative; aspect-ratio: 4 / 3; background: #fff; border-bottom: 1px solid var(--line); }
.card-media img { position: absolute; inset: 16px; width: calc(100% - 32px); height: calc(100% - 32px); object-fit: contain; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 20px; }
.tag {
  align-self: flex-start; margin-bottom: 12px; padding: 4px 10px; border-radius: 999px;
  background: var(--brand-tint); color: var(--brand-dark); font-size: .75rem; font-weight: 600;
}
.card h4 { font-size: 1.1rem; margin-bottom: 12px; }
.specs { list-style: none; margin: 0 0 20px; padding: 0; font-size: .925rem; }
.specs li { position: relative; padding-left: 18px; margin: 6px 0; }
.specs li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-lime); }
.card .btn { margin-top: auto; }

/* More products */
.more { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.more a {
  display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 16px 18px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}
.more a:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.more strong { color: var(--ink); font-weight: 600; }
.more span { color: var(--muted); font-size: .875rem; }
.more .go { margin-top: 6px; color: var(--brand); font-style: normal; font-weight: 600; font-size: .85rem; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.about-grid p { font-size: 1.05rem; }
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.features li { padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.features h3 { font-size: 1rem; margin-bottom: 4px; }
.features p { margin: 0; font-size: .95rem; color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }
.contact-card { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.contact-card h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; }
.contact-card p { margin: 0 0 8px; color: var(--ink); }
.contact-card a { font-weight: 600; text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }
.big { font-size: 1.2rem; font-weight: 700; }
.muted { color: var(--muted) !important; font-size: .9rem; }

/* Footer */
.site-footer { background: var(--ink); color: #94a3b8; padding: 28px 0; font-size: .9rem; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-right: 72px; } /* room for the WhatsApp button */
.footer-row p { margin: 0; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 520px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 16px 16px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav-menu.open { display: flex; }
  .nav-menu a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-menu .btn { margin-top: 12px; }
  .hero { padding: 48px 0 56px; }
  .section { padding: 56px 0; }
  .grid, .contact-grid { grid-template-columns: 1fr; }
  .client-list { gap: 8px 20px; }
  .client-list li { font-size: .95rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
