/* * STYLES.CSS
 * Main stylesheet for Exquisite Nails
 */

/* 1. Root Variables & Global Styles
-------------------------------------------------- */
:root {
  --color-background: #fbf9f7; /* Very light, warm off-white */
  --color-primary: #4a3c35; /* Dark, warm brown */
  --color-secondary: #7d6b60; /* Medium, muted brown */
  --color-accent: #d4afaa; /* Dusty, muted rose */
  --color-accent-dark: #b88e8e; /* Darker muted rose */
  --color-white: #ffffff;
  --color-border: #eae5e1;

  --font-sans: "Inter", sans-serif;
  --font-serif: "Playfair Display", serif;

  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 32px;
  --spacing-xl: 64px;

  --border-radius: 8px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-background);
  color: var(--color-primary);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--spacing-lg);
  padding-right: var(--spacing-lg);
}

.section {
  padding-top: var(--spacing-xl);
  padding-bottom: var(--spacing-xl);
}

.bg-white {
  background-color: var(--color-white);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

/* Utility class */
.nobottomborder {
  border-bottom: 0;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.3;
}

a {
  color: var(--color-accent-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

ul {
  list-style: none;
}

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

/* 2. Buttons
-------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

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

.btn-primary:hover {
  background-color: var(--color-secondary);
  color: var(--color-background);
  transform: translateY(-2px);
}

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

.btn-secondary:hover {
  background-color: var(--color-accent-dark);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* 3. Header & Navigation
-------------------------------------------------- */
.header {
  background-color: rgba(251, 249, 247, 0.85); /* background with opacity */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
}

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

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-primary);
}

.nav-logo:hover {
  color: var(--color-primary);
}

.nav-list {
  display: flex;
  gap: var(--spacing-lg);
}

.nav-link {
  color: var(--color-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 0;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent-dark);
  transition: width 0.3s ease;
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
}

.nav-toggle {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-primary);
  cursor: pointer;
}

/* Style for the new Book Now button in the nav */
.nav-book-btn-desktop {
  margin-left: var(--spacing-md);
  /* Make button smaller to fit in nav */
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* Hide mobile book button by default */
.nav-book-btn-mobile {
  display: none;
}

/* 4. Hero Section
-------------------------------------------------- */
.hero {
  position: relative;
  height: 65vh; /* 70% of the viewport height */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden; /* Ensures image blur doesn't escape */
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero::after {
  /* Dark Overlay */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.35); /* 35% dark tint */
  z-index: -1;
}

.hero-content {
  color: var(--color-white);
  /* Add a text shadow for readability */
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  /* Animation (optional, but nice) */
  opacity: 0;
  transform: translateY(20px);
  animation: 1s ease-out 0.3s forwards hero-fade-in;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
}

.hero-subtitle {
  font-size: 1.25rem;
  font-family: var(--font-sans);
  font-weight: 300;
  max-width: 600px;
  margin-bottom: var(--spacing-lg);
  margin-left: auto;
  margin-right: auto;
}

/* 5. Intro Section
-------------------------------------------------- */
.intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-xl);
}

.intro-text {
  flex-basis: 50%;
}

.section-title {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: var(--spacing-md);
}

.intro-address {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-secondary);
  margin-bottom: var(--spacing-md);
}

.intro-text p {
  color: var(--color-secondary);
  line-height: 1.7;
}

.intro-image {
  flex-basis: 45%;
}

.intro-image img {
  border-radius: var(--border-radius);
  border: 1px solid var(--color-border);
}

.commitment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Two equal columns */
  gap: var(--spacing-xl);
  margin-top: var(--spacing-lg);
  align-items: start; /* Aligns items to the top */
}

.commitment-item {
  text-align: center;
  /* Add the same fade-in animation */
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
}

.commitment-icon {
  color: var(--color-accent-dark);
  margin-bottom: var(--spacing-md);
}

.commitment-item h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
}

.commitment-item p {
  color: var(--color-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* 6. Services Overview Section
-------------------------------------------------- */
.section-subtitle {
  font-size: 1.15rem;
  color: var(--color-secondary);
  margin-bottom: var(--spacing-lg);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.services-columns {
  display: flex;
  justify-content: center;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-lg);
}

.service-column {
  flex-basis: 300px;
  text-align: center;
}

.service-column h3 {
  font-size: 1.75rem;
  font-family: var(--font-serif);
  color: var(--color-primary);
  margin-bottom: var(--spacing-md);
}

.service-column ul {
  list-style: none;
  text-align: left;
  padding-left: 30px;
}

.service-column li {
  color: var(--color-secondary);
  margin-bottom: var(--spacing-sm);
  font-size: 1.05rem;
  padding-left: 20px;
  position: relative;
}

.service-column li::before {
  content: "•";
  color: var(--color-accent-dark);
  position: absolute;
  left: 0;
  font-size: 1.2rem;
}

/* 7. Visit Us Section
-------------------------------------------------- */
.visit-us-section {
  background-color: var(--color-background);
}

.visit-us-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: flex-start;
}

.contact-info-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: var(--spacing-lg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease-in-out;
}

.contact-info-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.contact-info-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: var(--spacing-lg);
}

.contact-info-list {
  list-style: none;
  color: var(--color-secondary);
}

.contact-info-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  font-size: 1rem;
  margin-bottom: var(--spacing-md);
}

.contact-icon {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--color-accent-dark);
}

.hours-list p {
  margin: 0;
  line-height: 1.5;
}

