/* Universal Horizons LLC — shared stylesheet */

:root {
  --ink: #122236;
  --ink-soft: #2b3d52;
  --muted: #5d6f80;
  --line: #e3e8ee;
  --bg: #ffffff;
  --surface: #f5f7fa;
  --surface-2: #eef2f6;
  --accent: #ef5d3a;
  --accent-dark: #d24a2a;
  --accent-soft: #fdeae4;
  --teal: #14837b;
  --max: 1180px;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(18, 34, 54, .06), 0 2px 6px rgba(18, 34, 54, .05);
  --shadow-md: 0 6px 22px rgba(18, 34, 54, .10);
  --ff-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --ff-body: "Inter", -apple-system, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 600;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.1rem; }

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

.eyebrow {
  font-family: var(--ff-display);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .76rem;
  font-weight: 600;
  color: var(--accent-dark);
  margin: 0 0 .8rem;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 1.12rem;
  color: var(--ink);
  letter-spacing: -.01em;
}
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 34px; height: 34px;
  flex: none;
}
.brand small {
  display: block;
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: .66rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  color: var(--ink-soft);
  font-size: .95rem;
  font-weight: 500;
  padding: 9px 13px;
  border-radius: 7px;
  position: relative;
}
.nav-links a:hover { background: var(--surface); text-decoration: none; color: var(--ink); }
.nav-links a.active { color: var(--accent-dark); }
.has-sub { position: relative; }
.has-sub > a::after { content: " ⌄"; font-size: .8em; color: var(--muted); }
.submenu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 8px;
  min-width: 240px;
  list-style: none;
  margin: 0;
  display: none;
}
.has-sub:hover .submenu,
.has-sub:focus-within .submenu { display: block; }
.submenu a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: .9rem;
  color: var(--ink-soft);
}
.submenu a:hover { background: var(--surface); color: var(--ink); }
.submenu a span { display: block; font-size: .76rem; color: var(--muted); font-weight: 400; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: .95rem;
  padding: 11px 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-soft); }
