/* Presidential Fades Master Stylesheet
   Pure CSS, modern, clean, premium aesthetic
*/

/* Root Variables */
:root {
  /* Colors */
  --black: #000000;
  --near-black: #0A0A0A;
  --dark-gray: #0D0D0D;
  --darker-gray: #050505;
  --offwhite: #F5F5F5;
  --neon-yellow: #FFE600;
  --deep-green: #0F3D2E;
  --gold: #C9A646;

  /* Accent gradients */
  --accent-gradient: linear-gradient(135deg, var(--neon-yellow) 0%, var(--gold) 100%);
  --green-overlay: rgba(15, 61, 46, 0.15);

  /* Fonts */
  --font-main: 'Inter', sans-serif;
  --font-head: 'Poppins', sans-serif;
  --font-accent: 'Space Grotesk', sans-serif;

  /* Spacing Scale */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 64px;
  --space-3xl: 80px;

  /* Transitions */
  --transition-fast: 0.25s ease;
  --transition-med: 0.45s ease;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --glow-yellow: 0 0 20px rgba(255, 230, 0, 0.4);
}

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

/* Base */
body {
  font-family: var(--font-main);
  background: var(--black);
  color: var(--offwhite);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--neon-yellow);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  opacity: 0.8;
}

a:focus {
  outline: 3px solid var(--neon-yellow);
  outline-offset: 2px;
}

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

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--neon-yellow);
  color: var(--black);
  padding: var(--space-sm);
  z-index: 9999;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
}

/* Layout */
.container {
  width: 92%;
  max-width: 1300px;
  margin: auto;
}

section {
  padding: var(--space-3xl) 0;
}

/* Alternating Section Backgrounds */
section:nth-of-type(even) {
  background: var(--near-black);
}

section:nth-of-type(odd) {
  background: var(--black);
}

/* Section with green accent */
.section-accent-green {
  background: linear-gradient(180deg, var(--black) 0%, var(--deep-green) 50%, var(--black) 100%);
  background-size: 100% 200%;
  background-position: center;
}

/* Section with subtle gold glow */
.section-accent-gold {
  position: relative;
  background: var(--near-black);
}

.section-accent-gold::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 2px;
  background: var(--accent-gradient);
  opacity: 0.3;
}

/* Header and Navigation */
header {
  width: 100%;
  padding: 20px 0;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  backdrop-filter: blur(12px);
  background: rgba(0, 0, 0, 0.45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

header .inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.desktop-nav {
  display: flex;
  align-items: center;
}

.desktop-nav a {
  margin-left: var(--space-lg);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.3px;
  position: relative;
  padding-bottom: 4px;
}

.desktop-nav a:not(.btn-primary):hover {
  color: var(--offwhite);
}

.desktop-nav a:not(.btn-primary)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--neon-yellow);
  transition: width var(--transition-fast);
}

.desktop-nav a:not(.btn-primary):hover::after,
.desktop-nav a:not(.btn-primary).active::after {
  width: 100%;
}

.desktop-nav a.active {
  color: var(--neon-yellow);
}

/* Book button in navigation - smaller, more compact */
.desktop-nav .btn-primary {
  padding: 10px 20px;
  min-height: auto;
  min-width: auto;
  font-size: 15px;
  border-radius: 6px;
}

/* Logo Styles */
.logo {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 700;
  color: var(--offwhite);
  letter-spacing: -0.5px;
}

/* Burger Menu */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  background: none;
  border: none;
  padding: var(--space-xs);
}

.burger:focus {
  outline: 2px solid var(--neon-yellow);
  outline-offset: 4px;
}

.burger span {
  height: 2px;
  width: 100%;
  background: var(--offwhite);
  border-radius: 999px;
  transition: var(--transition-fast);
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: var(--darker-gray);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--space-md) 0;
  flex-direction: column;
  align-items: center;
  z-index: 998;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}

