/* Theme Name: Soft Stream — Westinghouse Mobile Optimized
Theme URI: https://softstreamfl.com
Author: Soft Stream, Inc.
Description: Final Westinghouse-styled theme with navy header/footer, Poppins typography, bubbles background, optimized sections, and right-side gift card promo.
Version: 7.2 - Mobile Optimization & Form Fixes
*/

/* ==========================================================
   GOOGLE FONTS
========================================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;700&display=swap');

/* ==========================================================
   CORE VARIABLES & BASE STYLES
========================================================== */
:root {
  --deep-blue: #0A4E8C;
  --blue: #295BDD;
  --navy: #0A2239;
  --yellow: #FFB118;
  --green: #71C204;
  --red: #F6502B;
  --dark: #0A2239;
  --white: #FFFFFF;
  --gray-bg: #F4F6FA;
  --text: #333333;
  --light-body: #E6E6E6;
  --container: 1100px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: transparent !important;
  line-height: 1.6;
}

/* ==========================================================
   BACKGROUND BUBBLES VIDEO
========================================================== */
.bubbles-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
}

#bubbles-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .10;
  pointer-events: none;
}

/* ==========================================================
   HEADER + NAVIGATION
========================================================== */
.site-header { position: relative; text-align: center; }

.header-top {
  background: transparent;
  padding: 10px 0;
  min-height: 150px;
}

.site-logo {
  max-height: 120px;
  margin: 14px auto;
  padding: 10px;
  display: block;
  background: rgba(255,255,255,.05);
  border-radius: 12px;
  box-shadow: 0 2 p x 6px rgba(0,0,0,.35);
}

.main-nav {
  /* FIX: Restoring the dark blue background for the nav bar */
  background: var(--navy) !important;
  border-top: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  padding: 12px 0;
}

.main-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 36px;
}

.main-nav a {
  color: var(--light-body) !important;
  font-weight: 600;
  text-decoration: none;
  transition: .25s ease;
}

.main-nav a:hover { color: #2BB3E8 !important; }

/* ==========================================================
   HERO
========================================================== */
.hero-video {
  position: relative;
  width: 100%;
  height: 45vh;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.35); }

.hero-text {
  color: #fff;
  text-align: center;
  text-shadow: 0 3px 8px rgba(0,0,0,.6);
  padding: 0 20px; /* Add padding for mobile */
}

.hero-text h1 { font-size: 2.8rem; font-weight: 800; }

/* ==========================================================
   FINANCING BANNER
========================================================== */
.financing-banner {
  background: #2BB3E8; /* Aqua Blue */
  color: #ffffff;
  text-align: center;
  padding: 14px 20px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .5px;
  border-bottom: 2px solid var(--blue);
  box-shadow: 0 4px 10px rgba(0,0,0,.15);
}


/* ==========================================================
   MAIN CONTENT
========================================================== */
#content { 
    padding-top: 40px; 
    background: transparent; 
    position: relative; 
    z-index: 1; 
    min-width: 0; 
}
section { padding: 60px 20px; }
.container { max-width: var(--container); margin: 0 auto; }

/* ==========================================================
   PRODUCT GRID
========================================================== */
.product-grid { display: flex; flex-wrap: wrap; gap: 40px; justify-content: center; }

.product-card {
  max-width: 330px;
  background: rgba(255,255,255,.74);
  border: 1px solid rgba(37,52,106,.25);
  border-radius: 14px;
  padding: 28px;
  backdrop-filter: blur(8px);
  text-align: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}

/* ==========================================================
   RESTORE ALTERNATING HOME BENEFITS SECTIONS 
========================================================== */

.benefits-section {
  padding: 80px 20px;
  background: transparent;
}

.benefits-section.light {
  background: rgba(255,255,255,0.12);
  border-top: 1px solid rgba(255,255,255,0.20);
  border-bottom: 1px solid rgba(255,255,255,0.20);
}

.benefits-section.alt { background: transparent; }

.benefits-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.benefits-container.reverse { flex-direction: row-reverse; }

.benefits-text { flex: 1; }

.benefits-text h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--deep-blue);
  margin-bottom: 20px;
}

.benefit-list { list-style: none; }

