/*
Theme Name: Level Design
Theme URI: https://example.com/level-design
Author: Level Design
Description: Custom theme for Level Design built from the handcrafted static site.
Version: 1.0
Text Domain: level-design
*/

@font-face {
  font-family: "Source Serif 4";
  src: url("../twentytwentythree/assets/fonts/source-serif-pro/SourceSerif4Variable-Roman.ttf.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}

:root {
  --ink: #1c1b19;
  --forest: #2f4b3a;
  --moss: #7fb589;
  --sand: #f4efe6;
  --clay: #c27a4a;
  --shadow: 0 20px 60px rgba(28, 27, 25, 0.18);
  --shadow-soft: 0 12px 30px rgba(28, 27, 25, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --display-font: "Source Serif 4", Georgia, serif;
  --body-font: "Inter", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--body-font);
  background: var(--sand);
  color: var(--ink);
  line-height: 1.65;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: var(--display-font);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(
      circle at 15% 10%,
      rgba(199, 165, 127, 0.25),
      transparent 45%
    ),
    radial-gradient(
      circle at 85% 20%,
      rgba(127, 181, 137, 0.25),
      transparent 40%
    ),
    radial-gradient(
      circle at 50% 90%,
      rgba(78, 112, 95, 0.18),
      transparent 50%
    ),
    linear-gradient(140deg, #f7f2e9 0%, #f2f6f1 40%, #f7efe7 100%);
}

a {
  color: var(--forest);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--clay);
}

.text-highlight {
  color: var(--clay);
}

.section-title {
  margin-bottom: 3rem;
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--forest);
  margin-bottom: 0.6rem;
  font-weight: 600;
}

.section-title h2,
.section-title h3 {
  font-family: var(--display-font);
  font-size: clamp(2rem, 3vw, 3rem);
  margin-bottom: 0.6rem;
  color: var(--ink);
}

.section-lede {
  max-width: 640px;
  margin: 0.8rem auto 0;
  font-size: clamp(1.02rem, 1.4vw, 1.14rem);
  color: rgba(28, 27, 25, 0.7);
}

.btn {
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 12px 26px;
}

.btn-primary {
  background: linear-gradient(130deg, var(--forest), #1d3326);
  border: none;
  color: #fefbf7;
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: #fefbf7;
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #fefbf7;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  transition:
    background 0.3s ease,
    border 0.3s ease;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.9);
  color: #ffffff;
}

.btn-ghost-dark {
  border: 1px solid rgba(176, 132, 89, 0.75);
  color: #2a241d;
  background: linear-gradient(160deg, #f3e4cf, #d8b48d);
  transition:
    background 0.3s ease,
    border 0.3s ease,
    color 0.3s ease;
}

.btn-ghost-dark:hover {
  background: linear-gradient(160deg, #eed9bc, #cfa176);
  border-color: rgba(152, 111, 72, 0.9);
  color: #1f1a15;
}

/* Navbar */
header {
  position: relative;
  z-index: 1100;
}

.navbar-custom {
  background: rgba(23, 35, 28, 0.78);
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  z-index: 1050;
  width: 100%;
}

.navbar-custom.fixed-top {
  left: 0;
  right: 0;
  width: 100%;
}

.navbar-custom .navbar-brand,
.navbar-custom .nav-link {
  color: #f8f3ea;
  font-family: var(--body-font);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.navbar-custom .navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #f3e4cf, #d8b48d);
  border: 1px solid rgba(176, 132, 89, 0.85);
  color: #1c1b19;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.brand-mark-image {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
  filter: brightness(0.55) contrast(1.15);
}

.brand-text {
  letter-spacing: 0.04em;
  font-size: 1.08rem;
}

.navbar-custom .navbar-nav {
  gap: 0.35rem;
  align-items: center;
}

.navbar-custom .nav-link {
  border-radius: 999px;
  padding: 0.3125rem 0.95rem;
  line-height: var(--bs-navbar-brand-line-height);
}

.nav-item-tables {
  position: relative;
}

.nav-item-tables > .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-item-tables > .nav-link::after {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.2s ease;
}

.nav-item-tables:hover > .nav-link::after,
.nav-item-tables:focus-within > .nav-link::after {
  transform: rotate(-135deg) translateY(-1px);
}

.nav-dropdown {
  list-style: none;
  margin: 0;
  padding: 10px 0;
  min-width: 180px;
  position: absolute;
  top: 100%;
  left: 0;
  background: #17231c;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: none;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.24);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
  z-index: 1101;
}

.nav-dropdown li {
  margin: 0;
}

.nav-dropdown a {
  display: block;
  padding: 0.46rem 0.95rem;
  color: #f8f3ea;
  text-decoration: none;
  font-size: 0.92rem;
}

.nav-dropdown a:hover,
.nav-dropdown a:focus-visible,
.nav-dropdown a.active {
  background: transparent;
  color: #d8b48d;
}

.nav-item-tables:hover .nav-dropdown,
.nav-item-tables:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.navbar-custom .nav-link.active,
.navbar-custom .nav-link:hover {
  color: #d8b48d;
  background: transparent;
}

.navbar-custom .navbar-brand:hover,
.navbar-custom .navbar-brand:focus-visible {
  color: #d8b48d;
}

.navbar-toggler {
  color: #f8f3ea;
  margin-left: auto;
  margin-right: 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(127, 181, 137, 0.35);
}

.nav-cta {
  margin-left: 1rem;
  padding: 12px 26px;
  font-size: 1.05rem;
  line-height: 1;
  font-weight: 600;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  color: #d8b48d;
  border-color: #d8b48d;
}

@media (min-width: 768px) {
  .navbar-custom .navbar-collapse {
    margin-left: 1rem;
  }

  .navbar-custom .navbar-nav {
    gap: 1rem;
  }
}

@media (max-width: 767.98px) {
  .navbar-custom .navbar-brand {
    gap: 10px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .brand-mark-image {
    width: 28px;
    height: 28px;
  }

  .brand-text {
    font-size: 1rem;
  }
}

/* Hero Section */
#hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: #fefbf7;
  padding: 140px 15px 90px;
  background: url("./assets/images/home/hero.jpg") no-repeat center/cover;
}

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    140deg,
    rgba(18, 27, 22, 0.85),
    rgba(18, 27, 22, 0.35) 50%,
    rgba(18, 27, 22, 0.78)
  );
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 400px);
  gap: clamp(24px, 4vw, 50px);
  align-items: end;
}

