/* ============================================
   CSS Variables - Design System
   ============================================ */
:root {
  /* Colors */
  --color-paper-beige: #E8E2D4;
  --color-sea-glass: #AFCDBF;
  --color-rust-patina: #7A5B43;
  --color-sage-grey: #B5B8AC;
  --color-ink-black: #1B1B1B;
  --color-white: #FFFFFF;
  --color-primary: #2c6e49;
  --color-secondary: #f4f1de;
  
  /* Typography */
  --font-heading: 'Fraunces', serif;
  --font-body: 'Source Sans Pro', sans-serif;
  --font-accent: 'Sriracha', cursive;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-xxl: 4rem;
  
  /* Border & Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --border-thin: 1px solid;
  
  /* Shadows */
  --shadow-soft: 0 2px 8px rgba(27, 27, 27, 0.08);
  --shadow-medium: 0 4px 16px rgba(27, 27, 27, 0.12);
  --shadow-strong: 0 8px 24px rgba(27, 27, 27, 0.16);
  
  /* Transitions */
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
  --transition-slow: 0.8s 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-body);
  color: var(--color-ink-black);
  background-color: var(--color-paper-beige);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60%;
  height: 3px;
  background: var(--color-rust-patina);
  border-radius: 2px;
  transform: skewX(-15deg);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

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

a {
  color: var(--color-rust-patina);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-sea-glass);
}

/* ============================================
   Header & Navigation
   ============================================ */
.site-header {
  background: var(--color-white);
  padding: var(--space-md) var(--space-lg);
  box-shadow: var(--shadow-soft);
  position: relative;
  z-index: 1000;
  transition: transform var(--transition-medium);
}

.site-header.hidden {
  transform: translateY(-100%);
}

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

.brand-text {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  color: var(--color-ink-black);
  font-weight: 600;
  letter-spacing: -0.5px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  font-size: 1.5rem;
  color: var(--color-ink-black);
  z-index: 1001;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--space-lg);
  align-items: center;
}

.nav-menu li a {
  font-size: 1rem;
  color: var(--color-ink-black);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast);
}

.nav-menu li a:hover {
  background-color: var(--color-sea-glass);
  color: var(--color-ink-black);
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-white);
    flex-direction: column;
    padding: var(--space-xxl) var(--space-lg);
    box-shadow: var(--shadow-strong);
    transition: right var(--transition-medium);
    z-index: 1000;
    justify-content: flex-start;
    gap: var(--space-md);
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-menu li {
    width: 100%;
  }
  
  .nav-menu li a {
    display: block;
    width: 100%;
    padding: var(--space-md);
  }
}

/* ============================================
   Main Content
   ============================================ */
.main-content {
  min-height: calc(100vh - 200px);
  padding: var(--space-xl) var(--space-lg);
}

.content-wrapper {
  max-width: 1400px;
  margin: 0 auto;
}

/* ============================================
   Hero/Banner Section
   ============================================ */
.hero-section {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 400px;
  max-height: 700px;
  overflow: hidden;
  margin-bottom: var(--space-xxl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-medium);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.95) contrast(1.05);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(175, 205, 191, 0.15) 0%,
    rgba(122, 91, 67, 0.1) 100%
  );
  pointer-events: none;
}

.hero-content {
  position: absolute;
  bottom: var(--space-xl);
  left: var(--space-xl);
  right: var(--space-xl);
  color: var(--color-white);
  z-index: 10;
}

.hero-title {
    color: white;
  font-size: clamp(2rem, 6vw, 4rem);
  margin-bottom: var(--space-md);
  text-shadow: 2px 2px 8px rgba(27, 27, 27, 0.5);
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  text-shadow: 1px 1px 4px rgba(27, 27, 27, 0.5);
}

@media (max-width: 768px) {
  .hero-section {
    height: 50vh;
    min-height: 300px;
  }
  
  .hero-content {
    bottom: var(--space-lg);
    left: var(--space-md);
    right: var(--space-md);
  }
}

/* ============================================
   Section Styles
   ============================================ */
