/* =========================================
   Texas Select Barber Studio Stylesheet
   Mobile-first, dark theme, accessible
========================================= */

:root {
  /* Colors */
  --bg-primary: #1a1a1a;
  --bg-secondary: #000000;
  --bg-card: #2a2a2a;
  --bg-card-alt: #333333;
  
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --text-muted: #999999;
  
  --accent-gold: #FFD900;
  --star-gold: #FFD900;
  
  /* Typography */
  --font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  
  /* Spacing */
  --padding-horizontal: 32px;
  --section-padding-v: 48px;
  --gap-standard: 16px;
  
  /* Radii */
  --radius-card: 12px;
  --radius-btn: 8px;
  
  /* Touch targets */
  --min-tap-target: 44px;
}

/* =========================================
   Resets & Base Styles
========================================= */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 0.5em;
  line-height: 1.2;
}

h2 {
  font-size: 24px;
  font-weight: 700;
}

p {
  margin-top: 0;
  margin-bottom: 1em;
  font-size: 15px;
}

a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.8;
}

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

/* =========================================
   Typography Utilities
========================================= */
.section-label {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  display: block;
}

/* =========================================
   Layout & Containers
========================================= */
.container {
  width: 100%;
  max-width: 768px;
  padding-left: var(--padding-horizontal);
  padding-right: var(--padding-horizontal);
  margin: 0 auto;
}

section {
  padding: var(--section-padding-v) 0;
}

/* =========================================
   Buttons
========================================= */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--min-tap-target);
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-btn);
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-align: center;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.btn-primary {
  background-color: var(--accent-gold);
  color: var(--bg-secondary);
}

.btn-primary:hover {
  background-color: #e6c300;
}

.btn-outline {
  background-color: transparent;
  color: var(--text-primary);
  border: 2px solid var(--text-secondary);
}

.btn-outline:hover {
  border-color: var(--text-primary);
}

/* =========================================
   Hero Section
========================================= */
.hero {
  position: relative;
  background-color: var(--bg-secondary);
  background-size: cover;
  background-position: center;
  padding: 0;
  text-align: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.8) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 60px;
  padding-bottom: 40px;
}

.hero h1 {
  font-size: 36px;
  margin-bottom: 8px;
  line-height: 1.1;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero .subtitle {
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 24px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.star-rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}

.squire-logo {
  height: 20px;
  width: auto;
  object-fit: contain;
}

.star-rating .stars {
  display: flex;
  align-items: center;
  gap: 4px;
}

.custom-star-svg {
  width: 36px;
  height: 36px;
  display: inline-block;
}

.star-rating .count {
  font-size: 16px;
  color: var(--text-primary);
}

.hero .cta-btn {
  max-width: 320px;
  margin: 0 auto;
  border-radius: 12px;
  font-size: 18px;
  padding: 16px 24px;
}

/* Step icon image styling */
.step-icon-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(87%) sepia(97%) saturate(1000%) hue-rotate(3deg) brightness(103%) contrast(104%);
}

/* =========================================
   Sticky Book Now Button
========================================= */
.sticky-btn {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--accent-gold);
  color: var(--bg-secondary);
  padding: 16px var(--padding-horizontal);
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 1000;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sticky-btn.visible {
  transform: translateY(0);
  opacity: 1;
}

.sticky-btn:hover {
  opacity: 0.95;
}

/* =========================================
   How to get that fresh cut (Steps)
========================================= */
.steps-section {
  background-color: var(--bg-secondary);
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.appointment-banner {
  background-color: #1e1b18;
  color: var(--text-primary);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  font-size: 14px;
}

.calendar-inline-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.step-number {
  flex-shrink: 0;
  font-size: 20px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.2;
}

.step-content h3 {
  font-size: 18px;
  margin-bottom: 4px;
  font-weight: 400;
}

.step-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 0;
}

