/* ==========================================================================
   WHES Corporation — Premium corporate UI (no framework)
   ========================================================================== */

/* Reset / base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.55; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid rgba(16, 185, 129, 0.55); outline-offset: 3px; border-radius: 10px; }

/* Ensure the HTML `hidden` attribute always works (prevents modals/banners from staying visible) */
[hidden]{
  display: none !important;
}

:root{
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface2: #f1f5f9;
  --ink: #0b1220;
  --muted: #475569;
  --muted2: #64748b;
  --border: rgba(15, 23, 42, 0.10);
  --shadow: 0 18px 40px rgba(2, 6, 23, 0.12);
  --shadow2: 0 10px 24px rgba(2, 6, 23, 0.10);
  --radius: 18px;

  --brand: #10b981;         /* emerald */
  --brand2: #0ea5e9;        /* sky */
  --brandDark: #0f766e;     /* teal */
  --navy: #0b1220;
  --navy2: #111a2d;

  --container: 1160px;
  --gap: 24px;

  --text-sm: 0.93rem;
  --text-xs: 0.85rem;
}

.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0;
}

.skip-link{
  position: absolute;
  left: 12px; top: 10px;
  background: var(--navy);
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  transform: translateY(-140%);
  transition: transform .2s ease;
  z-index: 9999;
}
.skip-link:focus{ transform: translateY(0); }

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 18px;
}

/* Topbar */
.topbar{
  background: linear-gradient(90deg, #0b1220, #0f172a);
  color: rgba(255,255,255,.90);
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.topbar__inner{
  display:flex;
  gap: 12px;
  align-items:center;
  justify-content: space-between;
  padding: 10px 0;
  flex-wrap: wrap;
}
.topbar__left, .topbar__right{ display:flex; gap: 10px; align-items:center; flex-wrap: wrap; }
.chip{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10);
}
.chip__label{ font-size: var(--text-xs); opacity: .85; }
.chip--muted{ background: rgba(255,255,255,.06); opacity: .95; }

/* Header */
.header{
  position: sticky;
  top: 0;
  z-index: 2000;
  background: rgba(247,248,251,.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header__inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 14px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  text-decoration: none;
}
.brand__mark{
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(2, 6, 23, 0.18);
}
.brand__text{ display:flex; flex-direction: column; line-height: 1.15; }
.brand__name{ font-weight: 800; letter-spacing: -0.02em; }
.brand__tagline{ font-size: var(--text-xs); color: var(--muted2); margin-top: 2px; }

.brand--footer .brand__tagline{ color: rgba(255,255,255,.70); }

/* Navigation */
.nav{ position: relative; }
.nav__toggle{
  display:none;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: var(--shadow2);
  cursor: pointer;
}
.nav__toggleLines{
  display:block;
  width: 20px; height: 12px;
  position: relative;
}
.nav__toggleLines::before,
.nav__toggleLines::after{
  content:"";
  position:absolute;
  left:0;
  width: 20px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .2s ease, top .2s ease;
}
.nav__toggleLines::before{ top:2px; }
.nav__toggleLines::after{ top:8px; }

.nav__drawer{
  display:flex;
  align-items:center;
  gap: 18px;
}
.nav__list{
  list-style:none;
  display:flex;
  align-items:center;
  gap: 14px;
  margin:0;
  padding:0;
}
.nav__link{
  color: var(--navy);
  font-weight: 650;
  font-size: 0.98rem;
  padding: 10px 10px;
  border-radius: 12px;
}
.nav__link:hover{
  background: rgba(16, 185, 129, 0.10);
  text-decoration:none;
}
.nav__link.is-active{
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.18);
}

.nav__cta{ margin-left: 6px; }
.nav__hasSub{ position: relative; display:flex; align-items:center; gap: 6px; }
.nav__subToggle{
  width: 34px; height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.72);
  cursor:pointer;
  position: relative;
}
.nav__subToggle::after{
  content:"";
  display:block;
  width: 8px; height: 8px;
  border-right: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  transform: rotate(45deg);
  position:absolute;
  top: 11px; left: 12px;
}
.nav__sub{
  position:absolute;
  top: 44px; left: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 10px;
  min-width: 210px;
  list-style:none;
  margin:0;
  display:none;
}
.nav__sub a{
  display:block;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
}
.nav__sub a:hover{
  background: rgba(14, 165, 233, 0.10);
  text-decoration:none;
}
.nav__hasSub.is-open .nav__sub{ display:block; }

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid transparent;
  cursor:pointer;
  text-decoration:none;
  font-weight: 750;
  letter-spacing: -0.01em;
  line-height: 1;
  box-shadow: none;
}
.btn:hover{ text-decoration:none; transform: translateY(-1px); }
.btn:active{ transform: translateY(0); }