.hero-content {
  max-width: 700px;
}

.eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.75);
}

#hero h1 {
  font-family: var(--display-font);
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 1.02;
  margin-bottom: 1.2rem;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  margin-bottom: 1.8rem;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.85);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 16px;
}

.hero-actions .btn {
  min-width: 0;
}

.hero-panel {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.26),
    rgba(255, 255, 255, 0.12)
  );
  color: var(--ink);
  border-radius: 22px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow: 0 20px 45px rgba(9, 14, 12, 0.28);
  backdrop-filter: blur(12px) saturate(125%);
  -webkit-backdrop-filter: blur(12px) saturate(125%);
}

.hero-panel h2 {
  font-family: var(--display-font);
  font-size: 1.8rem;
  margin: 0 0 1rem;
}

.hero-panel ul {
  margin: 0 0 1.2rem;
  padding-left: 1.1rem;
}

.hero-panel li {
  margin-bottom: 0.6rem;
  color: rgba(28, 27, 25, 0.78);
}

.hero-panel .btn-ghost-dark,
.hero-actions .btn-ghost-dark {
  background: linear-gradient(160deg, #f3e4cf, #d8b48d);
  border-color: rgba(176, 132, 89, 0.85);
  color: #2a241d;
  box-shadow: 0 10px 24px rgba(93, 70, 45, 0.2);
}

.hero-panel .btn-ghost-dark:hover,
.hero-actions .btn-ghost-dark:hover {
  background: linear-gradient(160deg, #eed9bc, #cfa176);
  border-color: rgba(152, 111, 72, 0.95);
  color: #1f1a15;
}

/* Feature strip */
#features-strip {
  margin-top: 28px;
  position: relative;
  z-index: 4;
  padding-bottom: 40px;
}

.features-strip-grid {
  background: #fefbf7;
  border-radius: 16px;
  border: 1px solid rgba(47, 75, 58, 0.12);
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-pill {
  padding: 18px 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border-right: 1px solid rgba(47, 75, 58, 0.12);
}

.feature-pill:last-child {
  border-right: 0;
}

.icon-svg {
  display: block;
  flex: 0 0 auto;
}

.feature-icon {
  width: 1.2rem;
  height: 1.2rem;
  color: var(--forest);
  margin-top: 2px;
}

.feature-pill h3 {
  font-size: 1rem;
  margin: 0;
}

.feature-pill p {
  margin: 3px 0 0;
  color: rgba(28, 27, 25, 0.68);
  font-size: 0.9rem;
}

/* Table preview */
#tables-preview {
  padding: 50px 0 85px;
}

.preview-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.preview-card {
  flex: 1 1 340px;
  max-width: 360px;
  background: #ffffff;
  border: 1px solid rgba(47, 75, 58, 0.1);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.preview-card-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.preview-card-link:focus-visible {
  outline: 2px solid rgba(127, 181, 137, 0.7);
  outline-offset: 4px;
}

.preview-image-link {
  display: block;
  overflow: hidden;
}

.preview-image-link img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.preview-card:hover .preview-image-link img {
  transform: scale(1.05);
}

.preview-content {
  padding: 18px;
  display: block;
}

.preview-content h3 {
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.preview-card:hover .preview-content h3,
.preview-card-link:focus-visible .preview-content h3 {
  color: var(--clay);
}

.preview-content p {
  color: rgba(28, 27, 25, 0.7);
  margin-bottom: 0.9rem;
}

/* Process */
#process {
  background: linear-gradient(180deg, #eef5ee 0%, #f7f2e9 100%);
  padding: 90px 0;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.process-step {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid rgba(47, 75, 58, 0.12);
  padding: 24px 20px;
  box-shadow: var(--shadow-soft);
}

.step-number {
  display: inline-flex;
  font-size: 0.74rem;
  letter-spacing: 0.15em;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 0.6rem;
}

.process-step h3 {
  font-size: 1.2rem;
  margin-bottom: 0.55rem;
}

.process-step p {
  color: rgba(28, 27, 25, 0.72);
  margin: 0;
}

.process-model-showcase {
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(18px, 3vw, 30px);
}

.process-model-copy {
  max-width: 760px;
  text-align: center;
}

.process-model-copy h3 {
  font-size: clamp(1.4rem, 2.3vw, 2rem);
  margin: 0 0 0.6rem;
}

.process-model-copy p {
  margin: 0;
  color: rgba(28, 27, 25, 0.72);
}

.process-model-viewer {
  display: block;
  width: min(100%, 1140px);
  height: clamp(380px, 56vh, 620px);
  --progress-bar-height: 0;
  --poster-color: transparent;
  cursor: grab;
  background: transparent;
}

.process-model-viewer:hover {
  cursor: grab;
}

.process-model-viewer:active {
  cursor: grabbing;
}

/* Reviews */
#reviews {
  padding: 100px 20px;
  color: var(--ink);
}

#reviews .section-title {
  margin-bottom: 2rem;
}

#reviews .section-lede {
  max-width: 760px;
}

.reviews-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 auto 36px;
  max-width: 940px;
}