.btn-light { background: rgba(255,255,255,.12); color:#fff; border-color: rgba(255,255,255,.3); }
.btn-light:hover { background: rgba(255,255,255,.2); color:#fff; }

.nav-cta { display: flex; align-items: center; gap: 10px; }

.hamburger {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 7px;
  width: 42px; height: 40px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.hamburger span,
.hamburger span::before,
.hamburger span::after {
  content: "";
  display: block;
  width: 20px; height: 2px;
  background: var(--ink);
  position: relative;
  transition: .2s;
}
.hamburger span::before { position: absolute; top: -6px; }
.hamburger span::after { position: absolute; top: 6px; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, #0e1d30 0%, #14263d 60%, #16314c 100%);
  color: #eef2f6;
  position: relative;
  overflow: hidden;
}
.hero::after {
  /* horizon-line signature — sits at the base of the hero */
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(239,93,58,.55) 40%, rgba(239,93,58,.55) 60%, transparent);
}
.hero .wrap { position: relative; padding: 84px 22px 92px; z-index: 1; }
.hero h1 { color: #fff; max-width: 16ch; }
.hero .lede { font-size: 1.18rem; color: #c3cedb; max-width: 56ch; margin-bottom: 1.7rem; }
.hero .eyebrow { color: #ff8a6b; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-sun {
  position: absolute;
  right: -60px; bottom: 22%;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(239,93,58,.35), rgba(239,93,58,0) 68%);
  z-index: 0;
}

.page-head {
  background: linear-gradient(180deg, #0e1d30, #15293f);
  color: #eef2f6;
  padding: 64px 0 56px;
  position: relative;
}
.page-head h1 { color: #fff; }
.page-head p { color: #c3cedb; max-width: 62ch; margin: 0; }
.page-head .eyebrow { color: #ff8a6b; }
.crumbs { font-size: .85rem; color: #8fa1b3; margin-bottom: 1rem; }
.crumbs a { color: #b9c6d4; }
.crumbs a:hover { color:#fff; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-surface { background: var(--surface); }
.section-ink { background: var(--ink); color: #d7dee6; }
.section-ink h2, .section-ink h3 { color: #fff; }

.section-head { max-width: 64ch; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.lead { font-size: 1.12rem; color: var(--muted); }

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

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card.link-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); font-size: .97rem; margin-bottom: .6rem; }
.card .icon {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: var(--accent-soft);
  display: grid; place-items: center;
  margin-bottom: 16px;
  color: var(--accent-dark);
}
.card .more { font-family: var(--ff-display); font-weight: 600; font-size: .9rem; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: left; }
.stat .num { font-family: var(--ff-display); font-size: 2.6rem; font-weight: 600; color: var(--ink); line-height: 1; }
.section-ink .stat .num { color: #fff; }
.stat .num span { color: var(--accent); }
.stat .label { color: var(--muted); font-size: .92rem; margin-top: 6px; }
.section-ink .stat .label { color: #9fb0c0; }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow-md); }

.list-check { list-style: none; padding: 0; margin: 1rem 0; }
.list-check li { position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--ink-soft); }
.list-check li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--teal); font-weight: 700;
}

/* process steps */
.steps { counter-reset: step; display: grid; gap: 22px; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start; }
.step .n {
  counter-increment: step;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: var(--ff-display);
  font-weight: 600;
  display: grid; place-items: center;
  font-size: 1.15rem;
}
.step .n::before { content: counter(step, decimal-leading-zero); }
.step h3 { margin-bottom: .2rem; }
.step p { color: var(--muted); margin: 0; }

/* pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price {
  background:#fff; border:1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; display: flex; flex-direction: column;
}
.price.featured { border-color: var(--accent); box-shadow: var(--shadow-md); position: relative; }
.price.featured .tag {
  position:absolute; top:-12px; right: 22px;
  background: var(--accent); color:#fff; font-size:.72rem; font-weight:600;
  font-family: var(--ff-display); letter-spacing:.05em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 20px;
}
.price .amt { font-family: var(--ff-display); font-size: 2.4rem; font-weight: 600; margin: 8px 0 2px; }
.price .amt small { font-size: .9rem; color: var(--muted); font-weight: 400; }
.price ul { list-style: none; padding: 0; margin: 18px 0 24px; flex: 1; }
.price li { padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: .94rem; color: var(--ink-soft); }
.price li:last-child { border-bottom: none; }

/* testimonials */
.quote {
  background:#fff; border:1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
}
.quote p { font-size: 1.02rem; color: var(--ink-soft); }
.quote .who { display:flex; align-items:center; gap:12px; margin-top: 14px; }
.quote .avatar {
  width: 44px; height: 44px; border-radius:50%;
  background: var(--surface-2); display:grid; place-items:center;
  font-family: var(--ff-display); font-weight:600; color: var(--ink-soft);
}
.quote .who strong { display:block; font-size:.92rem; }
.quote .who span { font-size:.82rem; color: var(--muted); }

/* portfolio */
.work-grid { display:grid; grid-template-columns: repeat(2,1fr); gap: 28px; }
.work {
  border:1px solid var(--line); border-radius: var(--radius); overflow:hidden;
  background:#fff; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s;
}
.work:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.work .thumb { aspect-ratio: 16/10; display:grid; place-items:center; color:#fff; font-family:var(--ff-display); }
.work .body { padding: 22px 24px; }
.work .body h3 { margin-bottom: .25rem; }
.work .meta { font-size:.8rem; text-transform:uppercase; letter-spacing:.1em; color: var(--accent-dark); font-weight:600; }
.work .body p { color: var(--muted); font-size:.95rem; margin-bottom: 0; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, #122236, #1c3b59); color:#fff; border-radius: 16px; padding: 48px; text-align:center; }
.cta-band h2 { color:#fff; }
.cta-band p { color:#c3cedb; max-width: 56ch; margin: 0 auto 1.6rem; }

/* logos */
.logos { display:flex; flex-wrap:wrap; gap: 14px 38px; align-items:center; justify-content:center; opacity:.8; }
.logos span { font-family: var(--ff-display); font-weight:600; color: var(--muted); font-size: 1.05rem; }

/* forms */
.form-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display:flex; flex-direction:column; gap:6px; margin-bottom: 4px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size:.86rem; font-weight:600; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font-family: var(--ff-body); font-size:1rem; color: var(--ink);
  padding: 11px 13px; border:1px solid var(--line); border-radius: 8px; background:#fff;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size:.84rem; color: var(--muted); }

.info-list { list-style:none; padding:0; margin:0; }
.info-list li { display:flex; gap:14px; padding: 14px 0; border-bottom:1px solid var(--line); }
.info-list li:last-child { border:none; }
.info-list .ic { color: var(--accent-dark); flex:none; margin-top:2px; }
.info-list strong { display:block; font-family: var(--ff-display); font-size:.95rem; }
.info-list span { color: var(--muted); font-size:.92rem; }

/* team */
.team-grid { display:grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.member { text-align:center; }
.member .photo {
  width:100%; aspect-ratio:1; border-radius: 12px; margin-bottom:14px;
  display:grid; place-items:center; font-family:var(--ff-display); font-weight:600;
  font-size:1.8rem; color:#fff;
}
.member h3 { font-size:1.05rem; margin-bottom:2px; }
.member .role { color: var(--accent-dark); font-size:.85rem; font-weight:600; }
.member p { color: var(--muted); font-size:.88rem; margin-top:8px; }

/* faq */
details.faq {
  border:1px solid var(--line); border-radius: 10px; padding: 4px 20px; margin-bottom:12px; background:#fff;
}
details.faq summary {
  cursor:pointer; font-family: var(--ff-display); font-weight:600; padding: 16px 0; list-style:none;
  display:flex; justify-content:space-between; align-items:center;
}
details.faq summary::-webkit-details-marker { display:none; }
details.faq summary::after { content:"+"; color: var(--accent-dark); font-size:1.4rem; }
details.faq[open] summary::after { content:"–"; }
details.faq p { color: var(--muted); padding-bottom: 16px; margin:0; }

/* generic prose for sub-pages */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul { padding-left: 1.2rem; color: var(--ink-soft); }
.prose li { margin-bottom: 8px; }

.feature-row { display:grid; grid-template-columns: repeat(2,1fr); gap: 24px; margin: 8px 0; }
.feature { display:flex; gap:14px; }
.feature .ic { width:40px;height:40px;flex:none;border-radius:9px;background:var(--accent-soft);color:var(--accent-dark);display:grid;place-items:center; }
.feature h3 { font-size:1.05rem; margin-bottom:3px; }
.feature p { color: var(--muted); font-size:.93rem; margin:0; }

/* ---------- Footer ---------- */
.site-footer { background: #0e1d30; color: #aebccb; padding: 60px 0 28px; font-size:.92rem; }
.footer-grid { display:grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.site-footer h4 { color:#fff; font-size:.95rem; text-transform:uppercase; letter-spacing:.08em; margin-bottom: 16px; }
.site-footer ul { list-style:none; padding:0; margin:0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color:#aebccb; }
.site-footer a:hover { color:#fff; text-decoration:none; }
.footer-brand .brand { color:#fff; margin-bottom: 14px; }
.footer-brand .brand small { color:#7d90a3; }
.footer-brand p { max-width: 34ch; color:#8ba0b3; }
.footer-bottom {
  border-top:1px solid rgba(255,255,255,.1); padding-top: 22px;
  display:flex; justify-content:space-between; gap: 14px; flex-wrap:wrap;
  font-size:.82rem; color:#7d90a3;
}
.footer-bottom a { color:#7d90a3; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-4, .team-grid, .stat-row, .price-grid { grid-template-columns: repeat(2,1fr); }
  .split, .work-grid, .form-grid, .feature-row { grid-template-columns: 1fr; }
  .split { gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .hamburger { display:flex; }
  .nav-links.open {
    display:flex; flex-direction:column; align-items:stretch;
    position:absolute; top:70px; left:0; right:0;
    background:#fff; border-bottom:1px solid var(--line);
    padding: 12px 16px; gap: 2px; box-shadow: var(--shadow-md);
  }
  .nav-links.open .submenu { position:static; display:block; box-shadow:none; border:none; padding-left:12px; min-width:0; }
  .nav-links.open .has-sub > a::after { content:""; }
  section { padding: 52px 0; }
  .grid-2, .grid-3, .grid-4, .stat-row, .price-grid, .team-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 34px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; transition: none !important; }
}

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