/* ================================================
   Bloom Salon & Spa — styles.css
   Simple, clean, beginner-level website
   ================================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  color: #444;
  line-height: 1.7;
  background: #fff;
}

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

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

ul {
  list-style: none;
}

/* ── CONTAINER ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── COLOR VARIABLES ── */
:root {
  --pink:       #d4908a;
  --pink-light: #f5e6e4;
  --pink-dark:  #b8746d;
  --text:       #444;
  --text-light: #777;
  --heading:    #222;
  --border:     #e8e8e8;
  --bg-soft:    #fdf9f8;
}

/* ================================================
   NAVBAR
   ================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  z-index: 100;
  height: 68px;
}

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

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--heading);
  font-weight: 600;
}

.logo span {
  color: var(--pink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links li a {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text);
  transition: color 0.2s;
}

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

.nav-book-btn {
  background: var(--pink);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 4px;
  font-weight: 700 !important;
  transition: background 0.2s !important;
}

.nav-book-btn:hover {
  background: var(--pink-dark) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--heading);
  cursor: pointer;
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
  }

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

  .nav-links li {
    width: 100%;
  }

  .nav-links li a {
    display: block;
    padding: 12px 24px;
    border-bottom: 1px solid var(--border);
  }

  .nav-book-btn {
    margin: 12px 24px;
    text-align: center;
    border-radius: 4px;
  }
}

/* ================================================
   HERO
   ================================================ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: url('https://images.unsplash.com/photo-1560066984-138dadb4c035?w=1600&q=85') center/cover no-repeat;
  padding-top: 68px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 20, 18, 0.55);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  max-width: 600px;
}

.hero-tagline {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f0d5d2;
  margin-bottom: 16px;
}

.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 36px;
  max-width: 460px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--pink);
  color: #fff;
  padding: 14px 32px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 2px solid var(--pink);
  transition: background 0.2s, color 0.2s;
}

.btn-primary:hover {
  background: var(--pink-dark);
  border-color: var(--pink-dark);
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: #fff;
  padding: 14px 32px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 2px solid rgba(255, 255, 255, 0.7);
  transition: background 0.2s, border-color 0.2s;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

.btn-full {
  width: 100%;
  text-align: center;
  cursor: pointer;
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
}

/* ================================================
   SECTION COMMON
   ================================================ */
section {
  padding: 80px 0;
}

.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 10px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 12px;
}

.section-desc {
  font-size: 0.95rem;
  color: var(--text-light);
}

/* ================================================
   ABOUT
   ================================================ */
.about {
  background: var(--bg-soft);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

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

.about-image img {
  border-radius: 8px;
  height: 460px;
  object-fit: cover;
}

.about-text .section-label {
  display: block;
}

.about-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 20px;
  line-height: 1.25;
}

.about-text p {
  color: var(--text-light);
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.about-list {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text);
}

.about-list li i {
  color: var(--pink);
  font-size: 0.8rem;
}

/* ================================================
   SERVICES
   ================================================ */
.services {
  background: #fff;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

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

.service-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px 28px;
  transition: box-shadow 0.25s, border-color 0.25s;
}

.service-card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07);
  border-color: var(--pink);
}

.service-icon {
  width: 52px;
  height: 52px;
  background: var(--pink-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--pink);
  margin-bottom: 20px;
}

.service-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 10px;
}

.service-card > p {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 20px;
}

.service-list {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-list li {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--text);
}

.service-list li span:last-child {
  color: var(--pink);
  font-weight: 700;
}

/* ================================================
   WHY US
   ================================================ */
