/*
Theme Name: HR Style and Cut
Theme URI: https://hrstyleandcut.com
Author: HR Style and Cut
Author URI: https://hrstyleandcut.com
Description: A luxury VIP mobile barber block theme for HR Style and Cut in Greater Boston. Precision grooming, custom razor hair designs, and on-demand mobile concierge.
Version: 1.2.1
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hr-style-and-cut
Tags: block-theme, full-site-editing, custom-colors, barber, luxury
*/

/* ==========================================================================
   1. CORE DESIGN TOKENS & RESET
   ========================================================================== */
:root {
  --color-obsidian: #09090b;
  --color-obsidian-elevated: #0f0f13;
  --color-charcoal: #141418;
  --color-charcoal-light: #1a1a20;
  --color-surface: #1e1e24;
  --color-surface-translucent: rgba(26, 26, 32, 0.75);
  --color-surface-hover: #26262e;
  
  --color-gold-100: #FFF9E6;
  --color-gold-200: #FFF0B3;
  --color-gold-300: #F3E5AB;
  --color-gold-400: #E6CA65;
  --color-gold-500: #D4AF37;
  --color-gold-600: #C5A059;
  --color-gold-700: #997B2A;
  --color-gold-glow: rgba(212, 175, 55, 0.28);
  --color-gold-border: rgba(212, 175, 55, 0.22);
  --color-gold-border-bright: rgba(212, 175, 55, 0.55);

  --font-serif: 'Cinzel', Georgia, serif;
  --font-sans: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --shadow-gold-sm: 0 4px 14px -2px rgba(212, 175, 55, 0.18);
  --shadow-gold-md: 0 8px 24px -4px rgba(212, 175, 55, 0.28);
  --shadow-gold-lg: 0 16px 36px -6px rgba(212, 175, 55, 0.35);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.7);

  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  background-color: var(--color-obsidian);
  color: #e4e4e7;
  background-image: 
    radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, 0.08) 0%, transparent 60%),
    radial-gradient(#1e1e24 0.75px, transparent 0.75px);
  background-size: 100% 800px, 24px 24px;
  background-repeat: no-repeat, repeat;
  font-family: var(--font-sans);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Accessibility Focus Visible */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-gold-500) !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 12px var(--color-gold-glow) !important;
}

/* ==========================================================================
   2. LUXURY TYPOGRAPHY & HEADINGS
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  letter-spacing: 0.02em;
  font-weight: 700;
  line-height: 1.2;
}

.gold-gradient-text {
  background: linear-gradient(135deg, #FFF9E6 0%, #F3E5AB 25%, #D4AF37 55%, #AA8022 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.2));
}

.gold-subheading {
  font-family: var(--font-serif);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold-500);
  font-weight: 600;
}

/* ==========================================================================
   3. LUXURY BUTTONS & CTAS
   ========================================================================== */
.gold-gradient-bg {
  background: linear-gradient(135deg, #F3E5AB 0%, #D4AF37 50%, #997B2A 100%);
  color: #09090b !important;
  font-family: var(--font-sans);
  font-weight: 700;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-gold-sm);
  transition: all 0.3s var(--ease-spring);
}

/* Default layout lives in a layer so Tailwind utilities (hidden, block, flex, sm:inline-flex) can override it */
@layer components {
  .gold-gradient-bg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

.gold-gradient-bg:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold-md);
  filter: brightness(1.08);
}

.gold-gradient-bg:active {
  transform: translateY(0);
  box-shadow: var(--shadow-gold-sm);
}

/* Button Continuous Ambient Shimmer */
.gold-gradient-bg::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -70%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  animation: goldShimmer 4.5s infinite ease-in-out;
  pointer-events: none;
}

@keyframes goldShimmer {
  0% { left: -70%; }
  30% { left: 140%; }
  100% { left: 140%; }
}

/* Secondary Luxury Button (Hairline Gold Outline) */
.gold-outline-btn {
  border: 1px solid var(--color-gold-border-bright);
  background: rgba(212, 175, 55, 0.05);
  color: var(--color-gold-300);
  font-family: var(--font-sans);
  font-weight: 600;
  transition: all 0.3s var(--ease-spring);
  backdrop-filter: blur(8px);
}

.gold-outline-btn:hover {
  background: rgba(212, 175, 55, 0.16);
  border-color: var(--color-gold-400);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px -4px rgba(212, 175, 55, 0.22);
}

/* ==========================================================================
   4. GLASSMORPHISM & SURFACE PANELS
   ========================================================================== */
.glass-panel {
  background: rgba(22, 22, 28, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: var(--shadow-card);
}

.glass-panel-gold {
  background: linear-gradient(135deg, rgba(28, 28, 36, 0.85) 0%, rgba(18, 18, 22, 0.9) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-gold-border);
  box-shadow: var(--shadow-card), 0 0 20px -5px rgba(212, 175, 55, 0.15);
  transition: all 0.35s var(--ease-spring);
}

.glass-panel-gold:hover {
  border-color: var(--color-gold-border-bright);
  box-shadow: var(--shadow-card), 0 0 30px -5px rgba(212, 175, 55, 0.28);
  transform: translateY(-3px);
}

.gold-box-subtle {
  border: 1px solid var(--color-gold-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.gold-border-glow {
  box-shadow: 0 0 25px -5px rgba(212, 175, 55, 0.22);
}

.gold-border-glow-lg {
  box-shadow: 0 0 45px -5px rgba(212, 175, 55, 0.35);
}

/* ==========================================================================
   5. NAVIGATION & TOP NOTIFICATION
   ========================================================================== */
.nav-link {
  position: relative;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold-400), var(--color-gold-600));
  transition: width 0.3s var(--ease-spring);
  border-radius: 2px;
}

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

/* ==========================================================================
   6. INTERACTIVE SERVICE CARDS & PRICING
   ========================================================================== */
.service-card {
  position: relative;
  background: var(--color-surface);
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.35s var(--ease-spring);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card:hover {
  border-color: var(--color-gold-border-bright);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.8), 0 0 25px -5px rgba(212, 175, 55, 0.25);
}

.service-card.featured-card {
  background: linear-gradient(180deg, rgba(32, 30, 24, 0.95) 0%, rgba(20, 20, 24, 0.98) 100%);
  border: 1px solid var(--color-gold-border-bright);
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.8), 0 0 30px -4px rgba(212, 175, 55, 0.22);
}

