/* Hosca Solution Ltd — site styles
   Flat, single-file stylesheet. No gradients, no shadows. */

:root {
  --brand: #353895;
  --brand-ink: #272a73;
  --accent: #ffc114;
  --ink: #15172b;
  --text: #33364a;
  --muted: #5d6075;
  --line: #e2e4ec;
  --surface: #f5f6f9;
  --white: #ffffff;
  --radius: 8px;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-ink); }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  color: var(--ink);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.25rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

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

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  padding: 10px 14px; background: var(--ink); color: var(--white); border-radius: var(--radius);
}
.skip-link:focus { top: 12px; color: var(--white); }

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 18px; height: 3px;
  margin-right: 10px;
  vertical-align: middle;
  background: var(--accent);
}

.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  font: inherit; font-size: .95rem; font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--brand); color: var(--white); }
.btn-primary:hover { background: var(--brand-ink); color: var(--white); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: #f0b000; color: var(--ink); }
.btn-ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.4); }
.btn-ghost-light:hover { border-color: var(--white); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.text-link { font-weight: 600; text-decoration: none; }
.text-link::after { content: " \2192"; }
.text-link:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }
.brand img { width: 168px; }

.nav-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  background: none; border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.site-nav a {
  display: block; padding: 10px 14px;
  font-size: .95rem; font-weight: 500;
  color: var(--text); text-decoration: none;
  border-radius: 6px;
}
.site-nav a:hover { color: var(--brand); background: var(--surface); }
.site-nav a[aria-current="page"] { color: var(--brand); font-weight: 600; }
.site-nav .nav-cta { margin-left: 10px; }
.site-nav .nav-cta a { background: var(--brand); color: var(--white); padding: 10px 18px; }
.site-nav .nav-cta a:hover { background: var(--brand-ink); color: var(--white); }

