/* Enable smooth scrolling across the page with navbar offset */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Prevents sticky header from covering top of card */
}

/* ==========================================================================
   1. HEADER & TYPOGRAPHY STYLES
   ========================================================================== */

/* Libre Caslon Text Headers */
.logo,
.hero-intro h1,
.section-title,
.barber-card-content h2 {
  font-family: 'Libre Caslon Text', serif;
  letter-spacing: 1px;
}

/* Base Body Typography (Montserrat) */
body,
p,
.nav-link,
.btn-call,
.btn-book,
.specialty {
  font-family: 'Gothic A1', sans-serif;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.barber-card p {
  font-size: 1.15rem;
  color: var(--text-muted);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.specialty {
  font-size: 1rem;
}


/* ==========================================================================
   2. GLOBAL RESET & NEUMORPHIC PALETTE
   ========================================================================== */
:root {
  --bg-jet-black: #171717;
  --surface-dark: #0d0d0d;
  --text-main: #ffffff;
  --text-muted: #a1a1aa;
  
  /* Glassmorphism settings */
  --glass-bg: rgba(18, 18, 18, 0.8);
  --glass-border: rgba(255, 255, 255, 0.1);
  
  /* Neumorphic Dark Shadows */
  --neu-shadow-outer: 
    -5px -5px 15px rgba(255, 255, 255, 0.05),
    8px 8px 20px rgba(0, 0, 0, 0.9);
    
  --neu-shadow-inset: 
    inset 2px 2px 5px rgba(0, 0, 0, 0.9), 
    inset -2px -2px 5px rgba(255, 255, 255, 0.05);
}

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

body {
  background-color: var(--bg-jet-black);
  color: var(--text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden; /* Prevents unwanted horizontal scrolling on mobile */
}


/* ==========================================================================
   3. NAVIGATION BAR
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 51, 255, 0.8);
  box-shadow: 0 4px 20px rgba(0, 162, 255, 0.35);
  padding: 0.75rem 0.75rem; /* Compact mobile padding */
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.logo {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--text-main);
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1rem; /* Tighter gap for small screens */
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--text-main);
}

.btn-book {
  background: var(--surface-dark);
  color: var(--text-main);
  padding: 0.4rem 0.65rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--neu-shadow-outer);
  transition: all 0.2s ease;
}

.btn-book:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: -6px -6px 20px rgba(255, 255, 255, 0.08), 
              10px 10px 25px rgba(0, 0, 0, 0.95);
}

.btn-book:active {
  transform: translateY(0);
  box-shadow: var(--neu-shadow-inset);
}

/*=========*/

.btn-call {
  background: var(--surface-dark);
  color: var(--text-main);
  padding: 0.4rem 0.65rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--neu-shadow-outer);
  transition: all 0.2s ease;
}

.btn-call:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: -6px -6px 20px rgba(255, 255, 255, 0.08), 
              10px 10px 25px rgba(0, 0, 0, 0.95);
}

.btn-call:active {
  transform: translateY(0);
  box-shadow: var(--neu-shadow-inset);
}


/* Contact Hyperlinks Styling */
.contact-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

.contact-link:hover,
.contact-link:focus {
  color: #0066ff; /* Matches your brand blue accent */
  text-decoration: underline;
}

/* ==========================================================================
   4. HERO SECTION STYLES
   ========================================================================== */
.hero-section {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.25rem;
  text-align: center;
  
  /* Background Image Setup */
  background: 
    linear-gradient(
      to bottom, 
      rgba(23, 23, 23, 0.75) 0%, 
      rgba(23, 23, 23, 0.88) 70%,
      rgba(23, 23, 23, 1) 100%
    ),
    url('../assets/images/barbers/La-Barberia-wideshot.JPEG') no-repeat center center / cover;
  border-bottom: 1px solid rgba(0, 102, 255, 0.25);
}

/* Add breathing room between paragraphs and the location/phone info */
.hero-section p, 
.hero-intro p {
  margin-bottom: 1.5rem; /* Adjust this value (e.g., 1.5rem or 2rem) for more or less space */
}

/* ==========================================================================
   HERO HOURS STYLING
   ========================================================================== */
