/* ==========================================================================
   Crystalie Lash & Brow — shared stylesheet
   Mobile-first: base rules target small screens, media queries layer on
   enhancements for tablet (600px) and desktop (900px+).
   ========================================================================== */

:root {
  --sage: #44624a;
  --sage-dark: #314936;
  --sage-light: #7c9a82;
  --cream: #faf6ee;
  --cream-dark: #f0e7d8;
  --rose: #c68f89;
  --rose-dark: #a86e6a;
  --text: #2b2b26;
  --text-light: #5c5c54;
  --white: #ffffff;
  --border: #e3dbc8;

  --font-heading: "Playfair Display", Georgia, serif;
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

  --max-width: 1120px;
  --radius: 10px;
  --shadow: 0 4px 18px rgba(43, 43, 38, 0.1);
}

/* ---- Reset ---- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--sage-dark);
  margin: 0 0 0.5em;
  line-height: 1.2;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 3rem 0;
}

.section-cream-dark {
  background: var(--cream-dark);
}

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

.section-sage h2 {
  color: var(--white);
}

.eyebrow {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose-dark);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2rem;
}

.section-head p {
  color: var(--text-light);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

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

.btn-primary:hover {
  background: var(--rose-dark);
}

.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--sage-dark);
}

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

.btn-sage:hover {
  background: var(--sage-dark);
}

.btn-block {
  width: 100%;
}

/* ---- Skip link ---- */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--sage-dark);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
  top: 0;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(250, 246, 238, 0.96);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 1.25rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--sage-dark);
  font-size: 1.05rem;
}

.brand img {
  height: 42px;
  width: 42px;
  object-fit: contain;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 401;
}

/* Keep the mobile header compact: logo mark + call icon + book button */
@media (max-width: 420px) {
  .brand span {
    display: none;
  }

  .header-actions .btn-sage {
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
  }
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--white);
  flex-shrink: 0;
}

.icon-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.nav-toggle {
  background: transparent;
  border: none;
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--sage-dark);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.main-nav {
  position: fixed;
  inset: 0;
  top: 0;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  z-index: 400;
}

.main-nav.is-open {
  transform: translateY(0);
  opacity: 1;
}

.main-nav a {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--sage-dark);
}

.main-nav a.active {
  color: var(--rose-dark);
}

.main-nav .nav-book {
  margin-top: 0.5rem;
}

/* Desktop header/nav */
@media (min-width: 900px) {
  .header-inner {
    padding: 0.9rem 1.5rem;
  }

  .brand {
    font-size: 1.2rem;
  }

  .brand img {
    height: 52px;
    width: 52px;
  }

  .nav-toggle {
    display: none;
  }

  .main-nav {
    position: static;
    inset: auto;
    transform: none;
    opacity: 1;
    background: transparent;
    flex-direction: row;
    gap: 2rem;
    flex: 1;
    justify-content: center;
  }

  .main-nav a {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
  }

  .main-nav a.active,
  .main-nav a:hover {
    color: var(--sage-dark);
  }

  .main-nav .nav-book {
    display: none;
  }

  .header-actions .btn-sage {
    display: inline-flex;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  color: var(--white);
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center 20%;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(49, 73, 54, 0.35) 0%, rgba(30, 45, 33, 0.85) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 2.5rem 1.25rem;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.hero-content .eyebrow {
  color: var(--cream);
}

.hero-content h1 {
  color: var(--white);
  font-size: 2.1rem;
  max-width: 20ch;
}

.hero-content p {
  max-width: 42ch;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.92);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

@media (min-width: 900px) {
  .hero {
    min-height: 88vh;
    align-items: center;
  }

  .hero-content h1 {
    font-size: 3.2rem;
  }

  .hero-content p {
    font-size: 1.15rem;
  }
}

/* ==========================================================================
   Trust bar
   ========================================================================== */

.trust-bar {
  background: var(--sage-dark);
  color: var(--white);
  padding: 0.9rem 0;
}

.trust-bar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem 1.5rem;
  text-align: center;
  font-size: 0.92rem;
}

.stars {
  color: #f0c869;
  letter-spacing: 2px;
}

.trust-bar a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   Service cards (popular services)
   ========================================================================== */

.service-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.5rem 1.25rem 1.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.service-scroll::-webkit-scrollbar {
  height: 6px;
}

.service-scroll::-webkit-scrollbar-thumb {
  background: var(--sage-light);
  border-radius: 999px;
}

.service-card {
  flex: 0 0 78%;
  scroll-snap-align: start;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.service-card img {
  height: 170px;
  width: 100%;
  object-fit: cover;
}

.service-card-body {
  padding: 1.1rem 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.service-card p {
  color: var(--text-light);
  font-size: 0.92rem;
  flex: 1;
}

.service-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border);
}

.service-price {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--rose-dark);
  font-weight: 700;
}

.service-duration {
  font-size: 0.82rem;
  color: var(--text-light);
}

.tbd {
  font-style: italic;
  color: var(--rose-dark);
  border-bottom: 1px dashed var(--rose-dark);
}

