/* =============================================================
   marilynmaslin.com — stylesheet
   Structure mirrors lorondamerriwether.com
   Agent note: update :root custom properties to retheme per client
   ============================================================= */

/* ── Custom Properties ─────────────────────────────────────── */
:root {
  --nav-bg:       #181c17;
  --nav-text:     #ffffff;
  --olive:        #4e5c31;
  --olive-dark:   #3a4524;
  --olive-hover:  #5c6e3a;
  --light-bg:     #f6f4f0;
  --warm-bg:      #fdf3eb;
  --white:        #ffffff;
  --text:         #252622;
  --text-muted:   #666660;
  --text-olive:   #4e5c31;
  --border:       #d5d2cc;
  --shadow:       0 2px 12px rgba(0,0,0,0.08);

  --font-serif:  'Lora', Georgia, serif;
  --font-sans:   'Open Sans', system-ui, -apple-system, sans-serif;

  --max-w:      900px;
  --max-w-wide: 1100px;  /* results, expertise, interests */
  --section-pad: 3rem 1.5rem;

  /* ── Type scale tokens (anchored to job-entry styles) ──────
     Change these to restyle all typography site-wide.
     --t-date    → dates, nav, buttons, labels
     --t-body    → body paragraphs
     --t-title   → entry/card titles
     --t-company → subtitles, company names
     --t-heading → section headers + hero name
  ─────────────────────────────────────────────────────────── */
  --t-date:    0.875rem;
  --t-body:    1rem;
  --t-title:   1.1rem;
  --t-company: 1rem;
  --t-heading: 2.25rem;

  /* ── Color tokens ───────────────────────────────────────── */
  --c-date:    var(--text-olive);
  --c-title:   var(--olive-dark);
  --c-body:    var(--text);
  --c-company: var(--text-muted);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ── Accessibility ─────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--olive);
  color: #fff;
  padding: .5rem 1rem;
  border-radius: 0 0 4px 4px;
  font-size: .875rem;
  z-index: 9999;
}
.skip-link:focus { top: 0; }

/* ── Shared Utilities ──────────────────────────────────────── */
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--section-pad);
}

.section-title {
  font-family: var(--font-serif);
  font-size: var(--t-heading);
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--c-title);
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-title--light {
  color: rgba(255,255,255,0.9);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: .6rem 1.75rem;
  font-size: var(--t-date);
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid var(--text);
  background: transparent;
  color: var(--text);
  transition: background .2s, color .2s, border-color .2s;
  cursor: pointer;
}
.btn:hover, .btn:focus-visible {
  background: var(--text);
  color: var(--white) !important;
  outline: none;
}
.btn.btn-outline {
  border-color: var(--border);
  color: var(--text);
}
.btn.btn--dark {
  border-color: rgba(255,255,255,0.4);
  color: var(--white);
}
.btn.btn--dark:hover {
  background: var(--white);
  color: var(--text);
}
.btn-submit {
  background: var(--olive);
  color: var(--white);
  border-color: var(--olive);
  padding: .75rem 2rem;
  font-size: .85rem;
}
.btn-submit:hover, .btn-submit:focus-visible {
  background: var(--olive-dark);
  border-color: var(--olive-dark);
  color: var(--white);
}

/* ── Navigation ────────────────────────────────────────────── */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  transition: box-shadow .3s;
}
#site-header.scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,0.4);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: var(--t-heading);
  font-weight: 400;
  color: var(--nav-text);
  letter-spacing: .03em;
  white-space: nowrap;
}

.nav-list {
  display: flex;
  gap: 0;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 0 1.1rem;
  height: 60px;
  line-height: 60px;
  font-size: var(--t-date);
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--nav-text);
  white-space: nowrap;
  transition: color .2s;
}
.nav-link:hover { color: rgba(255,255,255,.6); }

/* Dropdown */
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--nav-bg);
  min-width: 180px;
  border-top: 2px solid var(--olive);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  z-index: 100;
}
.has-dropdown:hover .nav-dropdown,
.has-dropdown:focus-within .nav-dropdown {
  display: block;
}
.nav-dropdown li a {
  display: block;
  padding: .65rem 1.25rem;
  font-size: var(--t-date);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.8);
  transition: color .15s, background .15s;
}
.nav-dropdown li a:hover {
  color: #fff;
  background: rgba(255,255,255,.05);
}

