/* ==========================================================================
   Rocky Mountain Skin — Design System
   rockymtnskin.com | Built April 2026
   Direction: Luxury spa + editorial | SEO-first semantic HTML
   ========================================================================== */

/* --------------------------------------------------------------------------
   GOOGLE FONTS
   -------------------------------------------------------------------------- */
@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=DM+Sans:wght@300;400;500;600&display=swap');

/* --------------------------------------------------------------------------
   DESIGN TOKENS — COLOR
   -------------------------------------------------------------------------- */
:root {
  /* Base palette — derived from current site warm golds + elevated */
  --color-cream:       #F8F5EF;   /* primary page background */
  --color-cream-dark:  #EDE9DF;   /* alternate section background */
  --color-white:       #FFFFFF;
  --color-dark:        #1C1813;   /* warm black for body text */
  --color-warm-gray:   #7A7060;   /* secondary / caption text */
  --color-rule:        #DDD5C4;   /* horizontal rules, borders */

  /* Brand — gold (from existing site) refined for luxury */
  --color-gold:        #B8915A;   /* primary brand accent — rich, warm */
  --color-gold-light:  #EFD28F;   /* light gold tint */
  --color-gold-dark:   #705310;   /* deep gold for hover / depth */

  /* Brand — sage (from logo) as secondary natural accent */
  --color-sage:        #5A7A4E;   /* nature / wellness connection */
  --color-sage-light:  #EDF3EA;   /* sage tint for backgrounds */

  /* Functional */
  --color-error:       #C0392B;
  --color-success:     #5A7A4E;
}

/* --------------------------------------------------------------------------
   DESIGN TOKENS — TYPOGRAPHY
   -------------------------------------------------------------------------- */
:root {
  /* Families */
  --font-display:  'Cormorant Garamond', Georgia, serif;  /* headings — luxury editorial */
  --font-body:     'DM Sans', -apple-system, sans-serif;  /* body — clean, readable */

  /* Scale — fluid using clamp() for responsive without breakpoints */
  --text-xs:    clamp(0.75rem,  1.5vw, 0.813rem);
  --text-sm:    clamp(0.875rem, 1.8vw, 0.938rem);
  --text-base:  clamp(1rem,     2vw,   1.063rem);
  --text-lg:    clamp(1.125rem, 2.2vw, 1.25rem);
  --text-xl:    clamp(1.25rem,  2.5vw, 1.5rem);
  --text-2xl:   clamp(1.5rem,   3vw,   2rem);
  --text-3xl:   clamp(2rem,     4vw,   2.75rem);
  --text-4xl:   clamp(2.5rem,   5vw,   3.75rem);
  --text-5xl:   clamp(3rem,     6vw,   5rem);

  /* Line heights */
  --leading-tight:  1.15;
  --leading-snug:   1.3;
  --leading-normal: 1.6;
  --leading-loose:  1.8;

  /* Letter spacing */
  --tracking-tight:  -0.02em;
  --tracking-normal:  0;
  --tracking-wide:    0.08em;
  --tracking-widest:  0.18em;

  /* Weights */
  --weight-light:   300;
  --weight-regular: 400;
  --weight-medium:  500;
  --weight-semi:    600;
}

/* --------------------------------------------------------------------------
   DESIGN TOKENS — SPACING & LAYOUT
   -------------------------------------------------------------------------- */
:root {
  --space-1:   0.25rem;
  --space-2:   0.5rem;
  --space-3:   0.75rem;
  --space-4:   1rem;
  --space-5:   1.25rem;
  --space-6:   1.5rem;
  --space-8:   2rem;
  --space-10:  2.5rem;
  --space-12:  3rem;
  --space-16:  4rem;
  --space-20:  5rem;
  --space-24:  6rem;
  --space-32:  8rem;

  /* Container */
  --container-sm:   640px;
  --container-md:   768px;
  --container-lg:   1024px;
  --container-xl:   1200px;
  --container-2xl:  1400px;

  /* Section padding — fluid */
  --section-py: clamp(4rem, 8vw, 7rem);
  --section-px: clamp(1.25rem, 5vw, 2rem);
}

