/*
 * Etronic Solutions - public site styles.
 *
 * Deliberately small and self-contained: the old theme needed ~500KB of CSS
 * (a 174KB style.css, Revolution Slider, and three icon webfonts). This file
 * covers the whole public site in a few KB and uses Bootstrap 5 for layout and
 * components, so only the things Bootstrap does not provide are written here.
 *
 * Design tokens first, then layout, then components.
 */

/* ---------- tokens ---------- */
:root {
  --brand:        #2f6f63;
  --brand-dark:   #245149;
  --accent:       #e2a33b;
  --ink:          #16201d;
  --paper:        #ffffff;
  --paper-2:      #f5f7f6;
  --muted:        #5b6b66;
  --line:         #dfe5e2;

  --radius:       10px;
  --radius-sm:    6px;
  --shadow-sm:    0 1px 2px rgba(22, 32, 29, .06);
  --shadow:       0 6px 24px rgba(22, 32, 29, .08);
  --shadow-lg:    0 18px 48px rgba(22, 32, 29, .12);

  --nav-h:        72px;
  --section-y:    clamp(56px, 8vw, 96px);

  --font-body:    "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Zilla Slab", Georgia, "Times New Roman", serif;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Screen-reader-only, but focusable (used by the skip link) */
.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:focus {
  position: fixed; top: 8px; left: 8px; z-index: 2000;
  width: auto; height: auto; clip: auto; margin: 0;
  padding: 10px 16px; background: var(--ink); color: #fff; border-radius: var(--radius-sm);
}

/* ---------- shared section furniture ---------- */
.section { padding: var(--section-y) 0; }
.section--tight { padding: calc(var(--section-y) * .6) 0; }
.section--muted { background: var(--paper-2); }
.section--dark { background: var(--ink); color: #eef2f0; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .text-muted-custom { color: #a8b8b3; }

.section-head { margin-bottom: 44px; }
.section-head--center { text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); }
.section-head p { color: var(--muted); max-width: 62ch; margin-inline: auto; }
.section--dark .section-head p { color: #a8b8b3; }

.eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand); margin-bottom: .75rem;
}
.section--dark .eyebrow { color: var(--accent); }

.lead-muted { color: var(--muted); }

/* ---------- buttons ---------- */
.btn-brand {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .72rem 1.5rem;
  border: 1px solid var(--brand); border-radius: var(--radius-sm);
  background: var(--brand); color: #fff;
  font-size: .95rem; font-weight: 500; line-height: 1.4;
  cursor: pointer; text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.btn-brand:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .72rem 1.5rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: transparent; color: var(--ink);
  font-size: .95rem; font-weight: 500; line-height: 1.4;
  cursor: pointer; text-decoration: none;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); background: rgba(47, 111, 99, .05); }