.benefit-list li {
  margin-bottom: 12px;
  font-size: 1.1rem;
  color: var(--navy);
  font-weight: 500;
}

.circle-wrapper {
  flex: 0 0 420px;
  max-width: 420px;
}

.circle-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,0.30);
}

/* ==========================================================
   FOOTER
========================================================== */
footer, .site-footer {
  background: var(--navy);
  color: var(--light-body);
  text-align: center;
  padding: 44px 20px;
  border-top: 3px solid var(--blue);
}

.footer-btn,
.footer-buttons a {
  padding: 14px 32px;
  background: var(--blue);
  color: white;
  font-weight: 700;
  border-radius: 10px;
  display: inline-block;
  text-decoration: none;
  margin: 5px 10px; /* Add spacing between buttons */
}

/* Footer Logo Sizing */
.footer-logo {
  height: 55px;
  width: auto;
  margin-top: 20px;
  margin-bottom: 10px;
  object-fit: contain;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Social Links - Blue Button Style */
.footer-social-btn {
  padding: 8px 18px; 
  background: var(--blue);
  color: white !important;
  font-weight: 600;
  border-radius: 8px; 
  display: inline-block;
  text-decoration: none;
  transition: background 0.2s;
  font-size: 0.95rem;
}

.footer-social-btn:hover {
  background: var(--deep-blue);
}

.footer-contact-wrap {
  display: flex;
  flex-direction: column; 
  align-items: center;    
  gap: 12px;              
  margin: 15px auto 20px; 
}


/* PHONE NUMBER BUTTON */
.footer-phone-btn {
  display: inline-block; 
  padding: 18px 40px;
  background: var(--blue);
  color: var(--yellow) !important;
  font-weight: 800;
  font-size: 1.6rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
  line-height: 1.2;
}

/* EMAIL BUTTON */
.footer-email-btn {
  display: inline-block; 
  padding: 12px 25px; 
  background: var(--blue);
  color: var(--yellow) !important;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
  line-height: 1.2;
  cursor: default; 
}

.footer-privacy-btn {
  padding: 8px 18px;
  background: #6c757d; 
  color: var(--white) !important;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  margin-top: 10px;
}

/* ==========================================================
   ORIGINAL BLOG GRID
========================================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.blog-card {
  background: rgba(255,255,255,0.20);
  border: 1px solid rgba(255,255,255,0.32);
  padding: 20px;
  border-radius: 14px;
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}

/* ==========================================================
   NEW BLOG LAYOUT
========================================================== */
.blog-wrapper {
  display: flex;
  gap: 40px;
  max-width: 1400px;
  margin: 60px auto;
  padding: 0 20px;
  align-items: flex-start;
}

.blog-side-image {
  flex: 0 0 420px;
  position: sticky;
  top: 40px;
}

.blog-side-image img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(6px);
}

.blog-content-area { flex: 1; }

.blog-content-area .blog-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 30px;
}

.blog-card {
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  padding: 25px 28px;
  border-radius: 18px;
  backdrop-filter: blur(6px);
  transition: .2s;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,.28);
}

.blog-thumb img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 18px;
  border: 1px solid rgba(255,255,255,0.35);
}

.blog-title a {
  color: var(--deep-blue) !important;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.4rem;
}

.blog-excerpt { color: var(--navy) !important; }

.blog-readmore {
  color: var(--blue) !important;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  margin-top: 12px;
}

/* ==========================================================
   CFL REVIEW GRID 
========================================================== */

#reviews-wrapper {
  padding: 80px 20px;
  background: transparent;
}

.cfl-reviews-panel {
  max-width: 1300px;
  margin: 0 auto;
  background: rgba(10, 78, 140, 0.85);
  border-radius: 30px;
  padding: 60px 40px;
  box-shadow: 0 18px 38px rgba(0,0,0,0.25);
  backdrop-filter: blur(6px);
}

.reviews-page-heading {
  color: white;
  text-align: center;
  font-size: 2.4rem;
  font-weight: 900;
  margin-bottom: 40px;
  text-transform: uppercase;
  text-shadow: 0 4px 10px rgba(0,0,0,0.35);
}

