/* TerraHaze.com — mirror of the live "Purple Lotus" Shopify theme */

:root {
  --black: #050508;
  --panel: #0e0a12;
  --purple: #6f2da8;
  --purple-hover: #8e44c8;
  --gold: #c49a5a;
  --gold-hover: #e5c07b;
  --text: #f4ecff;
  --border: #4c2b69;
  --cream: #f6f1e8;
  --cream-panel: #e8dfd2;
  --ink: #171218;
  --ink-soft: #4a4048;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: "Assistant", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--black);
  color: var(--text);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: "Merriweather Sans", Georgia, serif;
  font-weight: 700;
  margin: 0 0 0.5em;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1em;
}

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

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

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 4rem);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--black);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
  gap: 24px;
}

.logo {
  flex-shrink: 0;
}

.logo img {
  height: 60px;
  width: auto;
  max-width: min(280px, 40vw);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.925rem;
  font-weight: 600;
}

.nav-links a {
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  border-bottom-color: var(--gold);
  color: var(--gold);
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 1.05rem;
  color: var(--text);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--text);
}

@media (max-width: 760px) {
  .logo img {
    height: 44px;
    max-width: 210px;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--black);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid var(--border);
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 14px 24px;
    width: 100%;
    border-bottom: 1px solid var(--border);
  }

  .nav-toggle {
    display: block;
  }
}

/* Hero (mirrors th-home__terra) */

.hero {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  height: clamp(480px, 68svh, 720px);
  min-height: 0;
  background: #171218;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(5, 4, 6, 0.72), transparent 38%, transparent 62%, rgba(5, 4, 6, 0.35));
  pointer-events: none;
}

.hero h1 {
  position: absolute;
  z-index: 1;
  top: clamp(1.25rem, 4vw, 4rem);
  left: 50%;
  width: min(90%, 1050px);
  margin: 0;
  transform: translateX(-50%);
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-align: center;
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.55);
}

.hero-cta {
  position: absolute;
  z-index: 2;
  left: clamp(1.25rem, 4vw, 4rem);
  bottom: clamp(1.5rem, 5vh, 4rem);
  width: max-content;
  max-width: calc(100% - 2.5rem);
  padding: 0.95rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  background: rgba(25, 15, 29, 0.86);
  color: #fff;
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  font-weight: 800;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.hero-cta:hover {
  background: var(--purple);
  border-color: var(--gold);
}

.statement {
  background: var(--cream);
  color: var(--ink);
  margin: 0;
  padding: 1.25rem 0 clamp(3rem, 7vw, 5rem);
  font-size: 1rem;
  text-align: center;
}

/* Content sections sit on cream, like the real theme */

.content {
  background: var(--cream);
  color: var(--ink);
}

.section-inner {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 4rem) clamp(4rem, 8vw, 7rem);
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--purple);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2.4rem;
}

.section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 3.2vw, 2.5rem);
  line-height: 1.1;
}

.section-heading > p:last-child {
  margin: 1rem 0 0;
  font-size: 1rem;
}

/* Ladies grid */

.ladies {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.85rem, 1.7vw, 1.35rem);
}

.ladies > *,
.living > *,
.grid > * {
  min-width: 0;
}

.lady {
  overflow: hidden;
  border: 1px solid rgba(23, 18, 24, 0.12);
  border-radius: 1.25rem;
  background: #fff;
  color: var(--ink);
}

.lady img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
}

.lady .lady-body {
  padding: 0.85rem 1rem 1.05rem;
}