.reviews-stat {
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.75));
  border: 1px solid rgba(47, 75, 58, 0.12);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  box-shadow: var(--shadow-soft);
}

.reviews-stat-value {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(1.8rem, 2.8vw, 2.2rem);
  line-height: 1;
  color: var(--forest);
}

.reviews-stat-value span {
  font-size: 0.55em;
  opacity: 0.8;
}

.reviews-stat-label {
  margin: 8px 0 0;
  font-size: 0.9rem;
  color: rgba(28, 27, 25, 0.72);
}

.review-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.review {
  flex: 1 1 320px;
  max-width: 360px;
  position: relative;
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid rgba(47, 75, 58, 0.1);
  padding: 16px;
  color: var(--ink);
  text-align: left;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  height: 100%;
}

.review::before {
  content: "“";
  position: absolute;
  top: -18px;
  right: 12px;
  font-family: var(--display-font);
  font-size: 5.8rem;
  line-height: 1;
  color: rgba(47, 75, 58, 0.08);
  pointer-events: none;
}

.review:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 46px rgba(28, 27, 25, 0.17);
  border-color: rgba(47, 75, 58, 0.26);
}

.review-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.review-link:focus-visible {
  outline: 2px solid rgba(127, 181, 137, 0.7);
  outline-offset: 4px;
}

