/* GoLavi.com site styles */
:root {
  --navy: #0A2342;
  --navy-2: #12305A;
  --navy-hover: #16386A;
  --accent: #F7841F;
  --accent-soft: #FFF0E3;
  --accent-ink: #9A4A10;
  --accent-text: #B4520A;
  --ink: #1B2433;
  --body: #4A5468;
  --muted: #5B6577;
  --line: #E6E9EF;
  --field: #D5DAE3;
  --tint: #F5F7FA;
  --on-navy: #C9D3E3;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Montserrat, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); }
a:hover { color: var(--navy-hover); }
h1, h2, h3 { color: var(--navy); margin: 0; }
p { margin: 0; }
section[id] { scroll-margin-top: 24px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* Header */
.site-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 20px; padding-top: 28px; padding-bottom: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand-word { font-weight: 700; font-size: 30px; letter-spacing: -0.03em; line-height: 1; color: var(--navy); white-space: nowrap; }
.brand-i { position: relative; display: inline-block; }
.brand-i::after { content: ""; position: absolute; left: 50%; top: 0.062em; width: 0.21em; height: 0.21em; margin-left: -0.09em; border-radius: 50%; background: var(--accent); }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.main-nav a { text-decoration: none; color: var(--ink); }
.main-nav a:hover { color: var(--navy); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--field); border-radius: 10px;
  width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--navy); cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; border: 0; cursor: pointer;
  font-family: inherit; font-weight: 700; font-size: 16px; line-height: 1.2;
  padding: 16px 28px; border-radius: 999px; transition: background-color .15s ease, transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 12px 20px; font-size: 15px; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-hover); color: #fff; }
