/* ============================================
   CSS Variables - Soft-Tech Minimalism Theme
   ============================================ */
:root {
  /* Color Palette */
  --color-cashmere: #EAE0D5;
  --color-truffle: #463F3A;
  --color-lavender: #B8B8D1;
  --color-white: #FFFFFF;
  --color-shadow: rgba(70, 63, 58, 0.1);
  --color-overlay: rgba(234, 224, 213, 0.85);
  
  /* Typography */
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Montserrat', sans-serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  
  /* Transitions */
  --transition-fast: 0.3s ease;
  --transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Shadows */
  --shadow-sm: 0 2px 8px var(--color-shadow);
  --shadow-md: 0 4px 16px var(--color-shadow);
  --shadow-lg: 0 8px 32px var(--color-shadow);
  
  /* Layout */
  --max-width: 1200px;
  --header-height: 80px;
}

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

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

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--color-truffle);
  background-color: var(--color-cashmere);
  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-fast);
}

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

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 300;
  line-height: 1.2;
  color: var(--color-truffle);
  margin-bottom: var(--space-md);
}

h1 {
  font-size: clamp(1.5rem, 4vw, 3rem);
}

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

h3 {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
}

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

/* ============================================
   Header
   ============================================ */
.site-header {
  position: relative;
  width: 100%;
  padding: var(--space-md) var(--space-md);
  background-color: var(--color-cashmere);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  border-bottom: 1px solid var(--color-shadow);
}

.brand-name {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.5rem);
  color: var(--color-truffle);
  font-weight: 300;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

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

.nav-link {
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  padding: var(--space-xs) var(--space-sm);
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.burger-button {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-xs);
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10001;
  margin-left: var(--space-sm);
}

.burger-line {
  width: 25px;
  height: 2px;
  background-color: var(--color-truffle);
  transition: all var(--transition-fast);
}

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

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

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

/* ============================================
   Mobile Navigation
   ============================================ */
.nav-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(70, 63, 58, 0.5);
  z-index: 997;
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.nav-backdrop.active {
  display: block;
  opacity: 1;
}

@media (max-width: 1023px) {
  .burger-button {
    display: flex;
  }
  
  .header-nav {
    position: relative;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--color-cashmere);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-xl) var(--space-md) var(--space-lg);
    padding-top: calc(var(--header-height) + var(--space-lg));
    box-shadow: var(--shadow-lg);
    transition: right var(--transition-smooth);
    z-index: 998;
    overflow-y: auto;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-link {
    width: 100%;
    padding: var(--space-sm);
    border-bottom: 1px solid var(--color-shadow);
    display: block;
  }
}

/* ============================================
   Hero Banner (Full-Width)
   ============================================ */
.hero-banner {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  height: 70vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.banner-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(234, 224, 213, 0.7) 0%,
    rgba(234, 224, 213, 0.85) 100%
  );
  z-index: 2;
}

.banner-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: var(--space-lg);
  max-width: 800px;
  margin: 0 auto;
}

.banner-title {
  color: var(--color-truffle);
  margin-bottom: var(--space-md);
  text-shadow: 0 2px 8px rgba(255, 255, 255, 0.5);
}

.banner-text {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  color: var(--color-truffle);
  margin-bottom: var(--space-lg);
}

/* ============================================
   Main Content Container
   ============================================ */
.main-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md);
}

/* ============================================
   Section Styles
   ============================================ */
.content-section {
  margin-bottom: var(--space-xl);
  padding: var(--space-lg) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background-color: var(--color-lavender);
  margin: var(--space-md) auto;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
  max-width: 100%;
  justify-items: center;
}

.section-grid-two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  align-items: center;
  max-width: 100%;
  justify-items: center;
}

.grid-item {
  background-color: var(--color-white);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
  max-width: 100%;
  width: 100%;
}

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

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

.grid-content h3 {
  margin-bottom: var(--space-sm);
}

/* ============================================
   Full-Width Section Banners
   ============================================ */
.full-width-banner {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-bottom: var(--space-xl);
  height: 50vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.full-width-banner .banner-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.full-width-banner .banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(234, 224, 213, 0.75) 0%,
    rgba(234, 224, 213, 0.9) 100%
  );
  z-index: 2;
}

.full-width-banner .banner-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: var(--space-lg);
  max-width: 900px;
}

/* ============================================
   Contact Form
   ============================================ */
.contact-container {
  max-width: 800px;
  margin: 0 auto;
}

.contact-form {
  background-color: var(--color-white);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-lg);
}

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