.review img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  transition: transform 0.45s ease;
}

.review:hover img {
  transform: scale(1.03);
}

.review-text {
  min-width: 0;
}

.review h3 {
  margin-top: 0;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.review p {
  font-style: italic;
  margin-bottom: 0.3rem;
  color: rgba(28, 27, 25, 0.7);
}

.review-table {
  margin-top: 0.6rem;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: rgba(28, 27, 25, 0.55);
  font-weight: 600;
}

/* Newsletter */
#newsletter {
  background: linear-gradient(180deg, #e8f1e7 0%, #f7f1e8 100%);
  padding: 70px 30px;
}

.newsletter-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  box-shadow: var(--shadow);
}

.newsletter-card h2 {
  font-family: var(--display-font);
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  margin-bottom: 0.5rem;
}

.newsletter-card p {
  color: rgba(28, 27, 25, 0.7);
}

.newsletter-card .form-control {
  border-radius: 999px;
  border: 1px solid rgba(47, 75, 58, 0.2);
  padding: 12px 18px;
}

.newsletter-card .form-control:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 0.2rem rgba(47, 75, 58, 0.15);
}

.newsletter-card .form-control.is-invalid,
.contact-form .form-control.is-invalid,
.contact-form .form-select.is-invalid {
  border-color: #b42318;
  box-shadow: 0 0 0 0.2rem rgba(180, 35, 24, 0.12);
}

.newsletter-card .invalid-feedback,
.contact-form .invalid-feedback {
  display: block;
  min-height: 1.2em;
  margin-top: 0.45rem;
  font-size: 0.9rem;
  color: #b42318;
}

.newsletter-image {
  box-shadow: var(--shadow);
}

#newsletter .message {
  margin-top: 15px;
  font-weight: 600;
}

#newsletter .message.success {
  color: #2b7a42;
}

#newsletter .message.error {
  color: #a9372b;
}

/* Footer */
footer {
  background:
    linear-gradient(180deg, rgba(15, 24, 19, 0.96), rgba(24, 38, 29, 0.96)),
    radial-gradient(circle at top right, rgba(216, 180, 141, 0.14), transparent 35%);
  color: #d7e6d6;
  padding: 42px 20px 26px;
  font-size: 0.95rem;
  border-top: 1px solid rgba(215, 230, 214, 0.1);
}

.site-footer-panel {
  padding: clamp(24px, 4vw, 34px);
}

.site-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(180px, 0.8fr) minmax(180px, 0.8fr);
  gap: 28px;
}

.site-footer-branding {
  max-width: 420px;
}

.site-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: #f2f7ef;
}

.site-footer-brand:hover,
.site-footer-brand:focus-visible {
  color: #ffffff;
}

.site-footer-brand-mark {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #f3e4cf, #d8b48d);
  border: 1px solid rgba(176, 132, 89, 0.85);
}

.site-footer-brand-image {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
  filter: brightness(0.55) contrast(1.15);
}

