/* ===========================================================
   TryHosting Technologies — clean modern rebuild
   Fonts: Kumbh Sans (headings), Lexend (body)
   Brand accent: #38ACFF
   =========================================================== */

:root {
  --accent: #38acff;
  --accent-dark: #1789e6;
  --accent-soft: #eaf6ff;
  --ink: #16181d;
  --body: #4a4f57;
  --muted: #767676;
  --line: #e8ebef;
  --bg: #ffffff;
  --bg-alt: #f6f9fc;
  --bg-dark: #0f1420;
  --surface: #ffffff;      /* cards, header, chips */
  --surface-2: #fbfdff;    /* inputs, subtle fills */
  --header-bg: rgba(255,255,255,.88);
  --hero-top: #fbfdff;
  --art-bg: #dfeefb;
  --icon-filter: none;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 4px 14px rgba(20, 30, 50, .06);
  --shadow: 0 18px 50px rgba(20, 40, 80, .12);
  --wrap: 1180px;
  --header-h: 74px;
  --head: 'Kumbh Sans', 'Lexend', system-ui, sans-serif;
  --font: 'Lexend', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* ---------- Dark theme ---------- */
:root[data-theme="dark"] {
  --ink: #f3f6fb;
  --body: #b3bccb;
  --muted: #8a94a6;
  --line: #26303f;
  --bg: #0c111b;
  --bg-alt: #101622;
  --bg-dark: #080c14;
  --surface: #161d2b;
  --surface-2: #121826;
  --header-bg: rgba(12,17,27,.85);
  --hero-top: #0e1420;
  --art-bg: #12233a;
  --accent-soft: rgba(56,172,255,.16);
  --shadow-sm: 0 4px 14px rgba(0,0,0,.35);
  --shadow: 0 18px 50px rgba(0,0,0,.5);
  --icon-filter: brightness(0) invert(1);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background .3s ease, color .3s ease;
}

/* Theme toggle button */
.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
  cursor: pointer; display: grid; place-items: center; transition: border-color .2s, color .2s;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }

h1, h2, h3, h4 {
  font-family: var(--head);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); letter-spacing: -.01em; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.section { padding: clamp(56px, 8vw, 110px) 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--bg-dark); color: #c7cfdd; }