.btn--primary{
  background: linear-gradient(90deg, var(--brand), var(--brand2));
  color: #06101a;
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 14px 26px rgba(16,185,129,.25);
}
.btn--soft{
  background: rgba(16,185,129,.10);
  color: var(--navy);
  border-color: rgba(16,185,129,.18);
}
.btn--ghost{
  background: transparent;
  border-color: rgba(15,23,42,.14);
  color: var(--navy);
}
.btn--link{
  padding: 0;
  border: 0;
  background: none;
  color: var(--navy);
}

/* Sections */
.section{ padding: 56px 0; }
.section--tight{ padding: 40px 0; }
.section--dark{
  background: radial-gradient(900px 360px at 15% 10%, rgba(16,185,129,.25), transparent 60%),
              radial-gradient(900px 360px at 85% 40%, rgba(14,165,233,.20), transparent 60%),
              linear-gradient(180deg, #0b1220, #0f172a);
  color: rgba(255,255,255,.92);
}
.section--dark .muted{ color: rgba(255,255,255,.70); }
.section--alt{ background: #eef2f7; }

.kicker{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(16,185,129,.12);
  border: 1px solid rgba(16,185,129,.18);
  color: var(--navy);
  font-weight: 750;
  font-size: var(--text-xs);
}
.section--dark .kicker{
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.14);
  color: rgba(255,255,255,.92);
}

.h1{
  font-size: clamp(2.0rem, 1.2rem + 2.2vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin: 14px 0 12px;
}
.h2{
  font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}
.lead{
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 62ch;
}
.section--dark .lead{ color: rgba(255,255,255,.75); }

.grid{
  display:grid;
  gap: var(--gap);
}
.grid--2{ grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid--3{ grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid--4{ grid-template-columns: repeat(4, minmax(0,1fr)); }

.card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow2);
}
.card--glass{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.14);
  box-shadow: none;
}
.section--dark .card--glass{ color: rgba(255,255,255,.92); }

.card__icon{
  width: 44px; height: 44px;
  border-radius: 14px;
  display:grid; place-items:center;
  background: rgba(16,185,129,.13);
  border: 1px solid rgba(16,185,129,.18);
  color: var(--navy);
}
.section--dark .card__icon{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.16);
  color: rgba(255,255,255,.92);
}

.card__title{ margin: 14px 0 8px; font-size: 1.1rem; letter-spacing: -0.02em; }
.card__text{ margin: 0; color: var(--muted); }
.section--dark .card__text{ color: rgba(255,255,255,.72); }

.badge{
  display:inline-flex;
  gap: 8px;
  align-items:center;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.70);
  font-size: var(--text-xs);
  color: var(--navy);
  font-weight: 700;
}
.section--dark .badge{
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.14);
  color: rgba(255,255,255,.92);
}

