/* ============================================
   OPAL AESTHETICS — Custom Styles
   Design System: Soft UI · Beauty/Spa
   Stack: HTML + Tailwind CSS
   ============================================ */

/* --- Design Tokens --- */
:root {
  /* Palette */
  --color-navy: #1a1a2e;
  --color-gold: #c9a87c;
  --color-gold-light: #d4b88a;
  --color-gold-dark: #b8956a;
  --color-cream: #f5f0eb;
  --color-cream-dark: #ebe3da;
  --color-blush: #e8d5c4;
  --color-rose-gold: #b8967a;
  --color-charcoal: #2d2d2d;
  --color-white: #ffffff;
  --color-text: #3a3a3a;
  --color-text-light: #6b6b6b;

  /* Typography */
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Montserrat', system-ui, sans-serif;

  /* Spacing */
  --section-padding: 5rem 1.5rem;
  --section-padding-mobile: 3rem 1rem;

  /* Transitions */
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Shadows */
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.1);
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.04);
}

/* --- Base --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-cream);
}

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-navy);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.4rem, 3vw, 2rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

p {
  margin-bottom: 1rem;
  color: var(--color-text);
}

a {
  color: var(--color-gold-dark);
  text-decoration: none;
  transition: color var(--transition-base);
}

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

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-soft);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo img {
  height: 50px;
  width: auto;
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-navy);
  letter-spacing: 0.5px;
}

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

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-charcoal);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-gold);
  transition: width var(--transition-base);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

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

/* CTA button in nav */
.nav-cta {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background: var(--color-gold);
  color: var(--color-white) !important;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 4px;
  transition: background var(--transition-base), transform var(--transition-base);
  cursor: pointer;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--color-gold-dark);
  color: var(--color-white) !important;
  transform: translateY(-1px);
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-charcoal);
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Mobile Nav Overlay --- */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 999;
}

.nav-overlay.active {
  display: block;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 1.5rem 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26, 26, 46, 0.55) 0%,
    rgba(26, 26, 46, 0.4) 50%,
    rgba(26, 26, 46, 0.6) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero h1 {
  color: var(--color-white);
  margin-bottom: 1.2rem;
  font-weight: 500;
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  font-weight: 300;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn-primary {
  background: var(--color-gold);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-gold-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(201, 168, 124, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-white);
  color: var(--color-white);
}

.btn-dark {
  background: var(--color-navy);
  color: var(--color-white);
}

.btn-dark:hover {
  background: #24243e;
  color: var(--color-white);
  transform: translateY(-2px);
}

/* --- Sections --- */
.section {
  padding: var(--section-padding);
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
}

.section-divider {
  display: block;
  width: 60px;
  height: 1.5px;
  background: var(--color-gold);
  margin: 1rem auto;
}

/* Alternating section backgrounds */
.section-alt {
  background: var(--color-white);
}

/* --- Treatment Cards --- */
.treatment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.treatment-card {
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

.treatment-card-img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 12px 12px 0 0;
  display: block;
}

.treatment-card-body {
  padding: 1.5rem;
}

.treatment-card-body h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.treatment-card-body p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.treatment-card-price {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--color-gold-dark);
  font-weight: 600;
  margin-bottom: 1rem;
}

.treatment-card .btn {
  width: 100%;
  text-align: center;
}

/* --- Individual Treatment Page --- */
.treatment-hero {
  padding: 10rem 1.5rem 4rem;
  text-align: center;
  position: relative;
}

.treatment-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.treatment-detail img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  object-position: top;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

.treatment-info {
  padding-top: 0.5rem;
}

.treatment-info h3 {
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
}

.treatment-info ul {
  list-style: none;
  padding: 0;
}

.treatment-info li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-cream-dark);
  display: flex;
  justify-content: space-between;
}

.treatment-info li:last-child {
  border-bottom: none;
}