.btn-accent { background: var(--accent); color: var(--navy) !important; }
.btn-accent:hover { background: #FF9A45; }
.btn-outline { background: #fff; color: var(--navy); border: 1px solid var(--field); padding: 15px 27px; }
.btn-outline:hover { border-color: var(--navy); }

/* Hero */
.hero { text-align: center; padding-top: 120px; padding-bottom: 140px; }
.pill {
  display: inline-block; margin-bottom: 28px; padding: 8px 16px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-ink); font-size: 14px; font-weight: 600;
}
.hero h1 {
  max-width: 900px; margin: 0 auto; font-size: clamp(38px, 6vw, 70px);
  line-height: 1.08; letter-spacing: -0.035em; font-weight: 800;
}
.lead { margin: 32px auto 0; max-width: 640px; font-size: 19px; line-height: 1.6; color: var(--muted); }
.actions { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* AI panel */
.ai-panel { background: var(--navy); color: #fff; border-radius: 28px; padding: clamp(36px, 6vw, 88px); }
.ai-panel h2, .ai-panel h3 { color: #fff; }
.ai-head { display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; align-items: flex-end; }
.ai-head > div { flex: 1 1 420px; min-width: 0; }
.ai-head > p { flex: 1 1 360px; min-width: 0; font-size: 17px; line-height: 1.7; color: var(--on-navy); }
.ai-head h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.12; letter-spacing: -0.03em; font-weight: 800; }
.ai-panel .grid { margin-top: 64px; }
.ai-card { background: var(--navy-2); border-radius: 18px; padding: 32px; }
.ai-card h3 { margin: 20px 0 10px; font-size: 18px; font-weight: 700; }
.ai-card p { font-size: 15px; line-height: 1.6; color: var(--on-navy); }
.ai-cta { margin-top: 56px; }

/* Sections */
.section { padding-top: 160px; }
.section-head { max-width: 640px; }
.section-head.split { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.section-head.split > div { max-width: 640px; }
.section-head.split > p { max-width: 420px; }
.section h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.15; letter-spacing: -0.03em; font-weight: 800; }
.eyebrow { margin-bottom: 16px; color: var(--accent-text); font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.eyebrow-light { color: var(--accent); }
.muted { font-size: 16px; line-height: 1.7; color: var(--muted); }

.grid { display: grid; gap: 24px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.section-head + .grid { margin-top: 64px; }

.service-card { border: 1px solid var(--line); border-radius: 20px; padding: 40px; }
.service-card .bar { display: block; width: 44px; height: 4px; border-radius: 4px; background: var(--accent); }
.service-card h3 { margin: 28px 0 12px; font-size: 21px; font-weight: 700; }
.service-card p { font-size: 16px; line-height: 1.7; color: var(--muted); }

.product-card { background: var(--tint); border-radius: 24px; padding: 48px; display: flex; flex-direction: column; gap: 16px; }
.product-for { font-size: 14px; font-weight: 600; color: var(--muted); }
.product-card h3 { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.product-card p:not(.product-for) { font-size: 16px; line-height: 1.7; color: var(--body); }
.product-card a { margin-top: 16px; font-weight: 700; font-size: 15px; text-decoration: none; }
.product-card a:hover { text-decoration: underline; }

.about-grid { gap: 56px; }
.about-grid h3 { margin-bottom: 14px; font-size: 20px; font-weight: 700; }
.about-grid p { font-size: 16px; line-height: 1.7; color: var(--muted); }
.impact { margin-top: 120px; border-top: 1px solid var(--line); padding-top: 72px; display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; }
.impact h2 { flex: 1 1 360px; font-size: clamp(26px, 3vw, 34px); }
.impact-list { flex: 1 1 480px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px 40px; font-size: 16px; line-height: 1.6; color: var(--body); }
.impact-list strong { color: var(--navy); }

/* Contact */
.contact { display: flex; flex-wrap: wrap; gap: 72px; padding-bottom: 140px; }
.contact-info { flex: 1 1 340px; min-width: 0; }
.contact-info .muted { margin: 20px 0 40px; font-size: 17px; }
.contact-info ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; font-size: 16px; }
.contact-info a { text-decoration: none; font-weight: 600; }
.contact-form { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.contact-form .row { display: flex; flex-wrap: wrap; gap: 18px; }
.contact-form .row label { flex: 1 1 200px; }
.contact-form label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; color: var(--navy); }
.contact-form input, .contact-form textarea, .contact-form select {
  font: inherit; font-size: 16px; font-weight: 400; color: var(--ink);
  padding: 14px 16px; border: 1px solid var(--field); border-radius: 12px; background: #fff; width: 100%;
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--navy);
}
.contact-form button { align-self: flex-start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 14px 18px; border-radius: 12px; font-size: 15px; font-weight: 500; }
.notice-ok { background: #E8F5EC; color: #1E5B32; }
.notice-err { background: #FDECEC; color: #8A1F1F; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { padding-top: 36px; padding-bottom: 36px; display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; font-size: 14px; color: var(--muted); }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-inner a { text-decoration: none; color: var(--muted); }
.footer-inner a:hover { color: var(--navy); }

/* Focus */
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Tablet */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .grid-4 { grid-template-columns: 1fr; }
}

/* Mobile */
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 18px; padding: 12px 0 8px; }
  .main-nav.open { display: flex; }
  .hero { padding-top: 72px; padding-bottom: 96px; }
  .section { padding-top: 112px; }
  .contact { padding-bottom: 96px; gap: 48px; }
  .impact { margin-top: 80px; padding-top: 56px; }
  .product-card, .service-card { padding: 32px; }
}

/* ===== Multi-page additions ===== */
.main-nav a.active { color: var(--navy); font-weight: 700; }
.grid-2x2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

/* Homepage teasers */
.teasers { display: flex; flex-direction: column; }
.teaser { display: flex; flex-wrap: wrap; gap: 32px 72px; padding: 64px 0; border-top: 1px solid var(--line); }
.teaser:first-child { border-top: 0; padding-top: 0; }
.teaser-head { flex: 1 1 380px; min-width: 0; }
.teaser-body { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.teaser-body p { font-size: 17px; line-height: 1.75; color: var(--body); }
.text-link { font-weight: 700; font-size: 16px; text-decoration: none; color: var(--navy); border-bottom: 2px solid var(--accent); padding-bottom: 3px; }
.text-link:hover { color: var(--navy-hover); border-bottom-color: var(--navy); }

/* CTA band */
.cta-band { background: var(--tint); border-radius: 28px; padding: clamp(40px, 6vw, 80px); display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: center; justify-content: space-between; }
.cta-band > div { flex: 1 1 480px; min-width: 0; }
.cta-band .muted { margin-top: 16px; font-size: 17px; }
.page-end { padding-bottom: 140px; }

/* Inner page hero */
.page-hero { padding-top: 96px; padding-bottom: 32px; max-width: 1200px; }
.page-hero h1 { max-width: 820px; font-size: clamp(36px, 5vw, 58px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 800; }
.page-hero .lead { margin: 28px 0 0; text-align: left; }
.page-hero + .section { padding-top: 96px; }

/* Detail cards */
.detail-card { border: 1px solid var(--line); border-radius: 24px; padding: clamp(32px, 4vw, 56px); display: flex; flex-wrap: wrap; gap: 32px 64px; }
.detail-card + .detail-card { margin-top: 24px; }
.detail-card .detail-head { flex: 1 1 320px; min-width: 0; }
.detail-card .detail-body { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.detail-card h2 { font-size: clamp(26px, 3vw, 34px); }
.detail-card .detail-head .bar { display: block; width: 44px; height: 4px; border-radius: 4px; background: var(--accent); margin-bottom: 24px; }
.detail-card .detail-body > p { font-size: 17px; line-height: 1.75; color: var(--body); }
.detail-card.tint { background: var(--tint); border-color: var(--tint); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; font-size: 16px; line-height: 1.5; color: var(--body); }
.checks li { position: relative; padding-left: 28px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 8px; border-left: 2.5px solid var(--navy); border-bottom: 2.5px solid var(--navy); transform: rotate(-45deg); }
.for-label { font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.page-hero .muted { margin-top: 0; }

@media (max-width: 760px) {
  .grid-2x2 { grid-template-columns: 1fr; }
  .checks { grid-template-columns: 1fr; }
  .page-hero { padding-top: 56px; }
  .page-hero + .section { padding-top: 64px; }
  .teaser { padding: 48px 0; }
  .page-end { padding-bottom: 96px; }
}
.impact-copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.impact-copy p { font-size: 17px; line-height: 1.75; color: var(--body); }
.contact-info h2 { font-size: clamp(26px, 3vw, 34px); }
.contact-info .muted { margin: 16px 0 32px; }

/* Brand touches */
.accent-text { color: #E8700F; }
.wordmark-inline { font-weight: 700; letter-spacing: -0.03em; white-space: nowrap; color: var(--navy); }
.product-logo { margin: 0; line-height: 0; }
.product-logo img { display: block; width: 300px; max-width: 100%; height: auto; }
.product-logo.plate-navy { display: inline-block; background: var(--navy); padding: 20px 24px; border-radius: 16px; }
.product-logo.plate-navy img { width: 260px; }
.wordmark-inline .brand-i, .brand-word .brand-i { line-height: 1; }
.footer-mark { font-size: 15px; }
