/* =========================================================
   HYTOP – hytoptech.com
   Brand colours taken from the official logo / brochure
   ========================================================= */
:root {
  --teal: #16697c;
  --teal-dark: #0e4a58;
  --teal-darker: #0a3540;
  --teal-light: #e6f0f2;
  --gold: #d4a675;
  --gold-dark: #b98a58;
  --ink: #1d2a30;
  --muted: #5b6b72;
  --line: #dde6e9;
  --bg: #ffffff;
  --bg-alt: #f5f8f9;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(14, 74, 88, .08);
  --shadow-lg: 0 20px 50px rgba(14, 74, 88, .16);
  --header-h: 72px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; color: var(--teal-dark); }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.hidden { display: none; }
.center { text-align: center; }
.mt-lg { margin-top: 3rem; }

.container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: .8rem;
}
.eyebrow-gold { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 8px 20px rgba(22, 105, 124, .28); }
.btn-primary:hover { background: var(--teal-dark); }
.btn-ghost { border-color: rgba(255,255,255,.75); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--teal-dark); }
.btn-sm { padding: .55rem 1.1rem; font-size: .85rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(0,0,0,.05); }
.header-inner { display: flex; align-items: center; gap: 2rem; height: var(--header-h); }
.brand img { width: 140px; }
.main-nav { display: flex; gap: 1.8rem; margin-left: auto; }
.main-nav a {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem;
  position: relative; padding: .3rem 0;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--gold); transition: width .25s;
}
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 1rem; }

