/* Reset and Variables */
:root {
  --primary-color: #1565c0;
  --secondary-color: #0d47a1;
  --accent-color: #e3f2fd;
  --text-color: #333;
  --light-text: #666;
  --bg-color: #fff;
  --light-bg: #f8f9fa;
  --border-color: #ddd;
  --success-color: #28a745;
  --font-main: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --container-width: 1200px;
  --spacing-unit: 20px;
}

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

body {
  font-family: var(--font-main);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

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

/* Layout Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-unit);
}

.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: var(--primary-color);
}

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

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

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

.logo img {
  height: 40px;
  margin-right: 10px;
}

.nav-menu {
  display: flex;
  gap: 30px;
}

.nav-link {
  font-weight: 500;
  color: var(--text-color);
}

.nav-link:hover {
  color: var(--primary-color);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  margin-top: 80px; /* Header height */
  padding: 0;
  position: relative;
  text-align: center;
  background-color: var(--light-bg);
}

.hero-banner {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--text-color);
}

/* Content Blocks */
.content-block {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 80px;
}

.content-block:nth-child(even) {
  flex-direction: row-reverse;
}

.block-text {
  flex: 1;
}

.block-text h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.block-text p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: var(--light-text);
}

.block-image {
  flex: 1;
}

.block-image img {
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Form Section */
.subscription-section {
  background-color: var(--light-bg);
  text-align: center;
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

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

.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: var(--secondary-color);
}

/* Footer */
footer {
  background-color: #2c3e50;
  color: white;
  padding: 60px 0 20px;
}

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

.footer-col h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--accent-color);
}

.footer-col p, .footer-col a {
  color: #bdc3c7;
  display: block;
  margin-bottom: 10px;
}

.footer-col a:hover {
  color: white;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.3s;
}

.social-icon:hover {
  background-color: var(--primary-color);
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #95a5a6;
  font-size: 0.9rem;
}

/* Legal Pages */
.legal-page {
  padding-top: 120px;
}

.legal-content h1 {
  margin-bottom: 30px;
}

.legal-content h2 {
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 1.5rem;
  color: var(--secondary-color);
}

.legal-content p {
  margin-bottom: 15px;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: white;
  box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
  padding: 20px;
  z-index: 2000;
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-content {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.cookie-actions {
  display: flex;
  gap: 10px;
}

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

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
}

.cookie-settings {
  display: none;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  margin-top: 20px;
}

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

.cookie-option {
  margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {
  .header-inner {
    height: 60px;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: white;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    text-align: center;
  }
  
  .nav-menu.active {
    transform: translateY(0);
  }
  
  .content-block, .content-block:nth-child(even) {
    flex-direction: column;
    gap: 30px;
  }
  
  .hero-banner {
    height: 300px;
  }
  
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .cookie-actions .btn {
    width: 100%;
  }
}
