/* Base Styles and Variables */
:root {
  --primary: #132C33;
  --secondary: #51A3A3;
  --accent: #D8B08C;
  --background: #F5F5F5;
  --text-dark: #0D1B2A;
  --text-light: #F7F7F7;
  --highlight: #C49A6C;
  --border: #E0E0E0;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s ease;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 4rem;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Lato', sans-serif;
  color: var(--text-dark);
  background-color: var(--background);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  color: var(--primary);
}

.card-content p, li, .layer p, .content-text p, .thank-you-title {
  color: var(--primary);
}

h1 {
  font-size: 2rem;
  color: var(--text-light);
}

h2 {
  font-size: 1.75rem;
}

.cookie-text h3 {
  color: var(--text-light);
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: var(--spacing-md);
}

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

a:hover {
  color: var(--primary);
}

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

button, .button {
  background-color: var(--accent);
  color: var(--text-light);
  border: none;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
  display: inline-block;
}

button:hover, .button:hover {
  background-color: var(--highlight);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

input, textarea, select {
  width: 100%;
  padding: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Lato', sans-serif;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--secondary);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-md);
}

/* Header Styles */
.site-header {
  background-color: var(--primary);
  color: var(--text-light);
  padding: var(--spacing-md) 0;
  position: relative;
  z-index: 100;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
}

.mobile-menu-toggle {
  display: block;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
  padding: var(--spacing-xs);
}

@media (min-width: 768px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.main-nav {
  width: 100%;
  max-height: 0;
  overflow: hidden;
  transition: var(--transition);
}

.main-nav.active {
  max-height: 300px;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  margin-top: var(--spacing-md);
}

.nav-item {
  margin-bottom: var(--spacing-sm);
}

.nav-link {
  color: var(--text-light);
  font-weight: 600;
  transition: var(--transition);
  display: block;
  padding: var(--spacing-xs) 0;
}

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

@media (min-width: 768px) {
  .main-nav {
    width: auto;
    max-height: none;
    overflow: visible;
  }

  .nav-list {
    flex-direction: row;
    margin-top: 0;
  }

  .nav-item {
    margin-bottom: 0;
    margin-left: var(--spacing-md);
  }
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: var(--spacing-xl) 0;
  background-color: var(--primary);
  color: var(--text-light);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
  color: var(--text-light);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: var(--spacing-lg);
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 3.5rem;
  }
}

/* Layered Section Styles */
.layered-section {
  position: relative;
  padding: var(--spacing-xl) 0;
  margin: var(--spacing-xl) 0;
}

.layer {
  background-color: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  position: relative;
  z-index: 1;
}

.layer-offset {
  transform: translateY(40px);
  z-index: 2;
}

.layer-accent {
  background-color: var(--accent);
  color: var(--text-light);
}

.layer-accent h2, .layer-accent h3 {
  color: var(--text-light);
}

.layer-floating {
  margin-top: -60px;
  margin-bottom: 60px;
}

@media (min-width: 768px) {
  .layers-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
  }
  
  .layer-wide {
    grid-column: span 2;
  }
  
  .layer-offset {
    transform: translateY(60px);
  }
}

/* Feature Cards */
.feature-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
  margin: var(--spacing-xl) 0;
}

