/* 
  TaulTech Industry Concept — Serene (Boutique Head Spa)
  Design System: Organic Sanctuary
  Location Focus: Los Angeles, CA
  Refinement Round 2: 390px Viewport Fitting & Background Inert Modal
*/

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

:root {
  /* Colors */
  --bg-primary: #F7F4EF;
  --bg-secondary: #EFECE6;
  --bg-surface: #FFFFFF;
  --text-primary: #2C2C2A;
  --text-secondary: #585652;
  --text-muted: #8C827A;
  --accent-sage: #3A4D3E;
  --accent-sage-hover: #2D3D30;
  --accent-soft-sage: #EBF0EC;
  --accent-warm-gold: #C2A684;
  --border-light: #E4E0D8;
  --border-hover: #C5BFB5;

  /* Typography */
  --font-heading: 'Noto Serif', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Dimensions & Grid */
  --container-max-width: 1200px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-subtle: 0 4px 24px rgba(44, 44, 42, 0.05);
  --shadow-modal: 0 20px 48px rgba(0, 0, 0, 0.16);

  /* Transition */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Ensure text wrapping on all elements */
h1, h2, h3, h4, h5, h6, p, span, a, button, label, li {
  overflow-wrap: break-word;
  word-break: break-word;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Focus styles for Accessibility */
:focus-visible {
  outline: 2px solid var(--accent-sage);
  outline-offset: 3px;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (max-width: 480px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Typography Utilities */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.25;
  color: var(--text-primary);
}

.section-tag {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-sage);
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.5rem;
  }
}

/* Concept Disclaimer Header Banner */
.concept-top-bar {
  background-color: var(--accent-sage);
  color: #FFFFFF;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 400;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.concept-top-bar .badge {
  background-color: rgba(255, 255, 255, 0.2);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.75rem;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .concept-top-bar {
    font-size: 0.75rem;
    padding: 0.4rem 0.75rem;
    gap: 0.35rem;
  }
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(247, 244, 239, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition-fast);
}

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

@media (max-width: 480px) {
  .nav-container {
    height: 68px;
  }
}

.brand-logo {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.brand-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.05em;
}

@media (max-width: 480px) {
  .brand-name {
    font-size: 1.25rem;
  }
  .brand-tagline {
    font-size: 0.6875rem;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-sage);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: var(--transition-fast);
  cursor: pointer;
  gap: 0.5rem;
  text-align: center;
  white-space: normal;
}

.btn-primary {
  background-color: var(--accent-sage);
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: var(--accent-sage-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background-color: var(--bg-surface);
  border-color: var(--border-hover);
}

.btn-outline {
  background-color: transparent;
  color: var(--accent-sage);
  border: 1px solid var(--accent-sage);
}

.btn-outline:hover {
  background-color: var(--accent-soft-sage);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  padding: 0.5rem;
  color: var(--text-primary);
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 110px;
    left: 0;
    right: 0;
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-light);
    flex-direction: column;
    padding: 1.5rem 1rem;
    gap: 1rem;
    box-shadow: var(--shadow-subtle);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-normal);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-nav-toggle {
    display: flex;
  }

  .nav-actions {
    display: none;
  }
}

/* Hero Section */
.hero-section {
  padding: 4rem 0 5rem;
}

@media (max-width: 480px) {
  .hero-section {
    padding: 2rem 0 3rem;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

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

.hero-content h1 {
  font-size: 3.25rem;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.25rem;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.75rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 500px;
}

@media (max-width: 480px) {
  .hero-description {
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
  }
}

.hero-btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

@media (max-width: 480px) {
  .hero-btn-group {
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
  }

  .hero-btn-group .btn {
    width: 100%;
  }
}

.hero-meta-strip {
  display: flex;
  gap: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .hero-meta-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding-top: 1.25rem;
  }
}

.meta-item {
  display: flex;
  flex-direction: column;
}

.meta-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
}

.meta-value {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
}

.hero-media {
  position: relative;
}

.hero-image-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  aspect-ratio: 4/3;
  background-color: var(--bg-secondary);
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-floating-card {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  background-color: var(--bg-surface);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-subtle);
  border: 1px solid var(--border-light);
  max-width: 280px;
}

@media (max-width: 600px) {
  .hero-floating-card {
    position: static;
    margin-top: 1rem;
    max-width: 100%;
    padding: 1rem;
  }
}

.floating-card-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-sage);
}

.floating-card-text {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* Feature Strip (Platform Text-only) */
.platform-strip {
  background-color: var(--bg-secondary);
  padding: 2rem 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.platform-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

@media (max-width: 480px) {
  .platform-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

.platform-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.platform-list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .platform-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
  }

  .platform-list .btn {
    width: 100%;
  }
}

.platform-tag {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Services Preview Section */
.section {
  padding: 5rem 0;
}

@media (max-width: 480px) {
  .section {
    padding: 3rem 0;
  }
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3.5rem;
}

@media (max-width: 480px) {
  .section-header {
    margin-bottom: 2rem;
  }
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

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

.service-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-normal);
}

@media (max-width: 480px) {
  .service-card {
    padding: 1.25rem;
  }
}

.service-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-subtle);
  transform: translateY(-2px);
}