.section--dark h2, .section--dark h3 { color: #fff; }

/* ---------- Eyebrow + headings ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--head);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-head { max-width: 640px; margin: 0 auto 54px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.section-head--left { margin-left: 0; text-align: left; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--head);
  font-weight: 600;
  font-size: .95rem;
  padding: 14px 30px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(56, 172, 255, .35);
}
.btn--primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(56, 172, 255, .45); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn--light { background: #ffffff; color: #16181d; }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
}
.brand { display: flex; align-items: center; }
.brand img { height: 40px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: var(--head);
  font-weight: 500; font-size: .96rem; color: var(--ink);
  position: relative; padding: 4px 0;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--accent); transition: width .25s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(70px, 11vw, 140px) 0 clamp(60px, 9vw, 120px);
  background:
    radial-gradient(1100px 500px at 78% -10%, rgba(56,172,255,.16), transparent 60%),
    linear-gradient(180deg, var(--hero-top) 0%, var(--bg) 100%);
  overflow: hidden;
}
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.hero__lead { font-size: 1.15rem; color: var(--body); max-width: 32ch; }
.hero h1 span { color: var(--accent); }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero__badges { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 38px; }
.hero__badge b { font-family: var(--head); font-size: 1.5rem; color: var(--ink); display: block; }
.hero__badge span { font-size: .85rem; color: var(--muted); }
.hero__art {
  position: relative; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow);
  aspect-ratio: 4/3; background: var(--art-bg);
}
.hero__art img { width: 100%; height: 100%; object-fit: cover; }
.hero__chip {
  position: absolute; background: var(--surface); border-radius: 14px; padding: 12px 16px;
  box-shadow: var(--shadow); font-family: var(--head); font-weight: 600; font-size: .85rem; color: var(--ink);
  display: flex; align-items: center; gap: 10px;
}
.hero__chip i { width: 10px; height: 10px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.18); }
.hero__chip--tl { top: 18px; left: -14px; }
.hero__chip--br { bottom: 18px; right: -14px; }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 28px; transition: transform .22s ease, box-shadow .22s ease, border-color .22s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card__icon {
  width: 58px; height: 58px; border-radius: 14px; background: var(--accent-soft);
  display: grid; place-items: center; margin-bottom: 20px;
}
.card__icon img { width: 30px; height: 30px; filter: var(--icon-filter); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 38px 30px;
}
.step__num {
  font-family: var(--head); font-weight: 700; font-size: 1rem; color: #fff;
  width: 46px; height: 46px; border-radius: 50%; background: var(--accent);
  display: grid; place-items: center; margin-bottom: 20px;
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Portfolio grid ---------- */
.folio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.folio__item {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4/3; box-shadow: var(--shadow-sm);
}
.folio__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.folio__item:hover img { transform: scale(1.07); }
.folio__cap {
  position: absolute; inset: auto 0 0 0; padding: 22px;
  background: linear-gradient(transparent, rgba(15,20,32,.85));
  color: #fff; transform: translateY(8px); opacity: 0; transition: .3s;
}
.folio__item:hover .folio__cap { transform: translateY(0); opacity: 1; }
.folio__cap span { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-family: var(--head); }
.folio__cap h3 { color: #fff; font-size: 1.05rem; margin: 4px 0 0; }
.folio__tag {
  position: absolute; top: 14px; left: 14px; background: rgba(255,255,255,.92);
  color: var(--ink); font-family: var(--head); font-weight: 600; font-size: .72rem;
  padding: 5px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em;
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: center; }
.stat b { font-family: var(--head); font-size: clamp(2.2rem, 5vw, 3.2rem); color: var(--accent); display: block; line-height: 1; }
.stat span { color: var(--muted); font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; margin-top: 10px; display: block; }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; }
.member {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 18px; text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.member:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); }
.member__avatar {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 14px;
  display: grid; place-items: center; font-family: var(--head); font-weight: 700; font-size: 1.5rem;
  color: #fff; background: linear-gradient(135deg, var(--accent), #7ac8ff);
}
.member h4 { margin: 0; font-size: 1.02rem; }
.member span { font-size: .85rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 14px; background: var(--surface); overflow: hidden; }
.faq__q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  font-family: var(--head); font-weight: 600; font-size: 1.02rem; color: var(--ink);
  padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq__q::after { content: '+'; font-size: 1.5rem; color: var(--accent); transition: transform .25s; }
.faq__item.open .faq__q::after { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq__a p { padding: 0 24px 20px; margin: 0; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--accent), #1e6fd0);
  border-radius: 24px; padding: clamp(40px, 6vw, 70px); text-align: center; color: #fff;
  box-shadow: var(--shadow);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 46ch; margin: 0 auto 28px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 46px; align-items: start; }
.info-item { display: flex; gap: 16px; margin-bottom: 26px; }
.info-item .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); display: grid; place-items: center; flex: none; font-size: 1.2rem; }
.info-item h4 { margin: 0 0 3px; font-size: 1rem; }
.info-item p { margin: 0; color: var(--muted); font-size: .95rem; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--head); font-weight: 500; font-size: .88rem; color: var(--ink); margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: var(--font); font-size: .95rem; color: var(--ink); background: var(--surface-2); transition: border-color .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); background: var(--surface); }
.field textarea { resize: vertical; min-height: 120px; }
.map-embed { border: 0; width: 100%; height: 320px; border-radius: var(--radius); margin-top: 40px; }

