/* =========================================================
   Lucy’s Tailored Tails – Main Stylesheet
   ========================================================= */

/* ===== Root Variables ===== */
:root {
  --bg-color: #FEF1CF;
  --text-color: #2B4544;
  --accent-color: #80A697;
}

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

html, body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.5;
}

/* =========================================================
   NAVBAR
   ========================================================= */
.navbar {
  position: fixed;
  top: 0;
  inset-inline: 0;
  background-color: var(--bg-color);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 1000;
}

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

/* ===== Logo ===== */
.logo-link { margin-right: auto; }

.logo {
  height: 50px;
  width: auto;
  display: block;
  object-fit: contain;
  cursor: pointer;
}

/* ===== Nav Menu ===== */
.nav-menu {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-color);
}

/* Underline active nav link */
.nav-links a:not(.book-btn).active::after,
/* Underline active nav link — exclude social + Book Now */
.nav-links li:not(.social) > a:not(.book-btn).active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background-color: var(--accent-color);
}

/* Remove blue focus outlines */
.nav-links a:focus { outline: none; }

/* ===== Social Icons ===== */
.social a {
  color: var(--text-color);
  display: inline-flex;
  transition: color 0.25s ease;
}
.social a:hover { color: var(--accent-color); }

/* ===== Book Now Button ===== */
.book-btn {
  background-color: var(--accent-color);
  color: var(--bg-color);
  padding: 8px 22px 8px 18px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 700;
  display: inline-block;
  transition: background 0.25s ease, transform 0.08s ease;
  border: none;                 /* remove default button border */
  appearance: none;             /* reset native styles */
  -webkit-appearance: none;     /* Safari/iOS */
  cursor: pointer;              /* consistent cursor */
}

.book-btn:hover { background-color: #6b8b7e; }
.book-btn:active { transform: translateY(1px); }

/* ===== Hamburger Button ===== */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--text-color);
}

/* =========================================================
   HOME SECTION
   ========================================================= */
.home-section {
  min-height: 100vh;
  padding-top: 100px;
  padding-inline: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.home-logo {
  width: 80%;
  max-width: 320px;
  height: auto;
  display: block;
  margin-bottom: 25px;
  object-fit: contain;
}

.home-section h1 {
  font-family: 'Pacifico', cursive;
  font-size: 2.4rem;
  margin: 0 0 15px 0;
  color: var(--text-color);
}

.home-section p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin: 0;
}

.served-areas-note {
  margin-top: 10px;
  font-size: 0.95rem;
  opacity: 0.9;
}

/* =========================================================
   SECTION BASE
   ========================================================= */
section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6rem 1rem;

  /* Ensure anchored sections land below the fixed navbar */
  scroll-margin-top: calc(var(--nav-offset, 80px) + 10px);
}

section .content {
  max-width: 900px;
  width: 100%;
}

/* =========================================================
   APPOINTMENTS
   ========================================================= */
.appointments-section {
  background-color: #fff9e6;
  border-block: 2px solid rgba(0,0,0,0.05);
}

