:root {
  --bg-sand: #f3e9d8;
  --accent-terra: #c2410c;
  --text-charcoal: #262626;
  
  --shadow-soft: 0 8px 24px rgba(38, 38, 38, 0.08);
  --shadow-hover: 0 16px 40px rgba(38, 38, 38, 0.16);
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-sand);
  color: var(--text-charcoal);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  line-height: 1.8;
  overflow-wrap: anywhere;
  hyphens: auto;
}

/* Typography */
h1, h2, h3, h4 {
  margin-top: 0;
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 1rem; }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.5rem; }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1rem; }
p { margin-top: 0; margin-bottom: 1.5rem; }

/* Links & Buttons */
a {
  color: var(--text-charcoal);
  text-decoration: none;
  transition: all 0.3s var(--ease-kinetic);
}

.text-link {
  position: relative;
  display: inline-block;
  font-weight: 600;
}

.text-link::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0.3);
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--accent-terra);
  transform-origin: bottom right;
  transition: transform 0.4s var(--ease-kinetic);
}

.text-link:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.btn-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-terra);
  color: var(--bg-sand) !important;
  padding: 1rem 2rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  border-radius: 0;
  text-decoration: none;
  transition: transform 0.3s var(--ease-kinetic), box-shadow 0.3s var(--ease-kinetic);
}

.btn-main:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* Header & Nav */
.header-wrapper {
  padding: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.brand-nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #ffffff;
  padding: 0.75rem 2rem;
  border-radius: 9999px; /* Requested rounded ends for header */
  box-shadow: var(--shadow-soft);
  position: static;
}

.brand {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
}

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

/* Layout Containers */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

/* Hero Section */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding-top: 2rem;
  padding-bottom: 6rem;
}

.hero-content {
  padding-right: 2rem;
}

.hero-images {
  position: relative;
  height: 500px;
  width: 100%;
}

.hero-img {
  position: absolute;
  object-fit: cover;
  border-radius: 0;
  box-shadow: var(--shadow-soft);
}

.hero-img-1 {
  top: 0; left: 0;
  width: 65%; height: 75%;
  z-index: 1;
}

.hero-img-2 {
  top: 15%; right: 0;
  width: 55%; height: 60%;
  z-index: 2;
  border: 8px solid var(--bg-sand);
}

.hero-img-3 {
  bottom: 0; left: 15%;
  width: 60%; height: 45%;
  z-index: 3;
  border: 8px solid var(--bg-sand);
}

/* Bento Grid */
.bento-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.bento-card {
  background: #ffffff;
  padding: 2.5rem;
  border-radius: 0; /* Sharp corners constraint */
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s var(--ease-kinetic), box-shadow 0.4s var(--ease-kinetic);
  display: flex;
  flex-direction: column;
}

.bento-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  z-index: 10;
}

.bento-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  margin-bottom: 1.5rem;
  border-radius: 0;
}

@media (min-width: 900px) {
  .bento-mixed { grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(250px, auto); }
  .bento-large { grid-column: span 2; grid-row: span 2; }
  .bento-wide { grid-column: span 2; }
  .bento-tall { grid-row: span 2; }
}

/* Full Width Accent Blocks */
.bg-accent {
  background-color: var(--accent-terra);
  color: var(--bg-sand);
}

.bg-accent h2, .bg-accent h3, .bg-accent a.text-link {
  color: var(--bg-sand);
}

.bg-accent a.text-link::after {
  background-color: var(--bg-sand);
}

.bg-accent .bento-card {
  background: rgba(255,255,255,0.1);
  color: var(--bg-sand);
  box-shadow: none;
  border: 1px solid rgba(255,255,255,0.2);
}

/* Specifics & Components */
.table-wrapper { overflow-x: auto; margin-bottom: 2rem; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 0; }
th, td { padding: 1rem; text-align: left; border-bottom: 1px solid rgba(0,0,0,0.1); }
th { background: rgba(0,0,0,0.05); font-weight: 700; }

details {
  background: #ffffff;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-radius: 0;
  box-shadow: var(--shadow-soft);
}
summary {
  font-weight: 700;
  font-size: 1.2rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 1.5rem; color: var(--accent-terra); }
details[open] summary::after { content: '-'; }
details p { margin-top: 1rem; margin-bottom: 0; }

/* Forms */
form { display: flex; flex-direction: column; gap: 1.5rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
label { font-weight: 700; }
input, select, textarea {
  padding: 1rem;
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: 0;
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  color: var(--text-charcoal);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--accent-terra);
  outline-offset: -1px;
}

#spec-output {
  margin-top: 2rem;
  background: #ffffff;
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  display: none;
}
#spec-output pre {
  white-space: pre-wrap;
  font-family: monospace;
  background: #f8f8f8;
  padding: 1rem;
  border-left: 4px solid var(--accent-terra);
}

/* Footer */
footer {
  background-color: #1a1a1a;
  color: #a3a3a3;
  padding: 4rem 1.5rem 2rem;
  margin-top: 4rem;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  border-bottom: 1px solid #333;
  padding-bottom: 3rem;
  margin-bottom: 2rem;
}
.footer-brand { color: #fff; font-size: 1.5rem; font-weight: 800; margin-bottom: 1rem; }
footer h4 { color: #fff; margin-bottom: 1.2rem; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 0.75rem; }
footer a { color: #a3a3a3; }
footer a:hover { color: #fff; }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
}
.disclaimer { font-size: 0.8rem; margin-top: 1rem; color: #777; }

/* Responsive */
@media (max-width: 1024px) {
  .hero-section { gap: 2rem; }
  .hero-images { height: 400px; }
}

@media (max-width: 768px) {
  .hero-section { grid-template-columns: 1fr; }
  .hero-content { padding-right: 0; margin-bottom: 2rem; }
  .hero-images { height: 350px; }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 5rem;
    left: 1.5rem;
    right: 1.5rem;
    background: #fff;
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow-hover);
    border-radius: 0;
    gap: 1.5rem;
    z-index: 100;
  }
  .nav-links.active { display: flex; }
  .mobile-menu-btn { display: block; }
}

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

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