/* Opti — studio site for Optimax. Mobile-first, clean, professional. */
:root {
  --paper: #f3efe6;
  --paper-deep: #e7e1d4;
  --card: #fffdf8;
  --ink: #171410;
  --ink-soft: #3f3a34;
  --muted: #6d675e;
  --line: #d8d0c2;
  --accent: #c94b1a;
  --accent-deep: #9a3410;
  --accent-soft: #f3d8cc;
  --focus: #1f4b8f;
  --radius: 18px;
  --shadow: 0 12px 40px rgba(23, 20, 16, 0.06);
  --max: 1120px;
  --header-h: 72px;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% -10%, rgba(201, 75, 26, 0.08), transparent 36%),
    radial-gradient(circle at 100% 0%, rgba(23, 20, 16, 0.04), transparent 28%),
    var(--paper);
  min-height: 100vh;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--accent-deep); text-underline-offset: 0.18em; }
a:hover { color: var(--accent); }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--card);
  padding: 0.6rem 1rem;
  z-index: 100;
  border-radius: 8px;
}
.skip-link:focus { top: 0.75rem; }

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

/* ——— Logo mark: dotted ring in CSS ——— */
.mark {
  --size: 36px;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  border: 2.5px dotted var(--accent);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  position: relative;
}
.mark::after {
  content: "";
  width: 42%;
  height: 42%;
  border-radius: 50%;
  background: var(--accent);
}
.mark-lg {
  --size: 72px;
  border-width: 4px;
}
.mark-hero {
  --size: min(280px, 70vw);
  border-width: 8px;
  opacity: 0.16;
  position: absolute;
  right: -6%;
  top: -18%;
  pointer-events: none;
}
.mark-hero::after { width: 18%; height: 18%; }

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--paper) 86%, white);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.7rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}
.brand-sub {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.nav-toggle { display: none; }
.nav-burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  cursor: pointer;
}
.nav-burger span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
}
.site-nav a {
  display: inline-block;
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--paper-deep);
  color: var(--ink);
}
.site-nav a[aria-current="page"] { font-weight: 600; }

@media (max-width: 799px) {
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--card);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1rem 1rem;
    box-shadow: var(--shadow);
  }
  .site-nav ul { flex-direction: column; }
  .site-nav a { padding: 0.7rem 0.85rem; }
  .nav-toggle:checked ~ .site-nav { display: block; }
  .nav-toggle:checked + .nav-burger { background: var(--paper-deep); }
}
@media (min-width: 800px) {
  .nav-burger { display: none; }
}

/* ——— Hero / typography ——— */
.hero {
  position: relative;
  overflow: hidden;
  padding: 3.2rem 0 3.6rem;
}
.kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 1rem;
}
h1, h2, h3 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.8rem;
}
h1 { font-size: clamp(2.4rem, 7vw, 4.4rem); max-width: 14ch; }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h3 { font-size: 1.35rem; font-family: "Instrument Sans", "Segoe UI", system-ui, sans-serif; font-weight: 600; letter-spacing: -0.01em; }
.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 38rem;
  margin: 0 0 1.8rem;
}
.hero-copy { position: relative; z-index: 1; max-width: 40rem; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: #fffaf6;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-deep); color: #fff; border-color: var(--accent-deep); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--card); color: var(--ink); }

/* ——— Sections / cards ——— */
.section { padding: 2.5rem 0 3.2rem; }
.section-head { max-width: 40rem; margin-bottom: 1.8rem; }
.section-muted { color: var(--muted); margin: 0; }

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow);
}
.about-grid,
.cards {
  display: grid;
  gap: 1rem;
}
@media (min-width: 760px) {
  .about-grid { grid-template-columns: 1.1fr 0.9fr; align-items: stretch; }
  .cards { grid-template-columns: 1fr 1fr; }
  .cards-4 { grid-template-columns: 1fr 1fr 2fr; }
}
@media (min-width: 980px) {
  .cards-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem 1.4rem;
}
.card-num {
  font-family: "Instrument Serif", Georgia, serif;
  color: var(--accent);
  font-size: 1.25rem;
  margin-bottom: 0.7rem;
}
.card p { margin: 0; color: var(--ink-soft); }
.card h3 { margin-bottom: 0.45rem; }

.note {
  margin-top: 1.2rem;
  padding: 1rem 1.1rem;
  background: var(--paper-deep);
  border-radius: 14px;
  color: var(--ink-soft);
}

/* ——— Legal / content pages ——— */
.page-hero { padding: 2.4rem 0 0.4rem; }
.page-hero h1 { max-width: 18ch; }
.prose {
  max-width: 44rem;
  padding-bottom: 3rem;
}
.prose h2 { margin-top: 2rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { padding-left: 1.2rem; }
.prose li { margin: 0.35rem 0; }
.address, .email-block {
  font-style: normal;
  color: var(--ink);
  line-height: 1.55;
}
.email-block a { font-weight: 600; font-size: 1.15rem; text-decoration: none; }
.email-block a:hover { text-decoration: underline; }

/* ——— Pay ——— */
.pay-box { max-width: 36rem; }
.soon {
  margin: 0;
  padding: 1.1rem 1.2rem;
  background: var(--paper-deep);
  border-radius: 14px;
  color: var(--ink-soft);
}

/* ——— Footer ——— */
.site-footer {
  border-top: 1px solid var(--line);
  background: #eadfcb;
  padding: 2.4rem 0 2rem;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  gap: 1.6rem;
}
@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.1fr 1fr 1fr; }
}
.footer-brand {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.7rem;
}
.site-footer h2 {
  font-family: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 650;
  color: var(--muted);
  margin: 0 0 0.7rem;
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
.footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
}
.footer-links a:hover { color: var(--accent-deep); text-decoration: underline; }
.legal-meta {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid color-mix(in srgb, var(--line) 70%, #cabc9e);
  color: var(--muted);
  font-size: 0.88rem;
}

.contact-card p { margin: 0 0 0.8rem; color: var(--ink-soft); }
.contact-card p:last-child { margin-bottom: 0; }
