/* ============================================
   WOVEN DEFENSE - Materials Research Lab Aesthetic
   Natural Insulation Methods Website
   ============================================ */

:root {
  /* Base Colors - Woven Defense Palette */
  --color-basalt: #2B2B2B;
  --color-raw-wool: #F2EFE9;
  --color-terracotta: #D35400;
  --color-ether-blue: #D6EAF8;
  --color-text-primary: #2B2B2B;
  --color-text-secondary: #5A5A5A;
  --color-white: #FFFFFF;
  --color-black: #000000;
  
  /* Typography */
  --font-technical: 'Space Grotesk', sans-serif;
  --font-elegant: 'Cormorant Garamond', serif;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-xxl: 4rem;
  
  /* Layout */
  --container-max: 1200px;
  --section-padding: 4rem 1rem;
  
  /* Effects */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 2px 8px rgba(43, 43, 43, 0.1);
  --shadow-md: 0 4px 16px rgba(43, 43, 43, 0.15);
  --shadow-lg: 0 8px 32px rgba(43, 43, 43, 0.2);
  --blur-glass: blur(10px);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

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

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

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

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

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

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

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-technical);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

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

p {
  font-family: var(--font-elegant);
  font-size: clamp(1rem, 2vw, 1.125rem);
  margin-bottom: var(--space-md);
  color: var(--color-text-secondary);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.site-header {
  background: rgba(242, 239, 233, 0.95);
  backdrop-filter: var(--blur-glass);
  padding: var(--space-md) var(--space-lg);
  position: relative;
  z-index: 1000;
  border-bottom: 1px solid rgba(43, 43, 43, 0.1);
}

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

.brand-text {
  font-family: var(--font-technical);
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 700;
  color: var(--color-basalt);
  letter-spacing: -0.02em;
}

.nav-menu {
  display: flex;
  gap: 15px;
  list-style: none;
  align-items: center;
}

.nav-menu li a {
  font-size: 0.9375rem;
  font-weight: 500;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-base);
}

.nav-menu li a:hover {
  background-color: rgba(211, 84, 0, 0.1);
}

/* Burger Menu Button - Always Last in Header */
.burger-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  order: 999;
  z-index: 10001;
}

.burger-line {
  width: 100%;
  height: 2px;
  background-color: var(--color-basalt);
  transition: all var(--transition-base);
  border-radius: 2px;
}

.burger-toggle.active .burger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger-toggle.active .burger-line:nth-child(2) {
  opacity: 0;
}

.burger-toggle.active .burger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Navigation */
@media (max-width: 1023px) {
  .burger-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-raw-wool);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem var(--space-lg) var(--space-lg);
    gap: var(--space-md);
    box-shadow: var(--shadow-lg);
    transition: right var(--transition-base);
    z-index: 1000;
    overflow-y: auto;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-menu li {
    width: 100%;
  }
  
  .nav-menu li a {
    display: block;
    width: 100%;
    padding: var(--space-md);
    border-bottom: 1px solid rgba(43, 43, 43, 0.1);
  }
}

/* Overlay for mobile menu */
.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(43, 43, 43, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.menu-overlay.active {
  display: block;
  opacity: 1;
}

/* ============================================
   HERO BANNERS (Full-Width)
   ============================================ */

.hero-banner {
  width: 100vw;
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container-max);
  width: 100%;
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  color: var(--color-white);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: var(--space-lg);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-description {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  max-width: 800px;
  margin: 0 auto var(--space-xl);
  color: white;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

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

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.hero-image-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(43, 43, 43, 0.4) 0%, rgba(43, 43, 43, 0.6) 100%);
}

/* Image positioned under text */
.hero-image-below {
  margin-top: var(--space-xl);
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-image-below img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   SECTIONS
   ============================================ */

.main-content {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--section-padding);
}

.content-section {
  margin-bottom: var(--space-xxl);
  padding: var(--space-xl) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-xl);
  color: var(--color-basalt);
  position: relative;
  padding-bottom: var(--space-md);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--color-terracotta);
}

.section-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-lg);
}

.section-text {
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.8;
}
.section-text p {
  color: var(--color-terracotta);
}

.section-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base);
}

.section-image:hover {
  transform: scale(1.02);
}

.section-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Full-width section with image */
.full-width-section {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding: var(--space-xxl) var(--space-lg);
  background: var(--color-basalt);
  color: var(--color-raw-wool);
}

.full-width-section .section-title {
  color: var(--color-raw-wool);
}

.full-width-section .section-title::after {
  background: var(--color-terracotta);
}

