/* ================================================================
   Mahatma's Mirror — styles.css
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Jost:wght@300;400;500&display=swap');

/* ── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --charcoal:   #0f0e0d;
  --copper:     #b87333;
  --copper-lt:  #d4914a;
  --gold:       #c8a96e;
  --ivory:      #f0ead6;
  --ivory-dim:  #c9bfa8;
  --muted:      #5a5248;
  --card-bg:    #181614;
  --border:     rgba(184, 115, 51, 0.35);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--charcoal);
  color: var(--ivory);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--copper);
  text-decoration: none;
}

/* ── Typography ───────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  line-height: 1.15;
  color: var(--ivory);
}

h1 { font-size: clamp(3rem, 7vw, 6rem); letter-spacing: 0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: 0.03em; }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 400; }
h4 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 400; }

p {
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  color: var(--ivory-dim);
  max-width: 62ch;
}

/* ── Layout Utilities ─────────────────────────────────────────── */
.container {
  width: min(1160px, 92vw);
  margin-inline: auto;
}

.section {
  padding-block: clamp(5rem, 10vw, 9rem);
}

.copper-rule {
  width: 3rem;
  height: 1px;
  background: var(--copper);
  margin-block: 1.5rem;
}

.label {
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper);
}

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: 'Jost', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 1rem 2.4rem;
  border: 1px solid var(--copper);
  color: var(--ivory);
  background: transparent;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.btn:hover {
  background: var(--copper);
  color: var(--charcoal);
}

.btn-filled {
  background: var(--copper);
  color: var(--charcoal);
  border-color: var(--copper);
}

.btn-filled:hover {
  background: var(--copper-lt);
  border-color: var(--copper-lt);
}

/* ── Navigation ───────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  background: linear-gradient(to bottom, rgba(15,14,13,0.85), transparent);
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ivory);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  transition: color 0.25s;
}

.nav-links a:hover {
  color: var(--copper);
}

/* ── Hero ─────────────────────────────────────────────────────── */
#hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background:
    /* subtle vignette */
    radial-gradient(ellipse at center, transparent 40%, rgba(15,14,13,0.7) 100%),
    /* copper-charcoal gradient — hero-bg.jpg will overlay this later */
    linear-gradient(160deg,
      #0f0e0d 0%,
      #1a1410 25%,
      #251a10 50%,
      #1a1208 75%,
      #0f0e0d 100%);
  overflow: hidden;
}

/* placeholder for future hero-bg.jpg */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('hero-bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  z-index: 0;
}

#hero > * {
  position: relative;
  z-index: 1;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding-inline: 1rem;
}

.hero-overline {
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--copper);
}

.hero-headline {
  color: var(--ivory);
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.01em;
}

.hero-sub {
  font-family: 'Jost', sans-serif;
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--ivory-dim);
  max-width: 52ch;
  text-align: center;
}

.hero-cta {
  margin-top: 0.75rem;
}

.scroll-arrow {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: float 2.8s ease-in-out infinite;
}

.scroll-arrow svg {
  width: 16px;
  height: 16px;
  stroke: var(--copper);
  opacity: 0.6;
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ── Section 2: The Chamber ───────────────────────────────────── */
#chamber {
  background: #100f0e;
}

.chamber-intro {
  max-width: 70ch;
  margin-bottom: 5rem;
}

.chamber-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.chamber-row {
  display: contents;
}

.chamber-text {
  padding: clamp(2.5rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
}

.chamber-image {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #1c1408 0%, #2a1e0c 40%, #3a2810 70%, #1c1408 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.chamber-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(184,115,51,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 70%, rgba(200,169,110,0.08) 0%, transparent 50%);
}

.img-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--muted);
  letter-spacing: 0.08em;
  position: relative;
  z-index: 1;
}

/* alternate: image left, text right */
.chamber-grid > .chamber-row:nth-child(odd) .chamber-image {
  order: -1;
}

/* specs list */
.spec-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.spec-list li {
  font-size: 0.9rem;
  color: var(--ivory-dim);
  padding-left: 1.2rem;
  position: relative;
}

.spec-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--copper);
}