/* --------------------------------------------------------------------------
   DESIGN TOKENS — EFFECTS
   -------------------------------------------------------------------------- */
:root {
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-full: 9999px;

  --shadow-sm:  0 1px 3px rgba(28, 24, 19, 0.08);
  --shadow-md:  0 4px 16px rgba(28, 24, 19, 0.10);
  --shadow-lg:  0 8px 32px rgba(28, 24, 19, 0.14);

  --transition: 0.25s ease;
  --transition-slow: 0.4s ease;
}

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  color: var(--color-dark);
  background-color: var(--color-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

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

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* Focus visible — accessibility */
:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* --------------------------------------------------------------------------
   TYPOGRAPHY — BASE STYLES
   Heading hierarchy is the backbone of our SEO strategy.
   Every heading tag is used intentionally and semantically.
   H1: one per page, primary keyword phrase
   H2: major content sections
   H3: subsections / service names
   H4: detail items within H3 sections
   -------------------------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--weight-light);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  color: var(--color-dark);
}

h1 {
  font-size: var(--text-5xl);
  font-weight: var(--weight-light);
  letter-spacing: -0.03em;
}

h2 {
  font-size: var(--text-4xl);
  font-weight: var(--weight-light);
}

h3 {
  font-size: var(--text-2xl);
  font-weight: var(--weight-light);
}

h4 {
  font-size: var(--text-xl);
  font-weight: var(--weight-medium);
}

h5 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-semi);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-gold);
}

/* Eyebrow label — used above H2/H3 for editorial context */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-3);
}

p {
  line-height: var(--leading-loose);
  max-width: 68ch;
}

p + p {
  margin-top: var(--space-4);
}

strong {
  font-weight: var(--weight-semi);
}

em {
  font-style: italic;
}

/* --------------------------------------------------------------------------
   LAYOUT UTILITIES
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container-xl);
  margin-inline: auto;
  padding-inline: var(--section-px);
}

.container--narrow {
  max-width: var(--container-md);
}

.container--wide {
  max-width: var(--container-2xl);
}

section {
  padding-block: var(--section-py);
}

.section--cream { background-color: var(--color-cream); }
.section--cream-dark { background-color: var(--color-cream-dark); }
.section--white { background-color: var(--color-white); }
.section--dark { background-color: var(--color-dark); color: var(--color-cream); }
.section--sage { background-color: var(--color-sage-light); }

/* Grid */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-8); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }

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

@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Flex utilities */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* Text alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }

/* Spacing helpers */
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

/* --------------------------------------------------------------------------
   BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-8);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  border-radius: var(--radius-full);
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
}

.btn--primary {
  background-color: var(--color-gold);
  color: var(--color-white);
  border: 1.5px solid var(--color-gold);
}

.btn--primary:hover {
  background-color: var(--color-gold-dark);
  border-color: var(--color-gold-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

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

.btn--outline:hover {
  background-color: var(--color-dark);
  color: var(--color-cream);
  transform: translateY(-1px);
}

.btn--outline-light {
  background-color: transparent;
  color: var(--color-cream);
  border: 1.5px solid var(--color-cream);
}

.btn--outline-light:hover {
  background-color: var(--color-cream);
  color: var(--color-dark);
}

.btn--ghost {
  background: transparent;
  color: var(--color-gold);
  border: none;
  padding-inline: 0;
  border-radius: 0;
  border-bottom: 1px solid currentColor;
  letter-spacing: var(--tracking-wide);
}

.btn--ghost:hover {
  color: var(--color-gold-dark);
  transform: none;
}

/* --------------------------------------------------------------------------
   HORIZONTAL RULE / DIVIDER
   -------------------------------------------------------------------------- */
.rule {
  border: none;
  border-top: 1px solid var(--color-rule);
  margin-block: var(--space-8);
}

