/* SPACEUTICS — homepage */

:root {
  --color-ink: #3d3532;
  --color-ink-muted: #5c534f;
  --color-cream: #faf8f5;
  --color-white: #ffffff;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Montserrat", system-ui, sans-serif;
  --header-height: 5.5rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  /* Shared horizontal rhythm: text + inset sections align to the same margins */
  --page-gutter: clamp(1.25rem, 5vw, 3rem);
  --page-max: 120rem;
  /* Extra inset for hero copy (beyond global gutter) */
  --hero-text-indent: clamp(2.25rem, 14vw, 12rem);
  /* Showcase: wider side inset + space between cards + below hero */
  --showcase-gutter: clamp(2rem, 9vw, 6.5rem);
  --showcase-card-gap: clamp(1.5rem, 3.5vw, 3rem);
  --showcase-after-hero: clamp(2.5rem, 6vw, 5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 400;
  color: var(--color-ink);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  opacity: 0.75;
}

/* —— Header —— */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid rgba(61, 53, 50, 0.06);
}

.header-inner {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 1.25rem var(--page-gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-height);
}

.logo-link {
  grid-column: 2;
  justify-self: center;
  display: flex;
  align-items: center;
}

.logo-link img {
  height: 80px;
  width: auto;
}

.site-nav {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
}

.nav-account,
.nav-cart {
  display: flex;
  align-items: center;
  color: var(--color-ink-muted);
}

.nav-account svg,
.nav-cart svg {
  width: 1.375rem;
  height: 1.375rem;
}

/* —— Hero —— */

.hero {
  position: relative;
  width: 100%;
  min-height: min(92vh, 750px);
  max-height: 750px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #ebe6e1;
  background-image: url("../img/hero.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 76% center;
}

/*
Carousel — restore with index.php hero panes, dots, and script.

.hero__pane {
  position: absolute;
  inset: 0;
  background-image: url("../img/hero.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: var(--hero-pos, 78% center);
  opacity: 0;
  transition: opacity 1.1s var(--ease-out);
  pointer-events: none;
}

.hero__pane.is-active {
  opacity: 1;
}

.hero__dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 1.75rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.65rem;
  align-items: center;
}

.hero__dot {
  width: 0.45rem;
  height: 0.45rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: background 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.hero__dot[aria-current="true"] {
  background: var(--color-white);
  transform: scale(1.15);
}

.hero__dot:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .hero__pane {
    transition: none;
  }
}
*/

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(62, 52, 48, 0.42) 0%,
    rgba(62, 52, 48, 0.18) 45%,
    rgba(62, 52, 48, 0.05) 100%
  );
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 4rem var(--page-gutter) 5rem;
  padding-left: calc(var(--page-gutter) + var(--hero-text-indent));
}

.hero__content {
  max-width: 28rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.625rem, 5.5vw, 4rem);
  line-height: 1.12;
  letter-spacing: 0.02em;
  color: var(--color-white);
  text-shadow: 0 1px 2rem rgba(0, 0, 0, 0.2);
}

.hero__sub {
  margin: 0 0 2rem;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.055em;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.95);
  max-width: 24rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0 2.5rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out),
    background 0.25s var(--ease-out), color 0.25s var(--ease-out);
}

.btn--solid {
  background: var(--color-white);
  color: var(--color-ink);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.btn--solid:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  opacity: 1;
}

.btn--ghost {
  background: transparent;
  color: var(--color-ink);
  border: 1px solid rgba(61, 53, 50, 0.35);
  box-shadow: none;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(61, 53, 50, 0.45);
  opacity: 1;
}

/* —— Product showcase —— */

.showcase {
  margin-top: var(--showcase-after-hero);
  padding: 0;
  background: var(--color-cream);
}

.showcase-inner {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--showcase-gutter);
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--showcase-card-gap);
  width: 100%;
}

.showcase-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--color-white);
}

.showcase-card__media {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #ebe6e1;
}

.showcase-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.showcase-card__body {
  padding: 2.5rem 1.75rem 3rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.showcase-card h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.75rem, 2.75vw, 2.125rem);
  letter-spacing: 0.03em;
  color: var(--color-ink);
}

.showcase-card p {
  margin: 0 0 1.75rem;
  font-size: 0.9375rem;
  letter-spacing: 0.045em;
  color: var(--color-ink-muted);
  line-height: 1.7;
}

/* —— Essence —— */

.essence {
  position: relative;
  width: 100%;
  min-height: min(85vh, 44rem);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.essence__bg {
  position: absolute;
  inset: 0;
  background-image: url("../img/essence.jpg");
  background-size: cover;
  background-position: center;
}

.essence__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(48, 40, 38, 0.55) 0%,
    rgba(48, 40, 38, 0.35) 42%,
    rgba(48, 40, 38, 0.15) 100%
  );
}

.essence__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 4rem var(--page-gutter);
  padding-left: calc(var(--page-gutter) + var(--hero-text-indent));
}

.essence__content {
  max-width: 34rem;
}

.essence h2 {
  margin: 0 0 1.25rem;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--color-white);
}

.essence p {
  margin: 0 0 2rem;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.035em;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.92);
}

/* —— Footer spacer / minimal —— */

.site-footer {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 2rem var(--page-gutter);
  text-align: center;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(61, 53, 50, 0.45);
  background: var(--color-white);
}

/* —— Responsive —— */

@media (max-width: 768px) {
  .header-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    justify-items: center;
    text-align: center;
    min-height: unset;
  }

  .logo-link {
    grid-column: 1;
    grid-row: 1;
  }

  .site-nav {
    grid-column: 1;
    grid-row: 2;
    justify-self: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.25rem;
  }

  .site-nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.25rem;
  }

  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .hero__inner {
    padding-top: 3rem;
  }

  .hero__bg {
    background-position: 70% center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}