.form-label {
  display: block;
  margin-bottom: var(--space-xs);
  font-size: 0.9rem;
  color: var(--color-truffle);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-sm);
  border: 1px solid var(--color-shadow);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  background-color: var(--color-cashmere);
  color: var(--color-truffle);
  transition: border-color var(--transition-fast);
}

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

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

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

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

.checkbox-label {
  font-size: 0.875rem;
  line-height: 1.5;
}

.submit-button {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  background-color: var(--color-truffle);
  color: var(--color-white);
  border-radius: var(--radius-md);
  font-size: 1rem;
  margin-top: var(--space-md);
  transition: background-color var(--transition-fast);
}

.submit-button:hover {
  background-color: var(--color-lavender);
  color: var(--color-truffle);
}

/* ============================================
   Google Maps
   ============================================ */
.map-container {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: var(--space-lg);
}

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

/* ============================================
   Products Grid
   ============================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
  max-width: 100%;
  justify-items: center;
}

.product-card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

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

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

.product-info {
  padding: var(--space-lg);
}

.product-title {
  margin-bottom: var(--space-sm);
}

.product-description {
  margin-bottom: var(--space-md);
  color: var(--color-truffle);
  opacity: 0.8;
}

.product-price {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-truffle);
  font-family: var(--font-heading);
  font-style: italic;
}

/* ============================================
   Thank You Page
   ============================================ */
.thank-you-container {
  max-width: 600px;
  margin: var(--space-xl) auto;
  text-align: center;
  padding: var(--space-lg);
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.thank-you-icon {
  font-size: 4rem;
  margin-bottom: var(--space-md);
  color: var(--color-lavender);
}

/* ============================================
   Privacy Popup
   ============================================ */
.privacy-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(70, 63, 58, 0.7);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.privacy-popup.active {
  display: flex;
}

.popup-content {
  background-color: var(--color-white);
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.popup-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  font-size: 1.5rem;
  color: var(--color-truffle);
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color var(--transition-fast);
}

.popup-close:hover {
  background-color: var(--color-cashmere);
}

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

.popup-text {
  margin-bottom: var(--space-sm);
  font-size: 0.9rem;
  line-height: 1.6;
}

.popup-buttons {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.popup-button {
  flex: 1;
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.popup-button-accept {
  background-color: var(--color-truffle);
  color: var(--color-white);
}

.popup-button-accept:hover {
  background-color: var(--color-lavender);
  color: var(--color-truffle);
}

.popup-button-decline {
  background-color: var(--color-cashmere);
  color: var(--color-truffle);
}

.popup-button-decline:hover {
  background-color: var(--color-shadow);
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background-color: var(--color-truffle);
  color: var(--color-cashmere);
  padding: var(--space-lg) var(--space-md);
  margin-top: var(--space-xl);
}

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

.footer-section h4 {
  color: var(--color-cashmere);
  margin-bottom: var(--space-sm);
  font-size: 1.1rem;
}

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

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

.footer-link {
  color: var(--color-cashmere);
  opacity: 0.8;
  transition: opacity var(--transition-fast);
}

.footer-link:hover {
  opacity: 1;
}

.footer-bottom {
  text-align: center;
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(234, 224, 213, 0.2);
  font-size: 0.875rem;
  opacity: 0.7;
}

/* ============================================
   404 Page
   ============================================ */
.error-container {
  max-width: 600px;
  margin: var(--space-xl) auto;
  text-align: center;
  padding: var(--space-lg);
}

.error-code {
  font-size: 6rem;
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--color-lavender);
  margin-bottom: var(--space-md);
}

.error-message {
  margin-bottom: var(--space-lg);
}

.error-link {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  background-color: var(--color-truffle);
  color: var(--color-white);
  border-radius: var(--radius-md);
  transition: background-color var(--transition-fast);
}

.error-link:hover {
  background-color: var(--color-lavender);
  color: var(--color-truffle);
}

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

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

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

.date {
  font-size: 0.875rem;
  opacity: 0.7;
  font-style: italic;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
  :root {
    --space-lg: 3rem;
    --space-xl: 4rem;
  }
  
  .hero-banner {
    height: 60vh;
    min-height: 400px;
  }
  
  .full-width-banner {
    height: 40vh;
    min-height: 300px;
  }
  
  .section-grid,
  .section-grid-two,
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 480px) {
  :root {
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
  }
  
  .main-container {
    padding: var(--space-md) var(--space-sm);
  }
  
  .contact-form {
    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;
  }
  
  html {
    scroll-behavior: auto;
  }
}

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

