/* Base Styles */
:root {
  --primary-color: #2A4B8C;
  --secondary-color: #F25C54;
  --accent-color: #FFD166;
  --bg-light: #F5F7FA;
  --bg-dark: #1A2A40;
  --text-primary: #1A1A1A;
  --text-secondary: #575757;
  --text-light: #FFFFFF;
  --font-heading: 'Crimson Text', serif;
  --font-body: 'Lato', sans-serif;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-light);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

p {
  margin-bottom: 1.5rem;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover, a:focus {
  color: var(--secondary-color);
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

img {
  width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-color);
  color: var(--text-light);
  border: none;
  border-radius: 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
}

.btn:hover, .btn:focus {
  background-color: var(--secondary-color);
  color: var(--text-light);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover, .btn-outline:focus {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.btn-accent {
  background-color: var(--accent-color);
  color: var(--text-primary);
}

.btn-accent:hover, .btn-accent:focus {
  background-color: var(--accent-color);
  opacity: 0.9;
  color: var(--text-primary);
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--bg-light);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.header-scrolled {
  padding: 0.5rem 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.logo img {
  height: 40px;
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-item {
  margin-left: 2rem;
}

.nav-link {
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.5rem 0;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: var(--transition);
}

.nav-link:hover::after, 
.nav-link:focus::after,
.nav-link.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--bg-dark);
  color: var(--text-light);
  overflow: hidden;
  padding-top: 5rem;
}

.hero-content {
  max-width: 700px;
  z-index: 10;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.hero-subtitle {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.hero-shape {
  position: absolute;
  right: -5%;
  top: 20%;
  width: 40%;
  height: 80%;
  background-color: var(--secondary-color);
  transform: skewX(-15deg);
  z-index: 1;
}

/* Section Styling */
.section {
  padding: 5rem 0;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 100%;
  height: 4px;
  background-color: var(--accent-color);
}

.section-subtitle {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 800px;
}

/* Features Section */
.features {
  background-color: var(--bg-light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 3rem;
}

.feature-card {
  padding: 2rem;
  border-radius: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  background-color: #fff;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background-color: var(--primary-color);
  transition: var(--transition);
  z-index: -1;
}

.feature-card:hover {
  transform: translateY(-10px);
}

.feature-card:hover::before {
  width: 100%;
  opacity: 0.05;
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.feature-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.feature-text {
  color: var(--text-secondary);
}

/* Stats Section */
.stats {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  text-align: center;
}

.stat-item {
  padding: 2rem;
}

.stat-number {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--accent-color);
}

.stat-label {
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Analysis Section */
.analysis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 3rem;
}

.analysis-item {
  margin-bottom: 4rem;
  position: relative;
}

.analysis-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 1.5rem;
}

.analysis-meta {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.analysis-date {
  margin-right: 2rem;
}

.analysis-title {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.analysis-excerpt {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* Contact Section */
.contact {
  background-color: var(--bg-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.contact-info {
  margin-bottom: 3rem;
}

.contact-item {
  display: flex;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-right: 1rem;
  min-width: 30px;
}

.contact-text {
  color: var(--text-secondary);
}

.contact-form {
  background: #fff;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid #ddd;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.checkbox-group input {
  margin-right: 10px;
  margin-top: 5px;
}

.map-container {
  height: 400px;
  width: 100%;
  margin-top: 3rem;
}

/* Footer */
.footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-logo {
  color: var(--text-light);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: inline-block;
}

.footer-text {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
}

.footer-heading {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.footer-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 50px;
  height: 2px;
  background-color: var(--accent-color);
}

.footer-links {
  list-style: none;
}

.footer-link {
  margin-bottom: 0.75rem;
}

.footer-link a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-link a:hover, .footer-link a:focus {
  color: var(--text-light);
  margin-left: 5px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a {
  color: var(--accent-color);
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 1.5rem;
  z-index: 9999;
  display: none;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
}

.cookie-consent.show {
  display: block;
}

.cookie-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cookie-text {
  flex: 1;
  margin-bottom: 0;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
}

.cookie-settings {
  background-color: transparent;
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-settings:hover, .cookie-settings:focus {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
}

.cookie-accept {
  background-color: var(--accent-color);
  color: var(--text-primary);
}

/* Cookie Settings Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.show {
  display: flex;
}

.modal-content {
  background-color: #fff;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-primary);
}

.cookie-category {
  margin-bottom: 2rem;
}

.cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.cookie-category-title {
  font-size: 1.25rem;
  margin-bottom: 0;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: var(--primary-color);
}

input:focus + .toggle-slider {
  box-shadow: 0 0 1px var(--primary-color);
}

input:checked + .toggle-slider:before {
  transform: translateX(26px);
}

.cookie-category-description {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
  border-top: 1px solid #eee;
  padding-top: 1.5rem;
}

/* Trends & Forecasts Page */
.trend-item {
  margin-bottom: 5rem;
}

.trend-image {
  height: 400px;
  object-fit: cover;
  margin-bottom: 2rem;
}

.trend-content {
  max-width: 800px;
  margin: 0 auto;
}

.trend-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.trend-meta {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
}

.trend-date {
  margin-right: 2rem;
}

.trend-text p {
  margin-bottom: 1.5rem;
}

/* Statistics Page */
.stat-section {
  margin-bottom: 5rem;
}

.chart-container {
  margin: 3rem 0;
  height: 400px;
  background-color: #fff;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.stat-card {
  background-color: #fff;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.stat-card-title {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.stat-card-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.stat-card-description {
  color: var(--text-secondary);
}

/* Thank You Page */
.thank-you {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.thank-you-content {
  max-width: 600px;
  margin: 0 auto;
}

.thank-you-icon {
  font-size: 5rem;
  color: var(--accent-color);
  margin-bottom: 2rem;
}

.thank-you-title {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.thank-you-text {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--text-secondary);
}

/* Policy Pages */
.policy-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background-color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.policy-content h2 {
  font-size: 2rem;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.policy-content h3 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.policy-content p, .policy-content ul, .policy-content ol {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.policy-content ul, .policy-content ol {
  padding-left: 1.5rem;
}

.policy-content li {
  margin-bottom: 0.5rem;
}

.policy-content a {
  color: var(--primary-color);
  text-decoration: underline;
}

.policy-content a:hover, .policy-content a:focus {
  color: var(--secondary-color);
}

.policy-updated {
  margin-top: 3rem;
  color: var(--text-secondary);
  font-style: italic;
}

/* Responsive Styles */
@media screen and (max-width: 991px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: var(--bg-light);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 4rem;
    transition: var(--transition);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-item {
    margin: 0 0 2rem 0;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .hero {
    height: auto;
    min-height: 100vh;
    padding: 8rem 0 5rem;
  }
  
  .hero-shape {
    right: -20%;
    width: 70%;
  }
}

@media screen and (max-width: 767px) {
  .section {
    padding: 4rem 0;
  }
  
  .hero-content {
    text-align: center;
    margin: 0 auto;
  }
  
  .hero-shape {
    display: none;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .footer-heading::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .cookie-grid {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-buttons {
    width: 100%;
    justify-content: center;
  }
  
  .trend-image {
    height: 250px;
  }
  
  .trend-title {
    font-size: 2rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 479px) {
  .feature-card, .analysis-item {
    padding: 1.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .cookie-buttons {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .cookie-accept, .cookie-settings, .cookie-decline {
    width: 100%;
  }
}

/* IntlTelInput Customization */
.iti {
  width: 100%;
}

.iti__flag-container {
  z-index: 999;
}