:root {
  --bg: #f7f4f0;
  --paper: #ffffff;
  --ink: #1a1a1a;
  --muted: #66605a;
  --line: #ded9d2;
  --gold: #c79b55;
  --gold-dark: #a97832;
  --charcoal: #242424;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3 {
  letter-spacing: 0;
  line-height: 1.05;
  font-weight: 800;
}

h1 {
  max-width: 560px;
  font-size: clamp(2.25rem, 4vw, 4.9rem);
}

h2 {
  font-size: clamp(1.75rem, 2.4vw, 3rem);
}

h3 {
  font-size: 1.1rem;
}

.section-pad {
  padding: 84px 0;
}

.topbar {
  padding: 10px 0;
  background: var(--ink);
  color: #f4eee5;
  font-size: .875rem;
}

.topbar a {
  color: #f4eee5;
}

.topbar-actions,
.social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.social-links {
  gap: 8px;
}

.social-links a {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  color: #f4eee5;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  border-color: var(--gold);
  background: var(--gold);
  color: #20170d;
  transform: translateY(-1px);
}

.site-header {
  transition: transform .25s ease, box-shadow .25s ease;
}

.navbar {
  min-height: 72px;
  transition: min-height .25s ease, background-color .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
}

.site-header.is-stuck {
  box-shadow: 0 14px 32px rgba(31, 25, 18, .12);
}

.site-header.is-stuck .topbar {
  display: none;
}

.site-header.is-stuck .navbar {
  min-height: 60px;
  background-color: rgba(255, 255, 255, .92) !important;
  backdrop-filter: blur(14px);
  animation: nav-settle .28s ease both;
}

.site-header.is-stuck .navbar-brand img {
  transform: scale(.88) rotate(-4deg);
}

.navbar-brand img {
  transition: transform .25s ease;
}

@keyframes nav-settle {
  from {
    transform: translateY(-8px);
  }

  to {
    transform: translateY(0);
  }
}

.navbar-brand span {
  font-weight: 800;
}

.nav-link {
  color: #27231f;
  font-weight: 650;
}

.dropdown-menu {
  border-color: var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .08);
}

.btn {
  border-radius: 6px;
  font-weight: 750;
  padding: .78rem 1.1rem;
}

.btn-sm {
  padding: .5rem .78rem;
}

.btn-brand {
  --bs-btn-bg: var(--gold);
  --bs-btn-border-color: var(--gold);
  --bs-btn-color: #20170d;
  --bs-btn-hover-bg: var(--gold-dark);
  --bs-btn-hover-border-color: var(--gold-dark);
  --bs-btn-hover-color: #fff;
}

.btn-stock {
  --bs-btn-color: #000;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-color: #fff;
  color: #000;
}

.btn-stock:hover,
.btn-stock:focus-visible,
.btn-stock:active {
  color: #fff;
}

.hero {
  background:
    linear-gradient(90deg, rgba(247, 244, 240, .96), rgba(247, 244, 240, .88)),
    url("../img/textured_paper.png");
}

