/* Hysam Integra Solution — static site
   Brand: navy #161F35, teal #198491, mint #5CD2B9 (from logo_hysam_01.png) */

:root {
  --navy: #161f35;
  --navy-2: #1e2b4a;
  --teal: #198491;
  --teal-dark: #12656f;
  --mint: #5cd2b9;
  --ink: #1b2434;
  --muted: #5c6679;
  --line: #e4e9ef;
  --soft: #f4f8fa;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 2px 4px rgba(22, 31, 53, .04), 0 12px 32px rgba(22, 31, 53, .07);
  --wrap: 1140px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

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

h1, h2, h3, h4, .num { font-family: Inter, system-ui, sans-serif; font-weight: 700; line-height: 1.2; color: var(--navy); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.35rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.4rem); letter-spacing: -.015em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; }
a { color: var(--teal); }
img { max-width: 100%; height: auto; display: block; }

.wrap { width: min(var(--wrap), calc(100% - 2.5rem)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--soft { background: var(--soft); }
.center { text-align: center; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 62ch; }
.center .lead { margin-inline: auto; }

.eyebrow {
  display: inline-block; font-family: Inter, sans-serif; font-weight: 700;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal); margin-bottom: .9rem;
}
.hero .eyebrow { color: var(--mint); }
.accent { color: var(--teal); }
.hero .accent { color: var(--mint); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: Inter, sans-serif; font-weight: 600; font-size: .97rem;
  padding: .82rem 1.5rem; border-radius: 999px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: .18s ease;
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover { background: var(--teal-dark); transform: translateY(-2px); }
.btn--ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn--ghost:hover { border-color: var(--mint); color: var(--mint); }
.btn--outline { border-color: var(--line); color: var(--navy); background: #fff; }
.btn--outline:hover { border-color: var(--teal); color: var(--teal); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .93);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 1.5rem; padding: .7rem 0; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 46px; width: auto; }
.nav-links { display: flex; gap: 1.55rem; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.nav-links a {
  font-family: Inter, sans-serif; font-weight: 500; font-size: 1rem;
  color: var(--navy); text-decoration: none; padding: .3rem 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--teal); border-bottom-color: var(--mint); }
.nav-cta { display: flex; align-items: center; gap: .6rem; flex: none; }
.nav-phone { display: flex; flex-direction: column; line-height: 1.25; text-decoration: none; }
.nav-phone span { font-size: .74rem; color: var(--muted); }
.nav-phone strong { font-family: Inter, sans-serif; font-size: .97rem; color: var(--navy); }

.nav-toggle, .nav-toggle-label { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(1000px 520px at 82% 12%, rgba(92, 210, 185, .28), transparent 60%),
    radial-gradient(760px 460px at 8% 92%, rgba(25, 132, 145, .38), transparent 62%),
    linear-gradient(150deg, #101829 0%, var(--navy) 46%, #1d3350 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent);
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 3.2rem; align-items: center; padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.hero h1 { color: #fff; }
.hero p { color: rgba(255, 255, 255, .82); font-size: 1.1rem; max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero-art { position: relative; }
.hero-art img { border-radius: 18px; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat { text-align: center; padding: 1.4rem .5rem; }
.stat .num { font-size: clamp(2rem, 3.6vw, 2.9rem); color: var(--teal); margin: 0; }
.stat p { margin: .2rem 0 0; font-size: .95rem; color: var(--muted); }

/* ---------- generic grids ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.9rem 1.7rem; transition: .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d3dde6; }
.card h3 { margin-bottom: .45rem; }
.card p { margin: 0; color: var(--muted); font-size: .97rem; }

.icon {
  width: 54px; height: 54px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(25, 132, 145, .12), rgba(92, 210, 185, .2));
  margin-bottom: 1.15rem;
}
.icon svg { width: 27px; height: 27px; stroke: var(--teal); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }
.split--flip .split-text { order: 2; }

.ticks { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .95rem; }
.ticks li { display: flex; gap: .8rem; align-items: flex-start; }
.ticks svg { width: 22px; height: 22px; flex: none; margin-top: 3px; stroke: var(--teal); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ticks strong { display: block; font-family: Inter, sans-serif; color: var(--navy); }
.ticks span { color: var(--muted); font-size: .96rem; }

/* ---------- faq ---------- */
.faq { max-width: 860px; margin-inline: auto; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: .85rem; overflow: hidden;
}
.faq details[open] { border-color: var(--teal); box-shadow: var(--shadow); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.15rem 3.2rem 1.15rem 1.4rem; position: relative;
  font-family: Inter, sans-serif; font-weight: 600; color: var(--navy); font-size: 1.03rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 1.4rem; top: 50%; width: 11px; height: 11px;
  border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { padding: 0 1.4rem 1.3rem; color: var(--muted); font-size: .99rem; }

/* ---------- cta band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, #1c3a52 55%, var(--teal-dark) 100%);
  color: #fff; border-radius: 20px; padding: clamp(2.4rem, 5vw, 3.6rem);
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .84); max-width: 60ch; margin-inline: auto; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 1.6rem; }

/* ---------- contact ---------- */
.page-head {
  background: linear-gradient(150deg, #101829, var(--navy) 60%, #1d3350);
  color: #fff; padding: clamp(3rem, 6vw, 4.6rem) 0;
}
.page-head h1 { color: #fff; margin-bottom: .3rem; }
.page-head p { color: rgba(255, 255, 255, .8); margin: 0; }
.crumb { font-size: .87rem; color: rgba(255, 255, 255, .6); margin-bottom: .9rem; }
.crumb a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.crumb a:hover { color: var(--mint); }

.contact-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(2rem, 4vw, 3.4rem); align-items: start; }
.contact-item { display: flex; gap: 1rem; margin-bottom: 1.7rem; }
.contact-item .icon { margin-bottom: 0; width: 48px; height: 48px; flex: none; }
.contact-item h3 { font-size: 1.02rem; margin-bottom: .1rem; }
.contact-item a, .contact-item p { color: var(--muted); text-decoration: none; margin: 0; font-size: .99rem; }
.contact-item a:hover { color: var(--teal); }

form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.2rem); box-shadow: var(--shadow); }
.field { margin-bottom: 1.1rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
label { display: block; font-family: Inter, sans-serif; font-weight: 500; font-size: .9rem; color: var(--navy); margin-bottom: .38rem; }
input, textarea {
  width: 100%; font: inherit; font-size: .98rem; color: var(--ink);
  padding: .74rem .9rem; border: 1px solid var(--line); border-radius: 10px;
  background: #fcfdfe; transition: .16s;
}
input:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(25, 132, 145, .13); background: #fff; }
textarea { resize: vertical; min-height: 130px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .87rem; color: var(--muted); margin: .9rem 0 0; }
.form-msg { margin-top: 1rem; padding: .85rem 1rem; border-radius: 10px; font-size: .95rem; display: none; }
.form-msg.ok { display: block; background: rgba(25, 132, 145, .1); color: var(--teal-dark); border: 1px solid rgba(25, 132, 145, .3); }
.form-msg.err { display: block; background: #fdeceb; color: #a3312a; border: 1px solid #f3c3bf; }

.map { border: 0; width: 100%; height: 340px; border-radius: var(--radius); filter: grayscale(.35) contrast(1.05); }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .72); padding: clamp(3rem, 6vw, 4.2rem) 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.5rem; }
.site-footer h4 { color: #fff; font-size: 1.02rem; margin-bottom: 1rem; }
.site-footer p { font-size: .96rem; }
.site-footer a { color: rgba(255, 255, 255, .72); text-decoration: none; }
.site-footer a:hover { color: var(--mint); }
.footer-logo { height: 52px; width: auto; margin-bottom: 1.1rem; background: #fff; padding: .5rem .7rem; border-radius: 10px; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; font-size: .96rem; }
.footer-bottom {
  margin-top: 2.8rem; border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 1.3rem 0; font-size: .89rem; display: flex; flex-wrap: wrap; gap: .6rem; justify-content: space-between;
}

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

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .split--flip .split-text { order: 0; }
  .hero-art { display: none; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
  .nav-toggle-label {
    display: grid; place-items: center; margin-left: auto; width: 42px; height: 42px;
    border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
  }
  .nav-toggle-label span, .nav-toggle-label span::before, .nav-toggle-label span::after {
    content: ""; display: block; width: 19px; height: 2px; background: var(--navy); border-radius: 2px; position: relative;
  }
  .nav-toggle-label span::before { position: absolute; top: -6px; }
  .nav-toggle-label span::after { position: absolute; top: 6px; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line);
    padding: .5rem 1.25rem 1rem; box-shadow: var(--shadow);
  }
  .nav-links a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .nav { position: relative; flex-wrap: wrap; }
  .nav-cta { display: none; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .grid--3, .grid--2, .row2, .footer-grid, .stats { grid-template-columns: 1fr; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