.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn-accent:hover { background: #cf9430; border-color: #cf9430; color: var(--ink); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .navbar { min-height: var(--nav-h); }

.brand { display: inline-flex; align-items: center; gap: .65rem; }
.brand img { height: 34px; width: auto; }
.brand .brand-fallback {
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  color: var(--ink); text-decoration: none; letter-spacing: -.01em;
}

.site-nav .nav-link {
  color: var(--ink); font-size: .95rem; font-weight: 500;
  padding: .5rem .85rem !important; border-radius: var(--radius-sm);
  transition: color .18s ease, background-color .18s ease;
}
.site-nav .nav-link:hover { color: var(--brand); background: rgba(47, 111, 99, .06); }
.site-nav .nav-link.active { color: var(--brand); font-weight: 600; }
.site-nav .nav-link.active::after {
  content: ""; display: block; height: 2px; margin-top: 3px;
  background: var(--brand); border-radius: 2px;
}

.navbar-toggler { border-color: var(--line); }
.navbar-toggler:focus { box-shadow: none; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--paper-2) 0%, #eaf0ed 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero__inner {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 3.5rem; align-items: center;
  padding: clamp(64px, 9vw, 110px) 0;
}
.hero h1 { font-size: clamp(2.15rem, 4.6vw, 3.4rem); letter-spacing: -.015em; }
.hero__sub { font-size: 1.1rem; color: var(--muted); max-width: 52ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.hero__badges { display: flex; flex-wrap: wrap; gap: 1.75rem; margin-top: 2.75rem; }
.hero__badge strong {
  display: block; font-family: var(--font-display); font-size: 1.6rem; line-height: 1.1;
  color: var(--brand);
}
.hero__badge span { font-size: .82rem; color: var(--muted); }

/* Hero artwork: a soft panel holding the two product shots, with a gentle
   float so it does not sit completely static. */
.hero__art { position: relative; }
.hero__art::before {
  content: ""; position: absolute; inset: 8% -6% -8% 12%;
  background: linear-gradient(140deg, rgba(47,111,99,.14), rgba(226,163,59,.16));
  border-radius: 26px; transform: rotate(-3deg);
}
.hero__art img { position: relative; width: 100%; }
.hero__phone {
  position: absolute; right: 4%; bottom: -12%;
  width: 30%; max-width: 170px;
  filter: drop-shadow(0 20px 30px rgba(22,32,29,.18));
  animation: hero-float 7s ease-in-out infinite;
}
@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* ---------- page banner (inner pages) ---------- */
.page-banner {
  position: relative;
  background: var(--ink);
  color: #fff;
  padding: clamp(56px, 8vw, 88px) 0;
  overflow: hidden;
  isolation: isolate;
}
.page-banner__bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  opacity: .3;
}
.page-banner::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(22,32,29,.92) 0%, rgba(22,32,29,.55) 100%);
}
.page-banner h1 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); margin-bottom: .35rem; }
.page-banner p { color: #c3d0cc; max-width: 60ch; margin: 0; }

/* ---------- cards ---------- */
.card-soft {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card-soft:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cdd8d4; }

/* Services */
.service-card { height: 100%; padding: 1.9rem 1.6rem; }
.service-card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; margin-bottom: 1.1rem;
  border-radius: var(--radius-sm);
  background: rgba(47, 111, 99, .1); color: var(--brand);
  font-size: 1.4rem;
}
.service-card h3 { font-size: 1.16rem; }
.service-card p { color: var(--muted); font-size: .95rem; margin-bottom: 0; }
.service-card__link { display: inline-flex; align-items: center; gap: .35rem; margin-top: 1.1rem; font-size: .9rem; font-weight: 600; }
.service-card__link i { transition: transform .18s ease; }
.service-card:hover .service-card__link i { transform: translateX(3px); }

/* Numbered steps */
.step-list { counter-reset: step; }
.step-item { position: relative; padding-left: 4rem; padding-bottom: 2.2rem; }
.step-item:last-child { padding-bottom: 0; }
.step-item::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0;
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand); color: #fff;
  font-family: var(--font-display); font-size: 1.05rem;
}
.step-item::after {
  content: ""; position: absolute; left: 19px; top: 44px; bottom: 6px;
  width: 2px; background: var(--line);
}
.step-item:last-child::after { display: none; }
.step-item h3 { font-size: 1.12rem; margin-bottom: .35rem; }
.step-item p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Portfolio / domains grid */
.work-card { height: 100%; overflow: hidden; display: flex; flex-direction: column; }
.work-card__media { position: relative; aspect-ratio: 10 / 7; background: var(--paper-2); overflow: hidden; }
.work-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.work-card:hover .work-card__media img { transform: scale(1.04); }
.work-card__body { padding: 1.25rem 1.35rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.work-card__cat {
  font-size: .74rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  color: var(--brand); margin-bottom: .35rem;
}
.work-card h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.work-card p { color: var(--muted); font-size: .92rem; margin: 0; }
.work-card__actions { display: flex; gap: .6rem; margin-top: auto; padding-top: 1.1rem; }
.work-card__actions a {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .86rem; font-weight: 600; color: var(--brand);
}
.work-card__actions a:hover { color: var(--brand-dark); }

/* Filter chips: used above the portfolio and pricing grids */
.filter-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  padding: .45rem 1rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--muted);
  font-size: .87rem; font-weight: 500; line-height: 1.4;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- pricing ---------- */