.contact-info-footer {
  font-weight: 500;
  color: var(--color-primary);
  margin-top: var(--spacing-lg);
}

.map-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 400px;
  border-radius: var(--border-radius);
  border: 1px solid var(--color-border);
  overflow: hidden; /* To contain the iframe */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); /* Match the card */
}

.map-placeholder h3 {
  /* This is fallback text if iframe fails */
  display: none;
}

.map-placeholder iframe {
  width: 100%;
  height: 100%;
  min-height: 450px; /* Make sure it's tall enough */
  border: none;
}

/* 8. Footer
-------------------------------------------------- */
.footer {
  background-color: var(--color-white);
  border-top: 1px solid var(--color-border);
  padding: var(--spacing-sm) 0; /* Reduced padding */
  font-size: 0.95rem;
}

.footer-bottom {
  text-align: center;
  padding: var(--spacing-lg) 0; /* Reduced padding */
  color: var(--color-secondary);
  font-size: 0.9rem;
}

.footer-bottom p {
  margin: 0; /* Remove default margin */
}

/* 9. Mobile Responsiveness
-------------------------------------------------- */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-xl);
  }
}

/* This is the one, correct, and final mobile block */
@media (max-width: 768px) {
  .section {
    padding-top: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
  }

  .nav-logo {
    font-size: 1.3rem; /* Decreases from the default 1.5rem */
  }

  .page-header-title {
    font-size: 2.5rem;
  }

  /* This rule fixes your services.html page (the screenshot) */
  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-column {
    text-align: center;
    flex-basis: auto; /* <-- THIS IS THE REAL FIX */
    width: 100%;
  }

  .service-column ul {
    text-align: left;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 70px; /* Height of nav */
    left: 0;
    width: 100%;
    background-color: var(--color-background);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: var(--spacing-md) 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  }

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

  .nav-list {
    flex-direction: column;
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: var(--spacing-md) var(--spacing-lg);
    text-align: center;
  }

  .nav-link:hover,
  .nav-link.active {
    background-color: #f5f1ee;
  }

  .nav-link::after {
    display: none; /* Remove underline on mobile nav */
  }

  .nav-toggle {
    display: block;
  }

  /* Hide the desktop "Book Now" button on mobile */
  .nav-book-btn-desktop {
    display: none;
  }

  /* Show and style the mobile "Book Now" button */
  .nav-book-btn-mobile {
    display: block;
    padding: var(--spacing-md) var(--spacing-lg);
  }

  .nav-book-btn-mobile .btn {
    width: 100%; /* Make button full width */
  }

  .hero {
    height: 60vh;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .intro {
    flex-direction: column;
  }

  .intro-text {
    text-align: center;
  }

  .intro-image {
    max-width: 100%;
    margin-top: var(--spacing-sm);
  }

  .commitment-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  /* This rule fixes your index.html page (the other one) */
  .services-columns {
    flex-direction: column;
    gap: var(--spacing-lg); /* <-- Set this to 32px */
    align-items: center;
    margin-bottom: var(--spacing-md);
  }

  .visit-us-grid {
    grid-template-columns: 1fr;
  }

  .map-placeholder {
    min-height: 300px;
  }

  .map-placeholder iframe {
    min-height: 300px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-map iframe {
    height: 250px;
  }
}

/* 10. Services Page
-------------------------------------------------- */
.page-header {
  position: relative;
  height: 40vh; /* Shorter than the main hero */
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.page-header .hero-image {
  animation: 15s ease-in-out infinite alternate ken-burns-zoom;
}

.page-header::after {
  /* Dark Overlay */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.35); /* 35% dark tint */
  z-index: -1;
}

.page-header-title {
  font-size: 3rem;
  font-weight: 600;
  color: var(--color-white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(20px);
  animation: 1s ease-out 0.3s forwards hero-fade-in;
}

.service-list-section {
  background-color: var(--color-white);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
}

.service-category .section-title {
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--color-border);
}

.service-item {
  display: flex;
  justify-content: space-between;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.service-item-details {
  flex: 1;
}

.service-item-name {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
}

.service-item-desc {
  font-size: 0.9rem;
  color: var(--color-secondary);
  line-height: 1.5;
}

.service-item-price {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-accent-dark);
}

/* 11. Animations
-------------------------------------------------- */

/* Keyframe Definitions */
@keyframes hero-fade-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ken-burns-zoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.1);
  }
}

/* Staggered Fade-in for Visit Us Section */
.visit-us-section .section-title {
  animation: fadeIn 0.8s ease-out forwards;
  animation-delay: 0.1s;
  opacity: 0; /* Start hidden */
}

.visit-us-section .section-subtitle {
  animation: fadeIn 0.8s ease-out forwards;
  animation-delay: 0.2s;
  opacity: 0; /* Start. hidden */
}

.visit-us-grid .contact-info-card:nth-child(1) {
  animation: fadeIn 0.8s ease-out forwards;
  animation-delay: 0.3s;
  opacity: 0; /* Start hidden */
}

.visit-us-grid .contact-info-card:nth-child(2),
.visit-us-grid .map-placeholder {
  animation: fadeIn 0.8s ease-out forwards;
  animation-delay: 0.4s;
  opacity: 0; /* Start hidden */
}

/* Staggered Fade-in for Commitment Section */
.commitment-item:nth-child(1) {
  animation-delay: 0.2s;
}
.commitment-item:nth-child(2) {
  animation-delay: 0.3s;
}