.appointments-section h2 {
  font-family: 'Pacifico', cursive;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.appointments-section p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* Large call-to-action button */
.book-btn.large {
  background-color: var(--accent-color);
  color: var(--bg-color) !important;
  padding: 12px 30px 12px 24px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1.05rem;
  transition: background 0.3s ease, transform 0.08s ease;
}

.book-btn.large:hover {
  background-color: #6b8b7e;
  color: var(--bg-color) !important;
}

.book-btn.large:active { transform: translateY(1px); }

/* =========================================================
   PRICES
   ========================================================= */
.prices-section h2 {
  font-family: 'Pacifico', cursive;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.price-image {
  max-width: 800px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  margin-bottom: 1.5rem;
}

.discount-text {
  font-size: 1.5rem;
  line-height: 1.8;
  text-align: center;
}

.discount-text strong {
  color: var(--accent-color);
}

.prices-text {
  font-size: 1.05rem;
  line-height: 1.8;
}

/* =========================================================
   GALLERY
   ========================================================= */
.gallery-section {
  background-color: #fff9e6;
}

.gallery-section h2 {
  font-family: 'Pacifico', cursive;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.gallery-section p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.gallery-grid img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #fff9e6;
  padding: 4px;
}

.gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* =========================================================
   SERVICES
   ========================================================= */
.services-section h2 {
  font-family: 'Pacifico', cursive;
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.services-intro {
  font-size: 1.05rem;
  margin: 0 auto 2rem;
  max-width: 720px;
  line-height: 1.8;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  max-width: 1000px;
  margin: 0 auto 2rem;
}

.service-card {
  background: #fff9e6;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 14px;
  padding: 1.25rem;
  text-align: left;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border-color: rgba(0,0,0,0.08);
}

.service-card i {
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.service-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.service-card p {
  margin: 0;
  line-height: 1.6;
  font-size: 0.98rem;
}

/* =========================================================
   FIND ME
   ========================================================= */
.find-section { background: #fff9e6; color: var(--text-color); }
.find-section h2 { font-family: 'Pacifico', cursive; font-size: 2rem; margin-bottom: 1rem; }

.find-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr; /* map larger than text */
  gap: 1.25rem;
  align-items: start;
  width: 100%;
  max-width: 900px; /* matches your .content width */
  margin: 0 auto;
}

.map-embed iframe {
  width: 100%;
  height: 300px;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.find-info p { margin: 0 0 .8rem; }

/* Directions link — clear but on-brand */
.map-actions { margin-top: 0.25rem; }
.map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--accent-color);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}
.map-link:hover { color: #6b8b7e; }
.map-link i { display: inline-block; line-height: 0; }

.travel-note { font-size: .95rem; opacity: .9; }

/* =========================================================
   ABOUT
   ========================================================= */

.about-section h2 {
  font-family: 'Pacifico', cursive;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.about-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.about-photo {
  width: 300px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  object-fit: cover;
}

.about-text {
  max-width: 500px;
  font-size: 1.05rem;
  line-height: 1.8;
  text-align: left;
}

.about-text strong {
  color: var(--accent-color);
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact-section {
  background-color: #fff9e6; 
}

.contact-section h2 {
  font-family: 'Pacifico', cursive;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact-section p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 400px;
  text-align: left;
}

.contact-form label {
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent-color);
  outline: none;
}

/* Contact Info */
.contact-info {
  max-width: 350px;
  text-align: left;
}

.contact-info h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.contact-info p {
  margin: 0.5rem 0;
}

.contact-info a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info a:hover { color: var(--accent-color); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background-color: var(--bg-color);
  border-top: 1px solid rgba(0,0,0,0.1);
  padding: 1.5rem 1rem;
  text-align: center;
  position: relative;
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-content p {
  margin: 0;
  font-size: 0.95rem;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.footer-socials a {
  color: var(--text-color);
  font-size: 1.4rem;
  transition: color 0.3s ease;
}

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

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--accent-color);
  color: var(--bg-color);
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  transform: translateY(-3px);
  background-color: #6b8b7e;
}

/* =========================================================
   RESPONSIVE DESIGN
   ========================================================= */
@media (max-width: 900px) {
  .menu-toggle { display: block; font-size: 1.8rem; }

  .nav-menu {
    position: absolute;
    top: 70px;
    right: 0;
    left: auto;
    background-color: var(--bg-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  .nav-menu.open {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    width: 100%;
  }

  .nav-links a {
    width: 100%;
    text-align: left;
  }

  /* Social icons — tighter layout inside the mobile dropdown */
  .social {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;     /* was 0.4rem — closer spacing */
    justify-content: flex-start;
    margin: 0;
    padding: 0;
  }

  .social a {
    display: inline-flex;
    width: auto;
    padding: 0;       /* keep icons tight */
    margin: 0;
    line-height: 1;
    text-decoration: none; /* no underline on mobile either */
  }

  .navbar-container { padding: 0.8rem 1rem; }
  .home-logo { max-width: 260px; }
  .home-section h1 { font-size: 2rem; }
  .home-section p { font-size: 1rem; }
  .logo { height: 45px; }

  /* ===== Find Me — Mobile polish ===== */
  /* Section spacing */
  .find-section { padding: 4.5rem 1rem; }
  .find-section h2 { margin-bottom: 0.75rem; }

  /* Stack map and info; tighten gaps */
  .find-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 700px; /* keeps content nicely centered/narrow on small screens */
  }

  /* Make the map responsive and keep rounded corners */
  .map-embed { border-radius: 12px; overflow: hidden; }
  .map-embed iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;   /* responsive height */
    min-height: 240px;      /* fallback for very small devices */
    border: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  }

  .find-info {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    text-align: center; /* keep the alignment */
  }

  /* keep tidy spacing after removing the card */
  .find-info p { margin: 0 0 0.75rem; }

  /* Turn the directions link into a clear, tappable pill CTA */
  .map-actions { margin-top: 0.25rem; }
  .map-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 10px 16px;
    border-radius: 999px;
    border: 2px solid var(--accent-color);
    background: transparent;
    color: var(--accent-color);
    font-weight: 700;
    text-decoration: none;              /* override desktop underline for mobile */
    min-height: 44px;                   /* comfortable tap target */
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  }
  .map-link:hover { background: var(--accent-color); color: var(--bg-color); }
  .map-link i { line-height: 0; transform: translateY(1px); }

  /* Softer tone for the long towns line */
  .travel-note { font-size: 0.95rem; opacity: 0.9; }
}

@media (max-width: 768px) {
  .service-card, .about-text { text-align: center; }
  .about-photo { width: 80%; max-width: 250px; }
  .contact-container { flex-direction: column; align-items: center; }
  .contact-form, .contact-info { text-align: center; }
  .contact-form label { text-align: left; }
}

@media (hover: hover) and (pointer: fine) {
  /* Underline on hover — exclude social + Book Now */
  .nav-links li:not(.social) > a:not(.book-btn):hover::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background-color: var(--accent-color);
  }

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

/* Never draw underline for social links (safety override) */
.nav-links .social a::after { content: none !important; }