.eyebrow {
  margin-bottom: .75rem;
  color: var(--gold-dark);
  font-size: .82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.lead {
  max-width: 610px;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-brand-mark {
  width: 128px;
  height: 120px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: transform .35s ease;
}

.hero-brand-mark img {
  width: 128px;
  height: 120px;
  object-fit: contain;
}

.hero-brand-mark:hover,
.hero-brand-mark:focus-visible {
  transform: rotate(90deg);
}

.hero-media {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 24px 55px rgba(38, 30, 19, .18);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 1.18 / 1;
  object-fit: cover;
}

.stats-strip {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat-item {
  display: flex;
  min-height: 118px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  border-right: 1px solid var(--line);
}

.stat-item:last-child {
  border-right: 0;
}

.stat-item strong {
  color: var(--gold);
  font-size: 2rem;
  line-height: 1;
}

.stat-item span {
  max-width: 160px;
  color: var(--muted);
  font-size: .9rem;
  text-align: left;
}

.section-text {
  color: var(--muted);
}

.info-card,
.cta-card,
.product-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.info-card {
  padding: 28px;
}

.card-mark {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border: 1px solid #ead8bb;
  border-radius: 50%;
  color: var(--gold-dark);
  font-weight: 800;
}

.info-card p,
.cta-card p,
.product-card li {
  color: var(--muted);
}

.legacy-copy a:not(.btn),
.seo-card a:not(.btn) {
  color: var(--gold-dark);
  font-weight: 800;
}

.seo-card {
  height: 100%;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.seo-card h3 + p,
.seo-card p,
.seo-card li {
  color: var(--muted);
}

.seo-card ul {
  margin: 14px 0 18px;
  padding-left: 1.15rem;
}

.legacy-thumb {
  width: 100%;
  height: 260px;
  border-radius: 8px;
  object-fit: cover;
  background: #ebe7df;
}

.link-brand {
  color: var(--gold-dark);
  font-weight: 800;
}

.product-card {
  overflow: hidden;
  height: 100%;
}

.product-card > img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: center;
  background: #ebe7df;
}

.product-card-body {
  padding: 28px;
}

.brand-logo {
  width: 126px;
  height: auto;
  margin-bottom: 18px;
}

.dre-logo {
  width: 94px;
}

.product-card ul,
.check-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.product-card li,
.check-list li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 24px;
}

.product-card li::before,
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 11px;
  height: 7px;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}

.notice-bar {
  padding: 22px 28px;
  border-radius: 6px;
  background: var(--gold);
  color: #21180e;
  font-weight: 800;
  text-align: center;
}

.dark-section {
  background: var(--charcoal);
  color: #f7f4f0;
}

.dark-section p {
  color: #cec6bd;
}

.text-gold {
  color: #ddb56f;
}

.panel-visual {
  padding: 18px;
  border-radius: 8px;
  background: #fff;
}

.panel-visual img {
  width: 100%;
  min-height: 340px;
  object-fit: contain;
}

.cta-card {
  padding: 34px;
}

.price-box {
  max-width: 650px;
  padding: 42px;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 18px 44px rgba(55, 45, 32, .08);
  text-align: center;
}

.price-box span {
  margin-right: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.price-box strong {
  display: inline-block;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
}

.price-box small {
  display: block;
  margin-top: 16px;
  color: var(--gold-dark);
  font-weight: 700;
}

.calculator-band {
  padding: 44px;
  border-radius: 8px;
  background: var(--paper);
}

.calculator-band img {
  width: 100%;
  aspect-ratio: 1.5 / 1;
  border-radius: 6px;
  object-fit: cover;
  background: #ebe7df;
}

.check-list.light li {
  color: var(--muted);
}

.dark-section.compact {
  padding: 72px 0;
}

.benefit {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 6px;
  background: rgba(255, 255, 255, .04);
  color: #f7f4f0;
  font-weight: 750;
  text-align: center;
}

.rounded-img {
  width: 100%;
  max-height: 420px;
  border-radius: 8px;
  object-fit: cover;
}

.model-tile {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--paper);
}

.model-tile img {
  width: 100%;
  aspect-ratio: 1.48 / 1;
  object-fit: cover;
}

.model-tile h3 {
  position: absolute;
  top: 16px;
  left: 18px;
  right: 18px;
  margin: 0;
  padding: 10px 14px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .92);
  text-align: center;
}

.site-footer {
  background: #1a1a1a;
  color: #f7f4f0;
}

.site-footer p,
.site-footer a {
  color: #cfc8bf;
}

.site-footer h2 {
  max-width: 620px;
  color: var(--gold);
}

.site-footer h3 {
  color: #fff;
}

.site-footer .col-lg-3 a {
  display: block;
  margin-bottom: 10px;
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.footer-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-icon-btn i {
  font-size: 1rem;
  line-height: 1;
}

.copyright {
  margin-top: 54px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: #8f8982;
  font-size: .88rem;
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1040;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(.94);
  transition: opacity .22s ease, transform .22s ease, background-color .22s ease, color .22s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--gold);
  color: #20170d;
}

.back-to-top i {
  font-size: 1.25rem;
  line-height: 1;
}

.classen-page {
  background: var(--bg);
}

.classen-header {
  box-shadow: 0 1px 0 rgba(222, 217, 210, .75);
}

.classen-header.is-stuck {
  box-shadow: 0 14px 32px rgba(31, 25, 18, .12);
}

.classen-header.is-stuck .topbar {
  display: none;
}

.brand-strip {
  padding: 18px 0;
  background: #fff;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--gold-dark);
  font-weight: 800;
}