.reviews-grid-cfl {
  display: grid !important; 
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)) !important; 
  gap: 34px;
  margin-bottom: 50px;
}

.review-card-cfl {
  background: rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 26px 28px;
  color: white;
  font-size: 1.05rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.20);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(4px);
  word-wrap: break-word; 
}

.review-stars {
  font-size: 1.4rem;
  color: var(--yellow);
  font-weight: 900;
  margin-bottom: 10px;
}

.review-text {
  margin-bottom: 10px;
  line-height: 1.5;
  color: #F7F9FF;
}

.review-author {
  font-size: 1rem;
  margin-top: 6px;
  color: #E6ECFF;
}

.reviews-button-wrap {
  text-align: center;
  margin-top: 30px;
}

.reviews-button-wrap h2 {
  color: white;
  margin-bottom: 20px;
  font-weight: 800;
}

.reviews-button-wrap .btn-primary {
  background: var(--yellow);
  color: var(--navy);
  padding: 14px 34px;
  font-weight: 800;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 6px 22px rgba(0,0,0,0.25);
  transition: 0.2s;
}

.reviews-button-wrap .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

/* ==========================================================
   NEW CTA POP-UP MODAL STYLES 
========================================================== */

#cta-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 9999; 
  display: flex !important; 
  align-items: center !important; 
  justify-content: center !important; 
  transition: opacity 0.3s ease;
}

#cta-modal-backdrop.modal-hidden {
  display: none !important;
  opacity: 0 !important;
}

#cta-modal {
  position: relative;
  background: var(--deep-blue);
  max-width: 500px;
  width: 90%;
  padding: 40px;
  border-radius: 18px;
  text-align: center;
  color: var(--white);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-x-icon { 
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
  padding: 0; 
  line-height: 1; 
}

.modal-x-icon:hover {
  opacity: 1;
}

.modal-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--yellow);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.modal-text {
  font-size: 1.15rem;
  margin-bottom: 30px;
  line-height: 1.5;
}

.modal-text strong {
  color: var(--yellow);
}

.modal-actions {
  display: block; 
  margin-bottom: 8px; 
}

.modal-btn {
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: 0.2s;
  border: 2 p x solid transparent;
  display: block;
  width: 70%;
  margin: 0 auto;
}