/* --- Testimonials --- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: var(--color-white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--color-gold);
  opacity: 0.3;
  position: absolute;
  top: 0.5rem;
  left: 1.2rem;
  line-height: 1;
}

.testimonial-card p {
  font-style: italic;
  color: var(--color-text);
  margin-bottom: 1rem;
  padding-top: 1.5rem;
}

.testimonial-author {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-navy);
}

/* --- Contact Grid --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* --- Contact Form --- */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-navy);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1px solid var(--color-cream-dark);
  border-radius: 6px;
  background: var(--color-white);
  color: var(--color-text);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 124, 0.15);
}

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

/* --- Footer --- */
.footer {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 3.5rem 1.5rem 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.footer h4 {
  font-family: var(--font-heading);
  color: var(--color-white);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.footer p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-base);
}

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

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

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

.footer-links a {
  font-size: 0.9rem;
}

.footer-bottom {
  max-width: 1100px;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

/* --- Areas We Cover --- */
.areas-section {
  background: var(--color-cream);
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.areas-county h3 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.areas-county ul {
  list-style: none;
  padding: 0;
}

.areas-county li {
  font-size: 0.9rem;
  color: var(--color-text);
  margin-bottom: 0.35rem;
  line-height: 1.5;
}

.footer-areas {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.5;
}

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

@media (max-width: 480px) {
  .areas-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* --- FAQ --- */
.faq-item {
  background: var(--color-white);
  border-radius: 8px;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-navy);
  text-align: left;
  transition: background var(--transition-base);
}

.faq-question:hover {
  background: var(--color-cream);
}

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--color-gold);
  font-weight: 300;
  transition: transform var(--transition-base);
}

.faq-item.active .faq-question::after {
  content: '−';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.faq-answer-inner {
  padding: 0.75rem 1.5rem 1.2rem;
  color: var(--color-text-light);
  font-size: 0.95rem;
}
.faq-answer-inner p:last-child {
  margin-bottom: 0;
}

/* --- Blog --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.blog-card {
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

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

.blog-card-body {
  padding: 2rem;
}

.blog-card-date {
  font-size: 0.8rem;
  color: var(--color-gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.blog-card h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-navy);
  margin: 0.5rem 0 0.75rem;
  line-height: 1.3;
}

.blog-card p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin-bottom: 1.25rem;
}

.blog-card-read {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Blog Post */
.blog-post {
  max-width: 750px;
  margin: 0 auto;
}

.blog-back {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--color-gold-dark);
  text-decoration: none;
  margin-bottom: 2rem;
  font-weight: 500;
  transition: color var(--transition-base);
}

.blog-back:hover {
  color: var(--color-navy);
}

.blog-post h1 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--color-navy);
  line-height: 1.25;
}

.blog-post h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-navy);
  margin: 2.5rem 0 1rem;
}

.blog-post p {
  margin-bottom: 1.25rem;
  font-size: 1rem;
  line-height: 1.8;
}

.blog-post a {
  color: var(--color-gold-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.blog-post a:hover {
  color: var(--color-navy);
}

.blog-cta {
  margin-top: 3rem;
  margin-bottom: 5rem;
  padding: 2rem;
  background: var(--color-navy);
  border-radius: 12px;
  text-align: center;
}

.blog-cta p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.25rem;
}

.blog-cta .btn-primary {
  color: var(--color-white);
}

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

  .blog-post h1 {
    font-size: 1.7rem;
  }

  .blog-post h2 {
    font-size: 1.3rem;
  }
}

/* --- Utilities --- */
.text-center { text-align: center; }
.text-gold { color: var(--color-gold); }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-4 { margin-top: 2rem; }


/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-soft);
  }

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

  .nav-toggle {
    display: flex;
  }

  .hero {
    min-height: 70vh;
    padding: 7rem 1rem 3rem;
  }

  .section {
    padding: var(--section-padding-mobile);
  }

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

  .treatment-detail {
    grid-template-columns: 1fr;
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.8rem;
  }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
