/* ==========================================================================
   Marigold Communications — one-page site
   Palette: background is now a warm cream (was flat gray), primary #F18415,
   accent #F89D09, tertiary #6C8BC5 (slate blue), navy #0A0D32.
   Header/nav text is white on the tertiary bar per direct request — note this
   is ~3.4:1 contrast, under the 4.5:1 AA threshold for normal-size text. Left
   as requested; happy to darken the header background slightly instead if
   you'd rather hit full AA without changing the text color.
   ========================================================================== */

:root {
  --background: #F1F1F1;
  --primary: #F18415;
  --accent: #F89D09;
  --tertiary: #6C8BC5;
  --secondary: #0A0D32;
  --white: #FFFFFF;

  /* BUILD NOTE: swap in Lazydog here once Meredith supplies the font files
     via @font-face — falls back to Playfair Display until then. */
  --font-display: 'Lazydog', 'Playfair Display', serif;
  --font-header: 'Playfair Display', serif;
  --font-body: 'Lato', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--secondary);
  background: var(--background);
  line-height: 1.6;
  font-size: 16px;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--font-header); font-weight: 600; }

/* ---------- Header / sticky nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--tertiary);
  border-bottom: 1px solid rgba(10,13,50,0.12);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 100px;
  padding: 12px 0;
}
.wordmark {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--white);
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
}
.wordmark.small { font-size: 16px; color: var(--white); }
.logo { height: 80px; width: auto; display: block; }
.primary-nav ul {
  display: flex;
  list-style: none;
  gap: 8px;
  align-items: center;
}
.nav-link {
  display: inline-block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  border-radius: 4px;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: rgba(255,255,255,0.16);
}
.nav-cta {
  background: var(--white);
  color: var(--secondary);
  font-weight: 700;
  padding: 12px 26px;
  font-size: 15px;
  border: 1.5px solid var(--white);
}
.nav-cta:hover { background: var(--secondary); color: var(--white); border-color: var(--secondary); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--white); color: var(--secondary); border-color: var(--secondary); }
.btn-primary:hover { background: var(--secondary); color: var(--white); }
.btn-ghost { background: transparent; color: var(--secondary); border-color: var(--secondary); }
.btn-ghost:hover { background: var(--secondary); color: var(--white); }

/* ---------- Hero ---------- */
.hero { padding: 90px 0 70px; }
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 14px;
  color: var(--primary);
  white-space: nowrap;
}
.hero h2 {
  font-size: 34px;
  line-height: 1.25;
  margin-bottom: 28px;
  color: var(--secondary);
}
.hero-visual {
  display: flex;
  justify-content: center;
}
.headshot {
  /* New headshot is a transparent PNG with its own circular graphic frame
     baked in, so no CSS crop/border-radius here — that would clip the
     artwork unevenly instead of showing it as designed. */
  width: 100%;
  max-width: 460px;
}

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-label {
  font-size: 30px;
  margin-bottom: 32px;
  position: relative;
  display: inline-block;
}
.section-label::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  background: var(--primary);
  margin-top: 12px;
}
.section-intro { max-width: 68ch; margin-bottom: 44px; font-size: 17px; }

/* What I Do heading — bigger and centered above the capability grid */
.section-label-centered {
  display: block;
  text-align: center;
  font-size: 36px;
}
.section-label-centered::after { margin: 12px auto 0; }
.section-intro-centered {
  text-align: center;
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- About (sits between Hero and What I Do, no nav anchor) ---------- */
.about { padding-top: 0; padding-bottom: 20px; }
#what-i-do { padding-top: 20px; }
.about-copy {
  /* Full width of .wrap — same right edge as the hero grid (and the
     headshot's column) above it, instead of stopping at a text max-width. */
  font-size: 18px;
  width: 100%;
  margin-bottom: 20px;
}

/* ---------- What I Do / capabilities ---------- */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.capability-card {
  /* Fixed min-height so all four boxes match, even the ones with far fewer
     examples than Social Strategy (which has the most content) — the short
     ones just carry blank space at the bottom instead of shrinking to fit. */
  min-height: 600px;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 8px;
  padding: 28px 24px;
  border-top: 4px solid var(--tertiary);
}
.capability-icon {
  width: 40px;
  height: 40px;
  color: var(--primary);
  margin-bottom: 14px;
}
.capability-icon svg { width: 100%; height: 100%; }
.capability-card h3 { font-size: 19px; margin-bottom: 12px; color: var(--secondary); }
.capability-list { list-style: none; margin-bottom: 18px; }
.capability-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 7px;
  font-size: 14.5px;
}
.capability-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--tertiary);
  border-radius: 50%;
}