.feature-card {
  background-color: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

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

.card-image {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.card-content {
  padding: var(--spacing-md);
}

@media (min-width: 768px) {
  .feature-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Contact Form */
.contact-form-section {
  background-color: white;
  padding: var(--spacing-xl) 0;
  position: relative;
}

.contact-form-container {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
}

.form-submit {
  width: 100%;
  padding: var(--spacing-md);
  background-color: var(--accent);
  color: var(--text-light);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.form-submit:hover {
  background-color: var(--highlight);
}

/* Content Sections */
.content-section {
  padding: var(--spacing-xl) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--accent);
  margin: var(--spacing-sm) auto 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
}

@media (min-width: 768px) {
  .content-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.content-item {
  background-color: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

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

.content-image {
  height: 250px;
  width: 100%;
  object-fit: cover;
}

.content-text {
  padding: var(--spacing-md);
}

/* Footer */
.site-footer {
  background-color: var(--primary);
  color: var(--text-light);
  padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
}

.footer-logo img {
  height: 40px;
  margin-bottom: var(--spacing-md);
}

.footer-nav {
  margin-bottom: var(--spacing-lg);
}

.footer-nav-title {
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  color: var(--text-light);
}

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

.footer-nav-item {
  margin-bottom: var(--spacing-xs);
}

.footer-nav-link {
  color: var(--text-light);
  opacity: 0.8;
  transition: var(--transition);
}

.footer-nav-link:hover {
  opacity: 1;
  color: var(--accent);
}

.footer-contact {
  margin-bottom: var(--spacing-lg);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--spacing-sm);
}

.contact-icon {
  font-size: 1.2rem;
  margin-right: var(--spacing-sm);
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  opacity: 0.7;
}

@media (min-width: 768px) {
  .footer-container {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--primary);
  color: var(--text-light);
  padding: var(--spacing-md);
  z-index: 1000;
  display: none;
  box-shadow: var(--shadow-lg);
}

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

.cookie-text {
  margin-bottom: var(--spacing-md);
}

.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.cookie-button {
  padding: var(--spacing-xs) var(--spacing-md);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.accept-all {
  background-color: var(--accent);
  color: var(--text-light);
}

.accept-all:hover {
  background-color: var(--highlight);
}

.reject-all {
  background-color: transparent;
  color: var(--text-light);
  border: 1px solid var(--text-light);
}

.reject-all:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.cookie-settings {
  background-color: var(--secondary);
  color: var(--text-light);
}

.cookie-settings:hover {
  background-color: var(--primary);
}

/* Cookie Settings Modal */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  display: none;
}

.cookie-modal.show {
  display: flex;
}

.cookie-modal-content {
  background-color: white;
  border-radius: var(--radius-md);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--spacing-lg);
  position: relative;
}

.cookie-modal-close {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-dark);
  cursor: pointer;
}

.cookie-modal-title {
  margin-bottom: var(--spacing-lg);
}

.cookie-category {
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--border);
}

.cookie-category:last-child {
  border-bottom: none;
}

.cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-sm);
}

.cookie-category-title {
  font-weight: 700;
  margin: 0;
}

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

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

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

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

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

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

.cookie-modal-actions {
  margin-top: var(--spacing-lg);
  display: flex;
  justify-content: flex-end;
  gap: var(--spacing-sm);
}

/* Thank You Page */
.thank-you-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--spacing-xl) 0;
}

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

.thank-you-icon {
  font-size: 4rem;
  color: var(--accent);
  margin-bottom: var(--spacing-lg);
}

.thank-you-title {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
}

.thank-you-text {
  font-size: 1.2rem;
  margin-bottom: var(--spacing-lg);
}

.back-home {
  display: inline-block;
  background-color: var(--accent);
  color: var(--text-light);
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: var(--transition);
}

.back-home:hover {
  background-color: var(--highlight);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Privacy Policy, Terms, Cookie Policy */
.legal-section {
  padding: var(--spacing-xl) 0;
}

.legal-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: white;
  padding: var(--spacing-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.legal-title {
  margin-bottom: var(--spacing-lg);
}

.legal-updated {
  font-style: italic;
  color: #666;
  margin-bottom: var(--spacing-lg);
}

.legal-section h3 {
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-sm);
}

.legal-section p {
  margin-bottom: var(--spacing-md);
}

.legal-section ul, .legal-section ol {
  margin-bottom: var(--spacing-md);
  padding-left: var(--spacing-lg);
}

.legal-section li {
  margin-bottom: var(--spacing-xs);
}

/* Custom Three.js Container */
.three-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

.delay-1 {
  animation-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.4s;
}

.delay-3 {
  animation-delay: 0.6s;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

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

.bg-primary {
  background-color: var(--primary);
  color: var(--text-light);
}

.bg-secondary {
  background-color: var(--secondary);
  color: var(--text-light);
}

.bg-accent {
  background-color: var(--accent);
  color: var(--text-light);
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.p-0 { padding: 0; }
.p-1 { padding: var(--spacing-sm); }
.p-2 { padding: var(--spacing-md); }
.p-3 { padding: var(--spacing-lg); }
.p-4 { padding: var(--spacing-xl); }

.hidden {
  display: none;
}

.visible {
  display: block;
}

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

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

/* Lottie Animation Container */
.lottie-container {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
  .container {
    width: 95%;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .hero {
    min-height: 60vh;
  }
}

@media (min-width: 992px) {
  .container {
    width: 85%;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .content-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}