/* AdArtes Company — site styles
   Classical aesthetic: serif display, deep navy + gold, cream paper.
   Interaction principle: tiles lift only when they lead somewhere. */

:root {
  --navy: #1b2a41;
  --navy-deep: #131f31;
  --gold: #b8933e;
  --gold-soft: #d4b26a;
  --gold-ink: #8a6c2a; /* AA-compliant gold for text on light backgrounds */
  --cream: #faf7f1;
  --paper: #ffffff;
  --ink: #23293a;
  --ink-soft: #5a6274;
  --rule: #e6e0d4;
  --max: 1080px;
  --shadow-rest: 0 1px 3px rgba(27, 42, 65, 0.06);
  --shadow-lift: 0 14px 30px rgba(27, 42, 65, 0.14), 0 3px 8px rgba(27, 42, 65, 0.08);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}

h1, h2, h3, .serif {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.15;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.35rem; }

p + p { margin-top: 1em; }

a { color: var(--navy); }

img { max-width: 100%; display: block; }

::selection { background: var(--gold-soft); color: var(--navy-deep); }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

strong { font-weight: 600; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Anchored targets clear the sticky header */
[id] { scroll-margin-top: 90px; }

/* Skip link (a11y) */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  z-index: 100;
}
.skip:focus { left: 0; }

/* ---------- Header ---------- */

.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 3px solid var(--gold);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}

.brand {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  text-decoration: none;
}

.brand span { color: var(--gold-soft); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 6px;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
}

.site-nav {
  display: flex;
  gap: 1.6rem;
  align-items: center;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.97rem;
  padding: 0.4rem 0;
  position: relative;
}

.site-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s var(--ease);
}

.site-nav a:hover { color: #fff; }
.site-nav a:not(.nav-cta):hover::after { transform: scaleX(1); }

.site-nav a[aria-current="page"] { color: #fff; }
.site-nav a[aria-current="page"]:not(.nav-cta)::after { transform: scaleX(1); }

.site-nav .nav-cta {
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 600;
  padding: 0.5rem 1.1rem;
  border-radius: 6px;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.site-nav .nav-cta:hover {
  background: var(--gold-soft);
  color: var(--navy-deep);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--navy-deep);
    padding: 0.5rem 1.25rem 1rem;
    border-bottom: 3px solid var(--gold);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.7rem 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .site-nav a:not(.nav-cta)::after { display: none; }
  .site-nav .nav-cta { margin-top: 0.75rem; text-align: center; }
}

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(212, 178, 106, 0.16), transparent 65%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  padding: 5rem 0 5.5rem;
  text-align: center;
}

.hero h1 { color: #fff; max-width: 820px; margin: 0 auto; text-wrap: balance; }

.hero .kicker,
.page-hero .kicker {
  display: inline-block;
  color: var(--gold-soft);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero p.lead {
  max-width: 640px;
  margin: 1.5rem auto 0;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.82);
}

.hero .actions { margin-top: 2.25rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Verum · Bonum · Pulchrum strip */
.triad-strip {
  background: var(--navy-deep);
  border-top: 1px solid rgba(212, 178, 106, 0.25);
  border-bottom: 3px solid var(--gold);
  padding: 0.9rem 1rem;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 1.4rem;
  flex-wrap: wrap;
  text-align: center;
}

.triad-strip span.word {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--gold-soft);
  text-transform: uppercase;
}

.triad-strip span.word em {
  font-style: italic;
  text-transform: none;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
  margin-left: 0.45rem;
}

.triad-strip .dot { color: var(--gold); font-size: 0.7rem; }

@media (max-width: 540px) {
  .triad-strip { flex-direction: column; gap: 0.15rem; }
  .triad-strip .dot { display: none; }
}

/* Page hero (interior pages) */
.page-hero {
  background:
    radial-gradient(ellipse 90% 70% at 50% -15%, rgba(212, 178, 106, 0.14), transparent 65%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  padding: 3.5rem 0;
}
.page-hero h1 { color: #fff; text-wrap: balance; }
.page-hero p.lead { max-width: 680px; margin-top: 1rem; font-size: 1.15rem; color: rgba(255,255,255,0.82); }
.page-hero .kicker { margin-bottom: 0.9rem; }

/* ---------- Ornament divider ---------- */

.orn {
  text-align: center;
  color: var(--gold);
  letter-spacing: 0.9em;
  padding-left: 0.9em; /* balance the trailing letter-spacing */
  font-size: 0.8rem;
  margin-bottom: 2rem;
  user-select: none;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.8rem 1.7rem;
  border-radius: 6px;
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(19, 31, 49, 0.22); }
.btn:active { transform: translateY(0); box-shadow: none; }

.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: var(--gold-soft); }

.btn-outline { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn-outline:hover { border-color: #fff; }

.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); }

/* ---------- Sections ---------- */

section.band { padding: 4.5rem 0; }
section.band.alt { background: var(--paper); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }

.section-head { max-width: 720px; margin-bottom: 2.5rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .kicker {
  display: inline-block;
  color: var(--gold-ink);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.section-head p { margin-top: 0.9rem; color: var(--ink-soft); }

/* ---------- Cards & grids ---------- */

.grid { display: grid; gap: 1.5rem; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid.cols-3, .grid.cols-2, .grid.cols-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--rule);
  border-radius: 10px;
  padding: 1.75rem;
  box-shadow: var(--shadow-rest);
}

.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--ink-soft); font-size: 0.98rem; }

.card .icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 8px;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  transition: transform 0.25s var(--ease);
}

/* Linked cards: the whole tile is the link, and it lifts */
a.card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

a.card:hover, a.card:focus-visible {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
  border-top-color: var(--gold);
}

a.card:hover .icon { transform: scale(1.08); }

a.card .card-link {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  color: var(--gold-ink);
}

a.card .card-link .arrow {
  display: inline-block;
  transition: transform 0.25s var(--ease);
}

a.card:hover .card-link .arrow { transform: translateX(5px); }

/* Feature list (checkmarks) */
.feature-list { list-style: none; margin-top: 0.75rem; }
.feature-list li {
  padding-left: 1.6rem;
  position: relative;
  margin-bottom: 0.5rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.feature-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* Numbered phases (consulting) */
.phase {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--rule);
}
.phase:last-child { border-bottom: none; }
.phase .num {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--gold-ink);
  line-height: 1;
}
.phase h3 { margin-bottom: 0.5rem; }
.phase p { color: var(--ink-soft); }

