/* MoldPlums — design system
   Palette: deep plum (brand) + warm amber (dried-fruit accent) on a clean
   cream base. Large edge-to-edge image bands (not boxed-in photos), and
   left-aligned text throughout — not centered. */

:root {
  --plum-900: #3b1f32;
  --plum-700: #5c2a4d;
  --plum-500: #7d3a68;
  --plum-100: #f3e8ef;
  --amber-600: #c8913b;
  --amber-700: #8f5f1b;
  --amber-400: #e0ac5c;
  --amber-100: #faf0de;
  --cream: #faf7f2;
  --cream-dark: #f1ebe0;
  --ink: #2a2222;
  --ink-soft: #5c5250;
  --white: #ffffff;
  --border: #e6ddd0;

  --font-head: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius: 10px;
  --shadow: 0 4px 20px rgba(59, 31, 50, 0.08);
  --container: 1160px;
  --gutter: 24px;
  --edge-pad: max(var(--gutter), calc((100vw - var(--container)) / 2));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--plum-900);
}
h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: var(--plum-700); }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-700);
  margin-bottom: 0.6em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--plum-700); color: var(--white); }
.btn-primary:hover { background: var(--plum-900); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--plum-700); border-color: var(--plum-700); }
.btn-outline:hover { background: var(--plum-100); }
.btn-on-dark { background: var(--amber-600); color: var(--plum-900); }
.btn-on-dark:hover { background: var(--amber-400); }
.btn-outline-on-dark { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn-outline-on-dark:hover { background: rgba(255,255,255,0.12); }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--plum-900);
  text-decoration: none;
}
.logo .logo-text {
  display: flex;
  align-items: baseline;
  gap: 7px;
}
.logo .mark {
  width: 7px; height: 7px;
  background: var(--amber-600);
  transform: rotate(45deg) translateY(-3px);
  flex-shrink: 0;
}
.logo .rule {
  width: 100%;
  height: 2px;
  background: var(--amber-600);
}
.site-footer .logo .mark,
.site-footer .logo .rule {
  background: var(--amber-400);
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a:hover, .nav-links a.active { color: var(--plum-700); }
.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--plum-900); margin: 5px 0;
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed; top: 76px; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    transition: transform 0.25s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: block; }
  .nav-cta .btn-outline { display: none; }
}

/* ===== Full-bleed image banner (hero) ===== */
.banner {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
}
.banner.short { min-height: 380px; }
.banner-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--plum-500), var(--plum-900));
}
.banner-bg::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 20px);
}
.banner.amber .banner-bg { background: linear-gradient(135deg, var(--amber-400), var(--amber-600)); }
.banner-bg.photo::before { display: none; }
.banner-bg img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.banner-bg .caption {
  position: absolute; bottom: 18px; right: 24px;
  font-size: 0.72rem; color: rgba(255,255,255,0.55);
  max-width: 240px; text-align: right;
}
.banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(20,10,17,0.72) 0%, rgba(20,10,17,0.25) 48%, rgba(20,10,17,0.05) 75%);
}
.banner-content {
  position: relative; z-index: 2;
  padding: 64px 0 56px;
  width: 100%;
}
.banner-content h1, .banner-content h2 { color: var(--white); max-width: 18ch; }
.banner-content p { color: rgba(255,255,255,0.85); max-width: 50ch; }
.banner-content .eyebrow { color: var(--amber-400); }
.banner-stats { display: flex; gap: 32px; margin-top: 32px; flex-wrap: wrap; }
.banner-stats .stat strong { display: block; font-family: var(--font-head); font-size: 1.8rem; color: var(--white); }
.banner-stats .stat span { font-size: 0.82rem; color: rgba(255,255,255,0.7); }
.banner-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

/* ===== Split band: full-bleed image one side, text the other ===== */
.split-band { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.split-band .media {
  position: relative;
  min-height: 420px;
  background: linear-gradient(135deg, var(--plum-500), var(--plum-900));
}
.split-band .media::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 20px);
}
.split-band .media.amber { background: linear-gradient(135deg, var(--amber-400), var(--amber-600)); }
.split-band .media.photo::before { display: none; }
.split-band .media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.split-band .media .caption {
  position: absolute; bottom: 20px; right: 24px; left: 24px;
  font-size: 0.72rem; color: rgba(255,255,255,0.65);
  text-align: right;
}
.split-band .content {
  display: flex; flex-direction: column; justify-content: center;
  padding: 64px 56px;
  padding-left: var(--edge-pad);
}
.split-band.reverse .media { order: 2; }
.split-band.reverse .content { order: 1; padding-left: 56px; padding-right: var(--edge-pad); }
.split-band .content h2 { margin-bottom: 0.5em; }
.split-band .content p { max-width: 48ch; }