.service-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 1rem;
}

@media (max-width: 480px) {
  .service-card-header {
    flex-direction: column;
    gap: 0.5rem;
  }

  .sample-pricing-label {
    text-align: left !important;
  }
}

.service-title {
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}

@media (max-width: 480px) {
  .service-title {
    font-size: 1.2rem;
  }
}

.service-duration {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
}

.service-price {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent-sage);
}

.sample-pricing-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  display: block;
  text-align: right;
}

.service-description {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.service-steps-list {
  list-style: none;
  margin-bottom: 2rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.service-steps-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
}

.service-steps-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-sage);
  font-weight: bold;
}

/* Filter buttons container */
.filter-btn-group {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

@media (max-width: 480px) {
  .filter-btn-group {
    flex-direction: column;
    gap: 0.5rem;
  }

  .filter-btn-group .btn {
    width: 100%;
  }
}

/* 4-Step Scalp Ritual Section */
.ritual-section {
  background-color: var(--bg-secondary);
}

.ritual-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

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

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

.ritual-card {
  background-color: var(--bg-surface);
  padding: 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

@media (max-width: 480px) {
  .ritual-card {
    padding: 1.25rem;
  }
}

.step-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--accent-warm-gold);
  margin-bottom: 0.75rem;
}

.step-title {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.step-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Location & Map Preview Section */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

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

.map-preview-box {
  background-color: #E2DFD8;
  border-radius: var(--radius-lg);
  min-height: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

@media (max-width: 480px) {
  .map-preview-box {
    padding: 1.25rem;
    min-height: 280px;
  }
}

.map-preview-tag {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-sage);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-subtle);
}

.map-preview-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.map-preview-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  max-width: 320px;
  margin-bottom: 1.5rem;
}

/* Policy Framework Notice */
.policy-box {
  background-color: var(--accent-soft-sage);
  border: 1px dashed var(--accent-sage);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 3rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

@media (max-width: 480px) {
  .policy-box {
    padding: 1rem;
    margin-top: 2rem;
  }
}

.policy-box h4 {
  color: var(--accent-sage);
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

/* FAQ Accordion */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-light);
}

.faq-button {
  width: 100%;
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  color: var(--text-primary);
  background: none;
  border: none;
  min-height: 48px;
  gap: 1rem;
}

@media (max-width: 480px) {
  .faq-button {
    font-size: 1rem;
  }
}

.faq-icon {
  font-size: 1.25rem;
  transition: var(--transition-fast);
  color: var(--accent-sage);
  flex-shrink: 0;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding-bottom: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
}

/* Footer */
.site-footer {
  background-color: #242422;
  color: #E2DFD8;
  padding: 4rem 0 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-brand h3 {
  color: #FFFFFF;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  color: #A09D96;
  font-size: 0.875rem;
  max-width: 360px;
}

.footer-column h4 {
  color: #FFFFFF;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #A09D96;
  font-size: 0.875rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: #FFFFFF;
}

.footer-info-item {
  color: #A09D96;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  display: block;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid #383834;
  text-align: center;
  font-size: 0.8125rem;
  color: #8C8880;
}

/* Modal System */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-normal);
}

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

.modal-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  max-width: 520px;
  width: 100%;
  box-shadow: var(--shadow-modal);
  position: relative;
  transform: translateY(20px);
  transition: var(--transition-normal);
}

@media (max-width: 480px) {
  .modal-card {
    padding: 1.5rem;
  }
}

.modal-overlay.open .modal-card {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  color: var(--text-muted);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.modal-close-btn:hover {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

.modal-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-sage);
  margin-bottom: 0.5rem;
  display: block;
}

.modal-title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  padding-right: 2rem;
}

.modal-body {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.modal-demo-box {
  background-color: var(--bg-secondary);
  border-left: 3px solid var(--accent-sage);
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  margin-bottom: 1.25rem;
}

/* Mobile Fixed Action Bar (< 768px) */
.mobile-fixed-bar {
  display: none;
}

@media (max-width: 768px) {
  .mobile-fixed-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 900;
    background-color: rgba(247, 244, 239, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-light);
    padding: 0.5rem 0.75rem;
    gap: 0.35rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  }

  .mobile-fixed-bar .btn {
    flex: 1 1 0%;
    min-height: 40px;
    padding: 0.35rem 0.5rem;
    font-size: 0.8125rem;
    white-space: nowrap;
  }

  /* Padding bottom for body to avoid fixed bar overlap */
  body {
    padding-bottom: 64px;
  }
}
