/* ==========================================================================
   PresumeNothing - style.css  (V4 global theme)
   ========================================================================== */

/* ---------- 1. Variables & Reset ---------- */
:root {
  --ink:        #1d2a22;
  --ink-2:      #2f3d33;
  --ink-3:      #4a584e;
  --muted:      #6b7266;
  --paper:      #f2ede1;
  --paper-2:    #ece6d6;
  --rule:       #c9c0a9;
  --rule-soft:  #dad1ba;
  --brass:      #9c7a3a;
  --brass-soft: #b8945a;
  --white:      #ffffff;
  /* legacy aliases — keep pages that use old var names working */
  --color-orange:     #9c7a3a;
  --color-gold:       #b8945a;
  --color-dark-blue:  #1d2a22;
  --color-white:      #ffffff;
  --color-light-gray: #ece6d6;
  --color-gray:       #6b7266;
  --color-dark:       #1d2a22;
  --font-primary: 'Inter', system-ui, sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;
  --max-width:    1200px;
  --header-height: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-primary);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- 2. Typography ---------- */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 500; color: var(--ink); }
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
p  { margin-bottom: 1rem; }

/* ---------- 3. Layout Utilities ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

.section        { padding: 80px 0; }
.section--gray  { background: var(--paper-2); }
.section--dark  { background: var(--ink); color: var(--paper); }
.text-center    { text-align: center; }

.flex-row { display: flex; align-items: center; gap: 50px; }
.flex-row--reverse { flex-direction: row-reverse; }
.flex-row > * { flex: 1; }

/* ---------- 4. Header & Navigation ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  transition: background .25s, border-color .25s;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  height: 100%;
  gap: 16px;
}

.logo img {
  height: 40px;
  width: auto;
  opacity: 0.75;
  mix-blend-mode: multiply;
}

/* Nav wrapper */
.nav-wrapper { margin-left: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 4px;
}

.main-nav > li { position: relative; }

.main-nav > li > a {
  display: block;
  padding: 9px 16px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  border-radius: 999px;
  transition: color .15s, background .15s;
}

.main-nav > li > a:hover,
.main-nav > li > a.active {
  background: var(--ink);
  color: var(--paper);
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--brass);
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(29,42,34,.12);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity .2s, transform .2s, visibility .2s;
  z-index: 1001;
}

.main-nav > li:last-child > .dropdown { right: 0; left: auto; }
.main-nav > li:first-child > .dropdown { left: 0; right: auto; }

.main-nav > li:hover > .dropdown,
.main-nav > li:focus-within > .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}

.dropdown li a {
  display: block;
  padding: 10px 18px;
  font-size: 0.875rem;
  color: var(--ink-2);
  white-space: nowrap;
  transition: background .15s, color .15s;
}

.dropdown li a:hover { background: var(--paper-2); color: var(--brass); }

/* Sub-menu */
.has-submenu { position: relative; }
.has-submenu > a { display: flex; justify-content: space-between; align-items: center; }
.has-submenu > a::after { content: '\25B8'; margin-left: 8px; font-size: 0.75rem; }

.submenu {
  position: absolute;
  right: 100%;
  top: 0;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--brass);
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(29,42,34,.12);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, visibility .2s;
}

.has-submenu:hover > .submenu,
.has-submenu:focus-within > .submenu { opacity: 1; visibility: visible; }

.submenu li a {
  display: block;
  padding: 10px 18px;
  font-size: 0.875rem;
  color: var(--ink-2);
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.submenu li a:hover { background: var(--paper-2); color: var(--brass); }

/* Header CTA */
.header-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.header-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

.header-status .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brass);
  box-shadow: 0 0 0 4px rgba(156,122,58,.15);
  animation: pnPulse 2.4s infinite;
}

@keyframes pnPulse { 0%,100%{opacity:1} 50%{opacity:.4} }

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 500;
  border-radius: 999px;
  transition: background .15s;
}
.btn-pill:hover { background: var(--brass); }
.btn-pill .arr { transition: transform .2s; }
.btn-pill:hover .arr { transform: translateX(3px); }

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--ink);
  transition: transform .3s, opacity .3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ---------- 5. Hero Sections ---------- */
.hero {
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
  padding: 80px 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 300;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--ink);
}

.hero p {
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto 32px;
  color: var(--ink-2);
}

