/*
  Layout wrapper shared by every header/section/footer:
  <header|section|footer> > .container > .header|section|footer-inner > content
*/
.container {
  width: 100%;
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 10px;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(27, 42, 78, 0.06);
}

/* The blur lives on a pseudo-element, not .site-header itself — a
   backdrop-filter (like transform/filter) on .site-header would make it the
   containing block for any position:fixed descendant (the mobile nav
   drawer), breaking its viewport-relative top/right/bottom. */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(250, 246, 238, 0.82);
}

/* Compensates for .site-header being taken out of flow — kept in sync with
   the header's real rendered height via --header-height (see main.js). The
   88px fallback covers the moment before JS has measured it. */
main {
  padding-top: var(--header-height, 88px);
}

/* So an in-page anchor link (#section-one, etc.) doesn't land its target
   half-hidden under the fixed header. */
html {
  scroll-padding-top: var(--header-height, 88px);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  transition: padding-top 0.3s ease, padding-bottom 0.3s ease;
}

/* Header compacts slightly once the page has scrolled — toggled via
   .is-scrolled by main.js's initHeaderScroll(). */
.site-header.is-scrolled .header-inner {
  padding-top: 10px;
  padding-bottom: 10px;
}

.logo img {
  display: block;
  height: 28px;
  width: auto;
}

.nav {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav a {
  text-decoration: none;
}

.nav-cta {
  background: var(--color-main-1);
  color: var(--color-background) !important;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 13px;
  transition: background-color 0.25s ease;
}

.nav-cta:hover {
  background: var(--color-main-2);
}

/* Out of flow on desktop too — otherwise, even empty, it's still a flex
   item in .header-inner and throws off justify-content: space-between. */
.nav-overlay,
.nav-close {
  display: none;
}

/* Mobile nav: a full-height side drawer, not a top dropdown — slides in
   from the right and covers the full screen height (including over the
   header), with a dimmed backdrop behind it. Since it sits above the
   header (z-index), it carries its own close button rather than relying
   on the header's now-covered toggle button. */
@media (max-width: 1024px) {
  .nav-toggle {
    display: flex;
  }

  .nav-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 105;
    background: rgba(27, 42, 78, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
  }

  .nav-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 110;
    width: min(360px, 85vw);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 28px;
    background: var(--color-background);
    box-shadow: -12px 0 36px rgba(0, 0, 0, 0.12);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav.is-open {
    transform: translateX(0);
  }

  .nav-close {
    display: flex;
    align-self: flex-end;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--color-text);
    cursor: pointer;
  }

  .nav a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(27, 42, 78, 0.08);
    font-size: 18px;
  }

  .nav-cta {
    margin-top: 20px;
    justify-content: center;
    text-align: center;
    border-bottom: none;
  }
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */

/* HERO — full-bleed photo, content vertically centered. Sits behind the
   translucent fixed header (see §19), so it's pulled up by --header-height
   to reach the true top of the viewport. Content is centered in a box tall
   enough (padding + min-height) that it clears the header comfortably
   without needing padding-top to match --header-height exactly. */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 900px;
  display: flex;
  align-items: center;
  margin-top: calc(-1 * var(--header-height, 88px));
  padding: 220px 0 140px;
  overflow: hidden;
  color: var(--color-background);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: block;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: hero-zoom 20s ease-out forwards;
}

@keyframes hero-zoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.08);
  }
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 26, 51, 0.35) 0%, rgba(15, 26, 51, 0.15) 40%, rgba(15, 26, 51, 0.75) 100%);
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg-img {
    animation: none;
  }
}

.hero-title-wrap {
  max-width: 700px;
  margin-bottom: 36px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
  color: var(--color-background);
  opacity: 0.9;
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--color-main-2);
}