.lady .lady-body p {
  margin: 0 0 0.35rem;
  color: var(--purple);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lady .lady-body h3 {
  margin: 0;
  font-size: 1.0625rem;
}

.lady.available {
  box-shadow: 0 0 0 2px var(--gold);
}

/* Living panel */

.living {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(300px, 1.2fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  margin-top: clamp(4rem, 9vw, 8rem);
  padding: clamp(1.2rem, 3vw, 2.5rem);
  border-radius: 2rem;
  background: var(--cream-panel);
}

.living img {
  width: 100%;
  max-height: 560px;
  border-radius: 1.2rem;
  object-fit: contain;
}

.living-copy {
  padding: 1rem clamp(0.25rem, 3vw, 2rem);
}

.living-copy > p:not(.eyebrow) {
  max-width: 540px;
  margin: 1.25rem 0 1.7rem;
  font-size: 1rem;
  line-height: 1.6;
}

.living-copy > a {
  display: inline-block;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
}

@media (max-width: 820px) {
  .hero {
    height: clamp(440px, 64svh, 620px);
  }
  .ladies {
    grid-template-columns: 1fr 1fr;
  }
  .living {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .ladies {
    grid-template-columns: 1fr;
  }
  .hero-cta {
    bottom: 2rem;
  }

  .hero {
    height: clamp(400px, 60svh, 540px);
  }

  .hero h1 {
    top: 1.5rem;
    font-size: clamp(1.8rem, 9vw, 2.35rem);
  }
}

/* Buttons (shop/about/contact pages) */

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--purple);
  color: #fff;
  border: 1px solid var(--gold);
}

.btn-primary:hover {
  background: var(--purple-hover);
  border-color: var(--gold-hover);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-small {
  padding: 10px 20px;
  font-size: 0.85rem;
}

/* Page hero (non-home pages) */

.page-hero {
  padding: 48px 0 36px;
  text-align: center;
  background: var(--black);
}

.page-hero h1 {
  font-size: clamp(1.9rem, 3.5vw, 2.4rem);
  color: #fff;
}

.page-hero p.lede {
  max-width: 560px;
  margin: 14px auto 0;
  font-size: 1.05rem;
  color: #cabfd6;
}

/* Product grid (shop page) */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.card {
  background: var(--panel);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: relative;
}

.card .thumb {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #1a1023;
}

.card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card .body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card h3 {
  font-size: 1.1rem;
  color: #fff;
}

.card .desc {
  color: #cabfd6;
  font-size: 0.92rem;
  flex: 1;
}

.card .price {
  font-weight: 700;
  color: var(--gold);
  font-size: 1.05rem;
}

.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--purple);
  color: #fff;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  font-weight: 700;
  z-index: 1;
}

.badge.soon {
  background: #3a2d42;
  color: #cabfd6;
}

section {
  padding: 48px 0;
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

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

.about-grid .thumb {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.about-grid h2 {
  color: #fff;
}

.about-grid p {
  color: #cabfd6;
}

/* Contact */

.contact-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 36px);
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.contact-card h2 {
  color: #fff;
}

.contact-card p {
  color: #cabfd6;
}

.contact-card .email {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
  margin: 10px 0 24px;
  display: inline-block;
}

/* Strip / CTA band */

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

.strip .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 40px 0;
  text-align: left;
}

.strip h2 {
  font-size: 1.5rem;
  margin: 0 0 6px;
  color: #fff;
}

.strip p {
  margin: 0;
  color: #cabfd6;
}

/* Footer */

.site-footer {
  background: var(--black);
  color: #cabfd6;
  padding: 40px 0;
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer a:hover {
  color: var(--gold);
}

.site-footer .foot-links {
  display: flex;
  gap: 20px;
}

/* Compact Shopify mirror: one-quarter of the previous vertical scale. */
@media (min-width: 761px) {
  .site-header .wrap { min-height: 0; padding-top: 3px; padding-bottom: 3px; gap: 10px; }
  .logo img { height: 24px; max-width: 120px; }
  .nav-links { gap: 12px; font-size: 0.72rem; }
  .nav-links a { padding: 2px 1px; }
  .header-icons { gap: 8px; font-size: 0.78rem; }
  .hero { height: clamp(120px, 17svh, 180px); }
  .hero h1 { top: clamp(0.4rem, 1vw, 0.8rem); font-size: clamp(1rem, 1.35vw, 1.4rem); }
  .hero-cta { left: clamp(0.75rem, 2vw, 2rem); bottom: clamp(0.5rem, 1.3vh, 0.9rem); padding: 0.4rem 0.72rem; font-size: 0.72rem; }
  .statement { padding: 0.35rem 0 0.75rem; font-size: 0.72rem; }
  .section-inner { padding-top: 0; padding-bottom: 1.5rem; }
  .section-heading { margin-bottom: 0.75rem; }
  .eyebrow { margin-bottom: 0.25rem; font-size: 0.62rem; }
  .section-heading h2, .living-copy h2 { font-size: 1.15rem; }
  .section-heading > p:last-child, .living-copy p, .living-copy a { margin-top: 0.25rem; font-size: 0.72rem; }
  .ladies { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.55rem; }
  .lady { border-radius: 0.45rem; }
  .lady img { height: 128px; aspect-ratio: auto; object-fit: cover; }
  .lady .lady-body { padding: 0.35rem 0.45rem 0.45rem; }
  .lady .lady-body p { margin-bottom: 0.15rem; font-size: 0.6rem; }
  .lady .lady-body h3 { font-size: 0.75rem; }
  .living { margin-top: 1.25rem; min-height: 0; }
  .living > img { max-height: 145px; object-fit: cover; }
  .living-copy { padding: 0.75rem; }
  .site-footer { padding: 0; font-size: 0.68rem; }
  .site-footer .wrap { padding-top: 0.5rem; padding-bottom: 0.5rem; }
}