.hero--image {
  background-size: cover;
  background-position: center;
  position: relative;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero--image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(29,42,34,.6);
}
.hero--image .container { position: relative; z-index: 1; color: var(--paper); }
.hero--image h1,
.hero--image p { color: var(--paper); }

/* ---------- 6. Content Sections ---------- */
.content-block { padding: 80px 0; }
.content-block:nth-child(even) { background: var(--paper-2); }
.content-block .flex-row { gap: 60px; }

.content-block img {
  border-radius: 4px;
  box-shadow: 0 4px 24px rgba(29,42,34,.1);
  border: 1px solid var(--rule);
}

.content-block h2 { color: var(--ink); margin-bottom: 16px; font-weight: 400; letter-spacing: -0.02em; }
.content-block p  { color: var(--ink-3); font-size: 1rem; }
.content-block .btn { display: block; width: fit-content; margin: 24px auto 0; }

.testimonial {
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 80px 0;
}

.testimonial blockquote {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--ink);
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.55;
  font-weight: 300;
}

.testimonial cite {
  display: block;
  margin-top: 20px;
  font-style: normal;
  font-size: 0.9rem;
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* ---------- 7. Card Grids ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
}

.card-grid--2col {
  grid-template-columns: repeat(2, 1fr);
  max-width: 800px;
  margin: 0 auto;
}

.card {
  background: var(--paper);
  padding: 30px;
  transition: background .2s;
}
.card:hover { background: var(--white); }

.card h3 { color: var(--ink); margin-bottom: 12px; font-weight: 500; font-size: 1.1rem; }
.card p   { color: var(--ink-3); font-size: 0.9rem; }

.card--image { padding: 0; overflow: hidden; }
.card--image img { width: 100%; height: 200px; object-fit: cover; border-radius: 0; }
.card--image .card-body { padding: 24px; }

/* ---------- 8. CTA Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  transition: background .15s, transform .1s;
  cursor: pointer;
  border: none;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover { background: var(--brass); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--ink);
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--paper); }

/* On dark/colored backgrounds */
.contact-section .btn-outline,
.hero--image .btn-outline {
  border-color: var(--paper);
  color: var(--paper);
}
.contact-section .btn-outline:hover,
.hero--image .btn-outline:hover {
  background: var(--paper);
  color: var(--ink);
}

/* ---------- 9. Contact Section ---------- */
.contact-section {
  background: var(--ink);
  color: var(--paper);
  padding: 80px 0;
  text-align: center;
  border-top: 1px solid var(--rule);
}

.contact-section h2 { margin-bottom: 20px; color: var(--paper); font-weight: 300; letter-spacing: -0.02em; }

.contact-info {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin: 30px 0;
  font-size: 0.9rem;
  color: rgba(242,237,225,.7);
}

.contact-info a { color: var(--paper); text-decoration: underline; }
.contact-info a:hover { color: var(--brass-soft); }

.calendar-embed { max-width: 620px; margin: 0 auto; }
.calendar-embed iframe { width: 100%; height: 600px; border: none; display: block; }