/* Hero */
.hero{
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items:center;
  gap: 34px;
}
.hero__art{
  border-radius: 22px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
}
.hero__actions{ display:flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.hero__meta{
  margin-top: 18px;
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero__meta .badge{ backdrop-filter: blur(8px); }

/* List */
.list{
  margin: 0;
  padding-left: 18px;
}
.list li{ margin: 8px 0; color: var(--muted); }
.section--dark .list li{ color: rgba(255,255,255,.72); }

/* CTA strip */
.ctaStrip{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 18px;
  background: linear-gradient(90deg, rgba(16,185,129,.12), rgba(14,165,233,.10));
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 22px;
  padding: 18px 18px;
}
.ctaStrip__text{ color: var(--navy); }
.ctaStrip__text strong{ letter-spacing: -0.02em; }

/* Breadcrumb */
.breadcrumb{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items:center;
  font-size: var(--text-xs);
  color: var(--muted2);
}
.breadcrumb a{ color: var(--muted2); }

/* Forms */
.form{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow2);
}
.field{ margin-bottom: 14px; }
.labelRow{ display:flex; align-items: baseline; justify-content: space-between; gap: 12px; }
label{ font-weight: 700; letter-spacing: -0.01em; }
.help{ color: var(--muted2); font-size: var(--text-xs); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea{
  width:100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.14);
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(2,6,23,.04);
}
textarea{ min-height: 140px; resize: vertical; }
.form__actions{ display:flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; align-items:center; }
.notice{
  border-radius: 16px;
  padding: 14px 14px;
  border: 1px solid rgba(16,185,129,.18);
  background: rgba(16,185,129,.09);
}
.notice--warn{
  border-color: rgba(245, 158, 11, 0.25);
  background: rgba(245, 158, 11, 0.10);
}
.notice--error{
  border-color: rgba(239, 68, 68, 0.25);
  background: rgba(239, 68, 68, 0.10);
}
.small{ font-size: var(--text-xs); color: var(--muted2); margin: 0.35rem 0; }
.muted{ color: var(--muted); }

/* Footer */
.footer{
  background: linear-gradient(180deg, #0b1220, #0f172a);
  color: rgba(255,255,255,.88);
  padding: 58px 0 26px;
  margin-top: 56px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.footer__grid{
  display:grid;
  grid-template-columns: 1.4fr 0.8fr 0.9fr;
  gap: 28px;
  align-items:start;
}
.footer__about{ color: rgba(255,255,255,.72); margin: 14px 0; max-width: 60ch; }
.footer__title{ margin: 8px 0 12px; letter-spacing: -0.02em; }
.footer__links{ list-style:none; margin:0; padding:0; display:grid; gap: 10px; }
.footer__links a, .footer__links button.linklike{
  color: rgba(255,255,255,.84);
  background: none;
  border: 0;
  padding: 0;
  font-weight: 650;
  text-align:left;
  cursor:pointer;
}
.footer__links a:hover, .footer__links button.linklike:hover{ text-decoration: underline; }
.footer__contact p{ margin: 8px 0; color: rgba(255,255,255,.78); }
.footer__bottom{
  display:flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.10);
  margin-top: 28px;
  padding-top: 18px;
}
.footer__trust{ margin-top: 18px; color: rgba(255,255,255,.72); }

/* Accordion */
.accordion{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow:hidden;
  box-shadow: var(--shadow2);
}
.accItem + .accItem{ border-top: 1px solid var(--border); }
.accBtn{
  width:100%;
  text-align:left;
  padding: 16px 16px;
  background: none;
  border: 0;
  cursor:pointer;
  font-weight: 800;
  letter-spacing: -0.02em;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
}
.accBtn span{ color: var(--navy); }
.accIcon{
  width: 34px; height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,.12);
  display:grid;
  place-items:center;
  background: rgba(16,185,129,.10);
}
.accPanel{
  padding: 0 16px 16px;
  color: var(--muted);
  display:none;
}
.accItem.is-open .accPanel{ display:block; }
.accItem.is-open .accIcon{ background: rgba(14,165,233,.10); }

/* Consent banner + modal */
.consent{
  position: fixed;
  inset: 0;
  z-index: 5000;
  display:grid;
  place-items:end center;
  padding: 18px;
  background: rgba(2,6,23,.55);
}
.consent__card{
  width: min(720px, 100%);
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 18px;
}
.consent__header h2{ margin: 0 0 8px; letter-spacing: -0.02em; }
.consent__actions{ display:flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.consent__footer{ margin-top: 12px; }

.modal{
  position: fixed;
  inset: 0;
  z-index: 5500;
  display:grid;
  place-items:center;
  padding: 18px;
}
.modal__overlay{
  position:absolute;
  inset:0;
  background: rgba(2,6,23,.60);
}
.modal__panel{
  position:relative;
  width: min(760px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow:hidden;
}
.modal__header{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(16,185,129,.05);
}
.modal__header h2{ margin:0; letter-spacing:-0.02em; }
.modal__body{ padding: 16px; }
.modal__actions{
  display:flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  background: rgba(2,6,23,.02);
}
.iconbtn{
  width: 40px; height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.14);
  background: var(--surface);
  cursor:pointer;
}

.pref{ display:grid; gap: 12px; }
.pref__row{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(2,6,23,.02);
}
.pref__row h3{ margin: 0 0 4px; letter-spacing: -0.02em; }
.pref__row p{ margin: 0; }

/* Switch */
.switch{ position: relative; display:inline-flex; }
.switch input{ position:absolute; opacity:0; pointer-events:none; }
.switch__ui{
  width: 56px; height: 32px;
  border-radius: 999px;
  background: rgba(148,163,184,.50);
  border: 1px solid rgba(15,23,42,.12);
  position:relative;
  transition: background .15s ease;
}
.switch__ui::after{
  content:"";
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(15,23,42,.12);
  position:absolute;
  top: 2px; left: 2px;
  transition: transform .15s ease;
}
.switch input:checked + .switch__ui{
  background: rgba(16,185,129,.55);
}
.switch input:checked + .switch__ui::after{
  transform: translateX(24px);
}

/* Animations */
.reveal{
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 980px){
  .hero{ grid-template-columns: 1fr; }
  .footer__grid{ grid-template-columns: 1fr; }
  .grid--3{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid--4{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 760px){
  .nav__toggle{ display:inline-flex; }
  .nav__drawer{
    position: fixed;
    inset: 0;
    background: rgba(247,248,251,.92);
    backdrop-filter: blur(10px);
    transform: translateX(110%);
    transition: transform .22s ease;
    display:flex;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    gap: 14px;
    z-index: 4000;
  }
  .nav__drawer.is-open{ transform: translateX(0); }
  .nav__list{ flex-direction: column; align-items: stretch; gap: 8px; }
  .nav__link{ font-size: 1.05rem; padding: 12px 12px; }
  .nav__sub{
    position: static;
    display:none;
    box-shadow: none;
    padding: 8px;
    margin-top: 6px;
  }
  .nav__hasSub.is-open .nav__sub{ display:block; }
  .nav__cta{ margin-top: 10px; }
  .topbar__right{ display:none; }
  .grid--2, .grid--3, .grid--4{ grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .btn:hover{ transform: none; }
  .reveal{ transition: none; }
  .nav__drawer{ transition: none; }
}
