/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Lora:ital,wght@0,400;0,500;1,400&display=swap');

/* Design System & Variables */
:root {
  /* Color Palette */
  --pebble-grey: #9E9E9E;
  --warm-clay: #E0D5C1;
  --earth-brown: #4E4637;
  
  --bg-sand: #F7F4EF;
  --bg-dark: #2A251D;
  --text-dark: #2C2822;
  --text-light: #F7F4EF;
  --accent-gold: #C5A880;
  
  /* Fonts */
  --font-serif: 'Lora', serif;
  --font-sans: 'Inter', sans-serif;
  
  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: all 0.2s ease;
  
  /* Layout */
  --container-max-width: 1280px;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-sand);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--earth-brown);
  line-height: 1.2;
}

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

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

/* Structure & Containers */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section-padding {
  padding: 8rem 0;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: rgba(247, 244, 239, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(78, 70, 55, 0.08);
  transition: var(--transition-smooth);
}

header.scrolled {
  padding: 1rem 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 5rem;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--earth-brown);
  text-transform: uppercase;
}

.logo span {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: var(--pebble-grey);
  display: block;
  margin-top: -0.2rem;
}

.nav-menu {
  display: flex;
  gap: 3rem;
  list-style: none;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--earth-brown);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--earth-brown);
  transition: var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 101;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--earth-brown);
  margin: 5px 0;
  transition: var(--transition-smooth);
}

/* Wabi-Sabi Asymmetric Hero */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: radial-gradient(circle at 80% 20%, rgba(224, 213, 193, 0.3) 0%, rgba(247, 244, 239, 0) 60%),
              linear-gradient(135deg, #F4F0E8 0%, #EAE4D8 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-cols: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-content {
  z-index: 2;
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--pebble-grey);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(3rem, 6vw, 4.5rem);
  color: var(--earth-brown);
  margin-bottom: 2rem;
  line-height: 1.1;
}

.hero-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--earth-brown);
  opacity: 0.85;
  margin-bottom: 3rem;
  max-width: 540px;
}

/* Organic Premium Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 2.8rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 50px 30px 50px 40px / 40px 50px 30px 50px; /* Wabi-sabi imperfect rounded corners */
  border: 1px solid var(--earth-brown);
  background-color: transparent;
  color: var(--earth-brown);
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--earth-brown);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn:hover {
  color: var(--bg-sand);
  border-color: var(--earth-brown);
  box-shadow: 0 10px 30px rgba(78, 70, 55, 0.1);
  transform: translateY(-2px);
}

.btn:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.btn-primary {
  background-color: var(--earth-brown);
  color: var(--bg-sand);
  border-color: var(--earth-brown);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--earth-brown);
}

.btn-primary::before {
  background-color: var(--bg-sand);
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 600px;
  border-radius: 200px 150px 220px 180px / 180px 220px 150px 200px; /* Imperfect wabi-sabi shape */
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(78, 70, 55, 0.08);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(0.95) sepia(0.15);
  transition: var(--transition-smooth);
}

.hero-image-wrapper:hover .hero-image {
  transform: scale(1.05);
}

/* Philosophy Section */
.philosophy {
  background-color: #F0EDE6;
}

.philosophy-grid {
  display: grid;
  grid-template-cols: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.philosophy-image-container {
  position: relative;
}

.stone-texture-box {
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 250px;
  height: 250px;
  background-color: var(--warm-clay);
  z-index: -1;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  opacity: 0.7;
}

.section-tag {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--pebble-grey);
  margin-bottom: 1rem;
  display: block;
}

.section-title {
  font-size: 3rem;
  margin-bottom: 2rem;
  line-height: 1.2;
}

.philosophy-text {
  font-size: 1.1rem;
  color: var(--earth-brown);
  opacity: 0.9;
  margin-bottom: 2rem;
}

/* Product Catalog & Filtering */
.filter-menu {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  margin-bottom: 4rem;
}

.filter-btn {
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--pebble-grey);
  cursor: pointer;
  padding: 0.5rem 1rem;
  position: relative;
  transition: var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  color: var(--earth-brown);
}

.filter-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background-color: var(--earth-brown);
  transition: var(--transition-smooth);
  transform: translateX(-50%);
}

.filter-btn.active::after {
  width: 80%;
}

.product-grid {
  display: grid;
  grid-template-cols: repeat(auto-fill, minmax(350px, 1fr));
  gap: 4rem 3rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.product-image-container {
  overflow: hidden;
  position: relative;
  background-color: rgba(78, 70, 55, 0.03);
  border-radius: 12px;
  margin-bottom: 1.5rem;
  aspect-ratio: 4/5;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
  filter: grayscale(0.15) sepia(0.05);
}

.product-card:hover .product-img {
  transform: scale(1.04);
}

.product-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--pebble-grey);
  margin-bottom: 0.5rem;
}