.content-section {
  margin-bottom: var(--space-xxl);
  padding: var(--space-xl) 0;
}

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

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

.section-item {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.section-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

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

.item-content {
  padding: var(--space-lg);
}

.item-title {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
  color: var(--color-ink-black);
}

.item-description {
  color: var(--color-rust-patina);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============================================
   Gallery Styles (Materials Gallery)
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-fast);
}

.gallery-item:hover {
  transform: scale(1.05);
  z-index: 10;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(10%) brightness(0.98);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(27, 27, 27, 0.7), transparent);
  padding: var(--space-md);
  color: var(--color-white);
  transform: translateY(100%);
  transition: transform var(--transition-fast);
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

/* Collage Style for Gallery */
.gallery-collage {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.collage-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-medium);
  transform: rotate(var(--rotation, 0deg));
  transition: transform var(--transition-medium);
}

.collage-item:nth-child(odd) {
  --rotation: -2deg;
}

.collage-item:nth-child(even) {
  --rotation: 2deg;
}

.collage-item:hover {
  transform: rotate(0deg) scale(1.05);
  z-index: 10;
}

.collage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   DIY Ideas Styles
   ============================================ */
.diy-container {
  max-width: 900px;
  margin: 0 auto;
}

.diy-project {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow-soft);
  border-left: 4px solid var(--color-sea-glass);
}

.project-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.project-number {
  font-family: var(--font-accent);
  font-size: 2rem;
  color: var(--color-rust-patina);
  opacity: 0.6;
}

.project-steps {
  list-style: none;
  counter-reset: step-counter;
}

.project-steps li {
  counter-increment: step-counter;
  margin-bottom: var(--space-lg);
  padding-left: var(--space-xl);
  position: relative;
}

.project-steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  background: var(--color-sea-glass);
  color: var(--color-ink-black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
}

.project-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: var(--radius-md);
  margin: var(--space-lg) 0;
  box-shadow: var(--shadow-soft);
}

/* ============================================
   Before & After Styles
   ============================================ */
.comparison-container {
  max-width: 1000px;
  margin: 0 auto;
  margin-bottom: var(--space-xl);
}

.comparison-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-medium);
  cursor: grab;
}

.comparison-slider:active {
  cursor: grabbing;
}

.comparison-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comparison-before {
  clip-path: inset(0 50% 0 0);
  transition: clip-path var(--transition-fast);
}

.comparison-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: var(--color-white);
  transform: translateX(-50%);
  cursor: ew-resize;
  box-shadow: 0 0 8px rgba(27, 27, 27, 0.3);
}

.comparison-handle::before {
  content: '⟷';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--color-ink-black);
  box-shadow: var(--shadow-medium);
}

.comparison-label {
  position: absolute;
  top: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: rgba(27, 27, 27, 0.7);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
}

.comparison-label-before {
  left: var(--space-md);
}

.comparison-label-after {
  right: var(--space-md);
}

/* ============================================
   Contact Form Styles
   ============================================ */
.contact-section {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-xl);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.contact-info {
  margin-bottom: var(--space-xl);
  text-align: center;
}

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

.contact-detail {
  text-align: center;
  padding: var(--space-lg);
  background: var(--color-paper-beige);
  border-radius: var(--radius-md);
}

.contact-detail strong {
  display: block;
  margin-bottom: var(--space-sm);
  color: var(--color-rust-patina);
}

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

.form-label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: 600;
  color: var(--color-ink-black);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-md);
  border: var(--border-thin) var(--color-sage-grey);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--color-paper-beige);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-sea-glass);
  box-shadow: 0 0 0 3px rgba(175, 205, 191, 0.2);
}

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

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

.form-checkbox input[type="checkbox"] {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

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

.btn-submit {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  background: var(--color-rust-patina);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.btn-submit:hover {
  background: var(--color-sea-glass);
  color: var(--color-ink-black);
  transform: translateY(-2px);
}

.btn-submit:active {
  transform: translateY(0);
}

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

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

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--color-ink-black);
  color: var(--color-white);
  padding: var(--space-xl) var(--space-lg);
  margin-top: var(--space-xxl);
}

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

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

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

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

