/* Itekatech site styles (dark theme, at the owner's request)
   Palette: warm near-black surfaces, warm off-white text, logo red as the single accent.
   Type: Fraunces (editorial serif, reads as advice) + Figtree (rounded sans, echoes the logo).
   Motif: the red dot of the logo's "i", used as the full stop on every headline.
   Photos (Unsplash licence): Jakarta at sunset (hero), Jakarta at night (insurance band), code on screen (services). */

:root {
  --bg: #0f0e0d;
  --surface: #171513;
  --surface-2: #201d1a;
  --text: #f2eee8;
  --muted: #aaa298;        /* 7.6:1 on --bg */
  --line: #2e2a26;
  --line-strong: #f2eee8;
  --red: #fd2416;          /* logo red: 5:1 on --bg, used for marks and small accents */
  --red-ink: #c8190c;      /* button fill, white label at 5.5:1 */
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --focus: var(--text);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.65;
  color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; font-weight: 500; }
p { margin: 0 0 1em; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
a { color: inherit; }
a, button, select, summary, label[for], [role=button] { cursor: pointer; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
::selection { background: var(--red-ink); color: #fff; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--text); color: var(--bg); padding: 10px 16px; }
.skip-link:focus { top: 12px; }

.stop { color: var(--red); }

h2 {
  font-family: var(--serif); font-weight: 500; font-variation-settings: 'opsz' 144;
  font-size: clamp(2.1rem, 4.6vw, 3.8rem); line-height: 1.05; letter-spacing: -0.02em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 14px 26px; border-radius: var(--radius);
  font-weight: 700; font-size: 16px; text-decoration: none;
  transition: background-color .2s, color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red-ink); color: #fff; }
.btn-primary:hover { background: var(--text); color: var(--bg); }
.btn-link { padding-left: 4px; padding-right: 4px; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--red); }
.btn-link:hover { text-decoration-color: var(--text); }
.btn[disabled] { opacity: .6; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; background: transparent; border-bottom: 1px solid transparent; transition: background-color .3s, border-color .3s; }
.site-header.scrolled { background: rgba(15, 14, 13, .95); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; height: 76px; gap: 24px; }
.brand { display: block; width: 150px; flex: 0 0 auto; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  font-weight: 600; font-size: 15px; text-decoration: none;
  border-bottom: 2px solid transparent; transition: border-color .2s, color .2s;
}
.site-nav a:hover { border-bottom-color: var(--text); }
.site-nav a.is-current { border-bottom-color: var(--red); }
.site-nav .nav-cta { background: var(--red-ink); color: #fff; border-radius: var(--radius); border-bottom: 0; padding: 0 18px; margin-left: 10px; }
.site-nav .nav-cta:hover { background: var(--text); color: var(--bg); }
.menu-toggle { display: none; }

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; min-height: 44px; padding: 0 4px 0 12px; font-weight: 700; position: relative; z-index: 3; }
  .menu-toggle-icon { position: relative; width: 24px; height: 12px; }
  .menu-toggle-icon i { position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease); }
  .menu-toggle-icon i:first-child { top: 1px; }
  .menu-toggle-icon i:last-child { top: 9px; }
  .menu-open .site-header { background: var(--bg); }
  .menu-open .menu-toggle-icon i:first-child { top: 5px; transform: rotate(45deg); }
  .menu-open .menu-toggle-icon i:last-child { top: 5px; transform: rotate(-45deg); }

  .site-nav {
    position: fixed; inset: 76px 0 0; z-index: 2; margin: 0; background: var(--bg);
    padding: 32px var(--gutter); border-top: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
  }
  .menu-open .site-nav { opacity: 1; visibility: visible; transform: none; transition: opacity .25s var(--ease), transform .25s var(--ease); }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav a { font-family: var(--serif); font-size: 30px; font-weight: 500; min-height: 64px; padding: 0; border-bottom: 0; }
  .site-nav .nav-cta { background: none; color: var(--red); padding: 0; margin: 0; }
  .site-nav .nav-cta:hover { background: none; color: var(--text); }
}

