/* ------------------------------------------------------------------
   Arcantics marketing site — shared by index.jsp and about.jsp.

   Replaces the two divergent inline <style> blocks that used to live in
   index.html and about.html, plus mobile-nav.css. The nav and footer are
   rendered from WEB-INF/jsp/marketing/{header,footer}.jsp and styled here,
   so the two pages cannot drift apart again.
   ------------------------------------------------------------------ */

:root {
  --m-bg:      #F5F1E9;
  --m-ink:     #211E19;
  --m-muted:   #4A453C;
  --m-faint:   #8A8172;
  --m-on-dark: #F5F1E9;
  --m-accent:  #C08552;
  --m-line:    rgba(33, 30, 25, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--m-bg); }
body {
  font-family: 'Instrument Sans', sans-serif;
  color: var(--m-ink);
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1 0 auto; }
img { max-width: 100%; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- nav ---------- */

.m-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245, 241, 233, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--m-line);
}
.m-nav-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 56px; width: 100%; gap: 40px;
}
.m-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.m-brand-mark {
  width: 30px; height: 30px; background: var(--m-ink);
  display: grid; place-items: center; border-radius: 6px;
  color: var(--m-on-dark); font-family: 'Source Serif 4', serif;
  font-weight: 700; font-size: 18px; line-height: 1;
}
.m-brand-name { font-family: 'Source Serif 4', serif; font-weight: 600; font-size: 21px; letter-spacing: -0.01em; }

.nav-desktop {
  display: flex; align-items: center; gap: 32px;
  font-size: 15px; font-weight: 500; color: var(--m-muted); margin-left: auto;
}
.nav-desktop a { color: inherit; text-decoration: none; }
.nav-desktop a.is-active { color: var(--m-ink); font-weight: 700; }


.nav-hamburger { background: none; border: none; cursor: pointer; padding: 4px; flex-direction: column; gap: 5px; }
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--m-ink); border-radius: 2px; }

.nav-mobile-menu {
  display: none; flex-direction: column; gap: 0;
  border-top: 1px solid var(--m-line); padding: 8px 24px 16px;
}
.nav-mobile-menu a {
  color: var(--m-ink); text-decoration: none; font-size: 15px; font-weight: 500;
  padding: 12px 0; border-bottom: 1px solid rgba(33, 30, 25, 0.06);
}
/* Hero on mobile: the desktop layout hugs the headline so the button can centre
   on it. In a narrow column that lockup is the full width anyway, so centre the
   whole block instead — a left-aligned pill and headline above a centred button
   reads as a mistake. */
@media (max-width: 768px) {
  .hero-copy { text-align: center; }
  .hero-copy .hero-lockup { width: auto; }
  .hero-copy h1 { width: auto; }
}

@media (max-width: 768px) {
  .m-nav-row { padding: 18px 24px; }
  .nav-desktop { display: none !important; }
  .nav-hamburger { display: flex !important; }
  .nav-mobile-menu.open { display: flex !important; }
}
@media (min-width: 769px) {
  .nav-hamburger { display: none !important; }
}

/* ---------- primary call to action ---------- */

/* Used by the hero and the pricing card. font-family is inherited from body,
   so it is not repeated here. */
.btn-cta {
  display: inline-block;
  padding: 15px 32px;
  border-radius: 10px;
  background: #FFFFFF;
  color: var(--m-ink);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

/* Hero only: centres the button on the headline above it. */
.btn-cta--centred { display: block; width: fit-content; margin-left: auto; margin-right: auto; }

/* ---------- footer ---------- */

.m-footer { background: var(--m-ink); color: var(--m-on-dark); padding: 88px 56px 40px; }
.m-footer-inner { max-width: 1200px; margin: 0 auto; }
.m-footer-cta { text-align: center; max-width: 620px; margin: 0 auto 72px; }
.m-footer-cta h2 {
  font-family: 'Source Serif 4', serif; font-weight: 600; font-size: 44px;
  line-height: 1.1; letter-spacing: -0.015em; margin: 0 0 18px; text-wrap: pretty;
}
.m-footer-cta p { font-size: 17px; color: #C9C1B2; line-height: 1.6; margin: 0 0 32px; }
.m-footer-bottom {
  border-top: 1px solid rgba(245, 241, 233, 0.12); padding-top: 32px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
.m-footer-brand { display: flex; align-items: center; gap: 10px; }
.m-footer-brand .mark {
  width: 26px; height: 26px; background: var(--m-on-dark); display: grid; place-items: center;
  border-radius: 5px; color: var(--m-ink); font-family: 'Source Serif 4', serif;
  font-weight: 700; font-size: 15px; line-height: 1;
}
.m-footer-brand .name { font-family: 'Source Serif 4', serif; font-weight: 600; font-size: 18px; }
.m-footer-links { display: flex; gap: 28px; font-size: 14px; color: var(--m-faint); flex-wrap: wrap; }
.m-footer-links a { color: inherit; text-decoration: none; }
.m-footer-copy { font-size: 13px; color: var(--m-faint); }

@media (max-width: 768px) {
  .m-footer { padding: 56px 24px 32px; }
  .m-footer-cta h2 { font-size: 32px; }
}


/* ---------- home page ---------- */

/* Tablet & below: stack the two-column layouts. Selectors target the
   data-screen-label attributes carried over from the original design. */
@media (max-width: 900px) {
  header[data-screen-label="Hero"] > div { grid-template-columns: 1fr !important; gap: 44px !important; }
  #features > div > div { grid-template-columns: 1fr !important; margin-bottom: 52px !important; }
  #process > div > div:last-child { grid-template-columns: 1fr !important; }
  #pricing > div { grid-template-columns: 1fr !important; }
}

/* ---------- about page ---------- */

.page-about .about-hero {
  padding: 96px 56px 80px; max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 340px 1fr; gap: 80px; align-items: center;
}
.page-about .photo-wrap { position: relative; }
.page-about .photo-wrap img {
  width: 100%; border-radius: 20px; object-fit: cover; aspect-ratio: 3/4;
  display: block; box-shadow: 0 32px 80px rgba(33,30,25,.16);
}
.page-about .photo-badge {
  position: absolute; bottom: -18px; left: 24px; background: var(--m-accent); color: var(--m-ink);
  border-radius: 10px; padding: 12px 20px; font-weight: 700; font-size: 13px;
  letter-spacing: .05em; box-shadow: 0 8px 24px rgba(192,133,82,.35); white-space: nowrap;
}
.page-about .label {
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--m-accent); font-weight: 700; display: block; margin-bottom: 16px;
}
.page-about h1 {
  font-family: 'Source Serif 4', serif; font-weight: 600; font-size: 44px;
  line-height: 1.1; letter-spacing: -.02em; margin: 0 0 28px; color: var(--m-ink);
}
.page-about .body-text { font-size: 16px; line-height: 1.75; color: var(--m-muted); margin: 0 0 18px; }
.page-about .facts {
  display: flex; gap: 32px; margin-top: 36px; padding-top: 36px;
  border-top: 1px solid rgba(33,30,25,.1);
}
.page-about .fact-item { display: flex; flex-direction: column; gap: 4px; }
.page-about .fact-label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--m-faint); font-weight: 600; }
.page-about .fact-value { font-size: 15px; font-weight: 700; color: var(--m-ink); }

@media (max-width: 768px) {
  .page-about .about-hero { grid-template-columns: 1fr; padding: 48px 24px; gap: 48px; }
  .page-about .facts { flex-wrap: wrap; gap: 20px; }
}