.hero h1 {
  font-size: clamp(52px, 8vw, 108px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  color: var(--color-background);
}

/* Softer accent than the usual terracotta em — reads better against a
   dark photo than it does on a light section background. */
.hero h1 em {
  color: #E8DCC4;
}

.hero-text-wrap {
  max-width: 480px;
}

.hero-lede {
  font-size: 19px;
  line-height: 1.55;
  color: rgba(250, 246, 238, 0.88);
  margin-bottom: 36px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-coords {
  position: absolute;
  z-index: 2;
  right: 10px;
  bottom: 40px;
  text-align: right;
  color: var(--color-background);
  opacity: 0.8;
}

.hero-coords i {
  margin-right: 6px;
  font-size: 16px;
  vertical-align: -3px;
}

.hero-coords div + div {
  margin-top: 4px;
}

@media (max-width: 767px) {
  .hero {
    padding-bottom: 60px;
  }

  .hero-coords {
    display: none;
  }
}

/* Thin strip of trust markers right under the hero — deliberately darker
   than the rest of the page and compact (its own small padding, not the
   section-level rhythm). */
.trust {
  background: #0F1A33;
  border-top: 1px solid rgba(232, 220, 196, 0.08);
}

.trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 60px;
  padding: 24px 0;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #E8DCC4;
  opacity: 0.65;
}

.trust-item::before {
  content: '\2726';
  color: var(--color-main-2);
}

/* ==========================================================================
   COLLECTION
   ========================================================================== */

.collection {
  background: var(--color-background);
  padding-top: 120px;
  padding-bottom: 120px;

  @media (max-width: 1360px) {
    padding-top: 60px;
    padding-bottom: 60px;
  }
}

.collection-eyebrow,
.collection-title,
.collection-sub {
  text-align: center;
}

.collection-sub {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.product-card {
  display: block;
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 18px;
  background: var(--color-background-2);
  transition: transform 0.4s ease;
}

.product-card:hover .product-media {
  transform: translateY(-6px);
}

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

.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: rgba(250, 246, 238, 0.92);
  color: var(--color-main-1);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 2px;
}

/* Hover reveal: weather/condition icons + a line on what the tent is
   built to handle. Sits over the image only, not the copy below it. */
.product-conditions {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  background: rgba(15, 26, 51, 0.85);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.product-card:hover .product-conditions {
  opacity: 1;
}

.product-conditions-icons {
  display: flex;
  gap: 18px;
  font-size: 24px;
  color: var(--color-background);
}

.product-conditions p {
  max-width: 220px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-background);
  opacity: 0.9;
}

.product-tag {
  margin-bottom: 6px;
}

.product-name {
  font-size: 22px;
  margin-bottom: 6px;
}

.product-desc {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 10px;
}

/* Coming soon: same card shape, no link, blurred/desaturated photo,
   muted copy, and something other than a price in the price slot. */
.product-card--soon {
  cursor: default;
}

.product-card--soon .product-media img {
  filter: grayscale(1);
}

.product-badge--soon {
  background: rgba(27, 42, 78, 0.85);
  color: var(--color-background);
}

.product-card--soon .product-name,
.product-card--soon .product-desc {
  opacity: 0.6;
}

/* ==========================================================================
   PATTERNS
   ========================================================================== */

.patterns {
  background: var(--color-background-2);
  padding-top: 120px;
  padding-bottom: 120px;

  @media (max-width: 1360px) {
    padding-top: 60px;
    padding-bottom: 60px;
  }
}

.patterns-eyebrow,
.patterns-title,
.patterns-sub {
  text-align: center;
}

.patterns-sub {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.patterns-swiper {
  padding: 10px 0 50px;
}

.pattern-card {
  text-align: center;
}

.pattern-swatch {
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid rgba(27, 42, 78, 0.08);
  box-shadow: 0 8px 24px rgba(27, 42, 78, 0.06);
  transition: transform 0.3s ease;
}

.pattern-card:hover .pattern-swatch {
  transform: translateY(-4px);
}

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

.pattern-name {
  font-size: 21px;
  margin-bottom: 4px;
}

.patterns-swiper .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: var(--color-main-1);
  opacity: 0.25;
  transition: width 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}

.patterns-swiper .swiper-pagination-bullet-active {
  width: 24px;
  opacity: 1;
  background: var(--color-main-2);
}

/* ==========================================================================
   HOW IT WORKS
   ========================================================================== */

.how {
  background: var(--color-background);
  padding-top: 120px;
  padding-bottom: 120px;

  @media (max-width: 1360px) {
    padding-top: 60px;
    padding-bottom: 60px;
  }
}

.how-eyebrow,
.how-title,
.how-sub {
  text-align: center;
}

.how-sub {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
}

@media (max-width: 800px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

.step-num {
  margin-bottom: 24px;
}

.step-icon {
  display: block;
  font-size: 48px;
  margin-bottom: 28px;
  color: var(--color-main-1);
}

.step h3 {
  font-size: 28px;
  margin-bottom: 12px;
}

/* ==========================================================================
   SHOWCASE
   ========================================================================== */

.showcase {
  background: var(--color-main-1);
  color: var(--color-background);
  padding-top: 120px;
  padding-bottom: 120px;
  overflow: hidden;

  @media (max-width: 1360px) {
    padding-top: 60px;
    padding-bottom: 60px;
  }
}

.showcase-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}

@media (max-width: 900px) {
  .showcase-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

.showcase-eyebrow {
  text-align: left;
  margin-bottom: 20px;
}

.showcase-title {
  color: var(--color-background);
  margin-bottom: 28px;
}

.showcase-title em {
  color: #E8DCC4;
}

.showcase-text p {
  color: rgba(250, 246, 238, 0.82);
  margin-bottom: 16px;
}

.showcase-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(232, 220, 196, 0.18);
}

.showcase-stat strong {
  display: block;
  font-family: var(--font-title);
  font-size: 32px;
  color: var(--color-background);
  margin-bottom: 6px;
}

.showcase-stat span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(232, 220, 196, 0.7);
}