/* Examples open in a modal dialog rather than expanding in place, so the
   capability grid stays fixed and never reflows or reorders when one is
   opened — cards keep their position no matter which example is open. */
.example-list { list-style: none; }
.example-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  text-align: left;
  background: var(--background);
  border: 1.5px solid var(--tertiary);
  border-radius: 6px;
  padding: 11px 14px;
  margin-bottom: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--secondary);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.example-btn:hover { background: var(--tertiary); color: var(--white); transform: translateY(-1px); }
.example-arrow {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--tertiary);
}
.example-btn:hover .example-arrow { color: var(--white); }

.results-list { margin: 12px 0 12px 18px; }
.results-list li { margin-bottom: 4px; font-size: 15px; }

/* Modal — fixed + centered in the viewport (not the document), so it opens
   wherever you're scrolled to instead of jumping the page to the top. */
.example-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  border: none;
  border-radius: 10px;
  padding: 36px 40px;
  max-width: 560px;
  width: 90vw;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(10,13,50,0.3);
  background: var(--background);
}
.example-modal::backdrop {
  background: rgba(10,13,50,0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.example-modal h3 {
  color: var(--secondary);
  font-size: 21px;
  margin-bottom: 14px;
  padding-right: 24px;
}
.example-modal p { margin-bottom: 12px; font-size: 15px; }
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  color: var(--secondary);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover { background: var(--tertiary); color: var(--white); }

/* ---------- Contact ---------- */
.contact-inner { text-align: center; }
.contact-inner .section-label::after { margin-left: auto; margin-right: auto; }
.contact-cards {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 36px;
  flex-wrap: wrap;
}
.contact-card {
  background: var(--white);
  border: 2px solid var(--secondary);
  border-radius: 6px;
  padding: 28px 40px;
  min-width: 240px;
  transition: border-color 0.15s ease, transform 0.15s ease;
  font-family: inherit;
  cursor: pointer;
}
.contact-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.contact-copy .contact-value { min-width: 220px; display: inline-block; }
.contact-label {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 8px;
}
.contact-value { font-family: var(--font-header); font-size: 17px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--tertiary);
  color: var(--white);
  padding: 28px 0;
}
.footer-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-size: 13px;
}
.footer-logo { height: 56px; width: auto; }
.footer-social {
  /* Pulled out of the centered stack and pinned to the bottom-right corner
     of the footer content (the .wrap, not the full browser width). */
  position: absolute;
  right: 0;
  bottom: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--white);
  background: rgba(255,255,255,0.15);
  transition: background 0.15s ease;
}
.footer-social:hover { background: var(--secondary); }
.footer-social svg { width: 18px; height: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .nav-toggle { display: block; }
  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--tertiary);
  }
  .primary-nav.open { display: block; }
  .primary-nav ul { flex-direction: column; align-items: stretch; padding: 12px 24px 24px; gap: 4px; }
  .hero h2 { font-size: 26px; }
}
@media (max-width: 600px) {
  .capability-grid { grid-template-columns: 1fr; }
  .capability-card { min-height: 0; }
}
@media (max-width: 480px) {
  .example-modal { padding: 28px 24px; }
  /* Narrow phones don't have room for the eyebrow on one line — let it wrap
     here instead of overflowing the viewport. */
  .hero-eyebrow { white-space: normal; font-size: 19px; }
}