.modal-btn-primary {
  background: var(--yellow);
  color: var(--navy) !important;
  border-color: var(--yellow);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.modal-btn-primary:hover {
  background: #ffc449;
}

.modal-close-link {
    background: none;
    border: none;
    color: var(--white);
    text-decoration: underline;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    margin-top: 10px;
    display: inline-block; 
}

.modal-terms {
  font-size: 0.85rem;
  opacity: 0.8;
  line-height: 1.4;
} 

.modal-close-btn {
    display: none; 
}
.modal-x-icon.modal-close-btn { 
    display: block; 
}
.modal-close-link.modal-close-btn {
    display: inline-block; 
}

/* ==========================================================
   FORM SPECIFIC STYLES & FIXES
========================================================== */
.ss-label { display:block; font-weight:600; margin:10px 0 6px; }
.ss-input, .ss-textarea, .ss-form select {
  width:100%; box-sizing:border-box; padding:12px 14px; border-radius:6px; border:1px solid #d7d7d7;
  background:#fff; outline:none;
}
.ss-input:focus, .ss-textarea:focus, .ss-form select:focus {
  border-color:#295BDD; box-shadow:0 0 0 2 p x rgba(41,91,221,0.15);
}

/* ⭐ NEW RESPONSIVE FORM GRID CLASS ⭐ */
.ss-responsive-grid {
  display: grid;
  grid-template-columns: 1fr 120px 120px; /* Base desktop layout: City, State, Zip */
  gap: 10px;
}

/* ==========================================================
   MEDIA QUERIES FOR MOBILE OPTIMIZATION
========================================================== */

/* Tablet and Smaller (Max Width 950px) */
@media (max-width: 950px) {
  
  /* --- Global --- */
  section { padding: 40px 15px; }
  .container { padding: 0 15px; }

  /* --- Hero --- */
  .hero-video { height: 35vh; min-height: 280px; }
  .hero-text h1 { font-size: 2.2rem; }
  .hero-text .subheadline { font-size: 1rem; }

  /* --- Navigation --- */
  .main-nav ul {
    gap: 18px; 
    flex-wrap: wrap; 
    padding: 5px 0;
  }
  .main-nav a { font-size: 0.9rem; }
  
  /* --- Home/Benefits Sections --- */
  .benefits-section { padding: 50px 20px; }
  .benefits-container,
  .benefits-container.reverse {
    flex-direction: column !important; 
    text-align: center;
    gap: 40px;
  }

  .benefits-text h2 { font-size: 1.8rem; }
  .benefit-list li { font-size: 1rem; }

  .circle-wrapper {
    flex: 0 0 100%;
    max-width: 80%; 
    order: -1; 
  }

  .circle-img { height: auto; }

  /* --- Footer --- */
  .footer-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
  }
  .footer-buttons a {
    width: 100%; 
    margin: 0;
  }
  
  .footer-phone-btn { font-size: 1.4rem; padding: 14px 30px; }
  .footer-email-btn { font-size: 1rem; padding: 10px 20px; }
  
  /* --- CFL Reviews --- */
  .reviews-grid-cfl {
    grid-template-columns: 1fr !important; 
  }
  .reviews-page-heading { font-size: 1.8rem; }
  
  /* --- Product Page --- */
  .product-card {
    width: 100%; 
    max-width: 400px; 
  }
  .category-block h2 { font-size: 28px; }

  /* --- About & Contact Pages (Fixing inline style overrides) --- */
  /* This block targets the containers for stacking */
  .about-block, .contact-wrapper .container {
    flex-direction: column;
    text-align: center;
    gap: 30px;
    /* Added full width and centered flex to fix horizontal scroll */
    display: flex; /* Ensure it's a flex container for centering */
    width: 100%; /* Important to prevent horizontal scroll */
    justify-content: center;
    align-items: center;
  }
  /* Ensure correct stacking order for image/text blocks */
  .about-block .about-text { order: 1; }
  .about-block > div:first-child { order: 2; } 
  
  /* Setting the correct order for Contact Page: Image on top, Text/Form below */
  .contact-wrapper .contact-image { order: -1; }
  .contact-wrapper .contact-text { order: 1; }
  
  .about-block .about-text h2, .contact-text h1 {
    font-size: 2rem;
    text-align: center;
  }
  
  .contact-image, .about-block img {
    width: 100%;
    max-width: 300px;
    height: 300px;
    /* Ensuring the image wrapper stays centered and doesn't dictate width */
    flex: 0 0 100%;
  }
  .contact-text a.btn-primary { width: 100%; max-width: 400px; }
  
  /* --- Services Page Fix --- */
  .services-block {
      flex-direction: column !important; /* Stack all service blocks */
  }
  .services-block .services-text { order: 1; }
  .services-block .services-image { order: 2; }
  
  /* --- BLOG PAGE MOBILE OPTIMIZATION (New Rules) --- */
  .blog-wrapper {
      flex-direction: column; /* Stack image and content */
      gap: 30px;
      margin: 40px auto;
  }

  .blog-side-image {
      display: none; /* Hide the sticky side image on small screens */
  }
  
  .blog-content-area {
      width: 100%; /* Ensure content area takes full width */
      flex: 1 1 100%;
  }
}

/* Phone Only (Max Width 480px) */
@media (max-width: 480px) {
  
  /* --- Hero --- */
  .hero-text h1 { font-size: 1.8rem; }
  .hero-text .subheadline { font-size: 0.9rem; }
  
  /* --- Navigation --- */
  .main-nav ul {
    gap: 12px 18px; 
    padding: 8px 10px;
  }
  
  /* --- Footer --- */
  .footer-phone-btn { font-size: 1.2rem; padding: 12px 25px; }
  .footer-email-btn { font-size: 0.9rem; padding: 8px 15px; }

  /* --- Modal --- */
  #cta-modal { padding: 30px 20px; }
  .modal-btn { width: 90%; }
  
  /* --- Form Grid Fix --- */
  .ss-responsive-grid {
    grid-template-columns: 1fr !important; /* Force City/State/Zip to stack vertically */
  }
}