/* ============================================
   CARDS & GRID LAYOUTS
   ============================================ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.feature-card {
  background: var(--color-white);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  border: 1px solid rgba(43, 43, 43, 0.1);
}

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

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
  color: var(--color-basalt);
}

.card-text {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
}

/* ============================================
   FORMS
   ============================================ */

.contact-form {
  max-width: 600px;
  margin: var(--space-xl) auto;
  background: var(--color-white);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: 500;
  color: var(--color-basalt);
  font-size: 0.9375rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-md);
  border: 1px solid rgba(43, 43, 43, 0.2);
  border-radius: var(--radius-sm);
  font-family: var(--font-technical);
  font-size: 1rem;
  transition: border-color var(--transition-base);
  background: var(--color-raw-wool);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-terracotta);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.checkbox-input {
  margin-top: 4px;
  flex-shrink: 0;
}

.checkbox-label {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.submit-button {
  background: var(--color-terracotta);
  color: var(--color-white);
  border: none;
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-sm);
  font-family: var(--font-technical);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  width: 100%;
  margin-top: 10px;
}

.submit-button:hover {
  background: #B8460A;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: white;
}
.footer-section p{
  color: white;
}
.footer-bottom p{
  color: white;
}
.submit-button:active {
  transform: translateY(0);
}

/* ============================================
   GOOGLE MAPS
   ============================================ */

.map-container {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin: var(--space-xl) 0;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background: var(--color-basalt);
  color: var(--color-raw-wool);
  padding: var(--space-xl) var(--space-lg);
  margin-top: var(--space-xxl);
}

.footer-container {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
}

.footer-section h3 {
  font-size: 1.125rem;
  margin-bottom: var(--space-md);
  color: var(--color-raw-wool);
}

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

.footer-menu li {
  margin-bottom: var(--space-sm);
}

.footer-menu a {
  color: rgba(242, 239, 233, 0.8);
  font-size: 0.9375rem;
  transition: color var(--transition-base);
}

.footer-menu a:hover {
  color: var(--color-raw-wool);
}

.footer-contact {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: rgba(242, 239, 233, 0.8);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-lg);
  margin-top: var(--space-lg);
  border-top: 1px solid rgba(242, 239, 233, 0.2);
  font-size: 0.875rem;
  color: rgba(242, 239, 233, 0.6);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

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

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.date {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  font-style: italic;
}

/* ============================================
   PRIVACY POPUP
   ============================================ */

.privacy-popup {
  display: none;
  position: fixed;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  max-width: 500px;
  width: calc(100% - 2rem);
  background: var(--color-white);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  border: 2px solid var(--color-terracotta);
}

.privacy-popup.active {
  display: block;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.privacy-popup-content {
  margin-bottom: var(--space-md);
}

.privacy-popup-buttons {
  display: flex;
  gap: var(--space-md);
}

.privacy-button {
  flex: 1;
  padding: var(--space-sm) var(--space-md);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-technical);
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all var(--transition-base);
}

.privacy-accept {
  background: var(--color-terracotta);
  color: var(--color-white);
}

.privacy-accept:hover {
  background: #B8460A;
}

.privacy-decline {
  background: transparent;
  color: var(--color-text-primary);
  border: 1px solid rgba(43, 43, 43, 0.2);
}

.privacy-decline:hover {
  background: rgba(43, 43, 43, 0.05);
}

/* ============================================
   ERROR PAGE (404)
   ============================================ */

.error-container {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xxl) var(--space-lg);
}

.error-code {
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 700;
  color: var(--color-terracotta);
  margin-bottom: var(--space-md);
}

.error-message {
  font-size: clamp(1.25rem, 3vw, 2rem);
  margin-bottom: var(--space-lg);
  color: var(--color-basalt);
}

.error-link {
  display: inline-block;
  padding: var(--space-md) var(--space-xl);
  background: var(--color-terracotta);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: all var(--transition-base);
}

.error-link:hover {
  background: #B8460A;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 768px) {
  :root {
    --section-padding: 2rem 1rem;
  }
  
  .hero-banner {
    min-height: 50vh;
  }
  
  .section-content {
    grid-template-columns: 1fr;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
  }
  
  .contact-form {
    padding: var(--space-lg);
  }
}

@media (max-width: 480px) {
  .header-container {
    padding: var(--space-sm);
  }
  
  .hero-content {
    padding: var(--space-lg) var(--space-md);
  }
  
  .privacy-popup {
    bottom: var(--space-md);
    padding: var(--space-md);
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 2px solid var(--color-terracotta);
  outline-offset: 2px;
}