.service-card.featured-card:hover {
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.9), 0 0 40px -2px rgba(212, 175, 55, 0.4);
}

.gold-check-icon {
  width: 1rem;
  height: 1rem;
  color: var(--color-gold-400);
  flex-shrink: 0;
}

/* ==========================================================================
   7. PORTFOLIO & FILTER TABS
   ========================================================================== */
.portfolio-tab {
  transition: all 0.25s var(--ease-smooth);
}

.portfolio-tab.active {
  background-color: var(--color-gold-500) !important;
  color: #09090b !important;
  border-color: var(--color-gold-400) !important;
  font-weight: 700;
  box-shadow: var(--shadow-gold-sm);
}

.portfolio-card {
  transition: all 0.4s var(--ease-spring);
}

.portfolio-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-gold-border-bright);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.9), 0 0 30px -5px rgba(212, 175, 55, 0.25);
}

/* ==========================================================================
   8. FAQ ACCORDION
   ========================================================================== */
details summary::-webkit-details-marker {
  display: none;
}

details summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}

details[open] {
  border-color: var(--color-gold-border-bright) !important;
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.6), 0 0 20px -5px rgba(212, 175, 55, 0.15);
}

details[open] summary .faq-icon {
  transform: rotate(180deg);
  color: var(--color-gold-400);
}

/* ==========================================================================
   9. MOBILE SLIDE-OUT DRAWER
   ========================================================================== */
#mobile-menu {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

#mobile-menu.menu-closed {
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
}

#mobile-menu.menu-open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   10. MOBILE BOTTOM STICKY QUICK ACTION BAR
   ========================================================================== */
#mobile-quick-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 45;
  background: rgba(9, 9, 11, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--color-gold-border);
  padding: 0.65rem 1rem;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s var(--ease-spring), opacity 0.3s ease;
}

#mobile-quick-bar.bar-hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

/* ==========================================================================
   11. CUSTOM FORM CONTROLS & RADIO PILLS
   ========================================================================== */
.radio-card-active {
  border-color: var(--color-gold-500) !important;
  background-color: rgba(212, 175, 55, 0.08) !important;
  box-shadow: 0 0 16px -3px rgba(212, 175, 55, 0.25) !important;
}

.radio-card-inactive {
  border-color: rgba(255, 255, 255, 0.1) !important;
  background-color: rgba(0, 0, 0, 0.4) !important;
}

/* Date picker color inversion for dark theme */
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.8) sepia(50%) saturate(500%) hue-rotate(5deg);
  cursor: pointer;
}

/* Smooth Fade In Utility */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fadeIn {
  animation: fadeIn 0.4s var(--ease-spring) forwards;
}

/* ==========================================================================
   12. RESPONSIVE GRID UTILITIES & FALLBACKS
   ========================================================================== */
@media (min-width: 640px) {
  .sm\:grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .sm\:col-span-1 { grid-column: span 1 / span 1 !important; }
  .sm\:col-span-2 { grid-column: span 2 / span 2 !important; }
}

@media (min-width: 768px) {
  .md\:grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .md\:col-span-1 { grid-column: span 1 / span 1 !important; }
  .md\:col-span-2 { grid-column: span 2 / span 2 !important; }
  .md\:col-span-3 { grid-column: span 3 / span 3 !important; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)) !important; }

  .lg\:col-span-1 { grid-column: span 1 / span 1 !important; }
  .lg\:col-span-2 { grid-column: span 2 / span 2 !important; }
  .lg\:col-span-3 { grid-column: span 3 / span 3 !important; }
  .lg\:col-span-4 { grid-column: span 4 / span 4 !important; }
  .lg\:col-span-5 { grid-column: span 5 / span 5 !important; }
  .lg\:col-span-6 { grid-column: span 6 / span 6 !important; }
  .lg\:col-span-7 { grid-column: span 7 / span 7 !important; }
  .lg\:col-span-8 { grid-column: span 8 / span 8 !important; }
  .lg\:col-span-9 { grid-column: span 9 / span 9 !important; }
  .lg\:col-span-10 { grid-column: span 10 / span 10 !important; }
  .lg\:col-span-11 { grid-column: span 11 / span 11 !important; }
  .lg\:col-span-12 { grid-column: span 12 / span 12 !important; }
}

@media (min-width: 1280px) {
  .xl\:grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
  .xl\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .xl\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .xl\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}

/* ==========================================================================
   13. RESPONSIVE UTILITIES & MICRO-REFINEMENTS
   ========================================================================== */
@media (max-width: 640px) {
  body {
    padding-bottom: 72px; /* Prevent bottom bar from overlapping footer */
  }
}

