/*
 Theme Name:   JW Photography Child
 Theme URI:    https://garnerlegacy.cloud
 Description:  Custom child theme for JW Photography built on Astra
 Author:       Garner Legacy LLC
 Author URI:   https://garnerlegacy.cloud
 Template:     astra
 Version:      1.0.0
 Text Domain:  jw-photography-child
*/

/* ============================================
   JW PHOTOGRAPHY — Brand Styles
   Primary:   #2d52a7
   Secondary: #FFFFFF
   Vibe:      Warm and approachable
   ============================================ */

:root {
  --jw-primary: #2d52a7;
  --jw-primary-dark: #1e3a7a;
  --jw-primary-light: #4a6fc4;
  --jw-secondary: #FFFFFF;
  --jw-text: #333333;
  --jw-text-light: #666666;
  --jw-bg-light: #f8f9fc;
  --jw-accent: #e8a838;
}

/* Global Typography */
body {
  font-family: "Nunito", sans-serif;
  color: var(--jw-text);
  line-height: 1.8;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Poppins", sans-serif;
  color: var(--jw-primary);
  font-weight: 600;
}

/* Links */
a {
  color: var(--jw-primary);
  transition: color 0.3s ease;
}
a:hover {
  color: var(--jw-primary-dark);
}

/* Buttons — Primary CTA */
.wp-block-button__link,
.ast-custom-button,
a.wp-block-button__link,
.elementor-button,
.wpforms-submit,
input[type="submit"] {
  background-color: var(--jw-primary) !important;
  color: var(--jw-secondary) !important;
  border: none !important;
  border-radius: 30px !important;
  padding: 14px 32px !important;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.5px;
  transition: all 0.3s ease !important;
  text-transform: none;
}
.wp-block-button__link:hover,
.ast-custom-button:hover,
a.wp-block-button__link:hover,
input[type="submit"]:hover {
  background-color: var(--jw-primary-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(45, 82, 167, 0.3);
}

/* Outline Button Variant */
.is-style-outline .wp-block-button__link {
  background-color: transparent !important;
  color: var(--jw-primary) !important;
  border: 2px solid var(--jw-primary) !important;
}
.is-style-outline .wp-block-button__link:hover {
  background-color: var(--jw-primary) !important;
  color: var(--jw-secondary) !important;
}

/* Hero Section */
.jw-hero {
  background: linear-gradient(135deg, var(--jw-primary) 0%, var(--jw-primary-dark) 100%);
  color: var(--jw-secondary);
  padding: 100px 40px;
  text-align: center;
}
.jw-hero h1 {
  color: var(--jw-secondary);
  font-size: 3rem;
  margin-bottom: 0.5em;
}
.jw-hero p {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* Section Styling */
.jw-section {
  padding: 80px 20px;
}
.jw-section-alt {
  background-color: var(--jw-bg-light);
  padding: 80px 20px;
}

/* Cards */
.jw-card {
  background: var(--jw-secondary);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.jw-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

/* Gallery Grid */
.wp-block-gallery {
  gap: 12px !important;
}
.wp-block-gallery .wp-block-image {
  border-radius: 8px;
  overflow: hidden;
}

/* Testimonials */
.jw-testimonial {
  background: var(--jw-bg-light);
  border-left: 4px solid var(--jw-primary);
  padding: 25px 30px;
  border-radius: 0 12px 12px 0;
  margin-bottom: 20px;
  font-style: italic;
}
.jw-testimonial cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-weight: 600;
  color: var(--jw-primary);
}

/* FAQ Accordion */
.wp-block-details {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 10px;
}
.wp-block-details summary {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  color: var(--jw-primary);
  cursor: pointer;
}

/* Footer */
.site-footer {
  background-color: var(--jw-primary-dark) !important;
  color: var(--jw-secondary) !important;
}
.site-footer a {
  color: rgba(255, 255, 255, 0.8) !important;
}
.site-footer a:hover {
  color: var(--jw-secondary) !important;
}

/* Social Icons */
.jw-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: var(--jw-secondary);
  margin: 0 5px;
  transition: background 0.3s ease;
  text-decoration: none;
}
.jw-social a:hover {
  background: rgba(255,255,255,0.3);
}

/* Forms */
.wpforms-container .wpforms-form .wpforms-field input,
.wpforms-container .wpforms-form .wpforms-field textarea {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px 16px;
  font-family: "Nunito", sans-serif;
}
.wpforms-container .wpforms-form .wpforms-field input:focus,
.wpforms-container .wpforms-form .wpforms-field textarea:focus {
  border-color: var(--jw-primary);
  box-shadow: 0 0 0 3px rgba(45, 82, 167, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .jw-hero h1 {
    font-size: 2rem;
  }
  .jw-hero {
    padding: 60px 20px;
  }
  .jw-section, .jw-section-alt {
    padding: 50px 15px;
  }
}