.site-footer-brand-text {
  font-family: var(--body-font);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.site-footer-summary {
  margin: 14px 0 0;
  color: rgba(215, 230, 214, 0.76);
  max-width: 32rem;
}

.site-footer-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.site-footer-heading {
  margin: 0;
  color: #f2f7ef;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer-links a {
  color: rgba(215, 230, 214, 0.9);
  font-weight: 600;
  width: fit-content;
}

.site-footer-links a:hover,
.site-footer-links a:focus-visible {
  color: #d8b48d;
}

.site-footer-bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(215, 230, 214, 0.16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.social-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.social-links a {
  color: #d7e6d6;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(215, 230, 214, 0.18);
  background: rgba(255, 255, 255, 0.03);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    color 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease,
    transform 0.3s ease;
}

.social-icon {
  width: 1.2rem;
  height: 1.2rem;
}

.social-links a:hover {
  color: #d8b48d;
  border-color: rgba(216, 180, 141, 0.42);
  background: rgba(216, 180, 141, 0.08);
  transform: translateY(-1px);
}

.site-footer-copy {
  margin: 0;
  color: rgba(215, 230, 214, 0.7);
  font-size: 0.84rem;
  text-align: left;
}

/* Tables */
.inner-hero {
  padding: 118px 0 42px;
}

.inner-hero-grid {
  background: linear-gradient(
    145deg,
    rgba(16, 27, 22, 0.9),
    rgba(47, 75, 58, 0.74)
  );
  color: #fefbf7;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 40px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 360px);
  gap: clamp(20px, 3vw, 36px);
  align-items: center;
}

.inner-hero-grid h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  margin: 0 0 0.9rem;
  line-height: 1.03;
}

.inner-hero-grid .section-kicker {
  color: rgba(255, 255, 255, 0.72);
}

.inner-hero-grid .section-lede {
  color: rgba(255, 255, 255, 0.84);
  margin: 0;
  max-width: 620px;
}

.hero-chip-row {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-chip {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
  padding: 7px 12px;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.inner-hero-card {
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid rgba(47, 75, 58, 0.12);
}

.inner-hero-card h2 {
  font-size: 1.45rem;
  margin-bottom: 0.6rem;
}

.inner-hero-card p {
  color: rgba(28, 27, 25, 0.72);
}

/* Improve contrast for the tables-page helper card copy */
.tables-hero-shell .inner-hero-card .section-kicker,
.custom-hero-shell .inner-hero-card .section-kicker,
.contact-hero-shell .inner-hero-card .section-kicker,
.about-hero-shell .inner-hero-card .section-kicker {
  color: rgba(28, 27, 25, 0.82);
}

.tables-hero-shell .inner-hero-card p,
.custom-hero-shell .inner-hero-card p,
.contact-hero-shell .inner-hero-card p,
.about-hero-shell .inner-hero-card p,
.custom-hero-shell .inner-hero-card li,
.contact-hero-shell .inner-hero-card li,
.about-hero-shell .inner-hero-card li {
  color: rgba(28, 27, 25, 0.88);
}

.custom-checklist {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
}

.custom-checklist li {
  margin-bottom: 0.5rem;
  color: rgba(28, 27, 25, 0.76);
}

.tables-collection {
  padding-top: 12px;
}

.table-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 2rem;
}

.table-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  border: 1px solid rgba(47, 75, 58, 0.12);
  background: #ffffff;
  min-height: 280px;
}

.table-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform 0.5s ease;
}

.table-card a {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
}

.table-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(17, 26, 20, 0) 35%,
    rgba(17, 26, 20, 0.65)
  );
  opacity: 0.9;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.table-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.table-card:hover img {
  transform: scale(1.05);
}

.table-card-label {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 1;
  font-family: var(--display-font);
  font-size: 1.15rem;
  color: #fefbf7;
  letter-spacing: 0.02em;
  text-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}