.mobile-menu a {
  padding: var(--space-sm) 0;
  font-size: 16px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu.open {
  display: flex;
  max-height: 500px;
  opacity: 1;
  padding: var(--space-md) 0;
}

.mobile-menu.open a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.open a:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.open a:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu.open a:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu.open a:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu.open a:nth-child(5) { transition-delay: 0.25s; }
.mobile-menu.open a:nth-child(6) { transition-delay: 0.3s; }

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  padding-top: 120px;
  background-image: url('https://assets.presidentialfades.com/photo%2011.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(15, 61, 46, 0.3) 50%,
    rgba(0, 0, 0, 0.5) 100%
  );
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(42px, 8vw, 72px);
  font-weight: 700;
  letter-spacing: -1.5px;
  margin-bottom: var(--space-md);
  line-height: 1.1;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero p {
  font-size: clamp(18px, 3vw, 22px);
  margin-bottom: var(--space-xl);
  opacity: 0.95;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* Hero variations for other pages */
.hero.hero-sm {
  min-height: 60vh;
  background-attachment: scroll;
}

@media (max-width: 768px) {
  .hero {
    min-height: 80vh;
    background-attachment: scroll;
  }

  .hero.hero-sm {
    min-height: 50vh;
  }
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background: var(--neon-yellow);
  color: var(--black);
  padding: var(--space-sm) var(--space-lg);
  border-radius: 8px;
  font-weight: 700;
  font-family: var(--font-head);
  letter-spacing: 0.5px;
  transition: var(--transition-med);
  box-shadow: var(--glow-yellow);
  border: none;
  cursor: pointer;
  font-size: 16px;
  min-height: 48px;
  min-width: 120px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(255, 230, 0, 0.7);
  background: var(--gold);
}

.btn-primary:focus {
  outline: 3px solid var(--offwhite);
  outline-offset: 4px;
}

.btn-primary:active {
  transform: translateY(0);
}

/* Secondary Button */
.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--neon-yellow);
  padding: var(--space-sm) var(--space-lg);
  border-radius: 8px;
  font-weight: 600;
  font-family: var(--font-head);
  letter-spacing: 0.5px;
  transition: var(--transition-med);
  border: 2px solid var(--neon-yellow);
  cursor: pointer;
  font-size: 16px;
  min-height: 48px;
}

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

/* Subtle Neon Glow Pulse - less aggressive */
@keyframes neonPulse {
  0% { box-shadow: 0 0 12px rgba(255, 230, 0, 0.4); }
  50% { box-shadow: 0 0 20px rgba(255, 230, 0, 0.6); }
  100% { box-shadow: 0 0 12px rgba(255, 230, 0, 0.4); }
}

.btn-primary.glow {
  animation: neonPulse 3s infinite;
}

/* Section Titles */
.section-title {
  font-family: var(--font-head);
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: var(--space-md);
  text-align: center;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.section-sub {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-2xl) auto;
  opacity: 0.85;
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.6;
}

/* Rating/Badge Section */
.rating-badge {
  width: 140px;
  height: 140px;
  margin: 0 auto var(--space-md);
  border-radius: 50%;
  border: 3px solid var(--neon-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--glow-yellow);
  overflow: hidden;
}

.rating-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rating-stars {
  margin-top: var(--space-md);
  font-size: 24px;
  font-family: var(--font-accent);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

.rating-stars .stars {
  color: var(--neon-yellow);
  font-size: 28px;
  letter-spacing: 2px;
}

/* Grid: Gallery and Cards */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

.gallery-grid img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 8px;
  transition: var(--transition-med);
  box-shadow: var(--shadow-md);
}

.gallery-grid img:hover {
  transform: scale(1.03);
  filter: brightness(1.1);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid img {
    height: 280px;
  }
}

/* Barber Cards */
.barber-card {
  background: var(--dark-gray);
  padding: var(--space-lg);
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition-med);
  box-shadow: var(--shadow-sm);
}

.barber-card:hover {
  transform: translateY(-6px);
  border-color: var(--neon-yellow);
  box-shadow: var(--shadow-lg), var(--glow-yellow);
}

.barber-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: var(--space-sm);
}

.barber-card h3 {
  font-family: var(--font-head);
  margin-top: var(--space-sm);
  margin-bottom: var(--space-xs);
  font-size: 24px;
  color: var(--neon-yellow);
}

.barber-card p {
  opacity: 0.9;
  font-size: 15px;
  line-height: 1.6;
}

.barber-card .price {
  margin-top: var(--space-sm);
  font-family: var(--font-accent);
  font-size: 20px;
  font-weight: 600;
  color: var(--gold);
  display: none; /* Temporarily hidden */
}

/* Footer */
footer {
  padding: var(--space-2xl) 0 var(--space-lg);
  background: var(--darker-gray);
  margin-top: var(--space-xl);
  border-top: 2px solid rgba(255, 230, 0, 0.1);
}

.footer-container {
  width: 92%;
  max-width: 1300px;
  margin: 0 auto var(--space-lg) auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-xl);
  align-items: flex-start;
}

.footer-title {
  font-family: var(--font-head);
  font-size: 18px;
  margin-bottom: var(--space-sm);
  color: var(--neon-yellow);
}

.footer-text {
  font-size: 14px;
  opacity: 0.85;
  margin-bottom: var(--space-xs);
  line-height: 1.6;
}

.footer-text a {
  color: var(--offwhite);
}

.footer-text a:hover {
  color: var(--neon-yellow);
}

.footer-bottom {
  text-align: center;
  font-size: 13px;
  opacity: 0.7;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Scroll Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Google Maps iframe */
iframe {
  border: 0;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

/* Responsive */
@media (max-width: 768px) {
  header {
    padding: var(--space-sm) 0;
  }

  .desktop-nav {
    display: none;
  }

  .burger {
    display: flex;
  }

  section {
    padding: var(--space-2xl) 0;
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: left;
    gap: var(--space-lg);
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 320px;
  }
}

@media (max-width: 480px) {
  .container {
    width: 90%;
  }

  section {
    padding: var(--space-xl) 0;
  }
}