.brand-lockup img {
  width: 41px;
  height: 40px;
  object-fit: contain;
}

.classen-nav {
  min-height: 58px;
  background: var(--ink);
}

.classen-nav .nav-link {
  color: #fff;
  font-size: .78rem;
  font-weight: 750;
  text-transform: uppercase;
}

.classen-nav .nav-link:hover,
.classen-nav .nav-link:focus-visible,
.classen-nav .nav-link.active {
  color: var(--gold);
}

.classen-nav .dropdown-menu {
  margin-top: 0;
  border-color: rgba(255, 255, 255, .08);
  background: #fff;
}

.classen-nav .dropdown-item {
  color: #27231f;
  font-weight: 700;
}

.classen-nav .dropdown-item:hover,
.classen-nav .dropdown-item:focus,
.classen-nav .dropdown-item.active {
  background: #f5efe6;
  color: var(--gold-dark);
}

.classen-nav .btn {
  white-space: nowrap;
}

.classen-hero {
  padding: 92px 0 82px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(247, 244, 240, .95), rgba(235, 230, 222, .96)),
    url("../img/textured_paper.png");
}

.classen-hero-logo {
  width: 180px;
  height: auto;
  margin-bottom: 24px;
}

.classen-hero h1 {
  max-width: 980px;
  margin: 0 auto 22px;
  font-size: clamp(2.05rem, 4.3vw, 4rem);
  text-align: center;
}

.split-hero-title .title-line {
  display: block;
  will-change: transform, opacity;
}

.title-line-left {
  animation: title-slide-left .72s cubic-bezier(.2, .8, .2, 1) both;
}

.title-line-right {
  animation: title-slide-right .72s cubic-bezier(.2, .8, .2, 1) .12s both;
}

.classen-hero p,
.classen-hero .btn {
  animation: hero-fade-up .55s ease .42s both;
}

.classen-hero .btn {
  animation-delay: .54s;
}

