/* ==========================================================================
   Olimex – static site styles
   ========================================================================== */

:root {
  --navy-900: #0b1422;
  --navy-800: #0f1b2d;
  --navy-700: #1a2a42;
  --accent: #f26b1d;
  --accent-600: #d95a10;
  --ink: #111827;
  --ink-soft: #4b5563;
  --line: #e5e7eb;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
  --shadow-md: 0 10px 30px -12px rgba(16, 24, 40, .18);
  --header-h: 72px;
  --container: 1160px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.125rem; font-weight: 700; }
p { margin: 0 0 1em; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--accent);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus { left: 8px; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
}
.muted { color: var(--ink-soft); }
.small { font-size: .875rem; }

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.4rem;
  border-radius: 999px;
  border: 2px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--accent-600); border-color: var(--accent-600); transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid rgba(242, 107, 29, .4); outline-offset: 2px; }
.btn svg { width: 20px; height: 20px; }
.btn-sm { padding: .55rem 1.1rem; font-size: .9rem; }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .5); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { background: var(--bg-alt); border-color: var(--ink-soft); }

/* Header ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.brand img { height: 36px; width: auto; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a:not(.btn) {
  text-decoration: none;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color .2s;
}
.nav a:not(.btn):hover,
.nav a.active { color: var(--ink); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.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); }

/* Hero -------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(82vh, 720px);
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(11, 20, 34, .92) 0%, rgba(11, 20, 34, .75) 45%, rgba(11, 20, 34, .25) 100%),
    url("../img/hero.jpg") center / cover no-repeat;
}
.hero-inner { padding-block: 80px; max-width: var(--container); }
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.75rem);
  font-weight: 800;
  max-width: 16ch;
}
.hero .lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: rgba(255, 255, 255, .82);
  max-width: 52ch;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Stats ------------------------------------------------------------------- */
.stats { background: var(--navy-800); color: #fff; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.stat {
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  border-left: 1px solid rgba(255, 255, 255, .1);
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat strong { font-size: 2rem; font-weight: 800; color: var(--accent); line-height: 1; }
.stat span { color: rgba(255, 255, 255, .7); font-size: .95rem; }

/* Sections ---------------------------------------------------------------- */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 48px; }

.split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.prose p { color: var(--ink-soft); font-size: 1.075rem; }

.pillars {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
.pillars li {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* Brands ------------------------------------------------------------------ */
.brands {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.brand-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.brand-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: transparent; }
.brand-logo {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.brand-logo img { max-height: 64px; max-width: 180px; object-fit: contain; }
.brand-card p { color: var(--ink-soft); font-size: .95rem; margin-bottom: .75rem; }
.brand-card .note {
  font-size: .8rem;
  font-weight: 600;
  color: var(--accent-600);
  background: rgba(242, 107, 29, .08);
  padding: .35rem .6rem;
  border-radius: 6px;
  align-self: flex-start;
}
.brand-card a {
  margin-top: auto;
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.brand-card a::after { content: " →"; color: var(--accent); }
.brand-card a:hover { color: var(--accent-600); }

/* Form -------------------------------------------------------------------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: clamp(20px, 4vw, 36px);
}
.form { display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label {
  display: grid;
  gap: 6px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink);
}
.form input,
.form textarea {
  font: inherit;
  font-weight: 400;
  width: 100%;
  padding: .75rem .9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-alt);
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.form textarea { resize: vertical; min-height: 140px; }
.form input:focus,
.form textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(242, 107, 29, .15);
}
.form .invalid { border-color: #dc2626; }
.form-error { color: #dc2626; font-size: .9rem; margin: 0; }
.form-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Contact (dark) ---------------------------------------------------------- */
.section-dark { background: var(--navy-900); color: #fff; }
.section-dark .muted { color: rgba(255, 255, 255, .65); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--navy-700);
  border: 1px solid rgba(255, 255, 255, .06);
  text-decoration: none;
  transition: background .2s, transform .2s;
}
.contact-card:hover { background: #22385a; transform: translateY(-2px); }
.contact-card .icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(242, 107, 29, .15);
  color: var(--accent);
  margin-bottom: .5rem;
}
.contact-card .icon svg { width: 22px; height: 22px; }
.contact-card .label { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255, 255, 255, .55); }
.contact-card strong { font-weight: 600; font-size: 1rem; line-height: 1.4; word-break: break-word; }

.map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  aspect-ratio: 21 / 8;
  background: var(--navy-700);
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.3); }

/* Footer ------------------------------------------------------------------ */
.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, .6);
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: .9rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 24px;
}
.footer-inner p { margin: 0; }
.social { display: flex; gap: 12px; }
.social a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  transition: background .2s;
}
.social a:hover { background: var(--accent); }
.social svg { width: 18px; height: 18px; }

/* Floating WhatsApp ------------------------------------------------------- */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 25px -5px rgba(37, 211, 102, .5);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* Reveal on scroll -------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

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

/* Responsive -------------------------------------------------------------- */
@media (max-width: 960px) {
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .map { aspect-ratio: 16 / 9; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; }

  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 0; flex-direction: row; align-items: baseline; gap: .75rem; }
  .stat:first-child { border-top: 0; }

  .field-row { grid-template-columns: 1fr; }
  .form-actions .btn { flex: 1 1 100%; }
}

@media (max-width: 520px) {
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; padding-bottom: 88px; }
  .brand img { height: 30px; }
}