.showcase-media {
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

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

/* ==========================================================================
   PRICING
   ========================================================================== */

.pricing {
  background: var(--color-background);
  padding-top: 120px;
  padding-bottom: 120px;

  @media (max-width: 1360px) {
    padding-top: 60px;
    padding-bottom: 60px;
  }
}

.pricing-eyebrow,
.pricing-title,
.pricing-sub {
  text-align: center;
}

.pricing-sub {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

@media (max-width: 900px) {
  .tiers {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.tier {
  display: flex;
  flex-direction: column;
  padding: 48px 36px;
  border-radius: 4px;
  border: 1px solid rgba(27, 42, 78, 0.1);
}

.tier-featured {
  background: var(--color-main-1);
  border-color: var(--color-main-1);
  color: var(--color-background);
}

.tier-flag {
  margin-bottom: 18px;
}

.tier-name {
  font-family: var(--font-title);
  font-size: 24px;
  margin-bottom: 12px;
}

.tier-price {
  font-family: var(--font-title);
  font-size: 42px;
  margin-bottom: 12px;
}

.tier-price small {
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 400;
  opacity: 0.6;
}

.tier-tag {
  margin-bottom: 30px;
  opacity: 0.75;
}

.tier-featured .tier-tag {
  color: rgba(250, 246, 238, 0.82);
  opacity: 1;
}

.tier-featured .tier-list li {
  color: var(--color-background);
}

.tier-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}

.tier-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}

.tier-list i {
  color: var(--color-main-2);
  font-size: 18px;
}

.tier .button {
  margin-top: auto;
  width: 100%;
  justify-content: center;
}

.pricing-note {
  text-align: center;
  margin-top: 48px;
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq {
  background: var(--color-main-1);
  color: var(--color-background);
  padding-top: 120px;
  padding-bottom: 120px;

  @media (max-width: 1360px) {
    padding-top: 60px;
    padding-bottom: 60px;
  }
}

.faq-eyebrow,
.faq-title,
.faq-sub {
  text-align: center;
}

.faq-title {
  color: var(--color-background);
}

.faq-sub {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(250, 246, 238, 0.82);
}

.accordion-wrapper {
  display: flex;
  flex-direction: column;
  row-gap: 18px;
  max-width: 860px;
  margin: 0 auto;
}

.accordion-item {
  border-radius: 4px;
  overflow: hidden;
}

.item-title-wrapper {
  height: 60px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: auto 20px;
  column-gap: 14px;
  align-items: center;
  background: var(--color-background);
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.item-title-wrapper span {
  color: var(--color-text);
}

.item-title-wrapper i {
  font-size: 20px;
  color: var(--color-main-2);
  transition: transform 0.25s ease, color 0.25s ease;
}

.item-description-wrapper {
  display: none;
  background: var(--color-background);
}

.item-content {
  padding: 12px 24px 28px;
}

.item-content p {
  color: var(--color-text);
  opacity: 0.75;
}

.accordion-item.active .item-title-wrapper {
  background: var(--color-main-2);
}

.accordion-item.active .item-title-wrapper span {
  color: var(--color-background);
}

.accordion-item.active .item-title-wrapper i {
  color: var(--color-background);
  transform: rotate(45deg);
}

/* ==========================================================================
   DESIGN YOURS
   ========================================================================== */

.design {
  background: var(--color-background);
  padding-top: 120px;
  padding-bottom: 120px;

  @media (max-width: 1360px) {
    padding-top: 60px;
    padding-bottom: 60px;
  }
}

.design-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 80px;
  align-items: center;
}

@media (max-width: 900px) {
  .design-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

.design-eyebrow {
  text-align: left;
  margin-bottom: 20px;
}

.design-title {
  margin-bottom: 20px;
}

.design-sub {
  opacity: 0.8;
  margin-bottom: 36px;
}

.design-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.design-swatch {
  width: 64px;
  height: 64px;
  padding: 0;
  border-radius: 4px;
  overflow: hidden;
  background: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

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

.design-swatch.active {
  border-color: var(--color-main-2);
}

.design-swatch-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 2px dashed rgba(27, 42, 78, 0.25);
}

.design-swatch-upload i {
  font-size: 18px;
  color: var(--color-main-2);
}

.design-swatch-upload span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text);
}

.design-swatch-upload.active {
  border-style: solid;
  border-color: var(--color-main-2);
}

.design-tent-canvas {
  display: block;
  width: 100%;
  height: auto;
  max-width: 520px;
  margin: 0 auto;
  border-radius: 4px;
  box-shadow: 0 24px 64px rgba(27, 42, 78, 0.18);
  background: var(--color-background-2);
}

.design-preview-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text);
  opacity: 0.7;
}