@media (min-width: 900px) {
  .service-scroll {
    overflow: visible;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 0.5rem 0 1.5rem;
  }

  .service-card {
    flex: initial;
  }
}

/* ==========================================================================
   How it works
   ========================================================================== */

.steps {
  display: grid;
  gap: 1.5rem;
  counter-reset: step;
}

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

.step-number {
  counter-increment: step;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--rose);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
}

.step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.step p {
  color: var(--text-light);
  font-size: 0.94rem;
  margin: 0;
}

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

  .step {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}

/* ==========================================================================
   Gallery grid
   ========================================================================== */

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

.gallery-grid a {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-grid a:hover img {
  transform: scale(1.06);
}

@media (min-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.9rem;
  }
}

.gallery-cta {
  text-align: center;
  margin-top: 1.75rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 26, 20, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 900;
  padding: 1.5rem;
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 6px;
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

/* ==========================================================================
   Testimonial
   ========================================================================== */

.testimonial {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.testimonial blockquote {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--white);
  margin: 0 0 1rem;
}

.testimonial cite {
  font-style: normal;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.testimonial-flag {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--text-light);
  background: var(--cream-dark);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--sage-dark);
  color: rgba(255, 255, 255, 0.88);
  padding: 2.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.footer-brand img {
  height: 40px;
  width: 40px;
}

.site-footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.85rem;
}

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

.footer-contact li {
  margin-bottom: 0.5rem;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.92rem;
}

.footer-contact svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-service-area {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-map iframe {
  width: 100%;
  height: 220px;
  border: 0;
  border-radius: var(--radius);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.82rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1.3fr;
  }
}

/* ==========================================================================
   Inner page shared layout (About / Services / Gallery / Contact)
   ========================================================================== */

.page-banner {
  background: var(--sage-dark);
  color: var(--white);
  padding: 3rem 0 2.5rem;
  text-align: center;
  background-size: cover;
  background-position: center;
  position: relative;
}

.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(49, 73, 54, 0.72);
}

.page-banner .container {
  position: relative;
  z-index: 1;
}

.page-banner h1 {
  color: var(--white);
  font-size: 1.9rem;
  margin-bottom: 0.5rem;
}

.page-banner p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 50ch;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .page-banner h1 {
    font-size: 2.6rem;
  }
}

/* About page */
.about-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.about-grid img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

.verify-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  background: #fdf1dd;
  color: #8a6420;
  border: 1px solid #eddcb2;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  margin: 0.75rem 0;
}

.testimonial-list {
  display: grid;
  gap: 1.25rem;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.testimonial-card p {
  font-style: italic;
  color: var(--text);
}

.testimonial-card cite {
  font-style: normal;
  font-weight: 600;
  color: var(--sage-dark);
  font-size: 0.9rem;
}

@media (min-width: 700px) {
  .testimonial-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Services page */
.service-detail-list {
  display: grid;
  gap: 1.25rem;
}

.service-detail {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.service-detail h3 {
  font-size: 1.15rem;
}

.service-detail p {
  color: var(--text-light);
  font-size: 0.94rem;
  margin-bottom: 0;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}

.price-table caption {
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--sage-dark);
  padding: 1rem 1.25rem 0.25rem;
  caption-side: top;
}

.price-table th,
.price-table td {
  text-align: left;
  padding: 0.7rem 1.25rem;
  font-size: 0.94rem;
  border-top: 1px solid var(--border);
}

.price-table td:last-child,
.price-table th:last-child {
  text-align: right;
  font-weight: 600;
  color: var(--rose-dark);
  white-space: nowrap;
}

.price-note {
  font-size: 0.82rem;
  color: var(--text-light);
  padding: 0 1.25rem 1.1rem;
  margin: 0;
}

.data-gap-banner {
  background: #fdf1dd;
  border: 1px solid #eddcb2;
  color: #6b4e17;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.data-gap-banner strong {
  display: block;
  margin-bottom: 0.25rem;
  color: #8a6420;
}

.service-tabs-nav {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
  padding-bottom: 0.25rem;
}

.service-tabs-nav a {
  flex-shrink: 0;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--sage-dark);
}

.service-tabs-nav a:hover {
  background: var(--sage);
  color: var(--white);
  border-color: var(--sage);
}

/* Contact page */
.contact-grid {
  display: grid;
  gap: 2rem;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
}

.contact-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1.1rem;
  font-size: 0.96rem;
}

.contact-list svg {
  width: 20px;
  height: 20px;
  fill: var(--sage);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-list a:hover {
  color: var(--sage-dark);
  text-decoration: underline;
}

.map-embed iframe {
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: var(--radius);
}

.policy-list {
  display: grid;
  gap: 0.75rem;
}

.policy-list li {
  background: var(--white);
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Legal pages (Privacy Policy / Terms of Service) */
.legal-content {
  max-width: 720px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.2rem;
  margin-top: 2.25rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-updated {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.legal-content ul {
  margin: 0 0 1em;
  padding-left: 1.25rem;
  list-style: disc;
}

.legal-content li {
  margin-bottom: 0.6rem;
}

/* Utility */
.text-center {
  text-align: center;
}

.mt-lg {
  margin-top: 2.5rem;
}
