:root {
  --coccon-orange: #f26a21;
  --coccon-olive: #4f5a3a;
  --coccon-ink: #141612;
  --coccon-sand: #e9dfc9;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--coccon-ink);
  color: #fff;
}

h1, h2, .stat, .eyebrow {
  font-family: "Saira", sans-serif;
}

/* Navigation */
.coccon-nav {
  background: linear-gradient(to bottom, rgba(0, 0, 0, .55), transparent);
  transition: background .3s;
}
.coccon-nav .nav-link {
  font-weight: 500;
  color: rgba(255, 255, 255, .85);
}
.coccon-nav .nav-link:hover { color: var(--coccon-orange); }

.logo {
  height: 26px;
  width: auto;
  display: block;
}
.logo-sm { height: 18px; }
.navbar-brand .brand-tagline {
  display: block;
  margin-top: .25rem;
  font-family: "Saira", sans-serif;
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .1em;
  line-height: 1;
  color: var(--coccon-orange);
}
.slogan {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 300;
  color: #fff;
  margin-bottom: 1.25rem;
}

/* Full-bleed image sections */
.showcase {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
}
.showcase + .showcase { border-top: 3px solid var(--coccon-orange); }
.showcase-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.showcase-img.pos-top { object-position: center 20%; }
.showcase-img.pos-upper { object-position: center 35%; }

.showcase-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  padding: 6rem 2rem 3rem;
}

/* Information snippets */
.snippet {
  max-width: 460px;
  padding: 1.75rem 2rem;
  background: rgba(20, 22, 18, .72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-left: 4px solid var(--coccon-orange);
  border-radius: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
}
.snippet h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: .75rem;
}
.snippet h2 {
  font-size: clamp(1.6rem, 6vw, 3rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: .75rem;
}
.snippet p:last-child { margin-bottom: 0; }
.snippet-points {
  list-style: none;
  padding: 0;
  margin: .75rem 0 0;
}
.snippet-points li {
  position: relative;
  padding: .3rem 0 .3rem 1.1rem;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 300;
  color: #fff;
}
.snippet-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.1rem;
  width: .55rem;
  height: 2px;
  background: var(--coccon-orange);
}
.snippet-points .config-price { margin-left: .25rem; }
.snippet-hero { max-width: 540px; }
.snippet-hero h1 {
  white-space: nowrap;
  font-size: clamp(1.6rem, 6vw, 3rem);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: .8rem;
  font-weight: 600;
  color: var(--coccon-orange);
  margin-bottom: .5rem;
}

.stat {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: var(--coccon-orange);
  margin-bottom: .5rem;
}
.stat span { font-weight: 400; opacity: .7; }
.stat small {
  font-size: 1.1rem;
  font-weight: 600;
  margin-left: .25rem;
  color: #fff;
}

/* Specs card */
.snippet-specs {
  max-width: 440px;
  width: 100%;
}
.spec-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
}
.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .15);
}
.spec-list span { color: rgba(255, 255, 255, .7); }
.spec-list strong { text-align: right; }
.showcase-order .spec-list { margin-bottom: .75rem; }
.showcase-order .spec-list li { padding: .45rem 0; }
.spec-link { text-decoration-color: var(--coccon-orange); }

/* The order card is taller than the screen on small devices: let this section grow */
.showcase-order {
  height: auto;
  min-height: 100vh;
}
.showcase-order .showcase-img {
  position: absolute;
  inset: 0;
}
.showcase-order .showcase-overlay {
  position: relative;
  min-height: 100vh;
}