.page-cta {
  margin-top: 30px;
  padding: 22px 24px;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid rgba(47, 75, 58, 0.12);
  box-shadow: var(--shadow-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.page-cta h3 {
  margin: 0;
  font-size: clamp(1.3rem, 2.3vw, 1.9rem);
}

.custom-section {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(47, 75, 58, 0.1);
}

.custom-process {
  padding-top: 12px;
}

/* About */
.about-story-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(47, 75, 58, 0.1);
}

.about-story-card h2 {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  margin-bottom: 1rem;
}

.about-story-card p:last-child {
  margin-bottom: 0;
}

.about-highlight-panel {
  background: linear-gradient(160deg, #eef5ee, #f6ede2);
  border-radius: var(--radius-md);
  border: 1px solid rgba(47, 75, 58, 0.12);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.about-highlight-panel h3 {
  margin-bottom: 0.6rem;
  font-size: 1.35rem;
}

.about-highlight-panel p {
  margin: 0;
  color: rgba(28, 27, 25, 0.74);
}

.about-timeline {
  background: linear-gradient(180deg, #eef5ee 0%, #f7f2e9 100%);
}

.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 960px;
  margin: 0 auto;
}

.about-stat {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid rgba(47, 75, 58, 0.12);
  padding: 24px 20px;
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.about-stat-value {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(2rem, 3vw, 2.5rem);
  line-height: 1;
  color: var(--forest);
}

.about-stat-label {
  margin: 0.7rem 0 0;
  color: rgba(28, 27, 25, 0.72);
}

.about-extras-title {
  margin-bottom: 2rem;
}

.about-extras-title .section-lede {
  margin-left: 0;
  margin-right: 0;
}

.about-extras-layout {
  display: grid;
  gap: 24px;
}

.about-editorial-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(22px, 3vw, 36px);
  align-items: center;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.96), rgba(246, 238, 227, 0.9));
  border-radius: 32px;
  border: 1px solid rgba(47, 75, 58, 0.1);
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 38px);
}

.about-editorial-copy {
  max-width: 31rem;
}

.about-editorial-copy h3,
.about-trade-card h3 {
  margin-bottom: 0.85rem;
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
}

.about-editorial-copy p:last-child,
.about-trade-card p:last-of-type {
  margin-bottom: 0;
}

.about-editorial-collage {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.about-editorial-shot {
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(47, 75, 58, 0.12);
  box-shadow: var(--shadow-soft);
}

.about-editorial-shot--portrait {
  transform: translateY(28px);
}

.about-editorial-shot--landscape {
  transform: translateY(-18px);
}

.about-editorial-shot figcaption {
  padding: 10px 14px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(28, 27, 25, 0.58);
}

.about-editorial-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.about-trade-card {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: end;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(47, 75, 58, 0.1);
  box-shadow: var(--shadow-soft);
  padding: 32px;
}

.about-trade-header {
  max-width: 24rem;
}

.about-trade-body {
  max-width: 40rem;
}

.about-trade-body p {
  color: rgba(28, 27, 25, 0.74);
}

.about-trade-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  grid-column: 1 / -1;
  padding-top: 2px;
}

