/*
 * Spanish Guitar Music - Custom CSS Overrides
 * Upload to: rw_common/themes/Artful/custom-overrides.css
 * Then add to the theme's consolidated.css or inject via .htaccess/header
 *
 * These overrides modernize the site and improve consistency,
 * especially the booking/contact form
 *
 * NOTE: Navbar styling is handled by hub-overrides.css - DO NOT add navbar
 * rules here as they will conflict with the hub styling.
 */

/* ============================================
   CSS VARIABLES - Unified Color Palette
   ============================================ */
:root {
  /* Primary colors - warm gold palette */
  --sgm-gold: #c9a86c;
  --sgm-gold-bright: #ffd700;
  --sgm-gold-dark: #a88b4a;
  --sgm-gold-muted: rgba(201, 168, 108, 0.3);

  /* Neutral colors */
  --sgm-cream: #f4e4d4;
  --sgm-dark: #1a1a2e;
  --sgm-dark-brown: #1a0a0a;
  --sgm-charcoal: #2d2d3a;
  --sgm-text: #333;
  --sgm-text-light: #656565;

  /* Background options */
  --sgm-bg-light: #faf8f5;
  --sgm-bg-white: #ffffff;
}

/* ============================================
   GLOBAL ENHANCEMENTS
   ============================================ */

/* Smoother fonts */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--sgm-bg-light);
}

/* Better link transitions */
a {
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:link, a:visited {
  color: var(--sgm-gold-dark);
}

a:hover, a:active {
  color: var(--sgm-gold);
}

/* ============================================
   NAVIGATION - DEFERRED TO hub-overrides.css
   ============================================ */
/* All navbar styling is now in hub-overrides.css */

/* ============================================
   HERO SECTION ENHANCEMENTS
   ============================================ */

.hero {
  background: linear-gradient(135deg, var(--sgm-bg-light) 0%, var(--sgm-bg-white) 100%);
  padding: 0.5rem 0 1rem !important;
  min-height: auto !important;
  height: auto !important;
}

/* Force compact hero section */
.hero .container {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.hero .text-center {
  margin-top: 0 !important;
  padding-top: 0 !important;
  margin-bottom: 0.5rem !important;
}

.hero .row {
  min-height: auto !important;
  margin-top: 0 !important;
}

/* Reduce hero title spacing */
.hero-title.mb-4 {
  margin-bottom: 1rem !important;
}

/* Override any Bootstrap padding classes in hero */
.hero .pb-2, .hero .pb-5 {
  padding-bottom: 0.5rem !important;
}

.hero-title {
  font-weight: 700;
  color: var(--sgm-dark);
  line-height: 1.2;
}

.hero-slogan {
  color: var(--sgm-gold-dark);
  font-style: italic;
}

.banner_image {
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.banner_image:hover {
  transform: scale(1.02);
}

/* ============================================
   BUTTON STYLING - CONSISTENT ACROSS SITE
   ============================================ */

.btn-primary,
.btn-primary:link,
.form-input-button,
.yd-btn.yd-primary,
#stacks_in_17_button a,
#stacks_in_19_button a {
  background: linear-gradient(135deg, var(--sgm-gold) 0%, var(--sgm-gold-dark) 100%) !important;
  border: none !important;
  color: #fff !important;
  padding: 12px 28px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  box-shadow: 0 4px 15px rgba(201, 168, 108, 0.3) !important;
  transition: all 0.3s ease !important;
  display: inline-block !important;
  text-decoration: none !important;
}

.btn-primary:hover,
.form-input-button:hover,
.yd-btn.yd-primary:hover,
#stacks_in_17_button a:hover,
#stacks_in_19_button a:hover {
  background: linear-gradient(135deg, var(--sgm-gold-bright) 0%, var(--sgm-gold) 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(201, 168, 108, 0.4) !important;
}

/* ============================================
   CONTACT/BOOKING FORM STYLING
   ============================================ */

/* Form container */
#yd-page0 {
  background: var(--sgm-bg-white);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Form header */
.yd-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(201, 168, 108, 0.2);
}

.yd-header p {
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Form labels */
#yd-page0 label {
  font-weight: 600;
  color: var(--sgm-dark);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

/* Form inputs */
#yd-page0 input[type="text"],
#yd-page0 input[type="email"],
#yd-page0 input[type="tel"],
#yd-page0 textarea,
#yd-page0 select,
.form-input-field,
.form-select-field {
  border: 2px solid #e0e0e0 !important;
  border-radius: 8px !important;
  padding: 12px 16px !important;
  font-size: 1rem !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
  background-color: #fff !important;
}

#yd-page0 input:focus,
#yd-page0 textarea:focus,
#yd-page0 select:focus,
.form-input-field:focus,
.form-select-field:focus {
  border-color: var(--sgm-gold) !important;
  box-shadow: 0 0 0 3px rgba(201, 168, 108, 0.15) !important;
  outline: none !important;
}

/* Placeholder text */
#yd-page0 input::placeholder,
#yd-page0 textarea::placeholder {
  color: #aaa;
  font-style: italic;
}

/* Required field indicator */
.yd-required-symbol {
  color: #c9a86c !important;
  font-weight: bold;
}

/* Icon styling in form */
#yd-page0 .fa,
#yd-page0 .far,
#yd-page0 .fas {
  color: var(--sgm-gold);
  margin-right: 8px;
}

/* Form control groups spacing */
.control-group {
  margin-bottom: 1.5rem !important;
}

/* Range slider styling */
.yd-range {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(to right, var(--sgm-gold) 0%, #e0e0e0 100%);
}

.yd-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--sgm-gold);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Submit button (already styled above) */
#yd-page0 button[type="submit"] {
  width: 100%;
  margin-top: 1rem;
}

/* Reset button */
.yd-reset-btn {
  background: transparent !important;
  border: 2px solid var(--sgm-text-light) !important;
  color: var(--sgm-text-light) !important;
  padding: 10px 24px !important;
  border-radius: 8px !important;
}

.yd-reset-btn:hover {
  border-color: var(--sgm-dark) !important;
  color: var(--sgm-dark) !important;
}

/* Form footer */
.yd-footer {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(201, 168, 108, 0.2);
  color: var(--sgm-text-light);
}

/* ============================================
   CONTENT AREA IMPROVEMENTS
   ============================================ */

.container.pt-5 {
  max-width: 1000px;
}

/* Sidebar styling */
.sidebar {
  background: var(--sgm-bg-light);
  border-radius: 12px;
  padding: 1.5rem;
}

.sidebar-title {
  color: var(--sgm-gold-dark);
  border-bottom: 2px solid var(--sgm-gold-muted);
  padding-bottom: 0.5rem;
}

/* ============================================
   FOOTER ENHANCEMENTS
   ============================================ */

.footer {
  background: linear-gradient(135deg, var(--sgm-dark) 0%, var(--sgm-charcoal) 100%);
  padding: 2.5rem 0;
}

.footer-content {
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer .nav-link {
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.footer .nav-link:hover {
  opacity: 1;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 768px) {
  .hero {
    padding: 0.5rem 0 1rem;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  #yd-page0 {
    padding: 1.5rem;
    border-radius: 12px;
  }

  .control-group {
    margin-bottom: 1rem !important;
  }
}

/* ============================================
   ANIMATIONS & POLISH
   ============================================ */

/* Subtle fade-in for main content */
.container.pt-5 {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Focus states for accessibility */
*:focus-visible {
  outline: 2px solid var(--sgm-gold);
  outline-offset: 2px;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}