/* Full specifications modal */
.specs-modal {
  background: var(--coccon-ink);
  border: none;
  border-left: 4px solid var(--coccon-orange);
  border-radius: 0;
}
.specs-modal .modal-header,
.specs-modal .modal-body { padding: 1.5rem 2rem; }
.specs-modal .modal-header { border-bottom-color: rgba(255, 255, 255, .15); }
.specs-modal .modal-title {
  font-weight: 600;
  margin: 0;
}
.specs-modal h3 {
  font-family: "Saira", sans-serif;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--coccon-orange);
  margin: 0 0 .5rem;
}
.spec-table {
  display: grid;
  grid-template-columns: 9rem 1fr;
  margin-bottom: 1.75rem;
}
.spec-table dt,
.spec-table dd {
  margin: 0;
  padding: .55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.spec-table dt {
  font-weight: 500;
  color: rgba(255, 255, 255, .7);
}
@media (max-width: 575.98px) {
  .spec-table { grid-template-columns: 1fr; }
  .spec-table dt { border-bottom: none; padding-bottom: 0; }
  .specs-modal .modal-header,
  .specs-modal .modal-body { padding: 1.25rem 1.25rem; }
}

/* Configurator options */
.config-legend {
  font-family: "Saira", sans-serif;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: rgba(255, 255, 255, .7);
  margin-bottom: .5rem;
}
.config-option {
  display: block;
  padding: .8rem 1rem;
  margin-bottom: .5rem;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 0;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.config-option strong { display: block; }
.config-option small { color: rgba(255, 255, 255, .65); }
.config-option:hover { border-color: rgba(255, 255, 255, .5); }
.btn-check:checked + .config-option {
  border-color: var(--coccon-orange);
  background: rgba(242, 106, 33, .15);
}
.config-check {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: 0;
}
.check-box {
  position: relative;
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: .2rem;
  border: 2px solid rgba(255, 255, 255, .5);
  transition: background .2s, border-color .2s;
}
.btn-check:checked + .config-option .check-box {
  background: var(--coccon-orange);
  border-color: var(--coccon-orange);
}
.btn-check:checked + .config-option .check-box::after {
  content: "";
  position: absolute;
  left: .28rem;
  top: .05rem;
  width: .35rem;
  height: .65rem;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.btn-check:focus-visible + .config-option {
  outline: 2px solid var(--coccon-orange);
  outline-offset: 2px;
}

.btn-coccon {
  background: var(--coccon-orange);
  border: none;
  color: #fff;
  font-weight: 600;
  padding: .65rem 1.5rem;
}
.btn-coccon:hover,
.btn-coccon:focus {
  background: #d95a15;
  color: #fff;
}

.config-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: .75rem 0;
  margin-bottom: 1rem;
  border-top: 1px solid rgba(255, 255, 255, .15);
}
.config-total small { color: rgba(255, 255, 255, .6); }
.config-total strong {
  font-family: "Saira", sans-serif;
  font-size: 1.5rem;
  color: var(--coccon-orange);
}
.config-price {
  color: var(--coccon-orange);
  font-weight: 600;
  white-space: nowrap;
}
.config-error { color: #ff9b85; }

/* Cart */
.cart-btn {
  position: relative;
  color: #fff;
  border: none;
  padding: .35rem .5rem;
}
.cart-btn:hover { color: var(--coccon-orange); }
.cart-count {
  position: absolute;
  top: -2px;
  right: -4px;
  min-width: 1.2rem;
  height: 1.2rem;
  padding: 0 .3rem;
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.2rem;
  text-align: center;
  color: #fff;
  background: var(--coccon-orange);
}
.cart-count[hidden] { display: none; }

.cart-panel {
  background: var(--coccon-ink);
  border-left: 4px solid var(--coccon-orange) !important;
}
.cart-panel .offcanvas-title {
  font-family: "Saira", sans-serif;
  font-weight: 600;
}
.cart-line {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .15);
}
.cart-summary {
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, .15);
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .25);
}
.qty button {
  width: 2rem;
  height: 2rem;
  color: #fff;
  background: none;
  border: none;
}
.qty button:hover:not(:disabled) { color: var(--coccon-orange); }
.qty button:disabled { opacity: .35; }
.qty span {
  min-width: 2rem;
  text-align: center;
}

/* Checkout and order pages */
.coccon-nav-solid { background: var(--coccon-ink); }
.page {
  padding-top: 7rem;
  padding-bottom: 4rem;
  min-height: 100vh;
}
.page-title {
  font-weight: 800;
  margin-bottom: 1.5rem;
}
.delivery-fields {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .15);
}
.back-link {
  display: inline-flex;
  color: var(--coccon-orange);
}
.back-link:hover { color: #fff; }
.snippet-page { max-width: none; }
.snippet-page h2 {
  font-size: 1.5rem;
  font-weight: 600;
}
.summary-line {
  padding: .5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.form-control,
.form-select {
  border-radius: 0;
}
.form-check-input {
  border-radius: 0 !important;
}
.form-check-input:checked {
  background-color: var(--coccon-orange);
  border-color: var(--coccon-orange);
}
.form-check-input:focus {
  border-color: var(--coccon-orange);
  box-shadow: 0 0 0 .2rem rgba(242, 106, 33, .25);
}
.footer-link {
  color: inherit;
  text-decoration: none;
}
.footer-link:hover { color: var(--coccon-orange); }
.form-control:focus,
.form-select:focus {
  border-color: var(--coccon-orange);
  box-shadow: 0 0 0 .2rem rgba(242, 106, 33, .25);
}

.coccon-footer {
  background: var(--coccon-ink);
  color: rgba(255, 255, 255, .6);
}

/* Small screens */
@media (max-width: 767.98px) {
  .coccon-nav .navbar-collapse {
    background: rgba(20, 22, 18, .92);
    border-radius: .5rem;
    padding: .5rem 1rem;
    margin-top: .5rem;
  }
  .showcase-overlay {
    padding: 5rem 1rem 1.5rem;
    align-items: flex-end !important;
    justify-content: center !important;
  }
  .snippet {
    max-width: 100%;
    padding: 1.25rem 1.5rem;
  }
  .stat { font-size: 2.4rem; }
}