.plan-card {
  height: 100%; display: flex; flex-direction: column;
  padding: 1.75rem 1.5rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.plan-card--featured { border-color: var(--brand); box-shadow: var(--shadow); position: relative; }
.plan-card--featured::before {
  content: "Most popular"; position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  padding: .18rem .7rem; border-radius: 999px;
  background: var(--brand); color: #fff; font-size: .7rem; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase; white-space: nowrap;
}
.plan-card h3 { font-size: 1.22rem; margin-bottom: .15rem; }
.plan-card__price { font-family: var(--font-display); font-size: 2.1rem; line-height: 1.1; color: var(--ink); }
.plan-card__price small { font-family: var(--font-body); font-size: .85rem; color: var(--muted); }
.plan-card__summary { color: var(--muted); font-size: .92rem; margin: .75rem 0 1.1rem; }
.plan-card ul { list-style: none; margin: 0 0 1.4rem; padding: 0; flex: 1; }
.plan-card li {
  display: flex; gap: .55rem; align-items: flex-start;
  padding: .38rem 0; font-size: .91rem; color: var(--muted);
}
.plan-card li::before {
  content: "\F26E"; font-family: "bootstrap-icons"; font-size: .95rem;
  color: var(--brand); flex: none; line-height: 1.5;
}
.plan-card .btn-brand, .plan-card .btn-ghost { width: 100%; justify-content: center; }

/* ---------- testimonials ---------- */
.quote-card {
  height: 100%; padding: 2rem 1.75rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.quote-card__mark { font-size: 1.9rem; line-height: 1; color: var(--accent); margin-bottom: .8rem; }
.quote-card blockquote { flex: 1; margin: 0 0 1.4rem; font-size: 1rem; color: var(--ink); }
.quote-card__person { display: flex; align-items: center; gap: .8rem; }
.quote-card__person img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.quote-card__name { font-weight: 600; font-size: .95rem; line-height: 1.3; }
.quote-card__role { font-size: .84rem; color: var(--muted); }

/* ---------- forms ---------- */
.form-label { font-size: .88rem; font-weight: 600; margin-bottom: .35rem; }
.form-control, .form-select {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .65rem .85rem; font-size: .95rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47, 111, 99, .12);
}
.form-hint { font-size: .8rem; color: var(--muted); margin-top: .3rem; }

.alert-site {
  padding: .9rem 1.1rem; border-radius: var(--radius-sm);
  border: 1px solid transparent; font-size: .93rem;
}
.alert-site--success { background: #e8f5ee; border-color: #b7dfc7; color: #1d6b3f; }
.alert-site--error   { background: #fdeceb; border-color: #f5c2bd; color: #a02b21; }

/* ---------- about ---------- */
.value-row { display: flex; gap: 1.1rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.value-row:first-child { border-top: 1px solid var(--line); }
.value-row__icon {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: rgba(47,111,99,.1); color: var(--brand);
}
.value-row h3 { font-size: 1.08rem; margin-bottom: .25rem; }
.value-row p { color: var(--muted); font-size: .94rem; margin: 0; }

.timeline { position: relative; padding-left: 1.75rem; }
.timeline::before {
  content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px;
  width: 2px; background: var(--line);
}
.timeline__item { position: relative; padding-bottom: 1.9rem; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: ""; position: absolute; left: -1.75rem; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--brand); box-shadow: 0 0 0 3px var(--paper);
}
.timeline__year {
  display: inline-block; margin-bottom: .3rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .08em;
  color: var(--brand);
}
.timeline__item h3 { font-size: 1.08rem; margin-bottom: .25rem; }
.timeline__item p { color: var(--muted); font-size: .94rem; margin: 0; }

.team-card { text-align: center; height: 100%; padding: 1.75rem 1.25rem; }
.team-card img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0 auto 1rem; }
.team-card h3 { font-size: 1.05rem; margin-bottom: .15rem; }
.team-card__role { font-size: .84rem; color: var(--brand); font-weight: 600; }
.team-card p { color: var(--muted); font-size: .92rem; margin: .6rem 0 0; }

/* ---------- terms ---------- */
.term-clause { padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.term-clause:first-child { border-top: 1px solid var(--line); }
.term-clause__title {
  display: flex; gap: .85rem; align-items: baseline; margin-bottom: .5rem;
}
.term-clause__title .n {
  font-family: var(--font-display); color: var(--brand); font-size: 1.05rem; flex: none;
}
.term-clause__title h3 { font-size: 1.12rem; margin: 0; }
.term-clause p { color: var(--muted); margin: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #c3d0cc; padding: clamp(48px, 7vw, 76px) 0 0; }
.site-footer h4 {
  font-family: var(--font-body); font-size: .8rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 1.1rem;
}
.site-footer a { color: #c3d0cc; }
.site-footer a:hover { color: var(--accent); }
.site-footer address { font-style: normal; font-size: .92rem; line-height: 1.7; }
.footer-office { margin-bottom: 1.6rem; }
.footer-office__country { color: var(--accent); font-weight: 600; font-size: .9rem; margin-bottom: .2rem; }

.social-list { display: flex; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.social-list a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .07); font-size: 1rem;
  transition: background-color .18s ease, color .18s ease;
}
.social-list a:hover { background: var(--accent); color: var(--ink); }

.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  margin-top: 3rem; padding: 1.4rem 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .85rem; color: #8b9c97;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.25rem; list-style: none; margin: 0; padding: 0; font-size: .88rem; }

/* ---------- floating WhatsApp ---------- */
.whatsapp-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 1035;
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25d366; color: #fff; font-size: 1.6rem;
  box-shadow: 0 8px 22px rgba(37, 211, 102, .38);
  transition: transform .18s ease;
}
.whatsapp-float:hover { transform: scale(1.06); color: #fff; }

/* ---------- scroll reveal ----------
   Only active once site.js adds .has-reveal to <html>, so content stays
   visible if the script fails to load. */
.has-reveal .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease, transform .55s ease;
}
.has-reveal .reveal.is-revealed { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .has-reveal .reveal { opacity: 1; transform: none; }
}

/* ---------- carousel (testimonials) ----------
   A scroll-snap track: works as a plain list without JS, gains
   prev/next paging once site.js attaches. */
.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: .25rem;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * { scroll-snap-align: center; }

@media (min-width: 768px) {
  .carousel-track {
    grid-auto-columns: calc((100% - 2 * 1.25rem) / 3);
  }
}

.carousel-nav { display: flex; gap: .5rem; justify-content: center; margin-top: 1.5rem; }
.carousel-nav button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  cursor: pointer; font-size: 1.05rem;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}
.carousel-nav button:hover { border-color: var(--brand); background: var(--brand); color: #fff; }

/* ---------- utilities ---------- */
.text-brand { color: var(--brand) !important; }
.bg-paper-2 { background: var(--paper-2); }
.rounded-soft { border-radius: var(--radius) !important; }
.shadow-soft { box-shadow: var(--shadow-sm) !important; }
.prose-narrow { max-width: 68ch; }

/* ---------- breakpoints ---------- */
@media (max-width: 991.98px) {
  .hero__inner { grid-template-columns: 1fr; gap: 2.75rem; }
  .hero__phone { position: static; width: 42%; margin: -1.5rem auto 0; }
}
@media (max-width: 767.98px) {
  :root { --nav-h: 62px; }
  .site-nav .nav-link { padding-inline: .25rem !important; }
  .hero__badges { gap: 1.25rem; }
  .step-item { padding-left: 3.25rem; }
  .step-item::before { width: 34px; height: 34px; }
  .step-item::after { left: 16px; top: 38px; }
}
@media print {
  .site-header, .site-footer, .whatsapp-float, .filter-chips { display: none !important; }
  body { color: #000; }
  .section { padding: 12pt 0; }
}