/* Base styles and variables */
:root {
  --primary-color: #3a7bd5;
  --primary-dark: #2c62b5;
  --secondary-color: #00d4ff;
  --accent-color: #ff5722;
  --text-color: #333;
  --text-light: #666;
  --bg-color: #ffffff;
  --bg-alt: #f7f9fc;
  --border-color: #e0e0e0;
  --success-color: #4caf50;
  --warning-color: #ff9800;
  --error-color: #f44336;
  --border-radius: 8px;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --max-width: 1200px;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

button {
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--text-color);
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.5rem;
}

/* Header styles */
header {
  background-color: var(--bg-color);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
}

.logo a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.main-nav {
  display: flex;
  align-items: center;
}

.desktop-menu {
  display: flex;
  align-items: center;
}

.desktop-menu ul {
  display: flex;
  margin-right: 1rem;
}

.desktop-menu li {
  margin-left: 1.5rem;
}

.language-selector {
  position: relative;
  cursor: pointer;
}

.current-lang {
  display: flex;
  align-items: center;
  gap: 5px;
}

.language-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 0.5rem;
  min-width: 150px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 10;
}

.language-selector.active .language-dropdown,
.language-selector:focus-within .language-dropdown {
  opacity: 1;
  visibility: visible;
}

.language-dropdown li {
  margin: 0.5rem 0;
}

.language-dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.language-dropdown a:hover {
  background-color: var(--bg-alt);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--text-color);
  border-radius: 3px;
  transition: var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  background-color: var(--bg-color);
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-md);
  transform: translateY(-100%);
  opacity: 0;
  transition: var(--transition);
  z-index: 99;
}

.mobile-menu.active {
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-menu li a {
  display: block;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
}

.language-selector-mobile {
  position: relative;
}

.language-dropdown-mobile {
  display: none;
  padding: 0.5rem 0;
}

.language-selector-mobile.active .language-dropdown-mobile {
  display: block;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  border: none;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: white;
}

/* Main content styles */
main {
  min-height: 100vh;
}

section {
  padding: 4rem 0;
}

.alternate-bg {
  background-color: var(--bg-alt);
}

/* Hero section */
.hero {
  position: relative;
  overflow: hidden;
}

.gradient-bg {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-text h1,
.hero-text p {
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.hero-image img:hover {
  transform: scale(1.02) rotate(1deg);
}

/* ZIP search styles */
.zip-search-container {
  margin: 2rem 0;
}

.zip-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
}

.zip-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius) 0 0 var(--border-radius);
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
}

.zip-form input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.zip-form button {
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  padding: 0.75rem 1.5rem;
}

.centered-zip {
  text-align: center;
  margin: 3rem auto;
}

/* Content sections */
.content-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.rounded-image {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.rounded-image:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* Provider styles */
.providers-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 3rem 0;
}

.provider-card {
  background-color: var(--bg-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
}

.neumorphic {
  background-color: var(--bg-color);
  box-shadow: 8px 8px 16px #e0e0e0, -8px -8px 16px #ffffff;
  border-radius: var(--border-radius);
  padding: 1.5rem;
}

.provider-card:hover {
  transform: translateY(-5px);
}

.provider-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.provider-logo {
  width: 80px;
  height: auto;
  object-fit: contain;
}

.provider-content {
  padding: 0.5rem 0;
}

.pros-cons {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.pros-cons li {
  margin-bottom: 0.5rem;
  position: relative;
}

.pros-cons li::before {
  content: "•";
  position: absolute;
  left: -1rem;
  color: var(--primary-color);
}

.provider-cta {
  display: inline-block;
  width: auto;
}

/* FAQ section */
.faq-container {
  margin: 2rem 0;
}

details {
  background-color: var(--bg-color);
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
}

details:hover {
  box-shadow: var(--shadow-md);
}

summary {
  padding: 1.25rem;
  cursor: pointer;
  font-weight: 600;
  position: relative;
  outline: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  position: absolute;
  right: 1.25rem;
  transition: transform 0.3s ease;
}

details[open] summary::after {
  content: "−";
}

details[open] summary {
  border-bottom: 1px solid var(--border-color);
}

details p {
  padding: 1.25rem;
  margin: 0;
}

/* Footer styles */
footer {
  background-color: #2a2a2a;
  color: white;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: white;
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
}

.footer-section ul li {
  margin-bottom: 0.75rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
}

.disclaimer {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-top: 1rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: -100px;
  left: 0;
  width: 100%;
  background-color: var(--bg-color);
  padding: 0.75rem 1.5rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: bottom 0.5s ease;
  z-index: 1000;
  font-size: 0.875rem;
}

.cookie-banner.active {
  bottom: 0;
}

.cookie-banner p {
  margin-bottom: 0;
  margin-right: 1rem;
}

.cookie-buttons {
  display: flex;
  gap: 0.75rem;
}

.cookie-buttons a {
  color: var(--text-light);
  text-decoration: underline;
}

.cookie-buttons button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  font-size: 0.875rem;
}

/* Search overlay styles */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.search-overlay.active {
  opacity: 1;
  visibility: visible;
}

.search-process {
  text-align: center;
  max-width: 600px;
  padding: 2rem;
}

.search-status {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  font-weight: 500;
}

.logo-container {
  margin: 2rem 0;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.provider-search-logo {
  max-width: 150px;
  max-height: 80px;
}

.loader {
  display: inline-block;
  width: 50px;
  height: 50px;
  border: 3px solid rgba(58, 123, 213, 0.3);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s ease-in-out infinite;
  margin: 0 auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Media queries for responsiveness */
@media screen and (max-width: 1024px) {
  h1 {
    font-size: 2.25rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .hero-content {
    gap: 1.5rem;
  }
}

@media screen and (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .desktop-menu {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-image {
    order: -1;
    margin-bottom: 1.5rem;
  }
  
  .content-columns {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .zip-form {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .zip-form input {
    border-radius: var(--border-radius);
    width: 100%;
  }
  
  .zip-form button {
    border-radius: var(--border-radius);
    width: 100%;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .cookie-banner {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  
  .cookie-buttons {
    width: 100%;
    justify-content: space-between;
  }
}

@media screen and (max-width: 480px) {
  body {
    font-size: 14px;
  }
  
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.35rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  .header-container {
    padding: 0.75rem 1rem;
  }
  
  .logo a {
    font-size: 1.25rem;
  }
  
  .providers-list {
    gap: 1.5rem;
  }
  
  .search-status {
    font-size: 1.25rem;
  }
}