.rule--gold {
  border-top-color: var(--color-gold-light);
}

/* --------------------------------------------------------------------------
   SECTION HEADERS — reusable heading block for content sections
   -------------------------------------------------------------------------- */
.section-header {
  margin-bottom: var(--space-12);
}

.section-header--center {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--space-12);
}

.section-header p {
  margin-top: var(--space-4);
  color: var(--color-warm-gray);
  font-size: var(--text-lg);
  max-width: 55ch;
}

.section-header--center p {
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   CARD — base card component
   -------------------------------------------------------------------------- */
.card {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.card__image {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.card__body {
  padding: var(--space-6);
}

.card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-light);
  margin-bottom: var(--space-2);
}

.card__text {
  color: var(--color-warm-gray);
  font-size: var(--text-sm);
  line-height: var(--leading-loose);
  max-width: none;
}

.card__footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--color-rule);
}

/* --------------------------------------------------------------------------
   FORM ELEMENTS
   -------------------------------------------------------------------------- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-warm-gray);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-md);
  background-color: var(--color-white);
  color: var(--color-dark);
  font-size: var(--text-base);
  transition: border-color var(--transition);
  appearance: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(184, 145, 90, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-warm-gray);
  opacity: 0.7;
}

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

/* --------------------------------------------------------------------------
   BADGE / TAG
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  background-color: var(--color-sage-light);
  color: var(--color-sage);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  border-radius: var(--radius-full);
}

.badge--gold {
  background-color: rgba(184, 145, 90, 0.12);
  color: var(--color-gold-dark);
}

/* --------------------------------------------------------------------------
   BLOCKQUOTE / TESTIMONIAL
   -------------------------------------------------------------------------- */
blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-2xl);
  font-weight: var(--weight-light);
  line-height: var(--leading-snug);
  color: var(--color-dark);
  position: relative;
  padding-left: var(--space-8);
}

blockquote::before {
  content: '\201C';
  position: absolute;
  left: 0;
  top: -0.15em;
  font-size: 4em;
  color: var(--color-gold-light);
  line-height: 1;
  font-style: normal;
}

blockquote cite {
  display: block;
  margin-top: var(--space-4);
  font-family: var(--font-body);
  font-style: normal;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-warm-gray);
}

/* --------------------------------------------------------------------------
   PROSE — for long-form content pages (service descriptions, blog posts)
   -------------------------------------------------------------------------- */
.prose h1 { margin-bottom: var(--space-6); }
.prose h2 { margin-top: var(--space-12); margin-bottom: var(--space-4); }
.prose h3 { margin-top: var(--space-8); margin-bottom: var(--space-3); }
.prose h4 { margin-top: var(--space-6); margin-bottom: var(--space-2); }

.prose p { margin-bottom: var(--space-4); max-width: 68ch; }

.prose ul, .prose ol {
  margin-block: var(--space-4);
  padding-left: var(--space-6);
}

.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }

.prose li {
  margin-bottom: var(--space-2);
  line-height: var(--leading-loose);
}

.prose a {
  color: var(--color-gold);
  border-bottom: 1px solid currentColor;
  transition: color var(--transition);
}

.prose a:hover { color: var(--color-gold-dark); }

/* --------------------------------------------------------------------------
   UTILITY — visually hidden (for screen readers / SEO-accessible labels)
   -------------------------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   ANIMATION — subtle entrance animations
   -------------------------------------------------------------------------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.animate-fade-up {
  animation: fadeUp 0.7s ease forwards;
}

.animate-fade-in {
  animation: fadeIn 0.5s ease forwards;
}

/* Stagger delays */
.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }
.delay-4 { animation-delay: 0.4s; opacity: 0; }
.delay-5 { animation-delay: 0.5s; opacity: 0; }

/* --------------------------------------------------------------------------
   RESPONSIVE UTILITIES
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .hide-mobile { display: none; }
}

@media (min-width: 769px) {
  .hide-desktop { display: none; }
}