/* ---------- 10. Footer ---------- */
.site-footer {
  background: var(--ink-2);
  color: rgba(242,237,225,.65);
  padding: 48px 0 24px;
  border-top: 1px solid rgba(242,237,225,.1);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-brand { max-width: 260px; }

.footer-logo {
  height: 28px;
  width: auto;
  margin-bottom: 16px;
  opacity: 0.55;
}

.footer-tagline {
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(242,237,225,.5);
}

.footer-col { text-align: left; }

.footer-col h4 {
  color: rgba(242,237,225,.9);
  margin-bottom: 14px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 400;
}

.footer-col a {
  display: block;
  padding: 4px 0;
  color: rgba(242,237,225,.55);
  font-size: 0.875rem;
  transition: color .2s;
}
.footer-col a:hover { color: var(--brass-soft); }

.footer-col p {
  font-size: 0.875rem;
  margin-bottom: 6px;
  color: rgba(242,237,225,.55);
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 24px 0 0;
  margin-top: 32px;
  border-top: 1px solid rgba(242,237,225,.1);
}
.footer-social a { color: rgba(242,237,225,.45); transition: color .2s; }
.footer-social a:hover { color: var(--brass-soft); }

.footer-bottom {
  text-align: center;
  padding: 20px 40px 0;
  font-size: 0.8rem;
  color: rgba(242,237,225,.3);
  font-family: var(--font-mono);
  letter-spacing: .08em;
}

/* ---------- 11. FAQ Accordion ---------- */
.faq-item { border-bottom: 1px solid var(--rule); padding: 24px 0; }

.faq-item h3 {
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 400;
}

.faq-item h3::after { content: '+'; font-size: 1.5rem; transition: transform .3s; color: var(--brass); }
.faq-item.open h3::after { transform: rotate(45deg); }

.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-item.open .faq-answer { max-height: 500px; }
.faq-answer p { padding-top: 14px; color: var(--ink-3); }

/* ---------- 12. Legal / Text Pages ---------- */
.legal-content { max-width: 800px; margin: 0 auto; padding: 60px 40px; }
.legal-content h1 { color: var(--ink); margin-bottom: 30px; font-weight: 300; letter-spacing: -0.03em; }
.legal-content h2 { color: var(--ink); margin: 30px 0 12px; font-size: 1.3rem; font-weight: 500; }
.legal-content p, .legal-content li { color: var(--ink-3); font-size: 1rem; line-height: 1.75; }
.legal-content ul { list-style: disc; padding-left: 24px; margin-bottom: 16px; }

/* ---------- 13. Job Cards ---------- */
.job-card-icon { margin-bottom: 12px; }

.job-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 28px;
  margin-bottom: 16px;
  transition: background .2s;
}
.job-card:hover { background: var(--white); }
.job-card h3 { color: var(--ink); margin-bottom: 8px; font-weight: 500; }
.job-card .location { color: var(--brass); font-size: 0.85rem; margin-bottom: 12px; font-family: var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }

/* ---------- 14. Responsive ---------- */
@media (max-width: 1024px) {
  h1 { font-size: 2rem; }
  .hero h1 { font-size: 2.2rem; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .container { padding: 0 24px; }
  .header-inner { padding: 0 24px; }
  .footer-inner { padding: 0 24px; }
}

/* Navigation collapses to hamburger at 960px on all pages */
@media (max-width: 960px) {
  .hamburger { display: flex; }

  .nav-wrapper {
    position: fixed;
    top: var(--header-height);
    left: 0; right: 0; bottom: 0;
    background: var(--paper-2);
    border-top: 1px solid var(--rule);
    transform: translateX(100%);
    transition: transform .3s;
    overflow-y: auto;
    z-index: 999;
  }
  .nav-wrapper.open { transform: translateX(0); }

  .main-nav {
    flex-direction: column;
    padding: 24px;
    gap: 0;
    background: none;
    border: none;
    border-radius: 0;
    display: flex;
  }

  .main-nav > li {
    width: 100%;
    border-bottom: 1px solid var(--rule-soft);
  }

  .main-nav > li > a {
    padding: 14px 0;
    font-size: 1rem;
    border-radius: 0;
    color: var(--ink);
  }
  .main-nav > li > a:hover,
  .main-nav > li > a.active {
    background: none;
    color: var(--brass);
  }

  .dropdown {
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s;
    border: none;
    border-radius: 0;
    background: none;
  }
  .main-nav > li.dropdown-open > .dropdown { max-height: 1000px; }

  .dropdown li a { padding: 10px 16px; color: var(--ink-2); }

  .has-submenu > a::after { content: '+'; font-size: 1rem; }

  .submenu {
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s;
    border: none;
    border-radius: 0;
    background: none;
  }
  .has-submenu.submenu-open > .submenu { max-height: 500px; }
  .submenu li a { padding: 10px 32px; }

  .header-cta { gap: 8px; }
  .header-status { display: none; }
}

/* Layout responsive */
@media (max-width: 768px) {
  .flex-row, .flex-row--reverse { flex-direction: column; }
  .card-grid { grid-template-columns: 1fr; }

  .hero { padding: 60px 0; }
  .hero h1 { font-size: 1.9rem; }

  .footer-inner { flex-direction: column; gap: 32px; padding: 0 24px; }
  .footer-brand { max-width: 100%; }
  .footer-col { text-align: left; }

  .contact-info { flex-direction: column; gap: 10px; }

  .container { padding: 0 20px; }
}

@media (max-width: 320px) {
  .container { padding: 0 16px; }
  h1 { font-size: 1.5rem; }
  .hero h1 { font-size: 1.5rem; }
  .btn { padding: 12px 20px; font-size: 0.875rem; }
}