.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-switch button {
  border: 0; background: transparent; font: inherit; font-size: .78rem; font-weight: 700;
  color: var(--muted); padding: .3rem .65rem; border-radius: 999px; cursor: pointer;
}
.lang-switch button.active { background: var(--teal); color: #fff; }

.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; 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;
  color: #fff;
  padding: clamp(5rem, 12vw, 9rem) 0 0;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(10,53,64,.95) 0%, rgba(14,74,88,.85) 45%, rgba(22,105,124,.35) 100%),
    url("../img/hero-solar-wind.webp") center / cover no-repeat;
}
.hero-content { max-width: 760px; margin-left: max(1.25rem, (100% - 1180px) / 2); margin-right: 1.25rem; }
.hero .eyebrow { color: var(--gold); }
.hero h1 { color: #fff; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255,255,255,.88); max-width: 640px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

.hero-badges {
  list-style: none; margin: clamp(3.5rem, 8vw, 6rem) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  backdrop-filter: blur(6px);
}
.hero-badges li { padding: 1.4rem 1.5rem; border-right: 1px solid rgba(255,255,255,.12); }
.hero-badges li:last-child { border-right: 0; }
.hero-badges strong { display: block; font-size: 1.15rem; color: var(--gold); }
.hero-badges span { font-size: .88rem; color: rgba(255,255,255,.8); }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: linear-gradient(135deg, var(--teal-darker), var(--teal)); color: #fff; }
.section-dark h2 { color: #fff; }
.section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-head p:last-child { color: var(--muted); }
.section-dark .section-head p { color: rgba(255,255,255,.8); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); }
.align-center { align-items: center; }

/* About */
#about p { color: var(--muted); }
.pillars { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.pillars li {
  display: flex; flex-direction: column; align-items: flex-start; gap: .7rem;
  font-weight: 700; color: var(--teal-dark); font-size: .95rem;
  padding: 1.1rem; border: 1px solid var(--line); border-radius: var(--radius);
}
.pillar-icon {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--teal-light); display: grid; place-items: center;
}
.pillar-icon svg, .service-icon svg, .ci svg {
  width: 22px; height: 22px; fill: none; stroke: var(--teal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.about-visual { position: relative; margin: 0; border-radius: calc(var(--radius) * 1.4); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-visual > img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; object-position: center bottom; }
.about-visual figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.5rem 1.5rem 1.4rem;
  background: linear-gradient(transparent, rgba(10,53,64,.92));
  color: #fff; display: flex; flex-direction: column; gap: .4rem; font-weight: 600;
}

/* Cards */
.cards { display: grid; gap: 1.5rem; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
}
.service { padding: 2rem; }
.service:hover, .product:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-icon {
  width: 52px; height: 52px; border-radius: 12px; margin-bottom: 1.2rem;
  background: linear-gradient(135deg, var(--teal-light), #fff);
  border: 1px solid var(--line);
  display: grid; place-items: center;
}
.service p { color: var(--muted); margin: 0; font-size: .95rem; }

/* Products */
.product-filters { display: flex; justify-content: center; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.5rem; }
.filter {
  font: inherit; font-size: .9rem; font-weight: 600;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  padding: .5rem 1.2rem; border-radius: 999px; cursor: pointer; transition: all .2s;
}
.filter:hover { border-color: var(--teal); color: var(--teal); }
.filter.active { background: var(--teal); border-color: var(--teal); color: #fff; }

.cards-products { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); align-items: start; }
.product { overflow: hidden; display: flex; flex-direction: column; }
.product.is-hidden { display: none; }
.product-media {
  position: relative;
  background: #fff; aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.product-media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform .5s;
}
.product-media.contain img { object-fit: contain; padding: .4rem; }
.product:hover .product-media img { transform: scale(1.04); }
.product-media-wide { background: linear-gradient(180deg, #dbe8f2, #fff); }
.product-media-wide img { object-position: right center; }
.product-media-icon { background: linear-gradient(135deg, var(--teal-light), #fff); }
.product-media-icon svg {
  width: 45%; height: auto; fill: none; stroke: var(--teal); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round;
}
.product-body { padding: 1.6rem 1.6rem 1.4rem; }
.product-body h3 { margin: .7rem 0 .15rem; font-size: 1.35rem; color: var(--teal-dark); }
.product-sub { font-weight: 600; color: var(--gold-dark); font-size: .95rem; margin-bottom: .8rem; }
.product-body > p:not(.product-sub) { color: var(--muted); font-size: .95rem; }
.tag {
  display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  padding: .25rem .7rem; border-radius: 999px; background: var(--teal-light); color: var(--teal);
}
.tag-gold { background: #f7ede2; color: var(--gold-dark); }

details { border-top: 1px solid var(--line); padding-top: .9rem; margin-top: .5rem; }
summary {
  cursor: pointer; font-weight: 700; color: var(--teal); list-style: none;
  display: flex; align-items: center; justify-content: space-between;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.3rem; line-height: 1; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details ul { margin: .9rem 0 0; padding-left: 1.1rem; color: var(--muted); font-size: .92rem; }
details li { margin-bottom: .35rem; }
details li::marker { color: var(--gold); }

.spec-table { width: 100%; border-collapse: collapse; margin-top: .9rem; font-size: .88rem; }
.spec-table th, .spec-table td { text-align: left; padding: .45rem .3rem; border-bottom: 1px solid var(--line); }
.spec-table th { font-weight: 600; color: var(--muted); }
.spec-table td { font-weight: 700; color: var(--ink); text-align: right; white-space: nowrap; }

/* Applications */
.app {
  padding: 2rem 1.6rem; border-radius: var(--radius);
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  transition: background .25s, transform .25s;
}
.app:hover { background: rgba(255,255,255,.12); transform: translateY(-4px); }
.app-num { display: block; font-size: 2.2rem; font-weight: 800; color: var(--gold); margin-bottom: .6rem; }
.app p { color: rgba(255,255,255,.8); margin: 0; font-size: .95rem; }

/* Why */
.why-visual { margin: 0; border-radius: calc(var(--radius) * 1.4); overflow: hidden; box-shadow: var(--shadow-lg); }
.why-visual img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.checklist { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.checklist li {
  position: relative; padding: 0 0 1.1rem 2.4rem; color: var(--muted);
}
.checklist li strong { color: var(--ink); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .15rem; width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 60% no-repeat;
}

/* Contact */
#contact > .container > div > p { color: var(--muted); }
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; align-items: center; gap: 1rem; font-weight: 600; }
.contact-list a { text-decoration: none; }
.ci { width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; flex-shrink: 0; }

.contact-form { padding: 2rem; display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form label { display: grid; gap: .35rem; font-size: .88rem; font-weight: 600; color: var(--ink); }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; font-size: .95rem; font-weight: 400;
  padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(22,105,124,.15);
}
.contact-form textarea { resize: vertical; }
.contact-form .consent { display: flex; align-items: flex-start; gap: .6rem; font-weight: 400; color: var(--muted); font-size: .85rem; }
.consent input { margin-top: .25rem; accent-color: var(--teal); }
.form-status { margin: 0; font-weight: 600; font-size: .9rem; min-height: 1.2em; }
.form-status.ok { color: #1c7c4a; }
.form-status.err { color: #b3261e; }

/* Footer */
.site-footer { background: var(--teal-darker); color: rgba(255,255,255,.75); padding: 3.5rem 0 1.5rem; font-size: .92rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand { max-width: 360px; }
.footer-brand img { width: 150px; margin-bottom: 1rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; }
.footer-nav a, .back-top { color: rgba(255,255,255,.85); text-decoration: none; }
.footer-nav a:hover, .back-top:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 1.5rem; font-size: .85rem; flex-wrap: wrap; gap: 1rem; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Floating WhatsApp Button ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  background: #25d366;
  color: #ffffff;
  border-radius: 999px;
  padding: 10px 18px 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.55);
  background: #20bd5a;
  color: #ffffff;
}
.wa-icon {
  width: 28px;
  height: 28px;
  display: block;
}
@media (max-width: 600px) {
  .whatsapp-float {
    padding: 12px;
    bottom: 20px;
    right: 20px;
    border-radius: 50%;
  }
  .whatsapp-label {
    display: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-badges { grid-template-columns: repeat(2, 1fr); }
  .hero-badges li:nth-child(2) { border-right: 0; }
  .hero-badges li:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.12); }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .hide-mobile { display: none; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px rgba(0,0,0,.08);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .main-nav.open { max-height: 400px; }
  .main-nav a { padding: 1rem 1.25rem; border-top: 1px solid var(--line); }
  .main-nav a::after { display: none; }
  .header-actions { margin-left: auto; }
  .grid-2 { grid-template-columns: 1fr; }
  .why-visual { order: 2; }
}

@media (max-width: 600px) {
  .cards-3, .cards-4 { grid-template-columns: 1fr; }
  .cards-products { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .pillars li { flex-direction: row; align-items: center; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form input, .contact-form select, .contact-form textarea { font-size: 16px; }
  .hero-badges li { padding: 1rem; }
  .hero-badges strong { font-size: 1rem; }
  .brand img { width: 115px; }
}

/* ---------- Legal page ---------- */
.legal { padding: 4rem 0 6rem; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); color: var(--teal-dark); }
.legal h2 { font-size: 1.4rem; margin-top: 2.5rem; }
.legal p, .legal li { color: var(--muted); }
.todo { background: #fff6e5; border-left: 4px solid var(--gold); padding: .1rem .4rem; color: #7a5a2e; }