.design-preview-label i {
  color: var(--color-main-2);
}

/* ==========================================================================
   WORKSHOP
   ========================================================================== */

.workshop {
  background: var(--color-background-2);
  padding-top: 120px;
  padding-bottom: 120px;
  overflow: hidden;

  @media (max-width: 1360px) {
    padding-top: 60px;
    padding-bottom: 60px;
  }
}

.workshop-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}

@media (max-width: 900px) {
  .workshop-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .workshop-media {
    order: -1;
  }
}

.workshop-eyebrow {
  text-align: left;
  margin-bottom: 20px;
}

.workshop-title {
  margin-bottom: 28px;
}

.workshop-text p {
  opacity: 0.8;
  margin-bottom: 16px;
}

.workshop-stats {
  display: flex;
  gap: 40px;
  margin-top: 24px;
  margin-bottom: 36px;
  padding-top: 30px;
  border-top: 1px solid rgba(27, 42, 78, 0.1);
}

.workshop-stat strong {
  display: block;
  font-family: var(--font-title);
  font-size: 32px;
  color: var(--color-text);
  margin-bottom: 6px;
}

.workshop-stat span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text);
  opacity: 0.6;
}

.workshop-media {
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  overflow: hidden;
  background: var(--color-background);
  box-shadow: 0 24px 64px rgba(27, 42, 78, 0.18);
}

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

/* ==========================================================================
   CONTACT CTA
   ========================================================================== */

.contact-cta {
  background: var(--color-main-2);
  padding-top: 120px;
  padding-bottom: 120px;

  @media (max-width: 1360px) {
    padding-top: 60px;
    padding-bottom: 60px;
  }
}

.contact-cta-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 80px;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-cta-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

.contact-cta-eyebrow {
  text-align: left;
  color: var(--color-background);
  margin-bottom: 20px;
}

.contact-cta-title {
  color: var(--color-background);
  margin-bottom: 20px;
}

.contact-cta-title em {
  color: var(--color-main-1);
}

.contact-cta-text p {
  color: rgba(250, 246, 238, 0.85);
  margin-bottom: 30px;
}