/* Sections */
section { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.alt-bg { background: var(--cream-dark); }

/* Feature grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.feature-card .icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--plum-100); color: var(--plum-700);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 16px;
}
.feature-card h3 { margin-bottom: 0.4em; font-size: 1.1rem; }
.feature-card p { margin: 0; font-size: 0.95rem; }

/* Small inline photo placeholder (used sparingly: contact map, etc.) */
.photo-placeholder {
  position: relative;
  background: linear-gradient(135deg, var(--plum-500), var(--plum-900));
  border-radius: var(--radius);
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.85);
  text-align: center;
  padding: 24px;
  font-size: 0.85rem;
  overflow: hidden;
}
.photo-placeholder::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,0.06) 0 2px, transparent 2px 18px);
}
.photo-placeholder span { position: relative; max-width: 220px; }
.photo-placeholder.amber { background: linear-gradient(135deg, var(--amber-400), var(--amber-600)); }

/* Spec download */
.spec-download {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: var(--radius);
  margin-top: 24px;
}
.spec-download .doc-icon {
  width: 38px; height: 38px; border-radius: 8px;
  background: var(--amber-600); color: #fff;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  font-weight: 700; font-size: 0.75rem;
}
.spec-download a { font-weight: 600; text-decoration: none; color: var(--white); }
.spec-download small { display: block; color: rgba(255,255,255,0.75); font-weight: 400; }

.spec-table { width: 100%; border-collapse: collapse; margin: 20px 0 32px; }
.spec-table th, .spec-table td {
  text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 0.92rem;
}
.spec-table th { width: 220px; color: var(--plum-900); font-weight: 600; }

.timeline { display: flex; gap: 4px; margin: 10px 0 24px; }
.timeline .month {
  flex: 1; text-align: center; font-size: 0.68rem; color: var(--ink-soft);
}
.timeline .month .bar {
  height: 8px; border-radius: 4px; background: var(--border); margin-bottom: 6px;
}
.timeline .month.active .bar { background: var(--amber-600); }

.cert-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; }
.cert-badge {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--plum-900);
}
.cert-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber-600); }
.cert-badge.planned {
  background: transparent;
  border: 1px dashed var(--border);
  color: var(--ink-soft);
}
.cert-badge.planned .dot { background: transparent; border: 1.5px solid var(--amber-600); }

/* Callout / CTA band — left-aligned, image-backed */
.cta-band {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  color: var(--white);
}
.cta-band .bg { position: absolute; inset: 0; background: linear-gradient(120deg, var(--plum-900), var(--plum-700)); }
.cta-band .bg::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 20px); }
.cta-band .text { position: relative; z-index: 2; max-width: 560px; }
.cta-band .text h2 { color: var(--white); margin-bottom: 0.3em; }
.cta-band .text p { color: rgba(255,255,255,0.75); margin: 0; }
.cta-band .action { position: relative; z-index: 2; flex-shrink: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--plum-900); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: 8px;
  font-family: var(--font-body); font-size: 0.95rem;
  background: var(--white);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.contact-info-item { display: flex; gap: 14px; margin-bottom: 22px; }
.contact-info-item .icon {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--plum-100); color: var(--plum-700);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* Footer */
.site-footer { background: var(--plum-900); color: rgba(255,255,255,0.7); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.site-footer h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 14px; }
.site-footer a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.9rem; }
.site-footer a:hover { color: var(--amber-400); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  font-size: 0.8rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.placeholder-note {
  font-size: 0.75rem; color: var(--amber-600); background: rgba(200,145,59,0.08);
  border: 1px dashed rgba(200,145,59,0.4); padding: 8px 12px; border-radius: 6px; margin-top: 10px;
}

@media (max-width: 900px) {
  .split-band, .contact-grid { grid-template-columns: 1fr; }
  .split-band .content, .split-band.reverse .content { padding: 48px var(--gutter); }
  .split-band.reverse .media { order: 0; }
  .split-band.reverse .content { order: 0; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 36px var(--gutter); flex-direction: column; align-items: flex-start; }
  .banner { min-height: 460px; }

  .spec-table, .spec-table tbody, .spec-table tr, .spec-table th, .spec-table td {
    display: block; width: auto;
  }
  .spec-table tr { margin-bottom: 14px; }
  .spec-table th {
    padding: 0; border-bottom: none;
    font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em;
    color: var(--ink-soft); font-weight: 600;
  }
  .spec-table td { padding: 4px 0 0; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
}
