/* Custom Premium Royal Blue CSS Design System for Randolph Shoe Care */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,400&display=swap');

:root {
  --bg-deep: #080C14;
  --bg-card: #101726;
  --bg-card-hover: #162035;
  --primary: #2563EB;
  --primary-hover: #3B82F6;
  --primary-glow: rgba(37, 99, 235, 0.25);
  --primary-glow-heavy: rgba(37, 99, 235, 0.4);
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --border-color: #1E293B;
  --border-hover: #3B82F6;
  --white: #FFFFFF;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Patriotic Banner */
.patriotic-banner {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
}
.patriotic-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.patriotic-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.1) 60%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 2rem;
}
.patriotic-overlay span {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-style: italic;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  transition: var(--transition-smooth);
}

/* Typography & Visual Accents */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Sticky Header with Glassmorphism */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(8, 12, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-b: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.logo-shoe {
  color: var(--primary-hover);
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.logo-shoe-left {
  width: auto;
  height: 26px;
  transform: scaleX(-1);
}

.logo-shoe-right {
  width: 32px;
  height: auto;
}

.logo:hover .logo-shoe-left {
  transform: scaleX(-1) translateX(3px);
  color: var(--white);
}

.logo:hover .logo-shoe-right {
  transform: translateX(3px);
  color: var(--white);
}

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

.main-nav {
  display: flex;
  gap: 2.5rem;
  flex-shrink: 1;
  min-width: 0;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition-smooth);
}

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

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

.cta-btn {
  background-color: var(--primary);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 4px 14px var(--primary-glow);
  white-space: nowrap;
  flex-shrink: 0;
}

.cta-btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow-heavy);
}

/* Hero Section */
.hero-section {
  padding: 12rem 2rem 7rem 2rem;
  background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.15), transparent 50%),
              radial-gradient(circle at bottom left, rgba(8, 12, 20, 1), transparent 100%);
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.hero-subtitle {
  color: var(--primary-hover);
  font-size: 0.875rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.2em;
  margin-bottom: 1.5rem;
  display: inline-block;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.15;
  color: var(--white);
  max-width: 800px;
  margin: 0 auto 1.5rem auto;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 4.5rem;
  }
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 3rem auto;
  font-weight: 300;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.btn-secondary {
  border: 1px solid var(--border-color);
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.02);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow-heavy);
}

/* About Section */
.about-section {
  padding: 7rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1.2fr 1fr;
  }
}

.about-text h2 {
  font-size: 2.75rem;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.about-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.badge-card {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(16, 23, 38, 0.6) 100%);
  border: 1px solid var(--border-color);
  padding: 2.5rem;
  border-radius: 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transition: var(--transition-smooth);
}

.badge-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 15px 35px var(--primary-glow);
}

.badge-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.badge-card h3 {
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.badge-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.badge-link {
  color: var(--primary-hover);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.badge-link:hover {
  text-decoration: underline;
}

/* Services Section */
.services-section {
  background: var(--bg-card);
  padding: 7rem 2rem;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem auto;
}

.section-header h2 {
  font-size: 2.75rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.services-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: var(--bg-deep);
  border: 1px solid var(--border-color);
  padding: 2.5rem;
  border-radius: 16px;
  transition: var(--transition-smooth);
  position: relative;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 30px var(--primary-glow);
}

.service-icon {
  width: 50px;
  height: 50px;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-hover);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.service-card h3 {
  font-size: 1.35rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-features {
  list-style: none;
  margin-top: auto;
}

.service-features li {
  color: var(--text-main);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-features li::before {
  content: '✓';
  color: var(--primary-hover);
  font-weight: bold;
}

/* Portfolio Gallery */
.gallery-section {
  padding: 7rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.tab-btn {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
}

.tab-btn:hover {
  color: var(--white);
  border-color: var(--text-muted);
}

.tab-btn.active {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 4px 10px var(--primary-glow);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 12, 20, 0.8) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: var(--transition-smooth);
}

.gallery-info h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.gallery-info p {
  color: var(--primary-hover);
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.gallery-item:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background-color: rgba(4, 6, 10, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 80vh;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
}

.lightbox-close:hover {
  color: var(--primary-hover);
}

/* Contact / Hours / Map Section */
.contact-section {
  background: var(--bg-card);
  padding: 7rem 2rem;
  border-top: 1px solid var(--border-color);
}

.contact-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1.1fr 1fr;
  }
}

.contact-info h2 {
  font-size: 2.75rem;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.contact-details {
  margin-bottom: 2.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
}

.contact-icon {
  color: var(--primary-hover);
  font-size: 1.25rem;
  width: 24px;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
}

.hours-table tr {
  border-bottom: 1px solid var(--border-color);
}

.hours-table tr:last-child {
  border-bottom: none;
}

.hours-table td {
  padding: 0.85rem 0;
  font-size: 0.95rem;
}

.hours-day {
  font-weight: 500;
  color: var(--white);
}

.hours-time {
  text-align: right;
  color: var(--text-muted);
}

.map-container {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  height: 400px;
  position: relative;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Footer */
.site-footer {
  padding: 3rem 2rem;
  background: var(--bg-deep);
  border-top: 1px solid var(--border-color);
  text-align: center;
}

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

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.footer-logo:hover .logo-shoe-left {
  transform: scaleX(-1) translateX(3px);
  color: var(--white);
}

.footer-logo:hover .logo-shoe-right {
  transform: translateX(3px);
  color: var(--white);
}

.footer-nav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

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

.footer-nav a:hover {
  color: var(--white);
}

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

/* Responsive Utilities */
@media (max-width: 768px) {
  .site-header {
    position: relative;
  }
  .header-container {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  .main-nav {
    gap: 1.25rem;
  }
  .hero-section {
    padding: 5rem 1rem 4rem 1rem;
  }
  .hero-title {
    font-size: 2.75rem;
  }
}

/* Logo Image Custom Styling */
.logo-img {
  height: 30px;
  width: auto;
  display: block;
  transition: var(--transition-smooth);
}

.logo-img:hover {
  transform: scale(1.02);
}

.footer-logo-img {
  height: 28px;
  width: auto;
  display: block;
  transition: var(--transition-smooth);
}

.footer-logo-img:hover {
  transform: scale(1.02);
}