.payment-badges-placeholder {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.payment-badge {
  background-color: #1e1b18;
  color: var(--text-primary);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
}

/* =========================================
   Gallery Section
========================================= */
.gallery-section {
  background-color: var(--bg-secondary);
}

.gallery-carousel-wrapper {
  position: relative;
  margin-top: 8px;
}

.gallery-grid {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 16px;
  padding-bottom: 16px;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

.gallery-grid::-webkit-scrollbar {
  display: none;
}

.gallery-item {
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  flex: 0 0 85%;
}

.carousel-btn {
  position: absolute;
  top: calc(50% - 40px);
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s;
}

.carousel-btn:hover {
  background: var(--accent-gold);
  color: var(--bg-secondary);
}

.carousel-btn.prev {
  left: -16px;
}

.carousel-btn.next {
  right: -16px;
}

.gallery-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 12px;
}

.gallery-details {
  padding: 4px 0;
}

.gallery-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.gallery-title-row h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 0;
}

.gallery-price {
  font-size: 16px;
  color: var(--text-secondary);
}

.gallery-description {
  font-size: 15px;
  line-height: 1.4;
  margin-bottom: 4px;
  color: #e0e0e0;
}

.gallery-duration {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.review-card {
  background-color: #1e1b18; /* slightly warm dark grey */
  border-radius: 12px;
  padding: 24px;
  margin-top: 48px;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.review-name {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: var(--text-primary);
}

.review-stars {
  display: flex;
  gap: 4px;
}

.review-text {
  font-size: 16px;
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 16px;
  color: #e0e0e0;
}

.review-footer {
  text-align: right;
  font-size: 14px;
  font-weight: 300;
  color: #cccccc;
}

/* =========================================
   Pricing Section
========================================= */
.pricing-section {
  background-color: #1e1b18; /* Matching the reference background */
}

.pricing-list {
  display: flex;
  flex-direction: column;
}

.pricing-item {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
}

.pricing-item:last-child {
  border-bottom: none;
}

.pricing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.pricing-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.pricing-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.pricing-duration {
  font-size: 18px;
  color: var(--text-secondary);
}

/* =========================================
   Footer
========================================= */
.footer {
  background-color: #1e1b18;
  padding: 64px 0 100px;
}

.footer-content-left {
  text-align: left;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.contact-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-text {
  font-size: 18px;
  line-height: 1.4;
  color: var(--text-primary);
}

.hours-list {
  display: flex;
  flex-direction: column;
  margin-bottom: 32px;
}

.hours-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.hours-day {
  font-size: 18px;
  color: var(--text-primary);
}

.hours-time {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.footer-btn-wrapper {
  margin-bottom: 64px;
}

.btn-directions {
  background-color: #ffffff;
  color: #000000;
  width: 100%;
  border-radius: 12px;
  font-size: 20px;
  font-weight: 700;
  padding: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

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

.social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--bg-card);
  color: var(--text-primary);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.social-icons a:hover {
  transform: scale(1.1);
  background-color: var(--accent-gold);
  color: var(--bg-secondary);
}

/* =========================================
   Map Chooser Modal
========================================= */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #1a1a1a;
  width: 100%;
  max-width: 500px;
  border-radius: 20px 20px 0 0;
  padding: 24px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-content h3 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 20px;
  text-align: center;
}

.map-option {
  display: block;
  width: 100%;
  padding: 16px;
  background: #2a2a2a;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s;
}

.map-option:hover {
  background: #333;
}

.map-option.cancel-btn {
  background: transparent;
  border: 1px solid #555;
  margin-top: 24px;
  margin-bottom: 0;
}

/* =========================================
   Media Queries (Tablet & Desktop upgrades)
========================================= */
@media (min-width: 768px) {
  /* Typography scale up for desktop */
  h2 { font-size: 28px; }
  .hero h1 { font-size: 48px; }
  .hero .subtitle { font-size: 24px; }
  .appointment-banner { font-size: 16px; }
  .step-number { font-size: 24px; }
  .step-content h3 { font-size: 20px; }
  .step-content p { font-size: 16px; }

  .gallery-item {
    flex: 0 0 calc(50% - 8px);
  }
  
  /* Step list remains vertical */
  


  .modal-overlay {
    align-items: center;
  }
  
  .modal-content {
    border-radius: 16px;
    padding-bottom: 24px;
  }
}

/* =========================================
   Scroll Animations
========================================= */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   Social & Payment Icon Images
========================================= */
.social-icons img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* =========================================
   Section container padding
========================================= */
section .container,
.footer .container {
  padding-left: var(--padding-horizontal);
  padding-right: var(--padding-horizontal);
}
