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

:root {
  --bg: #0f0e0d;
  --bg-elevated: #1a1816;
  --bg-soft: #221f1c;
  --surface: #2a2622;
  --border: #3a342f;
  --text: #f5f0eb;
  --text-muted: #a89f96;
  --accent: #c9a87c;
  --accent-soft: #e8d5b7;
  --accent-dark: #a88b5e;
  --success: #7d9b76;
  --radius: 16px;
  --radius-sm: 10px;
  --nav-height: 72px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== Typography ===== */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 6vw, 2.75rem); }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }

.eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 32ch;
  margin: 1rem 0 1.75rem;
}

/* ===== Layout ===== */
#app {
  padding-bottom: calc(var(--nav-height) + var(--safe-bottom) + 24px);
  min-height: 100dvh;
}

.page {
  display: none;
  animation: fadeIn 0.35s ease;
}

.page.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.section {
  padding: 2.5rem 1.25rem;
}

.section.soft {
  background: var(--bg-soft);
}

.section-title {
  margin-bottom: 1.5rem;
  color: var(--text);
}

.page-header {
  padding: 2rem 1.25rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.page-header p {
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

/* ===== Hero ===== */
.hero {
  padding: 2.5rem 1.25rem 2.5rem;
  background: 
    radial-gradient(ellipse at 30% 20%, rgba(201, 168, 124, 0.12) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.hero-logo {
  margin-bottom: 1.5rem;
  text-align: center;
}

.hero-logo .logo-img {
  max-height: 110px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.hero-content {
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
}

.hero-content .subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* ===== Cards & Grids ===== */
.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

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

.info-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.card-icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.info-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.info-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Ritual */
.ritual-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.ritual-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.ritual-item .num {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--accent);
  min-width: 2rem;
}

.ritual-item strong {
  display: block;
  margin-bottom: 0.2rem;
}

.ritual-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* CTA */
.cta-card {
  background: linear-gradient(145deg, var(--surface), var(--bg-elevated));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
}

.cta-card h2 {
  margin-bottom: 0.5rem;
}

.cta-card p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* ===== Buttons ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #1a1510;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.9rem 1.6rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover,
.btn-primary:active {
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.btn-primary.full-width {
  width: 100%;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--accent);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.75rem 1.4rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  cursor: pointer;
}

.btn-small {
  background: var(--accent);
  color: #1a1510;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.4rem 0.9rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
}

.btn-text {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
}

/* ===== Bottom Nav ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--nav-height) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: rgba(15, 14, 13, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 100;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.4rem 0.5rem;
  min-width: 56px;
  transition: color 0.2s;
}

.nav-item svg {
  width: 22px;
  height: 22px;
}

.nav-item.active {
  color: var(--accent);
}

/* ===== Quiz ===== */
.quiz-container {
  padding: 1.5rem 1.25rem 2rem;
}

.quiz-question {
  margin-bottom: 2rem;
}

.quiz-question h3 {
  margin-bottom: 1rem;
  font-size: 1.15rem;
}

.option-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.option {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  color: var(--text);
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.option:hover,
.option.selected {
  border-color: var(--accent);
  background: rgba(201, 168, 124, 0.08);
}

.quiz-progress {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  margin-bottom: 1.75rem;
  overflow: hidden;
}

.quiz-progress-bar {
  height: 100%;
  background: var(--accent);
  transition: width 0.3s ease;
}

.quiz-results {
  padding: 1.5rem 1.25rem 3rem;
}

.results-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  margin-bottom: 1.5rem;
}

.results-card h2 {
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.results-card p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.recommendation-list {
  list-style: none;
  margin-top: 1rem;
}

.recommendation-list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

.recommendation-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.hidden {
  display: none !important;
}

/* ===== Tips ===== */
.tips-list {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.tip-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.25rem;
}

.tip-tag {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.6rem;
  font-weight: 500;
}

.tip-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

.tip-card p {
  color: var(--text-muted);
  font-size: 0.925rem;
}

/* ===== Styles Gallery ===== */
.styles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 1.25rem;
}

.style-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.style-placeholder {
  aspect-ratio: 1;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  color: var(--accent-soft);
  font-family: var(--font-serif);
  font-size: 1.1rem;
}

.style-card h3 {
  padding: 0.85rem 0.9rem 0.25rem;
  font-size: 1rem;
}

.style-card p {
  padding: 0 0.9rem 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.note-card {
  margin: 0 1.25rem 2rem;
  padding: 1.25rem;
  background: var(--bg-soft);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.note-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ===== Booking ===== */
.booking-form {
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

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

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.booking-success {
  padding: 3rem 1.5rem;
  text-align: center;
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(125, 155, 118, 0.2);
  color: var(--success);
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.booking-success h2 {
  margin-bottom: 0.5rem;
}

.booking-success p {
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.contact-card {
  margin: 0 1.25rem 2rem;
  padding: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.contact-card h3 {
  margin-bottom: 0.4rem;
}

.contact-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.contact-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
}

.contact-link:hover {
  border-color: var(--accent);
}

/* ===== Install Banner ===== */
.install-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1rem;
  z-index: 200;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.install-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.install-content span {
  flex: 1;
}

/* ===== Utilities ===== */
@media (min-width: 600px) {
  .hero, .section, .page-header, .quiz-container, .tips-list, .styles-grid, .booking-form, .contact-card, .note-card {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }

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


/* ===== Signature Services ===== */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.service-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.15rem;
}

.service-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
  color: var(--accent-soft);
}

.service-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.services-note {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}

.contact-card .handle {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.02em;
}


.product-cta {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
}


/* Product cards with photos */
.product-card {
  padding: 0;
  overflow: hidden;
}

.product-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  background: var(--surface);
}

.product-body {
  padding: 1.15rem 1.15rem 1.25rem;
}

.product-body h3 {
  margin-bottom: 0.35rem;
}

.product-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
}


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