/* Hamburger (mobile) */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: .5rem;
  cursor: pointer;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--nav-text);
  transition: transform .3s, opacity .3s;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ──────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 1.5rem 1.5rem;

  background-color: #0e1410;
  background-image:
    linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)),
    url('../images/website-background-scaled.webp');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.hero-card {
  display: grid;
  grid-template-columns: 5fr 7fr;
  max-width: 1080px;
  width: 100%;
  background: var(--white);
  box-shadow: 0 8px 56px rgba(0,0,0,0.45);
}

.hero-photo {
  overflow: hidden;
  min-height: 560px;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.hero-content {
  padding: 3rem 3rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-content h1 {
  font-family: var(--font-serif);
  font-size: var(--t-heading);
  font-weight: 500;
  color: var(--c-title);
  margin-bottom: .35rem;
  letter-spacing: .01em;
  line-height: 1.2;
}

.hero-title {
  font-weight: 700;
  font-size: var(--t-title);
  color: var(--text);
  margin-bottom: .15rem;
  letter-spacing: .01em;
}

.hero-tagline {
  font-size: var(--t-company);
  color: var(--c-company);
  margin-bottom: 1.25rem;
  font-style: italic;
}

.hero-bio {
  font-size: var(--t-body);
  color: var(--c-body);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.hero-location {
  font-size: var(--t-company);
  color: var(--c-company);
  margin-bottom: .85rem;
}

.hero-contact {
  font-size: var(--t-company);
  color: var(--text);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .3rem;
}
.hero-contact-link { color: var(--text-olive); }
.hero-contact-link:hover { text-decoration: underline; }
.hero-contact-sep { color: var(--border); }

.hero-buttons {
  display: flex;
  gap: .85rem;
  flex-wrap: wrap;
}

/* ── Experience ────────────────────────────────────────────── */
#experience { background: var(--white); }

.job-entry {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem 2rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
}
.job-entry:first-of-type { border-top: 1px solid var(--border); }

.job-years {
  display: block;
  font-size: var(--t-date);
  font-weight: 500;
  color: var(--c-date);
  letter-spacing: .05em;
  margin-bottom: .35rem;
}

.job-title {
  font-size: var(--t-title);
  font-weight: 600;
  color: var(--c-title);
  margin-bottom: .5rem;
}

.job-description {
  font-size: var(--t-body);
  color: var(--c-body);
  line-height: 1.7;
}

.job-logo {
  align-self: start;
  padding-top: .25rem;
  min-width: 120px;
  max-width: 160px;
  text-align: right;
}
.job-logo img { max-height: 48px; width: auto; margin-left: auto; }
.company-logo { max-height: 52px; width: auto; margin-left: auto; object-fit: contain; }

.job-company-name {
  font-size: var(--t-company);
  color: var(--c-company);
  margin-bottom: .5rem;
  font-style: italic;
}

.logo-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 52px;
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: .05em;
  font-family: var(--font-sans);
}

/* Placeholder styling */
.experience-placeholder,
.education-placeholder {
  padding: 2.5rem;
  border: 1px dashed var(--border);
  text-align: center;
  color: var(--text-muted);
  background: #fafaf8;
  font-size: .9rem;
  line-height: 1.8;
}
.experience-placeholder code,
.education-placeholder code {
  font-family: 'Courier New', monospace;
  font-size: .82rem;
  background: #eee;
  padding: .1em .35em;
  border-radius: 3px;
}

/* ── Results ───────────────────────────────────────────────── */
#results {
  background: var(--olive);
  color: var(--white);
}
#results .section-inner { padding: var(--section-pad); max-width: var(--max-w-wide); }

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.result-card {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  padding: 2rem 1.75rem 2rem;
  font-size: var(--t-body);
  line-height: 1.75;
  color: rgba(255,255,255,.92);
  text-align: center;
}
.result-card strong { color: #fff; font-weight: 600; }

.result-icon {
  display: block;
  font-size: 2.5rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.1rem;
  text-align: center;
}

/* ── Expertise ─────────────────────────────────────────────── */
#expertise { background: var(--light-bg); }
#expertise .section-inner { max-width: var(--max-w-wide); }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
}

/* Odd-number last-row handling:
   1 alone  → center in column 2
   2 in row → auto-placement puts them in cols 1+2 (equal 1fr each) */
.skill-cell:last-child:nth-child(3n+1) {
  grid-column: 2;
}

.skill-cell {
  padding: 1.1rem .75rem;
  font-size: var(--t-title);
  font-weight: 400;
  text-align: center;
  border: 1px solid var(--border);
  color: var(--c-title);
  background: var(--white);
  transition: background .15s;
}
.skill-cell:hover {
  background: var(--light-bg);
}

/* ── Education ─────────────────────────────────────────────── */
#education { background: var(--white); }

.education-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  overflow: hidden;
}
.education-info {
  padding: 2.75rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: .6rem;
}
.edu-logo    { max-height: 70px; width: auto; margin: .75rem auto 0; display: block; }
.edu-school  { font-family: var(--font-serif); font-size: var(--t-title); font-weight: 600; color: var(--c-title); line-height: 1.25; }
.edu-degree  { font-size: var(--t-title); font-weight: 600; color: var(--c-title); }
.edu-honors  { font-size: var(--t-date); font-style: italic; color: var(--c-date); font-weight: 500; }
.education-image img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  display: block;
}