.contact-cta-items {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-cta-email,
.contact-cta-email i {
  color: var(--color-text);
}

.contact-cta .contact-form-box {
  max-width: none;
  margin: 0;
}

.contact-cta .button.btn-primary {
  background: var(--color-main-1);
  border-color: var(--color-main-1);
}

.contact-cta .form-loading {
  color: var(--color-background);
}

.demo-section {
  padding-top: 120px;
  padding-bottom: 120px;

  @media (max-width: 1360px) {
    padding-top: 60px;
    padding-bottom: 60px;
  }
}

.demo-section + .demo-section {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Legal pages (privacy policy, cookies policy, terms and conditions) */
.page-hero {
  background: var(--color-background-2);
  padding-top: 60px;
  padding-bottom: 60px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.breadcrumbs a {
  color: var(--color-text);
  opacity: 0.6;
  text-decoration: none;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.breadcrumbs a:hover {
  opacity: 1;
  color: var(--color-main-2);
}

.breadcrumbs i {
  font-size: 14px;
  opacity: 0.35;
}

.breadcrumbs span {
  opacity: 0.6;
}

.page-hero-title {
  font-size: 64px;
  margin: 0;

  @media (max-width: 1024px) {
    font-size: 40px;
  }
}

.legal-page .section-inner {
  max-width: 760px;
}

.legal-page h2,
.legal-page h3,
.legal-page h4 {
  margin-top: 36px;
  margin-bottom: 10px;
}

.legal-page p {
  margin-bottom: 16px;
}

.legal-page ul {
  margin-bottom: 16px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background: var(--color-main-1);
  color: rgba(250, 246, 238, 0.7);
  padding: 60px 0 24px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
}

.footer-cta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 20px 36px;
  padding-bottom: 42px;
  margin-bottom: 42px;
  border-bottom: 1px solid rgba(232, 220, 196, 0.15);
}

.footer-cta-title,
.footer-cta-email {
  font-family: var(--font-title);
  font-size: 40px;
  color: var(--color-background);

  @media (max-width: 767px) {
    font-size: 28px;
  }
}

.footer-cta-email {
  color: var(--color-main-2);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-cta-email:hover {
  color: var(--color-background);
}

/* Footer top: logo + description, then any number of nav/contact columns */
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 42px;
  padding-bottom: 80px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(232, 220, 196, 0.15);
}

.footer-col-brand .logo {
  display: inline-block;
  margin-bottom: 12px;
}

.footer-description {
  max-width: 250px;
  color: rgba(250, 246, 238, 0.7);
}

.footer-col h3 {
  font-size: 16px;
  color: var(--color-background);
  margin-bottom: 12px;
}

.footer-nav,
.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 0;
  list-style: none;
}

.footer-nav a,
.footer-contacts a {
  text-decoration: none;
}

.footer-nav .link-arrow,
.footer-contacts .contact-item,
.footer-nav .link-arrow span,
.footer-contacts .contact-item span {
  color: rgba(250, 246, 238, 0.7);
}

/* Footer bottom: copyright (left) + legal pages (right) */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  /* Clears the fixed .scroll-top-btn (bottom-right) so it doesn't sit on
     top of the legal nav links once the container is close to viewport
     width (tablet and below). */
  padding-right: 60px;
}

.footer-bottom p,
.footer-bottom p .current-year {
  color: rgba(250, 246, 238, 0.5);
}

.legal-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.legal-nav a {
  color: rgba(250, 246, 238, 0.5);
  text-decoration: none;
}

@media (max-width: 767px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* ==========================================================================
   COOKIE CONSENT
   ========================================================================== */

.accept-cookies-block {
  position: fixed;
  left: 10px;
  bottom: 10px;
  display: flex;
  max-width: 750px;
  border-radius: 4px;
  padding: 30px;
  flex: 1 0 0;
  background: var(--color-main-1);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
  z-index: 999;
}

.accept-cookies-block .content-inner {
  display: flex;
  gap: 24px;
  align-items: center;
}

.accept-cookies-block .content-text p {
  color: var(--color-background);
  font-size: 14px;
  font-weight: 400;
  line-height: 160%;
}

.accept-cookies-block .content-text a {
  color: var(--color-background);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.accept-cookies-block .content-inner .button {
  height: 42px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  background: var(--color-background);
  color: var(--color-main-1);
  cursor: pointer;
  transition: 0.3s;
}

.accept-cookies-block .content-inner .button:hover {
  background: var(--color-background-2);
}

@media (max-width: 450px) {
  .accept-cookies-block {
    max-width: calc(100vw - 20px);
  }

  .accept-cookies-block .content-inner {
    flex-direction: column;
  }

  .accept-cookies-block .content-inner p {
    text-align: center;
  }
}