.has-sub { position: relative; }
.has-sub > a::after {
  content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
}
.site-nav .sub {
  position: absolute; top: calc(100% + 6px); left: 0;
  display: none; flex-direction: column; align-items: stretch; gap: 0;
  min-width: 280px; padding: 8px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
}
.site-nav .sub::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.has-sub:hover > .sub, .has-sub:focus-within > .sub { display: flex; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    max-height: calc(100vh - 76px); overflow-y: auto;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a { padding: 12px 4px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .site-nav a:hover { background: none; }
  .has-sub > a::after { display: none; }
  .site-nav .sub { position: static; display: flex; min-width: 0; padding: 0 0 0 16px; border: 0; }
  .site-nav .nav-cta { margin: 16px 0 0; }
  .site-nav .nav-cta a { text-align: center; border: 0; padding: 14px; border-radius: var(--radius); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-surface { background: var(--surface); }
.section-head { max-width: 680px; margin-bottom: 44px; }

/* Hero */
.hero { padding: clamp(48px, 7vw, 96px) 0; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero-media img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: var(--radius); }
.hero-tag { margin: 12px 0 0; font-size: .85rem; color: var(--muted); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

/* Facts strip */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.facts li { padding: 26px 24px; border-left: 1px solid var(--line); }
.facts li:first-child { border-left: 0; padding-left: 0; }
.facts strong { display: block; color: var(--ink); font-size: 1.05rem; }
.facts span { font-size: .9rem; color: var(--muted); }
@media (max-width: 860px) {
  .facts ul { grid-template-columns: 1fr 1fr; }
  .facts li { padding: 20px 16px; }
  .facts li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; color: inherit; text-decoration: none;
  transition: border-color .15s;
}
.card:hover { border-color: var(--brand); color: inherit; }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 22px; }
.card-body p { font-size: .95rem; color: var(--muted); flex: 1; }
.card-body .text-link { margin-top: 16px; font-size: .9rem; }
.card:hover .text-link { text-decoration: underline; }
@media (max-width: 1020px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

/* Feature / value list */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.feature { padding: 32px 32px 0 0; }
.feature + .feature { padding-left: 32px; border-left: 1px solid var(--line); }
.feature-num { display: block; margin-bottom: 14px; font-size: .85rem; font-weight: 600; color: var(--brand); }
.feature p { color: var(--muted); font-size: .97rem; }
@media (max-width: 860px) {
  .features { grid-template-columns: 1fr; }
  .feature, .feature + .feature { padding: 26px 0; border-left: 0; }
  .feature + .feature { border-top: 1px solid var(--line); }
}

/* Split content */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split img { width: 100%; border-radius: var(--radius); object-fit: cover; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Check list */
.checks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 32px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .3em;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.5l3 3 6-7'/%3E%3C/svg%3E") center / 20px no-repeat;
}

/* CTA band */
.cta { background: var(--brand); color: rgba(255,255,255,.85); }
.cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-top: 64px; padding-bottom: 64px; }
.cta h2 { color: var(--white); margin-bottom: 8px; }
.cta .btn-row { margin-top: 0; }

/* Page header (inner pages) */
.page-head { padding: clamp(44px, 6vw, 80px) 0 clamp(36px, 5vw, 56px); background: var(--surface); border-bottom: 1px solid var(--line); }
.crumbs { margin: 0 0 18px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.page-head h1 { margin-bottom: 14px; }

/* Service page layout */
.service-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.prose h2 { margin-top: 1.6em; font-size: 1.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose figure { margin: 0 0 32px; }
.prose figure img { width: 100%; border-radius: var(--radius); }
.figure-pair { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; margin-bottom: 32px; }
.figure-pair img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.aside { display: grid; gap: 20px; position: sticky; top: 100px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--white); }
.panel h3 { font-size: 1rem; margin-bottom: 14px; }
.panel ul { list-style: none; margin: 0; padding: 0; }
.panel-links a { display: block; padding: 10px 0; border-top: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: .95rem; }
.panel-links li:first-child a { border-top: 0; padding-top: 0; }
.panel-links a:hover { color: var(--brand); }
.panel-links a[aria-current="page"] { color: var(--brand); font-weight: 600; }
.panel-dark { background: var(--ink); border-color: var(--ink); color: rgba(255,255,255,.8); }
.panel-dark h3 { color: var(--white); }
.panel-dark a { color: var(--white); }
.panel-dark p { font-size: .95rem; }
.panel-dark .btn { width: 100%; margin-top: 18px; }
@media (max-width: 960px) {
  .service-layout { grid-template-columns: 1fr; }
  .aside { position: static; }
}
@media (max-width: 560px) { .figure-pair { grid-template-columns: 1fr; } .figure-pair img { aspect-ratio: 4 / 3; } }

/* Mission / vision tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.tile p, .tile li { color: var(--muted); }
.tile ul { margin: 0; padding-left: 1.1em; }
@media (max-width: 860px) { .tiles { grid-template-columns: 1fr; } }

/* Team */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 280px)); gap: 20px; }
.person { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.person img, .person .initials { width: 100%; aspect-ratio: 1; object-fit: cover; }
.person .initials {
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); color: var(--brand);
  font-size: 3.5rem; font-weight: 700; letter-spacing: -0.02em;
}
.person div:last-child { padding: 18px 20px; }
.person h3 { margin: 0 0 2px; font-size: 1.05rem; }
.person p { margin: 0; color: var(--muted); font-size: .92rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-list { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--line); }
.contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-list .ico {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius);
  background: var(--surface); color: var(--brand);
}
.contact-list .ico svg { width: 20px; height: 20px; }
.contact-list strong { display: block; color: var(--ink); font-size: .9rem; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.form { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); background: var(--white); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: .88rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1px solid #cfd2dd; border-radius: var(--radius);
  transition: border-color .15s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); outline: 1px solid var(--brand); }
.form-note { margin: 14px 0 0; font-size: .85rem; color: var(--muted); }
.form .btn { width: 100%; }

/* 404 */
.not-found { padding: clamp(80px, 14vw, 160px) 0; text-align: center; }
.not-found .lead { margin: 0 auto; }
.not-found .btn-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 72px 0 48px; }
.site-footer h2 { margin-bottom: 16px; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--white); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: rgba(255,255,255,.7); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-brand { display: inline-block; margin-bottom: 18px; padding: 10px 14px; background: var(--white); border-radius: var(--radius); }
.footer-brand img { width: 150px; }
.footer-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; padding-top: 56px; } }