/* ── Meet Marilyn ──────────────────────────────────────────── */
#meet {
  background: var(--olive);
  overflow: hidden;
}

.meet-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  max-width: 1000px;
  margin: 0 auto;
  align-items: stretch;
  gap: 3rem;
  padding: 4rem 1.5rem;
}

.meet-photo-wrap {
  flex-shrink: 0;
  width: 280px;
  align-self: stretch;
}
.meet-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.meet-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.meet-name {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 300;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: .02em;
  white-space: nowrap;
}
.meet-bio {
  font-size: var(--t-body);
  color: rgba(255,255,255,.85);
  line-height: 1.8;
}

/* ── Interests ─────────────────────────────────────────────── */
#interests { background: var(--white); }
#interests .section-inner { max-width: var(--max-w-wide); }

.interests-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.interest-card {
  border: 1px solid var(--border);
  overflow: hidden;
}
.interest-img-wrap {
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
}
.interest-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.interest-card:hover .interest-img-wrap img {
  transform: scale(1.04);
}
.interest-label {
  padding: .75rem .9rem;
  font-size: var(--t-date);
  font-weight: 500;
  letter-spacing: .05em;
  color: var(--c-date);
  text-align: center;
  background: var(--white);
}

/* ── Q & A ─────────────────────────────────────────────────── */
#qa { background: var(--warm-bg); }

.qa-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.qa-item {
  padding: 2rem 2.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--white);
  margin-bottom: .6rem;
}
.qa-item:last-child { border-bottom: none; }

.qa-question {
  font-size: var(--t-title);
  font-weight: 600;
  color: var(--c-title);
  margin-bottom: .85rem;
}

.qa-answer p {
  font-size: var(--t-body);
  line-height: 1.8;
  color: var(--c-body);
  margin-bottom: .75rem;
}
.qa-answer p:last-child { margin-bottom: 0; }

.qa-footer-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  padding-top: 2.5rem;
}

/* ── Testimonials ──────────────────────────────────────────── */
#testimonials {
  background: var(--olive);
}

.testimonials-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.testimonial-card {
  position: relative;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  padding: 2.25rem 2.5rem 2.5rem;
  text-align: center;
}
.testimonial-card p {
  font-size: var(--t-body);
  line-height: 1.8;
  color: rgba(255,255,255,.9);
  margin-bottom: .75rem;
}
.testimonial-card p:last-of-type { margin-bottom: 1rem; }

.testimonial-who {
  display: block;
  font-weight: 600;
  font-size: var(--t-title);
  color: var(--white);
  margin-bottom: 1.25rem;
}
.testimonial-title {
  display: block;
  font-weight: 400;
  font-size: .82rem;
  color: rgba(255,255,255,.7);
  margin-top: .2rem;
}

.testimonial-mark {
  font-family: Georgia, serif;
  font-size: 4rem;
  color: rgba(255,255,255,.4);
  line-height: 1;
  display: block;
}

/* ── Footer / Contact ──────────────────────────────────────── */
#contact {
  background: var(--nav-bg);
  color: var(--white);
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: start;
}