.product-title {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.product-price {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--earth-brown);
}

/* Scroll Reveal Classes */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1),
              transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Testimonials */
.testimonials {
  background-color: #ECE7DF;
  text-align: center;
}

.testimonial-slider {
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-quote {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--earth-brown);
  margin-bottom: 2rem;
}

.testimonial-author {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--pebble-grey);
}

/* Appointment Form & Organic Map */
.contact-grid {
  display: grid;
  grid-template-cols: 1.1fr 0.9fr;
  gap: 6rem;
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-group {
  position: relative;
}

.form-input {
  width: 100%;
  padding: 1rem 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(78, 70, 55, 0.3);
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--earth-brown);
  transition: var(--transition-fast);
  outline: none;
}

.form-input:focus {
  border-bottom-color: var(--earth-brown);
}

.form-label {
  position: absolute;
  top: 1rem;
  left: 0;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--pebble-grey);
  transition: var(--transition-smooth);
  pointer-events: none;
  letter-spacing: 0.1em;
}

/* Floating Label Logic via JS/CSS */
.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
  top: -1rem;
  font-size: 0.75rem;
  color: var(--earth-brown);
}

/* Custom Organic Map */
.organic-map-container {
  position: relative;
  width: 100%;
  height: 450px;
  background-color: var(--warm-clay);
  border-radius: 60% 40% 70% 30% / 50% 40% 60% 50%;
  overflow: hidden;
  box-shadow: inset 0 0 40px rgba(78, 70, 55, 0.1),
              0 20px 40px rgba(78, 70, 55, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 3rem;
  border: 1px solid rgba(78, 70, 55, 0.1);
}

.map-texture {
  position: absolute;
  width: 150%;
  height: 150%;
  background-image: radial-gradient(circle, rgba(78, 70, 55, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.5;
  pointer-events: none;
}

.map-content {
  position: relative;
  z-index: 2;
}

.map-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.map-address {
  font-size: 0.95rem;
  opacity: 0.8;
  margin-bottom: 2rem;
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
  max-width: 500px;
  background-color: rgba(247, 244, 239, 0.95);
  border: 1px solid rgba(78, 70, 55, 0.15);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  backdrop-filter: blur(15px);
  transform: translateY(150%);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

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

.cookie-text {
  font-size: 0.85rem;
  color: var(--earth-brown);
  line-height: 1.5;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
}

.cookie-btn {
  padding: 0.8rem 1.6rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

/* Policy Content Pages */
.policy-hero {
  background-color: #ECE7DF;
  padding: 10rem 0 5rem;
  text-align: center;
}

.policy-content {
  max-width: 800px;
  margin: 0 auto;
}

.policy-content h2 {
  font-size: 1.8rem;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

.policy-content p {
  margin-bottom: 1.5rem;
  opacity: 0.85;
}

.policy-content ul {
  margin-bottom: 2rem;
  padding-left: 1.5rem;
}

.policy-content li {
  margin-bottom: 0.5rem;
  opacity: 0.85;
}

.consent-id-container {
  background-color: rgba(78, 70, 55, 0.05);
  padding: 1rem;
  border-radius: 8px;
  margin-top: 2rem;
  font-family: monospace;
  font-size: 0.9rem;
  color: var(--earth-brown);
  word-break: break-all;
}

/* Footer styling */
footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 6rem 0 3rem;
}

.footer-grid {
  display: grid;
  grid-template-cols: 1.5fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.footer-desc {
  font-size: 0.9rem;
  opacity: 0.6;
  max-width: 320px;
}

.footer-title {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-link {
  font-size: 0.85rem;
  opacity: 0.7;
}

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

.footer-bottom {
  border-top: 1px solid rgba(247, 244, 239, 0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  opacity: 0.5;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-cols: 1fr;
    text-align: center;
    gap: 3rem;
  }
  
  .hero-image-wrapper {
    height: 450px;
    max-width: 450px;
    margin: 0 auto;
  }
  
  .hero-description {
    margin: 0 auto 3rem;
  }
  
  .philosophy-grid,
  .contact-grid {
    grid-template-cols: 1fr;
    gap: 4rem;
  }
  
  .philosophy-image-container {
    order: 2;
  }
  
  .footer-grid {
    grid-template-cols: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding: 5rem 0;
  }
  
  .nav-menu {
    position: fixed;
    top: 5rem;
    left: 100%;
    width: 100%;
    height: calc(100vh - 5rem);
    background-color: var(--bg-sand);
    flex-direction: column;
    align-items: center;
    padding-top: 4rem;
    transition: var(--transition-smooth);
    z-index: 99;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .hamburger {
    display: block;
  }
  
  .hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  
  .footer-grid {
    grid-template-cols: 1fr;
    gap: 3rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}
