/* PT Karya Solusi Global — responsive, minimal company website */
:root {
  --navy: #10233f;
  --navy-deep: #0b1a30;
  --teal: #1aafa6;
  --teal-dark: #0b7c77; /* 5:1 on white, safe for small text */
  --ink: #17263c;
  --muted: #5a6778;
  --line: #e1e7ed;
  --mist: #f4f7f9;
  --white: #fff;
  --max-width: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, p { margin-top: 0; }
.container { width: min(var(--max-width), calc(100% - 48px)); margin-inline: auto; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 14px; background: var(--navy); color: var(--white); border-radius: 6px; font-weight: 600; }
.skip-link:focus { top: 12px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--navy); }
.brand-logo { width: 62px; }
.brand-name { font-size: .98rem; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
nav { display: flex; align-items: center; gap: 28px; }
nav a { color: #46546a; font-size: .9rem; font-weight: 600; transition: color .2s ease; }
nav a:hover { color: var(--teal-dark); }
nav .nav-contact { padding: 8px 16px; border: 1px solid #cfd9e2; border-radius: 7px; color: var(--navy); }
nav .nav-contact:hover { border-color: var(--teal); background: #f1fbfa; color: var(--navy); }

/* Hero */
.hero { background: var(--navy); color: var(--white); border-bottom: 4px solid var(--teal); }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 64px; padding-block: 96px; }
.hero h1 { margin-bottom: 20px; font-size: clamp(2.5rem, 5.2vw, 4.25rem); line-height: 1.05; letter-spacing: -.035em; font-weight: 800; }
.hero-subtitle { max-width: 34ch; margin-bottom: 14px; color: #e6edf5; font-size: clamp(1.1rem, 1.9vw, 1.35rem); font-weight: 600; line-height: 1.45; }
.hero-description { max-width: 52ch; margin-bottom: 32px; color: #b9c5d4; }
.button-link { display: inline-flex; align-items: center; padding: 12px 20px; color: var(--navy); background: var(--white); border-radius: 7px; font-size: .92rem; font-weight: 700; transition: background-color .2s ease; }
.button-link:hover { background: #e3f7f5; }
.hero-logo-plate { padding: clamp(24px, 4vw, 44px); background: var(--white); border-radius: 14px; }
.hero-logo { width: 100%; max-width: 400px; margin-inline: auto; }

/* Sections */
.section { padding: 96px 0; }
.section h2 { margin-bottom: 0; color: var(--navy); font-size: clamp(1.9rem, 3.2vw, 2.6rem); line-height: 1.15; letter-spacing: -.03em; font-weight: 800; }

.about-layout { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.about-copy p { max-width: 62ch; margin-bottom: 16px; color: var(--muted); font-size: 1.05rem; }
.about-copy p:last-child { margin-bottom: 0; }

.services-section { background: var(--mist); border-block: 1px solid var(--line); }
.section-top { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 48px; }
.section-intro { max-width: 400px; margin: 0; color: var(--muted); }
.services-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin: 0; padding: 0; list-style: none; }
.service { padding-top: 24px; border-top: 2px solid var(--teal); }
.service-icon { width: 28px; height: 28px; margin-bottom: 18px; fill: none; stroke: var(--teal-dark); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { margin-bottom: 8px; color: var(--navy); font-size: 1.05rem; line-height: 1.35; letter-spacing: -.01em; font-weight: 700; }
.service p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.65; }

.contact-layout { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.contact-copy h2 { margin-bottom: 16px; }
.contact-copy p { max-width: 36ch; margin: 0; color: var(--muted); }
.company-details { margin: 0; padding: 8px 32px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.detail-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; padding: 20px 0; border-top: 1px solid var(--line); }
.detail-row:first-child { border-top: 0; }
.detail-row dt { color: var(--muted); font-size: .9rem; font-weight: 600; }
.detail-row dd { margin: 0; color: var(--ink); font-size: .98rem; overflow-wrap: anywhere; }
.detail-row address { font-style: normal; }
.detail-row .legal-name { color: var(--navy); font-weight: 700; }
.detail-row a { color: var(--teal-dark); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.detail-row a:hover { text-decoration-thickness: 2px; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #c7d1df; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; padding-block: 20px; }
.footer-inner p { margin: 0; font-size: .85rem; }
.back-top { color: var(--white); font-size: .85rem; font-weight: 600; }
.back-top:hover { color: #7fe0d9; }

@media (max-width: 980px) {
  .hero-inner { gap: 40px; padding-block: 80px; }
  .about-layout, .contact-layout { gap: 40px; }
  .services-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 80px; }
  .container { width: min(var(--max-width), calc(100% - 32px)); }
  .hero-inner { grid-template-columns: 1fr; padding-block: 64px; }
  .hero-logo-plate { width: 100%; max-width: 420px; }
  .section { padding: 72px 0; }
  .about-layout, .contact-layout { grid-template-columns: 1fr; gap: 24px; }
  .section-top { flex-direction: column; align-items: start; gap: 12px; margin-bottom: 36px; }
}
@media (max-width: 560px) {
  html { scroll-padding-top: 0; }
  .site-header { position: static; }
  .header-inner { flex-wrap: wrap; justify-content: center; gap: 8px 24px; padding-block: 12px; }
  .brand-logo { width: 52px; }
  nav { gap: 22px; }
  .services-list { grid-template-columns: 1fr; gap: 32px; }
  .company-details { padding: 4px 20px; }
  .detail-row { grid-template-columns: 1fr; gap: 4px; padding: 16px 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