.footer-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: rgba(255,255,255,.9);
  margin-bottom: 1.75rem;
}

/* Form */
.form-row { display: flex; gap: 1rem; }
.form-row--half .form-group { flex: 1; }

.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: .35rem;
}
.form-group label span { color: rgba(255,255,255,.3); }

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.15);
  color: var(--white);
  padding: .65rem .85rem;
  font-family: var(--font-sans);
  font-size: .9rem;
  border-radius: 0;
  transition: border-color .2s, background .2s;
  -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,.3); }
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(255,255,255,.4);
  background: rgba(255,255,255,.09);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* Honeypot — visually hidden but present in DOM */
.hp-field {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-submit-row { margin-top: .5rem; }

#form-status {
  margin-top: 1rem;
  font-size: .85rem;
  line-height: 1.5;
  min-height: 1.5rem;
}
#form-status.success { color: #8fcf7a; }
#form-status.error   { color: #f08080; }

/* Footer info column */
.footer-info-col {
  min-width: 220px;
  padding-top: 3rem;
}
.footer-name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: .25rem;
}
.footer-person-title {
  font-size: .82rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 1.5rem;
}
.footer-contact-details p {
  font-size: .85rem;
  color: rgba(255,255,255,.7);
  margin-bottom: .5rem;
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
}
.footer-contact-details a { color: rgba(255,255,255,.85); }
.footer-contact-details a:hover { color: var(--white); text-decoration: underline; }
.footer-label {
  color: rgba(255,255,255,.4);
  font-size: .75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.footer-branding {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .75rem;
  color: rgba(255,255,255,.3);
}
.footer-branding a { color: rgba(255,255,255,.5); }
.footer-branding a:hover { color: rgba(255,255,255,.8); }

/* =============================================================
   RESPONSIVE
   ============================================================= */

/* Tablet */
@media (max-width: 860px) {
  .results-grid {
    grid-template-columns: 1fr;
    gap: .75rem;
  }
  .interests-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .meet-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 3rem 1.5rem;
  }
  .meet-photo-wrap { width: 200px; margin: 0 auto; }
  .meet-photo { height: 240px; }
  .meet-name { font-size: 2.2rem; }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-info-col { padding-top: 0; }
  .education-card { grid-template-columns: 1fr; }
  .education-image img { min-height: 200px; }
  .hero-photo { min-height: 420px; }
  .hero-content { padding: 2.25rem 2rem; }
}

/* Mobile */
@media (max-width: 600px) {
  :root { --section-pad: 2.5rem 1.25rem; }

  /* Nav */
  .nav-hamburger { display: flex; }
  #nav-menu {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 1rem 0 1.5rem;
  }
  #nav-menu.open { display: block; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-link { height: auto; line-height: 1; padding: .8rem 1.5rem; }
  .nav-dropdown {
    display: block;
    position: static;
    background: rgba(255,255,255,.04);
    border-top: none;
    box-shadow: none;
  }
  .has-dropdown .nav-dropdown { display: none; }
  .has-dropdown.open .nav-dropdown { display: block; }
  .nav-dropdown li a { padding: .55rem 2rem; }

  /* Hero */
  .hero-card {
    grid-template-columns: 1fr;
  }
  .hero-photo {
    min-height: 260px;
    max-height: 320px;
  }
  .hero-content {
    padding: 1.75rem 1.5rem;
  }
  .hero-content h1 { font-size: 1.75rem; }

  /* Skills */
  .skills-grid { grid-template-columns: repeat(2, 1fr); }

  /* Interests */
  .interests-grid { grid-template-columns: 1fr 1fr; }

  /* Q&A */
  .qa-item { padding: 1.5rem 1.25rem; }

  /* Form */
  .form-row--half { flex-direction: column; gap: 0; }

  /* Testimonials */
  .testimonial-card { padding: 1.75rem 1.25rem 2rem; }

  /* Job entries */
  .job-entry {
    grid-template-columns: 1fr;
  }
  .job-logo { text-align: left; max-width: 140px; }
}

/* Print */
@media print {
  #site-header, .hero-buttons, .form-submit-row, .footer-branding { display: none; }
  #hero { min-height: auto; padding: 2rem 0; }
  .hero-card { box-shadow: none; border: 1px solid #ccc; }
}
