:root {
  /* Dynamic Palette: Crucible & Craft (Strictly No Blue) */
  --bg-canvas: #fbf1f0; /* Blush */
  --bg-surface: #ffffff; /* White */
  --text-primary: #1c1917; /* Dark Gray/Black */
  --text-muted: #44403c;
  --accent-primary: #6b2155; /* Plum */
  --accent-secondary: #9c337b; /* Lighter Plum for hover states */
  --border-subtle: #e7e5e4;
  
  /* Typography */
  --font-main: "Trebuchet MS", "Segoe UI", sans-serif;
  --line-height-body: 1.8;
  --line-height-heading: 1.2;

  /* UI & Animation Variables */
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-elevation: 0 12px 32px -4px rgba(28, 25, 23, 0.15);
  --radius-sharp: 0px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-family: var(--font-main);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: var(--line-height-body);
  overflow-x: hidden;
  scroll-behavior: smooth;
}
body {
  overflow-wrap: anywhere;
  hyphens: auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: var(--line-height-heading);
  margin-bottom: 1rem;
  color: var(--text-primary);
}
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
p { margin-bottom: 1.5rem; color: var(--text-muted); }
.text-accent { color: var(--accent-primary); }

/* Buttons & Links */
.btn {
  display: inline-block;
  background-color: var(--accent-primary);
  color: #fff;
  padding: 1rem 2.5rem;
  border: none;
  border-radius: var(--radius-sharp);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background-color 0.3s var(--ease-kinetic), transform 0.3s var(--ease-kinetic);
}
.btn:hover, .btn:focus-visible {
  background-color: var(--accent-secondary);
  transform: translateY(-2px);
  color: #fff;
}
.link-expand {
  position: relative;
  display: inline-block;
  color: var(--accent-primary);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-bottom: 0.25rem;
}
.link-expand::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--accent-primary);
  transition: width 0.3s var(--ease-kinetic);
}
.link-expand:hover::after, .link-expand:focus-visible::after {
  width: 100%;
}

/* Layout Wrappers */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.content-wrapper {
  max-width: 68ch;
  margin: 0 auto;
  padding: 4rem 2rem;
}

/* Header */
header {
  position: absolute; /* Naturally scrolls out of view, transparent over hero */
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-primary);
}
/* Ensure header text is readable over dark images, if any. 
   We will give the hero text a light shadow or background if needed, 
   but style direction favors natural contrast. */
.brand.light-text, header.light-text .brand, header.light-text nav a {
  color: #fff;
}

nav ul {
  display: flex;
  gap: 2rem;
}
nav a {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}
nav a:hover {
  color: var(--accent-primary);
}
.menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: inherit;
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--bg-surface);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease-kinetic);
}
.mobile-menu.active {
  transform: translateY(0);
}
.mobile-menu ul {
  flex-direction: column;
  text-align: center;
  gap: 2rem;
}
.mobile-menu a {
  font-size: 2rem;
  color: var(--text-primary);
}
.close-menu {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-primary);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background-color: var(--bg-canvas);
  padding-top: 6rem;
}
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  min-height: inherit;
}
.hero-content {
  padding: 4rem 2rem 4rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg-canvas);
}
.hero-image {
  position: relative;
  width: 100%;
  height: 100%;
}
.hero-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Page Headers (Non-Home) */
.page-header {
  padding: 10rem 2rem 4rem;
  background-color: var(--bg-canvas);
  text-align: center;
}
.page-header h1 {
  max-width: 800px;
  margin: 0 auto;
}

/* Alternating Split Sections */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background-color: var(--bg-surface);
}
.split-section:nth-of-type(even) {
  background-color: var(--bg-canvas);
}
.split-section.reverse {
  direction: rtl;
}
.split-section.reverse > * {
  direction: ltr;
}
.split-text {
  padding: 6rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.split-media {
  position: relative;
  min-height: 400px;
}
.split-media img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Cards & Badges */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  padding: 4rem 2rem;
  background-color: var(--bg-canvas);
}
.card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-sharp);
  transition: transform 0.3s var(--ease-kinetic), box-shadow 0.3s var(--ease-kinetic);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-elevation);
}
.card-img-wrapper {
  position: relative;
  width: 100%;
  padding-top: 66.66%; /* 3:2 Aspect Ratio */
  overflow: visible; /* Allows badge to overlap */
}
.card-img-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sharp);
}
.card-badge {
  position: absolute;
  top: -12px;
  right: -12px;
  background-color: var(--accent-primary);
  color: #fff;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 10;
  box-shadow: 2px 2px 0px rgba(0,0,0,0.1);
}
.card-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Tools List */
.tool-list {
  background-color: var(--bg-surface);
  padding: 3rem;
  border: 1px solid var(--border-subtle);
  margin: 2rem 0;
}
.tool-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
}
.tool-list li::before {
  content: '▪';
  color: var(--accent-primary);
  margin-right: 1rem;
  font-size: 1.5rem;
}
.tool-list li:last-child {
  border-bottom: none;
}

/* FAQ Accordion Base */
.faq-list {
  margin: 3rem 0;
}
.faq-item {
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.5rem 0;
}
.faq-question {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
}

/* Forms (Sharp Gallery Style) */
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
}
.form-group input, 
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--text-primary);
  background-color: var(--bg-surface);
  border-radius: var(--radius-sharp);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-primary);
}
.form-group input:focus, 
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: inset 0 0 0 1px var(--accent-primary);
}
.tool-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* Table */
.table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}
th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}
th {
  background-color: var(--bg-canvas);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

/* Footer */
footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 2rem;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-col h4 {
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-col a:hover {
  color: var(--accent-primary);
}
.footer-bottom {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s var(--ease-kinetic);
}
.reveal.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Media Queries */
@media (max-width: 1024px) {
  .hero-content {
    padding: 3rem 2rem;
  }
}
@media (max-width: 768px) {
  nav ul.desktop-nav {
    display: none;
  }
  .menu-btn {
    display: block;
  }
  .hero-split, .split-section {
    grid-template-columns: 1fr;
  }
  .split-section.reverse {
    direction: ltr;
  }
  .hero-image, .split-media {
    min-height: 350px;
    order: -1;
  }
  .split-text {
    padding: 3rem 2rem;
  }
  .hero-content {
    padding: 3rem 2rem;
    order: 2;
  }
}
@media (max-width: 480px) {
  h1 { font-size: 2.25rem; }
  .page-header {
    padding: 8rem 1.5rem 3rem;
  }
  .tool-list {
    padding: 1.5rem;
  }
}

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