/* Statement band (first-party claim, styled prominently — not a testimonial) */
.quote-band {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}
.quote-band .statement {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.4;
}
.quote-band .tagline {
  display: block;
  margin-top: 1.25rem;
  font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  font-size: 0.95rem;
  color: var(--gold-soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* CTA band */
.cta-band {
  background:
    radial-gradient(ellipse 80% 90% at 50% 110%, rgba(212, 178, 106, 0.14), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  text-align: center;
  padding: 4.5rem 0;
}
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 560px; margin: 1rem auto 2rem; color: rgba(255,255,255,0.82); }

/* ---------- Prose (about/mission) ---------- */

.prose { max-width: 720px; }
.prose h2 { margin: 2.5rem 0 1rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-soft); }
.prose strong { color: var(--ink); }

.prose p.dropcap::first-letter {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 3.3em;
  font-weight: 600;
  float: left;
  line-height: 0.8;
  padding: 0.08em 0.12em 0 0;
  color: var(--gold-ink);
}

/* ---------- Contact form ---------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

form.contact-form { background: var(--paper); border: 1px solid var(--rule); border-top: 3px solid var(--gold); border-radius: 10px; padding: 2rem; box-shadow: var(--shadow-rest); }
form.contact-form label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.35rem; color: var(--navy); }
form.contact-form input,
form.contact-form textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid #8f8875;
  border-radius: 6px;
  font: inherit;
  margin-bottom: 1.1rem;
  background: var(--cream);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
form.contact-form input:focus,
form.contact-form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184, 147, 62, 0.18); }
form.contact-form textarea { min-height: 140px; resize: vertical; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.75);
  padding: 3.5rem 0 2rem;
  font-size: 0.95rem;
}
.site-footer .cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
@media (max-width: 700px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer h4 {
  font-family: "Cormorant Garamond", Georgia, serif;
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 0.9rem;
}
.site-footer a { color: rgba(255, 255, 255, 0.75); text-decoration: none; display: block; padding: 0.2rem 0; transition: color 0.2s var(--ease); }
.site-footer a:hover { color: var(--gold-soft); }
.site-footer .legal { padding-top: 1.5rem; font-size: 0.85rem; color: rgba(255, 255, 255, 0.5); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
.site-footer .motto { font-style: italic; color: var(--gold-soft); margin-top: 0.5rem; }

/* ---------- Scroll reveal (JS adds .reveal, then .in when visible) ----------
   Uses a keyframe animation, not a transition, so it can never collide with the
   hover-lift transitions on a.card. */

.reveal { opacity: 0; }
.reveal.in {
  animation: fadeUp 0.55s var(--ease) both;
  animation-delay: var(--reveal-delay, 0ms);
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; animation: none; }
  .btn, a.card, .card .icon, .site-nav .nav-cta,
  .site-nav a:not(.nav-cta)::after, a.card .card-link .arrow { transition: none; }
  a.card:hover { transform: none; }
  a.card:hover .icon { transform: none; }
}

/* ---------- 404 ---------- */

.notfound { text-align: center; padding: 6rem 1.25rem; }
.notfound .code {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(5rem, 14vw, 8rem);
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}
.notfound p { color: var(--ink-soft); max-width: 460px; margin: 1rem auto 2rem; }
