/* Anotiva — static site styles (no framework) */
:root {
  --navy: #03588a;
  --navy-dark: #023f63;
  --orange: #f69939;
  --orange-dark: #e07f1c;
  --ink: #1b1825;
  --text: #4a4856;
  --muted: #7b7981;
  --line: #e3e6ea;
  --mist: #dae3e9;
  --white: #ffffff;
  --radius: 8px;
  --max: 1200px;
  --head: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --nav: "Bai Jamjuree", "Barlow", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 500 17px/1.6 var(--head);
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
h1, h2, h3, h4, h5 { font-family: var(--head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.25rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 700; }
h5 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.eyebrow { color: var(--orange); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .95rem; margin-bottom: .75rem; display: block; }
.center { text-align: center; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--white); padding: 8px 12px; z-index: 100; }

/* Buttons */
.btn {
  display: inline-block; font: 700 .95rem/1 var(--head); letter-spacing: .08em; text-transform: uppercase;
  padding: 18px 34px; border-radius: 4px; text-decoration: none; border: 0; cursor: pointer;
  background: var(--navy); color: var(--white); transition: background .2s, transform .2s;
}
.btn:hover { background: var(--navy-dark); transform: translateY(-1px); }
.btn--orange { background: var(--orange); color: var(--white); }
.btn--orange:hover { background: var(--orange-dark); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); box-shadow: 0 1px 0 var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 92px; gap: 24px; }
.logo img { width: 260px; }
.nav ul { list-style: none; display: flex; gap: 40px; margin: 0; padding: 0; }
.nav a { font: 600 1.05rem var(--nav); color: var(--ink); text-decoration: none; padding: 8px 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--navy); border-color: var(--orange); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 6px 0; transition: transform .2s, opacity .2s; }

/* Hero slider (home) */
.hero { position: relative; min-height: 820px; background: var(--ink) url(images/footer-bg.jpg) center/cover; color: var(--white); overflow: hidden; display: flex; align-items: center; }
.hero .slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; }
.hero .slide.is-active { opacity: 1; visibility: visible; }
.hero .slide .container { max-width: var(--max); }
.hero h1 { color: var(--white); max-width: 820px; }
.hero p { font-size: 1.25rem; max-width: 640px; color: #e6e5ea; margin-bottom: 2rem; }
.hero-dots { position: absolute; bottom: 48px; left: 50%; transform: translateX(-50%); display: flex; gap: 12px; z-index: 2; }
.hero-dots button { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--white); background: transparent; cursor: pointer; padding: 0; }
.hero-dots button[aria-selected="true"] { background: var(--orange); border-color: var(--orange); }

/* Page banner (inner pages) */
.page-banner { background: var(--ink) url(images/footer-bg.jpg) center/cover; color: var(--white); padding: 120px 0 100px; }
.page-banner h1 { color: var(--white); margin: 0; }

/* Two-column split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split--reverse > :first-child { order: 2; }

/* Mission image stack */
.stack { position: relative; padding-bottom: 80px; padding-right: 60px; }
.stack .stack-main { border-radius: var(--radius); box-shadow: 0 20px 50px rgba(27,24,37,.18); }
.stack .stack-card { position: absolute; right: 0; bottom: 0; width: 62%; border-radius: var(--radius); box-shadow: 0 20px 50px rgba(27,24,37,.25); }

/* Service list + image rotator */
.checklist { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.checklist li { position: relative; padding-left: 30px; color: var(--ink); font-weight: 600; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 14px; background: var(--orange); }
.rotator { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 50px rgba(27,24,37,.18); background: var(--ink); }
.rotator figure { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1s ease; }
.rotator figure.is-active { opacity: 1; }
.rotator img { width: 100%; height: 100%; object-fit: cover; }
.rotator figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 28px 24px; background: linear-gradient(transparent, rgba(3,30,48,.85)); color: var(--white); font-weight: 700; font-size: 1.35rem; }

/* CTA band */
.cta { background: linear-gradient(180deg, #fff 0%, #dadada 100%); text-align: center; }
.cta h3 { max-width: 820px; margin: 0 auto 12px; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; }
.cta p { font-size: 1.15rem; margin-bottom: 28px; }

/* Card grids */
.grid { display: grid; gap: 28px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--orange); border-radius: var(--radius); padding: 32px 28px; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(27,24,37,.1); }
.card h3, .card h5 { color: var(--navy); }
.card p { margin: 0; }
.bg-mist { background: var(--mist); }

/* Solutions rows */
.solution { padding: 72px 0; border-bottom: 1px solid var(--line); }
.solution:last-of-type { border-bottom: 0; }
.solution img { width: 100%; aspect-ratio: 1080 / 533; object-fit: cover; border-radius: var(--radius); }
.solution h2 { color: var(--navy); }

/* Contact */
.contact-wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; }
.form { display: grid; gap: 18px; margin-top: 24px; }
.form label { display: grid; gap: 6px; font-weight: 600; color: var(--ink); }
.form input, .form textarea { font: inherit; padding: 14px 16px; border: 1px solid #c9ced6; border-radius: 4px; background: var(--white); color: var(--ink); }
.form input:focus, .form textarea:focus { outline: 2px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }
.form textarea { min-height: 160px; resize: vertical; }
.form-note { font-size: .9rem; color: var(--muted); }
.contact-info { background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 40px; align-self: start; }
.contact-info h3 { color: var(--white); margin-top: 28px; }
.contact-info h3:first-child { margin-top: 0; }
.contact-info a { color: var(--white); }

/* Legal / prose */
.prose { max-width: 820px; }
.prose h2 { font-size: 1.6rem; margin-top: 1.8em; color: var(--navy); }
.prose h3 { font-size: 1.25rem; margin-top: 1.6em; color: var(--navy); }
.prose ul { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }

/* Footer */
.site-footer { background: var(--ink) url(images/footer-bg.jpg) center/cover; color: #c9c4d5; padding: 80px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.1fr 1fr; gap: 48px; }
.site-footer h2 { color: var(--white); font-size: 1.3rem; margin-bottom: 18px; }
.site-footer a { color: #c9c4d5; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.footer-logo { width: 240px; margin: -40px 0 8px -20px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.sdvosb { width: 130px; border-radius: 4px; margin-top: 16px; }
.copyright { margin-top: 64px; border-top: 1px solid rgba(255,255,255,.12); padding: 24px 0; text-align: center; font-size: .95rem; }
.copyright p { margin: 0; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero .slide, .rotator figure { transition: none; }
}

/* Responsive */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split, .contact-wrap { gap: 48px; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--white); box-shadow: 0 12px 24px rgba(0,0,0,.08); display: none; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 8px 24px 16px; }
  .nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .split, .contact-wrap { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
  .hero { min-height: 560px; }
  .section { padding: 72px 0; }
  .logo img { width: 200px; }
}
@media (max-width: 560px) {
  .grid--4, .grid--3, .footer-grid, .checklist { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
  .page-banner { padding: 80px 0 64px; }
  .contact-info { padding: 28px; }
  .stack { padding-right: 30px; padding-bottom: 50px; }
}