.why-us {
  background: var(--pink-light);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

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

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

.why-item {
  text-align: center;
}

.why-icon {
  width: 60px;
  height: 60px;
  background: var(--pink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
  margin: 0 auto 16px;
}

.why-item h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 8px;
}

.why-item p {
  font-size: 0.875rem;
  color: var(--text-light);
}

/* ================================================
   GALLERY
   ================================================ */
.gallery {
  background: var(--bg-soft);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

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

.gallery-grid img {
  height: 240px;
  object-fit: cover;
  border-radius: 6px;
  transition: transform 0.3s;
}

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

/* ================================================
   TESTIMONIALS
   ================================================ */
.testimonials {
  background: #fff;
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

.testi-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 24px;
}

.stars {
  color: #f0b429;
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.testi-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 20px;
  font-style: italic;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testi-author img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.testi-author strong {
  display: block;
  font-size: 0.88rem;
  color: var(--heading);
  font-weight: 700;
}

.testi-author span {
  font-size: 0.78rem;
  color: var(--text-light);
}

/* ================================================
   CONTACT / BOOKING
   ================================================ */
.contact {
  background: var(--bg-soft);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

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

.contact-info .section-label {
  display: block;
}

.contact-info h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 16px;
  line-height: 1.25;
}

.contact-info > p {
  font-size: 0.92rem;
  color: var(--text-light);
  margin-bottom: 32px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.info-item i {
  width: 40px;
  height: 40px;
  background: var(--pink-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pink);
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.info-item strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 4px;
}

.info-item p {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.6;
}

.info-item a {
  color: var(--text);
  transition: color 0.2s;
}

.info-item a:hover {
  color: var(--pink);
}

/* Form */
.contact-form-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 36px 32px;
}

@media (max-width: 480px) {
  .contact-form-wrap {
    padding: 24px 20px;
  }
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 7px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: 'Lato', sans-serif;
  font-size: 0.92rem;
  color: var(--heading);
  background: #fff;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

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

.form-group textarea {
  resize: vertical;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23777' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-success {
  margin-top: 16px;
  padding: 14px 16px;
  background: #f0faf0;
  border: 1px solid #a3d9a3;
  border-radius: 4px;
  font-size: 0.9rem;
  color: #2e7d32;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
  background: #222;
  color: #aaa;
  padding: 60px 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}

.footer-brand .logo {
  color: #fff;
  display: inline-block;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #aaa;
  transition: background 0.2s, color 0.2s;
}

.footer-social a:hover {
  background: var(--pink);
  color: #fff;
}

.footer-links h5 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}

.footer-links a,
.footer-links p {
  display: block;
  font-size: 0.85rem;
  color: #aaa;
  margin-bottom: 8px;
  transition: color 0.2s;
  line-height: 1.6;
}

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

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  font-size: 0.8rem;
  color: #555;
}

/* ================================================
   BACK TO TOP
   ================================================ */
.back-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 42px;
  height: 42px;
  background: var(--pink);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  transform: translateY(8px);
  box-shadow: 0 3px 12px rgba(212, 144, 138, 0.5);
}

.back-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.back-top:hover {
  background: var(--pink-dark);
}

/* ================================================
   FAQ + FORM UX
   ================================================ */
.faq {
  padding: 88px 0;
  background: #fff8f8;
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.faq-item {
  border: 1px solid rgba(212, 144, 138, 0.24);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(212, 144, 138, 0.08);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 56px 20px 22px;
  position: relative;
  font-weight: 700;
  color: var(--heading);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(212, 144, 138, 0.12);
  color: var(--pink-dark);
  font-size: 1rem;
}

.faq-item[open] summary::after {
  content: '-';
}

.faq-item p {
  margin: 0;
  padding: 0 22px 22px;
  color: var(--text);
  line-height: 1.75;
}

.form-error {
  display: none;
  margin-top: 8px;
  font-size: 0.82rem;
  color: #bb4b5c;
}

.form-group.invalid input,
.form-group.invalid select,
.form-group.invalid textarea {
  border-color: #bb4b5c;
  box-shadow: 0 0 0 3px rgba(187, 75, 92, 0.1);
}

.form-group.invalid .form-error {
  display: block;
}
