/*
 * Custom Design System for bestwaterguide.com
 * Replicating watersmartbox.com with Premium Modern Aesthetics
 */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;600;700&family=Lato:wght@400;700&family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  /* Color Palette */
  --primary-orange: #ff4f0f;
  --primary-orange-hover: #e03d00;
  --secondary-cyan: #00bade;
  --secondary-cyan-dark: #008fb3;
  --text-dark: #272727;
  --text-medium: #4b5563;
  --text-light: #9ca3af;
  --bg-light: #ffffff;
  --bg-gray: #f8fafc;
  --bg-gradient: linear-gradient(135deg, #f0fdfa 0%, #e0f2fe 100%);
  --star-gold: #ffa500;
  --border-color: #e2e8f0;
  
  /* Fonts */
  --font-header: 'Poppins', sans-serif;
  --font-body: 'Lato', sans-serif;
  --font-mono: 'IBM Plex Sans', sans-serif;
  
  /* Layout */
  --container-width: 1000px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-header);
  font-weight: 700;
  line-height: 1.3;
}

h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

p {
  margin-bottom: 1.5rem;
}

.highlight-orange {
  color: var(--primary-orange);
}

.highlight-cyan {
  color: var(--secondary-cyan-dark);
}

/* Header Banner Section */
.header-banner {
  background-color: #ffffff;
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.header-banner img {
  max-width: 100%;
  height: auto;
  display: inline-block;
}

/* Hero Section */
.hero {
  padding: 60px 0 40px 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 span.accent {
  color: var(--primary-orange);
}

/* Bullet Lists */
.bullet-list {
  list-style: none;
  max-width: 600px;
  margin: 0 auto 30px auto;
  text-align: left;
}

.bullet-list li {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.bullet-list li svg {
  color: #10b981; /* Green color for ticks */
  margin-right: 12px;
  flex-shrink: 0;
}

/* Rating Stars */
.rating-stars {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-bottom: 30px;
}

.rating-stars svg {
  fill: var(--star-gold);
  width: 28px;
  height: 28px;
}

/* Main Content Wrapper */
.content-section {
  padding: 50px 0;
}

.content-section.bg-gray {
  background-color: var(--bg-gray);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.intro-text {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.intro-text h2 {
  font-weight: 700;
  font-size: 1.8rem;
}

/* Grid Layout (Two Column) */
.grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.grid-image {
  text-align: center;
}

.grid-image img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

.grid-content h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

/* CTA Buttons */
.cta-container {
  text-align: center;
  margin: 40px 0;
}

.cta-button-img {
  display: inline-block;
  transition: var(--transition);
  cursor: pointer;
}

.cta-button-img:hover {
  transform: scale(1.05);
}

.cta-button-img img {
  max-width: 100%;
  height: auto;
  max-width: 400px;
}

/* Checkmark List Item Style */
.checkmark-list {
  list-style: none;
  margin-bottom: 30px;
}

.checkmark-list li {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  font-size: 1.15rem;
}

.checkmark-list li svg {
  color: #10b981;
  margin-right: 12px;
  margin-top: 4px;
  flex-shrink: 0;
}

/* Bonuses Grid */
.bonuses-section {
  padding: 60px 0;
  background-color: #ffffff;
  text-align: center;
}

.bonuses-section h2 {
  margin-bottom: 40px;
}

.bonuses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.bonus-card {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 25px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.bonus-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.bonus-card h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.bonus-card img {
  max-width: 100%;
  height: auto;
  max-height: 250px;
  border-radius: 6px;
  margin-bottom: 15px;
}

/* Guarantee Box */
.guarantee-box {
  background-color: #fffbeb;
  border: 2px dashed #f59e0b;
  border-radius: 16px;
  padding: 40px;
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 50px 0;
}

.guarantee-badge {
  flex-shrink: 0;
  width: 280px;
  text-align: center;
}

.guarantee-badge img {
  max-width: 100%;
  height: auto;
}

.guarantee-text h3 {
  font-size: 1.6rem;
  color: #b45309;
  margin-bottom: 10px;
}

.guarantee-text p {
  margin-bottom: 0;
  font-size: 1.1rem;
}

/* Legal Disclaimer Section */
.disclaimer-section {
  background-color: var(--bg-gray);
  padding: 50px 0;
  font-size: 0.85rem;
  color: var(--text-medium);
  border-top: 1px solid var(--border-color);
  line-height: 1.8;
}

.disclaimer-section p {
  margin-bottom: 1.5rem;
}

.disclaimer-section a {
  color: var(--text-dark);
  text-decoration: underline;
  font-weight: 600;
}

/* Footer Navigation */
.footer-nav {
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
  font-family: var(--font-header);
}

.footer-nav a {
  margin: 0 12px;
  text-decoration: none;
  color: var(--text-dark);
  transition: var(--transition);
  font-size: 0.95rem;
}

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

/* Exit-Intent Popup */
.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
}

.popup-content {
  background: #ffffff;
  max-width: 550px;
  width: 90%;
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  position: relative;
  border: 4px solid var(--primary-orange);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
  animation: popupScale 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popupScale {
  0% { transform: scale(0.7); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.popup-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  color: var(--text-light);
  transition: var(--transition);
}

.popup-close:hover {
  color: var(--text-dark);
}

.popup-content h3.popup-alert {
  color: #ef4444;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 10px;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.popup-content h4 {
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.popup-content p {
  font-size: 1.15rem;
  margin-bottom: 25px;
}

.popup-discount-box {
  background: #fef2f2;
  border: 2px dashed #fca5a5;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 25px;
}

.popup-discount-box h2 {
  color: var(--primary-orange);
  font-size: 2.2rem;
  margin-bottom: 5px;
  font-weight: 800;
}

.popup-discount-box p {
  margin-bottom: 0;
  font-weight: 600;
  font-size: 1rem;
}

.popup-btn {
  display: block;
  width: 100%;
  background: linear-gradient(180deg, #ff7e47 0%, #ff4f0f 100%);
  color: #ffffff;
  padding: 16px;
  font-family: var(--font-header);
  font-size: 1.3rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(255, 79, 15, 0.4);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.popup-btn:hover {
  background: linear-gradient(180deg, #ff4f0f 0%, #e03d00 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 79, 15, 0.6);
}

.popup-decline {
  display: inline-block;
  margin-top: 15px;
  color: var(--text-medium);
  font-size: 0.95rem;
  text-decoration: underline;
  cursor: pointer;
}

.popup-decline:hover {
  color: var(--text-dark);
}

/* Responsive Overrides */
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .bullet-list li {
    font-size: 1.1rem;
  }
  
  .grid-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .bonuses-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .guarantee-box {
    flex-direction: column;
    text-align: center;
    padding: 25px;
  }
  
  .guarantee-badge {
    width: 220px;
  }
}