.about-trade-points span {
  border-radius: 999px;
  border: 1px solid rgba(47, 75, 58, 0.14);
  background: linear-gradient(160deg, #eef5ee, #f6ede2);
  padding: 9px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: rgba(28, 27, 25, 0.72);
}

.about-page-cta {
  margin-top: 24px;
}

.about-page-cta p {
  color: rgba(28, 27, 25, 0.72);
}

/* Table Detail */
.table-title-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.table-title-nav h2 {
  margin-bottom: 0;
}

.table-title-arrow {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(176, 132, 89, 0.75);
  background: linear-gradient(160deg, #f3e4cf, #d8b48d);
  color: #2a241d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.3rem;
  line-height: 1;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.table-title-arrow:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
  background: linear-gradient(160deg, #eed9bc, #cfa176);
  color: #1f1a15;
}

.table-title-arrow:focus-visible {
  outline: 2px solid rgba(127, 181, 137, 0.9);
  outline-offset: 2px;
}

.table-detail-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.table-media-panel {
  display: grid;
  grid-template-rows: auto auto;
  gap: 12px;
}

.table-media-main {
  position: relative;
  display: block;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 3;
}

.table-media-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: rgba(28, 27, 25, 0.24);
  backdrop-filter: blur(6px);
  transform: translateY(-50%);
  transition:
    background-color 0.2s ease,
    opacity 0.2s ease,
    box-shadow 0.2s ease;
}

.table-media-arrow-icon {
  width: 12px;
  height: 12px;
  display: block;
  border-top: 2.5px solid var(--clay);
  border-right: 2.5px solid var(--clay);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.table-media-arrow--prev .table-media-arrow-icon {
  transform: translateX(2px) rotate(-135deg);
}

.table-media-arrow--next .table-media-arrow-icon {
  transform: translateX(-2px) rotate(45deg);
}

.table-media-arrow:hover {
  background: rgba(28, 27, 25, 0.38);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.table-media-arrow:hover .table-media-arrow-icon {
  border-color: #d38a58;
}

.table-media-arrow:focus-visible {
  outline: 2px solid rgba(127, 181, 137, 0.9);
  outline-offset: 2px;
}

.table-media-arrow--prev {
  left: 14px;
}

.table-media-arrow--next {
  right: 14px;
}

.table-thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  height: auto;
}

.table-thumb {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(47, 75, 58, 0.15);
  padding: 0;
  background: transparent;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border 0.2s ease;
  aspect-ratio: 4 / 3;
}

.table-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.table-thumb.is-active {
  border-color: rgba(47, 75, 58, 0.6);
  box-shadow: 0 12px 24px rgba(28, 27, 25, 0.15);
}

.table-thumb:focus-visible {
  outline: 2px solid rgba(127, 181, 137, 0.9);
  outline-offset: 2px;
}

.table-thumb--center img {
  object-position: center;
}

.table-thumb--right img {
  object-position: right center;
}

/* Contact */
.contact-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(47, 75, 58, 0.1);
}

.contact-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 32px;
  padding: 0;
  overflow: hidden;
}

.contact-form-panel {
  padding: 32px;
}

.contact-image-panel {
  min-height: 360px;
  background: url("./assets/images/contact/contact.jpg") center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: flex-end;
}

.contact-image-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(18, 27, 22, 0.1),
    rgba(18, 27, 22, 0.72)
  );
}

.contact-side-note {
  position: relative;
  z-index: 1;
  margin: 18px;
  background: rgba(251, 248, 241, 0.95);
  border: 1px solid rgba(47, 75, 58, 0.14);
  border-radius: 14px;
  padding: 16px;
}

.contact-side-note h3 {
  font-size: 1.15rem;
  margin-bottom: 0.55rem;
}

.contact-side-note p {
  margin: 0.35rem 0;
  color: rgba(28, 27, 25, 0.75);
}

.contact-card h3 {
  margin-bottom: 0.75rem;
}

.contact-card p {
  color: rgba(28, 27, 25, 0.7);
}

.contact-form .form-control {
  border-radius: 14px;
  border: 1px solid rgba(47, 75, 58, 0.2);
  padding: 12px 14px;
  background-color: #fff;
}

.contact-form .form-control:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 0.2rem rgba(47, 75, 58, 0.15);
}

.contact-form .form-message {
  margin: 12px 0 0;
  font-weight: 600;
}

.contact-form .form-message.success {
  color: var(--forest);
}

.contact-form .form-message.error {
  color: #b42318;
}

.form-field-note {
  margin: -0.15rem 0 0.45rem;
  font-size: 0.9rem;
  color: rgba(28, 27, 25, 0.6);
}

.form-hint {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  color: rgba(28, 27, 25, 0.6);
}

/* Responsive */
@media (min-width: 768px) {
  .navbar-custom .container {
    position: relative;
  }

  .navbar-custom .navbar-collapse {
    flex: 1;
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    margin-left: 1.1rem;
  }

  .navbar-custom .navbar-nav {
    position: static;
    transform: none;
    margin: 0;
  }

  .navbar-custom .nav-cta {
    margin-left: auto;
  }
}

@media (max-width: 1199.98px) {
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .table-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
  }

  .table-card {
    flex: 0 1 calc((100% - 48px) / 3);
    max-width: 320px;
  }
}