.footer-menu a {
  color: var(--color-paper-beige);
  transition: color var(--transition-fast);
}

.footer-menu a:hover {
  color: var(--color-sea-glass);
}

.footer-copyright {
  text-align: center;
  padding-top: var(--space-lg);
  margin-top: var(--space-lg);
  border-top: var(--border-thin) rgba(255, 255, 255, 0.1);
  color: var(--color-sage-grey);
  font-size: 0.9rem;
}

/* ============================================
   Privacy Popup
   ============================================ */
.privacy-popup {
  position: fixed;
  bottom: var(--space-lg);
  left: var(--space-lg);
  right: var(--space-lg);
  max-width: 500px;
  background: var(--color-white);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-strong);
  z-index: 10000;
  transform: translateY(150%);
  transition: transform var(--transition-medium);
}

.privacy-popup.show {
  transform: translateY(0);
}

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

.privacy-popup-title {
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
  color: var(--color-ink-black);
}

.privacy-popup-text {
  font-size: 0.9rem;
  color: var(--color-rust-patina);
  line-height: 1.5;
}

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

.btn-privacy {
  flex: 1;
  padding: var(--space-sm) var(--space-md);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.btn-accept {
  background: var(--color-rust-patina);
  color: var(--color-white);
}

.btn-accept:hover {
  background: var(--color-sea-glass);
  color: var(--color-ink-black);
}

.btn-decline {
  background: var(--color-sage-grey);
  color: var(--color-white);
}

.btn-decline:hover {
  background: var(--color-paper-beige);
  color: var(--color-ink-black);
}

/* ============================================
   Thank You Page
   ============================================ */
.thank-you-container {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: var(--space-xxl) var(--space-lg);
}

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

.thank-you-title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: var(--space-md);
  color: var(--color-ink-black);
}

.thank-you-message {
  font-size: 1.1rem;
  color: var(--color-rust-patina);
  line-height: 1.8;
  margin-bottom: var(--space-xl);
}

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

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

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

.error-description {
  color: var(--color-rust-patina);
  margin-bottom: var(--space-xl);
}

.btn-home {
  display: inline-block;
  padding: var(--space-md) var(--space-xl);
  background: var(--color-rust-patina);
  color: var(--color-white);
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.btn-home:hover {
  background: var(--color-sea-glass);
  color: var(--color-ink-black);
  transform: translateY(-2px);
}

/* ============================================
   Products Page Styles
   ============================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

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

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

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

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

.product-title {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
  color: var(--color-ink-black);
}

.product-description {
  color: var(--color-rust-patina);
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-sea-glass);
  font-family: var(--font-heading);
}

/* ============================================
   Policy Pages Styles
   ============================================ */
.policy-container {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.policy-section {
  margin-bottom: var(--space-xl);
}

.policy-section h2 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

.policy-section p {
  margin-bottom: var(--space-md);
  line-height: 1.8;
}

.policy-section ul {
  margin-left: var(--space-xl);
  margin-bottom: var(--space-md);
}

.policy-section li {
  margin-bottom: var(--space-sm);
  line-height: 1.6;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
  .main-content {
    padding: var(--space-lg) var(--space-md);
  }
  
  .content-section {
    padding: var(--space-lg) 0;
  }
  
  .section-grid,
  .gallery-grid,
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-details {
    grid-template-columns: 1fr;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .privacy-popup {
    left: var(--space-md);
    right: var(--space-md);
    bottom: var(--space-md);
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  
  .hero-section {
    height: 40vh;
    min-height: 250px;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .comparison-slider {
    aspect-ratio: 4/3;
  }
}

@media (min-width: 1400px) {
  .content-wrapper,
  .header-container,
  .footer-container {
    max-width: 1600px;
  }
}

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

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

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

.handwritten-note {
  font-family: var(--font-accent);
  font-size: 1.1rem;
  color: var(--color-rust-patina);
  opacity: 0.7;
  transform: rotate(-2deg);
  display: inline-block;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-paper-beige);
  border-radius: var(--radius-sm);
  margin: var(--space-md) 0;
}