.hero-hours {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  background: rgba(13, 13, 13, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

.hours-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #0066ff;
  margin-bottom: 0.5rem;
}

.hours-list {
  list-style: none;
  padding: 0;
  font-size: 0.825rem;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.2rem 0;
  color: #e4e4e7;
}

.hours-list .closed {
  color: #ef4444;
  font-weight: 600;
}

.location-info a {
  color: #ffffff;
  text-decoration: none;
}

.location-info a:hover {
  color: #0066ff;
}

/* ==========================================================================
   MINIMAL FOOTER
   ========================================================================== */
.site-footer {
  width: 100%;
  padding: 1.5rem 1rem;
  text-align: center;
  border-top: 1px solid var(--glass-border);
  background: var(--surface-dark);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.hero-intro h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.hero-intro p {
  color: rgb(207, 206, 206);
  font-size: 1rem;
}

.hero-intro .location-info {
  font-size: 0.9rem;
  margin-top: 0.25rem;
  opacity: 0.9;
}


/* ==========================================================================
   5. SECTION & CARD LAYOUT
   ========================================================================== */

/* Outer Section Container for all stacked cards */
.barbers-section {
  max-width: 800px;
  margin: 2rem auto 3rem auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: center; /* Strictly centers cards horizontally */
  gap: 2.5rem;
}

/* Base Mobile Card (Vertical Stack: Image Top, Info Bottom) */
.barber-card {
  position: relative;
  width: 100%;
  max-width: 360px; /* Fluid scaling up to 360px on mobile */
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  text-align: center;
  
  /* Tight neon blue glow */
  box-shadow: 
    0px 0px 15px 6px rgba(0, 102, 255, 0.5),
    0 5px 10px rgba(0, 0, 0, 0.7);
}


/* Background Hexagon Pattern 
.card-bg-hex {
  position: absolute;
  bottom: 0;
  right: 0;
  top: 0;
  width: 50%;
  height: 100%;
  background: url('../assets/images/hexagon-pattern-centered.png') no-repeat center / contain;
  opacity: 0.18;
  transform: rotate(25deg) scale(1.1);
  filter: blur(2px);
  pointer-events: none;
  z-index: 0;
  transform: rotate(80deg);
}
*/

/* Image Container */
.barber-card-media {
  width: 100%;
  height: 280px;
  overflow: hidden;
  z-index: 3;
}

.barber-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  object-position: center 10%;
}

/* Text Content Area */
.barber-card-content {
  position: relative;
  z-index: 2;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  overflow: hidden;
}

.barber-card-content h2 {
  font-family: "Crimson Text", serif;
  font-weight: 400;
  font-style: normal;
  margin: 0;
  color: #ffffff;
  
}

.barber-handle {
  font-family: "Sorts Mill Goudy", serif;
  color: #fcfdfd;
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0;
}

/* Booksy CTA Button */
.book-btn {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.75rem 1.6rem;
  font-size: 0.95rem;
  background: #0066ff;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 102, 255, 0.575);
  transition: transform 0.2s ease, background 0.2s ease;
  z-index: 5;
}

.book-btn:hover {
  background: #257bff;
  transform: translateY(-2px);
}

/* Beauty Studio Card Theme (White background, gold & black text) */
.barber-card.beauty-card {
  background-color: #ffffff;
  box-shadow: 0px 0px 15px 6px rgb(223, 173, 8); /* Soft gold and shadow glow */
}

.barbers-section .barber-card.beauty-card:hover {
  box-shadow: 0px 0px 15px 6px rgba(255, 215, 96, 0.9) !important;
}
/* Text inside the beauty card */
.beauty-card h2 {
  color: #1a1a1a; /* Deep black for the title */
  font-family: 'Sorts Mill Goudy', serif; /* Matching your typography style */
}

.beauty-card .instagram-handle,
.beauty-card .instagram-handle:visited,
.beauty-card .barber-handle,
.beauty-card .barber-handle:visited {
  color: #2c2c2c; /* Dark charcoal/black for readability */
}

.beauty-card .instagram-handle:hover,
.beauty-card .barber-handle:hover {
  color: #b8860b; /* Rich gold hover state */
}

/* Jewelry Gold Button for Beauty Card (Overrides Global Blue) */
.beauty-card .book-btn {
  background: linear-gradient(135deg, #f6e27a 0%, #d4af37 40%, #fff3b0 60%, #aa771c 100%) !important;
  color: #111111 !important;
  font-weight: 700;
  border: 1px solid rgba(255, 223, 128, 0.9) !important;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.6), 0 0 10px rgba(255, 215, 0, 0.3) !important;
}

/* Jewelry Gold Button Hover State */
.beauty-card .book-btn:hover {
  background: linear-gradient(135deg, #ffea8c 0%, #e2be42 40%, #fffae0 60%, #c69214 100%) !important;
  color: #111111 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(255, 215, 0, 0.85), 0 0 15px rgba(255, 235, 150, 0.5) !important;
}

/* Force ONLY Jordana's beauty card image to a square 1:1 aspect ratio */
.beauty-card .barber-card-media {
  width: 100%;
  aspect-ratio: 1 / 1; /* Makes just this container square */
  overflow: hidden;
}

.beauty-card .barber-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Crops the excess height gracefully */
  object-position: center top; /* Keeps focus on her portrait */
}

/*===========*/
/* La Oficina Repair Card Theme (Blue background, white text, red button) */
.barber-card.oficina-card {
  background-color: #1e3a8a; /* Rich repair shop blue background */
  box-shadow: 0px 0px 15px 6px #ef4444a5;
}

/* Force outer card hover glow to coordinate with the red/blue theme */
.barbers-section .barber-card.oficina-card:hover {
  box-shadow: 0px 0px 15px 6px rgb(235, 80, 80) !important;
}

/* Text inside the oficina card */
.oficina-card h2 {
  color: #ffffff !important; /* Crisp white for headings */
  font-family: 'Sorts Mill Goudy', serif;
}

.oficina-card .instagram-handle,
.oficina-card .instagram-handle:visited,
.oficina-card .barber-handle,
.oficina-card .barber-handle:visited {
  color: #e2e8f0; /* Soft off-white for readability */
}

.oficina-card .instagram-handle:hover,
.oficina-card .barber-handle:hover {
  color: #ef4444; /* Vibrant red hover state */
}

/* Striking Red Button for La Oficina (Overrides Global Defaults) */
.oficina-card .book-btn {
  background: linear-gradient(135deg, #ef4444 0%, rgb(220, 38, 38) 50%, #b91c1c 100%) !important;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.5), 0 0 10px rgba(239, 68, 68, 0.3) !important;
}

/* Red Button Hover State */
.oficina-card .book-btn:hover {
  background: linear-gradient(135deg, rgb(248, 113, 113) 0%, #ef4444 50%, #dc2626 100%) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(239, 68, 68, 0.8), 0 0 15px rgba(254, 202, 202, 0.5) !important;
}

/* ==========================================================================
   6. DESKTOP / WIDE SCREEN RESPONSIVE BREAKPOINT (768px+)
   ========================================================================== */
@media (min-width: 768px) {
  .navbar {
    padding: 1.25rem 2rem;
  }

  .logo {
    font-size: 1.25rem;
    letter-spacing: 2px;
  }

  .nav-menu {
    gap: 2rem;
  }

  .nav-link {
    font-size: 0.95rem;
  }

  .btn-book {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }

  .btn-call {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }

  .hero-intro h1 {
    font-size: 2.8rem;
  }

  .barbers-section {
    padding: 0 1.5rem;
  }

  /* Switch card to a 2-column Grid on desktop */
  .barber-card {
    max-width: 100%;
    display: grid;
    grid-template-columns: 40% 1fr; /* 40% image, 60% text */
    align-items: stretch;           /* Forces both columns to match height */
    text-align: left;
    min-height: 270px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  /* Left Half: Portrait Image */
  .barber-card-media {
    width: 100%;
    height: 100%;
  }

  .barber-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-top-left-radius: 28px;
    border-bottom-left-radius: 28px;
    border-top-right-radius: 0;
    display: block;
  }

  /* Right Half: Details & Button (Now perfectly centered vertically) */
  .barber-card-content {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centers name, handle, and button vertically */
    align-items: center;
    padding: 2rem 2.5rem;
    gap: 0.6rem;
    height: 100%;
  }

  .barber-card-content h2 {
    font-size: 2rem;
    margin: 0;
  }

  .book-btn {
    align-self: center;
  }

  .barber-card:hover {
    transform: translateY(-4px);
    box-shadow: 
      0px 0px 22px 8px rgba(0, 102, 255, 0.75),
      0 10px 20px rgba(0, 0, 0, 0.85);
  }

  .barber-handle,
  .barber-handle:visited {
    display: inline-block;
    font-family: 'Gothic A1', sans-serif;
    color: #fcfdfd;
    text-decoration: underline;
    text-underline-offset: 4px;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    transition: color 0.2s ease, 0.2s ease;
  }

  .barber-handle:hover {
    color: #94a3b8;
    text-decoration: underline;
  }
}
/* ==========================================================================
   EXTRA SMALL MOBILE TARGETING (iPhone SE / 375px and below)
   ========================================================================== */
@media (max-width: 380px) {
  .nav-container {
    padding: 0.6rem 0.5rem;
  }

  .logo {
    font-size: 0.85rem;
    letter-spacing: 0.5px;
  }

  .nav-menu {
    gap: 0.4rem;
  }

  .nav-link {
    font-size: 0.7rem;
  }

  .btn-book {
    font-size: 0.7rem;
    padding: 0.35rem 0.55rem;
  }
}


/* ==========================================================================
   FOOTER STYLES
   ========================================================================== */
.site-footer {
  width: 100%;
  background: var(--surface-dark);
  border-top: 1px solid var(--glass-border);
  padding: 2.5rem 1rem 1.5rem 1rem;
  text-align: center;
  margin-top: 2rem;
}

.footer-container {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  letter-spacing: 1.5px;
  color: var(--text-main);
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-details {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

.footer-details a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-details a:hover {
  color: #0066ff;
}

.footer-bottom {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.75rem;
  color: var(--text-muted);
}