/* ── Section 3: Science + Tradition ──────────────────────────── */
#science {
  background: var(--charcoal);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.sci-trad-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0 clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.copper-divider {
  background: var(--copper);
  opacity: 0.4;
  align-self: stretch;
  margin-top: 1rem;
}

.sci-col,
.trad-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sci-col p,
.trad-col p {
  max-width: unset;
}

/* ── Section 4: The Experience ────────────────────────────────── */
#experience {
  background: #0d0c0b;
}

.experience-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.exp-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.exp-text p {
  max-width: unset;
}

.practice-steps {
  list-style: none;
  counter-reset: steps;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.practice-steps li {
  counter-increment: steps;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--ivory-dim);
}

.practice-steps li::before {
  content: counter(steps, upper-roman);
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  color: var(--copper);
  opacity: 0.7;
  min-width: 2rem;
  padding-top: 0.1rem;
}

.exp-quote {
  border-left: 2px solid var(--copper);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: rgba(184,115,51,0.04);
}

.exp-quote blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.5;
  color: var(--gold);
}

.exp-quote cite {
  display: block;
  margin-top: 1rem;
  font-size: 0.75rem;
  font-style: normal;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Section 5: The Build ─────────────────────────────────────── */
#build {
  background: #100f0e;
  border-top: 1px solid var(--border);
}

.build-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.build-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.build-text p {
  max-width: unset;
}

.build-image {
  aspect-ratio: 5/4;
  background: linear-gradient(145deg, #181208 0%, #261c0e 50%, #1a1208 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.build-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 40% 50%, rgba(184,115,51,0.1) 0%, transparent 65%);
}

.materials-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.materials-list li {
  font-size: 0.88rem;
  color: var(--ivory-dim);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.materials-list li::before {
  content: '';
  display: inline-block;
  width: 1.5rem;
  height: 1px;
  background: var(--copper);
  opacity: 0.6;
  flex-shrink: 0;
}

.craftsman-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ivory);
}

.craftsman-title {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  opacity: 0.75;
}

/* ── Section 6: Inquiry Form ──────────────────────────────────── */
#inquiry {
  background: var(--charcoal);
  border-top: 1px solid var(--border);
}

.inquiry-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}

.inquiry-copy {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: 0.5rem;
}

.inquiry-copy p {
  max-width: unset;
}

.price-note {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--gold);
  line-height: 1.4;
}

.form-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: clamp(2rem, 4vw, 3rem);
}

.form-card form {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-group label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper);
  opacity: 0.85;
}

.form-group input,
.form-group textarea {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(184,115,51,0.2);
  color: var(--ivory);
  font-family: 'Jost', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  padding: 0.8rem 1rem;
  outline: none;
  transition: border-color 0.25s;
  resize: vertical;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(184,115,51,0.6);
}

.form-group textarea {
  min-height: 110px;
}

.form-submit {
  margin-top: 0.5rem;
}

.form-submit .btn-filled {
  width: 100%;
  text-align: center;
  padding: 1.1rem;
  font-size: 0.78rem;
}

/* ── Footer ───────────────────────────────────────────────────── */
footer {
  padding-block: 2.5rem;
  border-top: 1px solid rgba(184,115,51,0.15);
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.footer-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--ivory-dim);
}

.footer-meta {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.footer-meta a {
  color: var(--muted);
  transition: color 0.2s;
}

.footer-meta a:hover {
  color: var(--copper);
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 860px) {
  .nav-links {
    display: none;
  }

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

  /* reset alternating order on mobile */
  .chamber-grid > .chamber-row:nth-child(odd) .chamber-image {
    order: 0;
  }

  .chamber-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .chamber-image {
    aspect-ratio: 16/7;
  }

  .sci-trad-grid {
    grid-template-columns: 1fr;
  }

  .copper-divider {
    display: none;
  }

  .experience-inner,
  .build-inner,
  .inquiry-inner {
    grid-template-columns: 1fr;
  }

  .inquiry-inner {
    gap: 2.5rem;
  }
}

@media (max-width: 540px) {
  .hero-headline {
    font-size: clamp(2.8rem, 12vw, 4rem);
  }

  .chamber-text {
    padding: 2rem 1rem;
  }

  .form-card {
    padding: 1.5rem 1.25rem;
  }
}
