:root {
  --bg-canvas: #1e1612;
  --bg-surface: #2a1f1a;
  --bg-surface-frosted: rgba(42, 31, 26, 0.78);
  --bg-surface-hover: #372822;
  --text-primary: #f5ecdf;
  --text-muted: #c8b9a6;
  --accent-primary: #f59e0b;
  --accent-secondary: #d97706;
  --accent-glow: rgba(245, 158, 11, 0.28);
  --border-subtle: rgba(245, 158, 11, 0.18);
  --border-light: rgba(245, 236, 223, 0.12);
  --font-serif: Charter, Cambria, "Bitstream Charter", Georgia, serif;
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-elevation: 0 16px 36px -6px rgba(0, 0, 0, 0.55);
}

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

html {
  font-family: var(--font-serif);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.65;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  overflow-wrap: anywhere;
  hyphens: auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography Enhancements */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.25;
  color: #fff9f0;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: 1.25rem; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; color: #fde68a; }

p { margin-bottom: 1.2rem; color: var(--text-muted); font-size: 1.05rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent-primary); text-decoration: none; transition: color 0.25s var(--ease-kinetic); }
a:hover { color: #fde68a; }

.small-caps {
  font-variant-caps: all-small-caps;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  color: var(--accent-primary);
}

.num-tabular { font-variant-numeric: tabular-nums; }

/* Structural Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.readable-prose {
  max-width: 72ch;
  margin-left: auto;
  margin-right: auto;
}

/* Site Header */
.site-header {
  position: relative;
  background-color: #17110e;
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.1rem 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-wrapper {
  text-align: left;
}

.brand-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff9f0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.02em;
}

.brand-tag {
  display: block;
  font-size: 0.72rem;
  color: var(--accent-primary);
  font-variant-caps: all-small-caps;
  letter-spacing: 0.12em;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.4rem 0.2rem;
  border-bottom: 2px solid transparent;
  transition: all 0.2s var(--ease-kinetic);
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-primary);
  border-bottom-color: var(--accent-primary);
}

.menu-trigger {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 1.6rem;
  line-height: 1;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  cursor: pointer;
}

.mobile-nav-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.25rem;
  box-shadow: var(--shadow-elevation);
}

.mobile-nav-panel.open {
  display: block;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-nav-list a {
  display: block;
  padding: 0.5rem 0;
  font-size: 1.05rem;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(245, 236, 223, 0.06);
}

/* Buttons */
.btn-amber {
  display: inline-block;
  background-color: var(--accent-primary);
  color: #1e1612;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
  transition: transform 0.2s var(--ease-kinetic), background-color 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}

.btn-amber:hover {
  background-color: #fbbf24;
  color: #150f0c;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

.btn-secondary {
  display: inline-block;
  background: rgba(42, 31, 26, 0.9);
  color: var(--text-primary);
  font-size: 0.95rem;
  padding: 0.75rem 1.6rem;
  border-radius: 9999px;
  border: 1px solid var(--border-subtle);
  transition: all 0.2s var(--ease-kinetic);
}

.btn-secondary:hover {
  background: var(--bg-surface-hover);
  border-color: var(--accent-primary);
  color: #fff;
}

/* Frosted Cards & Bento Units */
.frosted-card {
  background: var(--bg-surface-frosted);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 1.8rem;
  transition: transform 0.3s var(--ease-kinetic), border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.frosted-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-elevation), 0 0 20px -6px var(--accent-glow);
}

.card-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 1.25rem;
  background: #17110e;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-kinetic);
}

.frosted-card:hover .card-img-wrap img {
  transform: scale(1.03);
}

/* Sections */
.section-py {
  padding: 5rem 0;
}

.section-angled-top {
  clip-path: polygon(0 4vw, 100% 0, 100% 100%, 0 100%);
  margin-top: -3.5vw;
  padding-top: 6rem;
}