/* ---------- Blog ---------- */
.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; }
.post { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.post:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post__img { aspect-ratio: 16/10; overflow: hidden; }
.post__img img { width: 100%; height: 100%; object-fit: cover; }
.post__body { padding: 24px; }
.post__meta { font-size: .8rem; color: var(--accent); font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.post__body h3 { margin: 10px 0; font-size: 1.15rem; }
.post__body p { color: var(--muted); font-size: .92rem; margin: 0; }
.post__meta.date { color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 500; }

/* ---------- Article ---------- */
.article { max-width: 760px; margin: 0 auto; }
.article__meta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; font-family: var(--head); font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.article__meta .cat { color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.article__hero { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 16px; margin: 26px 0 34px; box-shadow: var(--shadow-sm); }
.article__body { font-size: 1.06rem; line-height: 1.8; color: var(--body); }
.article__body h2 { font-size: 1.5rem; margin: 38px 0 14px; }
.article__body h3 { font-size: 1.2rem; margin: 28px 0 10px; }
.article__body p { margin: 0 0 1.1em; }
.article__body ul, .article__body ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.article__body li { margin-bottom: .5em; }
.article__body blockquote { margin: 24px 0; padding: 14px 22px; border-left: 3px solid var(--accent); background: var(--bg-alt); border-radius: 0 10px 10px 0; color: var(--ink); font-style: italic; }
.article__body strong { color: var(--ink); }
.author-row { display: flex; align-items: center; gap: 14px; margin: 30px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.author-row .avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-family: var(--head); font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--accent), #7ac8ff); }
.author-row b { color: var(--ink); font-family: var(--head); display: block; font-size: .95rem; }
.author-row span { font-size: .85rem; color: var(--muted); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(60px, 8vw, 90px) 0 clamp(40px, 6vw, 60px); background: radial-gradient(900px 400px at 50% -20%, rgba(56,172,255,.14), transparent 60%), var(--bg-alt); text-align: center; }
.page-hero .crumb { font-family: var(--head); font-size: .85rem; color: var(--muted); }
.page-hero .crumb a:hover { color: var(--accent); }
.page-hero p { max-width: 640px; margin: 12px auto 0; color: var(--muted); font-size: 1.05rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-dark); color: #9aa5b8; padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.site-footer p { color: #9aa5b8; font-size: .95rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: .95rem; transition: color .2s; }
.footer-links a:hover { color: var(--accent); }
.footer-brand img { height: 40px; margin-bottom: 18px; filter: brightness(0) invert(1); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 46px; padding-top: 24px; text-align: center; font-size: .85rem; color: #6b7688; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 34px; }
  .steps { grid-template-columns: 1fr; }
  .folio { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  :root { --header-h: 62px; }
  .wrap { padding: 0 18px; }
  .section { padding: 52px 0; }
  .section-head { margin-bottom: 34px; }

  /* nav → slide-down mobile menu */
  .brand img { height: 34px; }
  .nav-right { gap: 10px; }
  .nav-links {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: 6px 18px 16px;
    transform: translateY(-135%); transition: transform .3s ease; box-shadow: var(--shadow);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 15px 2px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-links a::after { display: none; }
  .nav-toggle { display: block; }
  .nav-right .btn { display: none; }

  /* hero — headline first, art below */
  .hero { padding: 36px 0 50px; }
  .hero h1 { font-size: 2rem; }
  .hero__lead { font-size: 1.02rem; max-width: none; }
  .hero__cta { gap: 12px; }
  .hero__cta .btn { flex: 1 1 auto; justify-content: center; }
  .hero__badges { gap: 18px 22px; margin-top: 28px; }
  .hero__badge b { font-size: 1.3rem; }
  .hero__chip { font-size: .78rem; padding: 9px 12px; }

  /* grids */
  .cards { gap: 16px; }
  .folio { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .team { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .posts { gap: 18px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }

  .card { padding: 26px 22px; }
  .step { padding: 30px 24px; }
  .form { padding: 22px; }
  .page-hero { padding: 46px 0 30px; }
  .map-embed { height: 260px; }
  .cta-band { padding: 40px 22px; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 1.72rem; }
  .hero__cta .btn { flex-basis: 100%; }
  .hero__badges { gap: 14px 18px; }
  .hero__badge b { font-size: 1.15rem; }
  .stats { grid-template-columns: 1fr; gap: 24px; }
}