@keyframes title-slide-left {
  from {
    opacity: 0;
    transform: translateX(-70px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes title-slide-right {
  from {
    opacity: 0;
    transform: translateX(70px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes hero-fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.classen-hero p {
  max-width: 760px;
  margin: 0 auto 32px;
  color: var(--gold-dark);
  font-size: clamp(1.15rem, 2.2vw, 1.7rem);
  font-weight: 800;
  line-height: 1.25;
}

.classen-info-card {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
}

.classen-info-card h2 {
  margin-bottom: 16px;
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.classen-info-card h3 {
  margin-top: 26px;
  color: var(--gold-dark);
  font-size: 1.25rem;
}

.classen-info-card p,
.technical-section p,
.classen-notes p,
.payment-card p {
  color: var(--muted);
}

.catalog-section h2,
.technical-section h2,
.classen-notes h2,
.process-panel h2 {
  max-width: 980px;
}

.catalog-section .text-center h2,
.process-panel .text-center h2 {
  margin-right: auto;
  margin-left: auto;
}

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

.catalog-grid.compact {
  max-width: 480px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-right: auto;
  margin-left: auto;
}

.catalog-grid.compact .door-card img {
  object-fit: contain;
  padding: 14px;
  background: #f3eee7;
}

.door-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 28px rgba(55, 45, 32, 0);
  transform: translateY(0);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.door-card img {
  width: 100%;
  height: 192px;
  object-fit: cover;
  background: #ebe7df;
  transform: scale(1) rotate(0);
  filter: saturate(1);
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), filter .35s ease;
}

.door-card div {
  flex: 1;
  padding: 15px 14px 10px;
}

.door-card h3 {
  margin-bottom: 7px;
  font-size: 1rem;
  line-height: 1.15;
}

.door-card p {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.35;
}

.door-card .btn {
  width: calc(100% - 28px);
  margin: 0 14px 14px;
  padding: .62rem .55rem;
  font-size: .78rem;
  white-space: normal;
  transition: transform .22s ease, background-color .22s ease, border-color .22s ease, color .22s ease;
}

.door-card:hover,
.door-card:focus-within {
  border-color: rgba(199, 155, 85, .75);
  box-shadow: 0 22px 48px rgba(55, 45, 32, .18);
  transform: translateY(-8px);
}

.door-card:hover img,
.door-card:focus-within img {
  filter: saturate(1.12) contrast(1.03);
  transform: scale(1.08) rotate(-1.25deg);
}

.door-card:nth-child(even):hover img,
.door-card:nth-child(even):focus-within img {
  transform: scale(1.08) rotate(1.25deg);
}

.door-card:hover .btn,
.door-card:focus-within .btn {
  transform: translateY(-2px);
}

.catalog-grid.compact .door-card:hover img,
.catalog-grid.compact .door-card:focus-within img {
  transform: scale(1.12) rotate(0);
}

.technical-section {
  background: #fff;
}

.classen-notes {
  background: var(--bg);
}

.classen-highlight {
  padding: 30px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
}

.classen-highlight h3 {
  color: var(--gold);
}

.classen-highlight p {
  margin-bottom: 0;
  color: #f0e8dd;
}

.process-panel {
  padding: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.process-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: process;
}

.process-list li {
  position: relative;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding-left: 58px;
  font-weight: 750;
  counter-increment: process;
}

.process-list li::before {
  content: counter(process);
  position: absolute;
  left: 0;
  top: 0;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gold);
  color: #20170d;
  font-weight: 900;
}

.payment-card {
  padding: 28px;
  border-radius: 8px;
  background: var(--bg);
}

@media (max-width: 991.98px) {
  .section-pad {
    padding: 60px 0;
  }

  .hero {
    padding-top: 48px;
  }

  .navbar-nav {
    padding-top: 14px;
  }

  .navbar-collapse {
    max-height: calc(100vh - 78px);
    overflow-y: auto;
    padding-bottom: 18px;
  }

  .navbar-nav .nav-link,
  .navbar-nav .dropdown-item {
    padding: .72rem .25rem;
  }

  .navbar-nav .dropdown-menu {
    margin: 0 0 8px;
    padding: 6px 12px;
    border: 0;
    box-shadow: none;
  }

  .navbar-nav .btn {
    width: 100%;
    margin-top: 8px;
  }

  .product-card > img {
    height: 300px;
  }

  .brand-strip {
    padding: 14px 0;
  }

  .classen-nav .navbar-collapse {
    max-height: calc(100vh - 58px);
    overflow-y: auto;
    padding: 10px 0 18px;
  }

  .classen-nav .nav-link {
    padding: .72rem 0;
  }

  .classen-nav .dropdown-menu {
    margin: 0 0 8px;
    padding: 6px 12px;
    border: 0;
    border-radius: 8px;
    box-shadow: none;
  }

  .classen-nav .dropdown-item {
    padding: .7rem .25rem;
  }

  .classen-nav .btn {
    width: 100%;
    margin-top: 8px;
  }

  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .process-panel {
    padding: 36px;
  }
}

@media (max-width: 767.98px) {
  h1 {
    font-size: 2.35rem;
  }

  .stat-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stat-item:last-child {
    border-bottom: 0;
  }

  .product-card > img {
    height: 240px;
  }

  .topbar .container-xl,
  .topbar-actions {
    justify-content: center !important;
    text-align: center;
  }

  .hero {
    padding-top: 40px;
  }

  .legacy-thumb {
    height: 160px;
  }

  .brand-lockup {
    align-items: flex-start;
  }

  .brand-lockup span {
    max-width: 250px;
  }

  .classen-hero {
    padding: 56px 0 52px;
  }

  .classen-info-card,
  .process-panel,
  .payment-card {
    padding: 24px;
  }

  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .door-card img {
    height: 160px;
  }

  .catalog-grid.compact .door-card img {
    height: 170px;
  }

  .catalog-grid.compact {
    grid-template-columns: 1fr;
    max-width: 260px;
  }

  .door-card div {
    padding: 13px 12px 8px;
  }

  .door-card .btn {
    width: calc(100% - 24px);
    margin: 0 12px 12px;
  }

  .calculator-band,
  .price-box {
    padding: 26px;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .title-line-left,
  .title-line-right,
  .classen-hero p,
  .classen-hero .btn,
  .door-card,
  .door-card img,
  .door-card .btn {
    animation: none;
    transition: none;
  }

  .door-card:hover,
  .door-card:focus-within,
  .door-card:hover img,
  .door-card:focus-within img,
  .door-card:hover .btn,
  .door-card:focus-within .btn {
    transform: none;
  }
}