.section-angled-alt {
  clip-path: polygon(0 0, 100% 4vw, 100% 100%, 0 100%);
  margin-top: -3.5vw;
  padding-top: 6rem;
}

.section-darker {
  background-color: #17110e;
}

.section-lead {
  text-align: center;
  max-width: 68ch;
  margin: 0 auto 3rem auto;
}

/* Hero Section */
.hero-wrapper {
  position: relative;
  background: linear-gradient(180deg, #17110e 0%, #1e1612 100%);
  padding: 4.5rem 0 6rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero-media {
  position: relative;
}

.hero-media-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-elevation);
}

.hero-media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-fact-stack {
  position: absolute;
  bottom: -1.75rem;
  right: -1rem;
  background: rgba(30, 22, 18, 0.94);
  border: 1px solid var(--accent-primary);
  border-radius: 4px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
}

.fact-item {
  margin-bottom: 0.6rem;
}
.fact-item:last-child { margin-bottom: 0; }
.fact-item strong {
  display: block;
  font-size: 1.25rem;
  color: var(--accent-primary);
}
.fact-item span {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Staggered Guides Grid */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.guides-grid > .frosted-card:nth-child(even) {
  margin-top: 2rem;
}

/* Interactive Calculator Tool */
.calc-panel {
  background: #251b17;
  border: 1px solid var(--accent-primary);
  border-radius: 4px;
  padding: 2.25rem;
  margin: 3.5rem 0;
  box-shadow: var(--shadow-elevation);
}

.calc-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

.control-group label {
  display: block;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.range-slider {
  width: 100%;
  accent-color: var(--accent-primary);
  cursor: pointer;
}

.calc-val-readout {
  display: inline-block;
  margin-left: 0.5rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.calc-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  background: rgba(18, 12, 9, 0.65);
  padding: 1.5rem;
  border-radius: 4px;
  border: 1px solid var(--border-light);
  margin-bottom: 1.5rem;
}

.result-card strong {
  display: block;
  font-size: 1.4rem;
  color: #fff9f0;
}

.result-card span {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid var(--border-light);
  border-radius: 4px;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

th, td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
}

th {
  background: #17110e;
  color: var(--accent-primary);
  font-weight: 600;
  font-variant-caps: all-small-caps;
  letter-spacing: 0.05em;
  font-size: 0.95rem;
}

tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.02);
}

/* Accordion FAQ */
.faq-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-entry {
  background: var(--bg-surface-frosted);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  overflow: hidden;
}

.faq-entry summary {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff9f0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-entry summary::-webkit-details-marker { display: none; }
.faq-entry summary::after {
  content: "+";
  color: var(--accent-primary);
  font-size: 1.5rem;
  font-weight: 400;
  transition: transform 0.25s ease;
}

.faq-entry[open] summary::after {
  content: "−";
  transform: rotate(180deg);
}

.faq-body {
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  border-top: 1px solid rgba(245, 158, 11, 0.1);
}

/* Contact Dispatch Form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  background: #17110e;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25);
}

textarea.form-control {
  resize: vertical;
  min-height: 130px;
}

.status-badge {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--accent-primary);
}

/* Site Footer */
.site-footer {
  margin-top: auto;
  background: #150f0c;
  border-top: 1px solid var(--border-subtle);
  padding: 4.5rem 0 2.5rem 0;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-col h4 {
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
  color: #fff9f0;
}

.footer-col p {
  font-size: 0.9rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(245, 236, 223, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: #9c8a77;
}

/* Responsive Queries */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-fact-stack { position: static; margin-top: 1.5rem; display: flex; justify-content: space-around; }
  .fact-item { margin-bottom: 0; }
  .calc-controls { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .menu-trigger { display: block; }
  .guides-grid { grid-template-columns: 1fr; }
  .guides-grid > .frosted-card:nth-child(even) { margin-top: 0; }
  .calc-results-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .section-angled-top, .section-angled-alt { clip-path: none; margin-top: 0; padding-top: 4rem; }
}

@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