@media (max-width: 991.98px) {
  .hero-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero-panel {
    max-width: 560px;
  }

  .features-strip-grid {
    grid-template-columns: 1fr;
  }

  .feature-pill {
    border-right: 0;
    border-bottom: 1px solid rgba(47, 75, 58, 0.12);
  }

  .feature-pill:last-child {
    border-bottom: 0;
  }

  .reviews-stats {
    grid-template-columns: 1fr;
    max-width: 440px;
  }

  .site-footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .site-footer-branding,
  .site-footer-column {
    max-width: none;
  }

  .site-footer-bottom {
    justify-content: center;
    text-align: center;
  }

  .inner-hero-grid {
    grid-template-columns: 1fr;
  }

  .table-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .table-card {
    flex: initial;
    max-width: none;
  }

  .page-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .about-stats-grid {
    grid-template-columns: 1fr;
  }

  .about-editorial-feature,
  .about-trade-card {
    grid-template-columns: 1fr;
  }

  .about-editorial-copy {
    max-width: none;
  }

  .about-trade-points {
    justify-content: flex-start;
  }

  .table-media-panel {
    height: auto;
  }

  .table-media-main {
    height: auto;
  }

  .table-media-arrow {
    width: 40px;
    height: 40px;
    font-size: 2rem;
  }

  .table-thumb img {
    height: 110px;
  }

  .contact-split {
    grid-template-columns: 1fr;
  }

  .contact-image-panel {
    min-height: 280px;
  }
}

@media (max-width: 575.98px) {
  footer {
    padding-left: 14px;
    padding-right: 14px;
  }

  .site-footer-panel {
    padding: 22px 18px;
  }

  .site-footer-brand {
    align-items: flex-start;
  }

  .site-footer-copy {
    text-align: center;
  }
}

@media (max-width: 768px) {
  #hero {
    height: 100vh;
    height: 100svh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    padding: 90px 18px 18px;
    background-image: url("./assets/images/home/hero-mobile.jpg");
    align-items: stretch;
    overflow: hidden;
  }

  .hero-grid {
    min-height: 100%;
    align-items: start;
  }

  .hero-content {
    max-width: min(100%, 28rem);
    padding-top: 12px;
  }

  #hero h1 {
    font-size: clamp(2.4rem, 9.8vw, 3.45rem);
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    display: block;
    font-size: 1rem;
    line-height: 1.5;
    max-width: 32ch;
    margin-bottom: 1.4rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
  }

  .hero-actions .btn {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
  }

  .hero-actions .btn-ghost-dark {
    width: 100%;
    text-align: center;
  }

  .hero-panel {
    display: none;
  }

  #features-strip {
    margin-top: 0;
    padding-top: 18px;
  }

  .features-strip-grid {
    border-radius: 20px;
    overflow: hidden;
  }

  .feature-pill {
    padding: 16px 18px;
  }

  .newsletter-card {
    padding: 26px 22px;
  }

  .custom-section {
    padding: 28px;
  }

  .about-story-card,
  .about-trade-card {
    padding: 24px;
  }

  .about-editorial-collage {
    grid-template-columns: 1fr;
  }

  .about-editorial-shot--portrait,
  .about-editorial-shot--landscape {
    min-height: 0;
    transform: none;
  }
}

@media (max-width: 767.98px) {
  .nav-dropdown {
    display: none;
  }

  .nav-item-tables > .nav-link::after {
    display: none;
  }

  .navbar-custom .navbar-toggler {
    display: inline-flex;
    align-items: center;
    visibility: visible;
    opacity: 1;
  }

  .navbar-custom .navbar-collapse {
    margin-top: 0.8rem;
    background: rgba(20, 31, 25, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 0.8rem;
  }

  .nav-cta {
    display: inline-flex;
    margin: 0.7rem 0 0.2rem;
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .process-grid {
    grid-template-columns: 1fr;
  }

  .preview-card,
  .review {
    flex-basis: 100%;
    max-width: 100%;
  }

  .process-model-viewer {
    min-height: 280px;
    height: 320px;
  }

  .inner-hero {
    padding-top: 108px;
  }

  .table-gallery {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .table-card {
    grid-column: span 1;
    min-height: 280px;
    aspect-ratio: 1024 / 1032;
  }

  .table-title-nav {
    gap: 10px;
  }

  .table-title-arrow {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }

  .table-media-arrow--prev {
    left: 10px;
  }

  .table-media-arrow--next {
    right: 10px;
  }

  .table-thumb img {
    height: 90px;
  }
}

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