/* BASE VARIABLES & THEME (NO BLUE STRICTLY) */
:root {
  --bg-canvas: #ffffff;
  --bg-band: #f1f5f9;
  --accent-primary: #e11d48;
  --accent-primary-dark: #be123c;
  --text-primary: #1c1917;
  --text-muted: #44403c;
  --border-color: rgba(28, 25, 23, 0.15);
  
  --font-serif: 'Charter', 'Cambria', 'Georgia', serif;
  
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-elevation: 0 12px 32px -4px rgba(0, 0, 0, 0.15);
}

/* RESET & CORE TYPOGRAPHY */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: var(--font-serif);
  color: var(--text-primary);
  background-color: var(--bg-canvas);
  line-height: 1.6;
  overflow-x: hidden;
  overflow-wrap: anywhere;
  hyphens: auto;
}

/* INSET PAGE FRAME */
body {
  padding: 2vw; /* Wide outer margin */
}

.page-frame {
  border: 1px solid var(--border-color);
  background-color: var(--bg-canvas);
  min-height: calc(100vh - 4vw);
  display: flex;
  flex-direction: column;
  position: relative;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-weight: normal;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
p { margin-bottom: 1.5rem; max-width: 72ch; }

.label {
  font-variant: small-caps;
  text-transform: lowercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-size: 1.1rem;
  display: inline-block;
  margin-bottom: 0.5rem;
}

/* LINKS & BUTTONS */
a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-primary);
  color: #ffffff;
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-kinetic);
}
.btn-primary:hover {
  background-color: var(--accent-primary-dark);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-secondary {
  display: inline-block;
  color: var(--text-primary);
  font-weight: bold;
  position: relative;
  padding-bottom: 2px;
}
.btn-secondary::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--accent-primary);
  transform-origin: bottom right;
  transition: transform 0.3s var(--ease-kinetic);
}
.btn-secondary:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* HEADER (FLOATING, ROUNDED ENDS, INSET) */
.site-header {
  background-color: var(--bg-band);
  border-radius: 50px;
  padding: 1rem 2.5rem;
  margin: 2rem 2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative; /* Scrolls out of view naturally */
  z-index: 100;
}

.brand {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.desktop-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.desktop-nav a {
  font-variant: small-caps;
  font-size: 1.1rem;
  font-weight: bold;
}
.desktop-nav a:hover {
  color: var(--accent-primary);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-primary);
}

.mobile-nav-overlay {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  margin-top: 1rem;
  box-shadow: var(--shadow-elevation);
  z-index: 99;
}
.mobile-nav-overlay.active {
  display: block;
}
.mobile-nav-overlay ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* HERO SECTION (SHORT BAND) */
.hero-band {
  background-color: var(--bg-band);
  padding: 4rem 2rem;
  margin: 2rem 2rem 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 0; /* Sharp square corners for sections */
}
.hero-band h1 {
  margin-bottom: 0;
  max-width: 900px;
}

/* SPLIT SECTIONS (ALTERNATING TEXT AND IMAGE) */
.split-section {
  display: flex;
  flex-wrap: wrap;
  margin: 4rem 2rem;
  gap: 2rem;
  border-radius: 0;
}
.split-section:nth-child(even) {
  flex-direction: row-reverse;
}
.split-content, .split-image {
  flex: 1 1 calc(50% - 1rem);
  min-width: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0; /* Sharp corners for images */
  aspect-ratio: 4/3;
}

/* ROUND BADGES / AVATARS */
.avatar {
  border-radius: 50%;
  width: 80px;
  height: 80px;
  object-fit: cover;
  margin-bottom: 1rem;
}

.badge {
  border-radius: 50%;
  background-color: var(--accent-primary);
  color: #ffffff;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-variant: small-caps;
  font-weight: bold;
  margin-bottom: 1rem;
}

/* GLASS CARDS OVER BOLD BACKGROUND */
.bold-bg-section {
  background-color: var(--accent-primary);
  padding: 6rem 2rem;
  margin: 4rem 0;
  position: relative;
}
.bold-bg-section .section-header {
  color: #ffffff;
  text-align: center;
  margin-bottom: 3rem;
}
.bold-bg-section .label {
  color: #ffccd5;
}
.glass-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 2rem;
  border-radius: 0; /* Sharp corners */
  transition: transform 0.3s var(--ease-kinetic);
}
.glass-card:hover {
  transform: translateY(-5px);
}
.glass-card h3 {
  color: var(--text-primary);
}

/* ACCORDION (CLOSET HACKS) */
.accordion {
  width: 100%;
  border-top: 1px solid var(--border-color);
}
.accordion-item {
  border-bottom: 1px solid var(--border-color);
}
.accordion-btn {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.5rem 0;
  font-size: 1.25rem;
  font-family: var(--font-serif);
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-primary);
}
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-kinetic);
}
.accordion-content p {
  padding-bottom: 1.5rem;
  color: var(--text-muted);
}
.accordion-item.active .accordion-content {
  max-height: 500px;
}

/* FORMS & TOOLS */
.tool-container {
  background-color: var(--bg-band);
  padding: 3rem;
  margin: 4rem 2rem;
  border-radius: 0;
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  font-variant: small-caps;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--border-color);
  background-color: var(--bg-canvas);
  font-family: var(--font-serif);
  font-size: 1rem;
  border-radius: 0;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-color: var(--accent-primary);
}
.tool-results {
  display: none;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}
.tool-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
#compiled-output {
  width: 100%;
  height: 150px;
  background-color: #f8fafc;
  padding: 1rem;
  border: 1px solid var(--border-color);
  font-family: monospace;
  margin-bottom: 1rem;
}

/* FOOTER */
.site-footer {
  margin-top: auto;
  padding: 4rem 2rem 2rem;
  background-color: var(--bg-canvas);
}
.footer-logo {
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 3rem;
}
.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}
.footer-col h4 {
  font-variant: small-caps;
  margin-bottom: 1rem;
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 0.5rem;
}
.footer-col ul li a {
  color: var(--text-muted);
}
.footer-col ul li a:hover {
  color: var(--accent-primary);
}
.footer-divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 2rem 0;
}
.footer-bottom {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-bottom a {
  color: var(--text-muted);
  margin: 0 0.5rem;
}
.footer-bottom a:hover {
  color: var(--text-primary);
}
.footer-company-info {
  margin-top: 1rem;
  font-size: 0.85rem;
}

/* UTILITIES & ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s var(--ease-kinetic);
}
.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

.text-center { text-align: center; }
.my-4 { margin-top: 4rem; margin-bottom: 4rem; }
.px-2 { padding-left: 2rem; padding-right: 2rem; }

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}
table th, table td {
  border: 1px solid var(--border-color);
  padding: 1rem;
  text-align: left;
}
table th {
  background-color: var(--bg-band);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .site-header {
    margin: 1rem 1rem 0;
    padding: 1rem 1.5rem;
  }
  .hero-band {
    margin: 1rem 1rem 0;
    padding: 3rem 1rem;
  }
  .split-section {
    margin: 3rem 1rem;
    flex-direction: column !important;
  }
  .bold-bg-section {
    padding: 4rem 1rem;
  }
  .glass-card {
    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}}