/* ---------- Hero (photo: Jakarta at sunset; the red-orange sky echoes the logo) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(100vh, 980px); display: flex; align-items: flex-end;
  padding: 140px 0 clamp(56px, 8vw, 104px);
}
.hero-photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(15, 14, 13, .75) 0, rgba(15, 14, 13, 0) 180px),
    linear-gradient(90deg, rgba(15, 14, 13, .95) 0%, rgba(15, 14, 13, .82) 42%, rgba(15, 14, 13, .3) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(15, 14, 13, 0) 35%);
}
.hero .wrap { width: 100%; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px 72px; align-items: end; }
.hero-title {
  font-family: var(--serif); font-weight: 400; font-variation-settings: 'opsz' 144;
  font-size: clamp(2.5rem, 7vw, 6rem); line-height: 1; letter-spacing: -0.035em;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero-title .line > span { display: inline-block; }
.js .hero-title .line > span { transform: translateY(110%); }
.js.is-ready .hero-title .line > span { transform: none; transition: transform .9s var(--ease); }
.js.is-ready .hero-title .line:nth-child(2) > span { transition-delay: .1s; }
.js.is-ready .hero-title .line:nth-child(3) > span { transition-delay: .2s; }
.hero-lede { font-size: clamp(17px, 1.5vw, 20px); color: #d6d0c7; max-width: 600px; margin: 32px 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; margin-top: 36px; }

/* Solid panel so the list stays readable over the bright part of the photo */
.hero-index { background: rgba(15, 14, 13, .86); border-top: 2px solid var(--red); padding: 16px 20px 18px; }
.hero-index-label { font-size: 14px; font-weight: 700; margin: 0 0 6px; }
.hero-index li { border-bottom: 1px solid var(--line); }
.hero-index a { display: flex; align-items: baseline; gap: 14px; min-height: 48px; padding: 12px 0; text-decoration: none; font-weight: 600; transition: color .2s, padding-left .25s var(--ease); }
.hero-index a:hover { color: var(--red); padding-left: 6px; }
.hero-index .num { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.hero-index-foot { font-size: 14px; color: var(--muted); margin: 14px 0 0; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-index { max-width: 420px; }
  .hero::before { background: linear-gradient(180deg, rgba(15, 14, 13, .55) 0%, rgba(15, 14, 13, .9) 45%, var(--bg) 100%); }
}

/* ---------- Services ---------- */
.services { padding: clamp(80px, 10vw, 140px) 0; }
.services-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px 80px; }
.services-aside { position: sticky; top: 110px; align-self: start; }
.services-aside p { color: var(--muted); font-size: 18px; max-width: 360px; margin-top: 24px; }
.services-photo { margin-top: 36px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 65% 60%; border-radius: var(--radius); }
.service-list { border-top: 2px solid var(--line-strong); }
.service { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 36px 0; border-bottom: 1px solid var(--line); }
.service-no { font-family: var(--serif); font-size: 18px; color: var(--red); padding-top: 4px; }
.service h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.15; letter-spacing: -0.01em; margin-bottom: 14px; }
.service p { color: var(--muted); }
.service-includes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.service-includes li { font-size: 14px; font-weight: 600; padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.service:target h3 { color: var(--red); }
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
  .services-aside { position: static; }
  .services-photo { aspect-ratio: 16 / 9; }
}
@media (max-width: 520px) { .service { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- Insurance (photo: Jakarta at night, heavily dimmed) ---------- */
.insurance { position: relative; isolation: isolate; overflow: hidden; padding: clamp(100px, 12vw, 170px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.insurance-photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.insurance::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(15, 14, 13, .9) 0%, rgba(15, 14, 13, .8) 100%); }
.insurance-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 80px; align-items: start; }
.insurance h2 { font-size: clamp(2.4rem, 6vw, 5rem); }
.insurance-lead { font-size: clamp(18px, 1.7vw, 21px); color: #d6d0c7; }
.insurance-points { margin: 28px 0 40px; border-top: 1px solid rgba(242, 238, 232, .2); }
.insurance-points li {
  font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.3;
  padding: 18px 0 18px 32px; border-bottom: 1px solid rgba(242, 238, 232, .2); position: relative;
}
.insurance-points li::before { content: ""; position: absolute; left: 4px; top: 1.05em; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
@media (max-width: 900px) { .insurance-grid { grid-template-columns: 1fr; } }

/* ---------- How we work ---------- */
.approach { padding: clamp(90px, 11vw, 150px) 0; }
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: clamp(40px, 6vw, 72px); border-top: 2px solid var(--line-strong); counter-reset: p; }
.principles li { padding: 36px 40px 36px 0; border-bottom: 1px solid var(--line); counter-increment: p; }
.principles li:nth-child(even) { padding: 36px 0 36px 40px; border-left: 1px solid var(--line); }
.principles h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.1; letter-spacing: -0.015em; margin-bottom: 12px; }
.principles h3::before { content: counter(p, decimal-leading-zero); display: block; font-family: var(--sans); font-size: 14px; font-weight: 700; color: var(--red); margin-bottom: 14px; letter-spacing: 0; }
.principles p { color: var(--muted); font-size: 18px; max-width: 440px; margin: 0; }
@media (max-width: 760px) {
  .principles { grid-template-columns: 1fr; }
  .principles li, .principles li:nth-child(even) { padding: 28px 0; border-left: 0; }
}

/* ---------- Contact ---------- */
.contact { background: var(--surface); padding: clamp(90px, 11vw, 150px) 0; border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px 80px; }
.contact-lede { font-size: 18px; color: var(--muted); margin-top: 24px; max-width: 420px; }
.details { margin-top: 40px; border-top: 2px solid var(--line-strong); }
.details > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 4px 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.details dt { font-size: 14px; font-weight: 700; color: var(--muted); padding-top: 3px; }
.details dd a { font-weight: 600; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 4px; display: inline-block; padding: 4px 0; }
.details dd a:hover { text-decoration-color: var(--text); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .details > div { grid-template-columns: 1fr; } }

.enquiry { display: grid; gap: 22px; align-content: start; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; min-width: 0; }
.field label { font-weight: 700; font-size: 15px; }
.optional { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg);
  border: 1.5px solid var(--line); border-radius: var(--radius); padding: 12px 14px; min-height: 50px;
  transition: border-color .2s;
}
.field select option { background: var(--bg); color: var(--text); }
.field textarea { resize: vertical; min-height: 140px; }
.field input::placeholder, .field textarea::placeholder { color: #8c857b; } /* 5.1:1 on --bg */
.field input:hover, .field select:hover, .field textarea:hover { border-color: #5a534b; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 3px rgba(242, 238, 232, .2); }
.field [aria-invalid="true"] { border-color: var(--red); }
.field-error { color: #ff8f85; font-size: 14px; font-weight: 600; }
.field-error:empty { display: none; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn-submit { justify-self: start; min-width: 200px; }
.form-status:empty { display: none; }
.form-status p { margin: 0; padding: 16px 18px; border-radius: var(--radius); font-weight: 600; border: 1.5px solid; }
.status-ok { background: rgba(92, 184, 95, .12); border-color: #5cb85f; color: #d3ecd4; }
.status-err { background: rgba(253, 36, 22, .1); border-color: var(--red); color: #ffd2cd; }

/* ---------- Footer ---------- */
.site-footer { padding: 64px 0 28px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px 48px; }
.footer-logo { width: 140px; margin-bottom: 18px; }
.site-footer p { color: var(--muted); font-size: 15px; }
.site-footer ul a { display: inline-flex; align-items: center; min-height: 40px; font-weight: 600; font-size: 15px; text-decoration: none; border-bottom: 2px solid transparent; }
.site-footer ul a:hover { border-bottom-color: var(--red); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
.footer-bottom p { margin: 0; font-size: 14px; }
.to-top { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: var(--radius); font-weight: 700; font-size: 14px; text-decoration: none; transition: border-color .2s, background-color .2s, color .2s; }
.to-top:hover { background: var(--text); border-color: var(--text); color: var(--bg); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 420px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Scroll reveals for section headings ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .js .hero-title .line > span, .js .reveal { transform: none; opacity: 1; }
}
