/* ==========================================================================
   Scoupzo Zen - Premium Wabi-Sabi Oak & Zen Stoneware Theme
   ========================================================================== */

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

/* CSS Variables */
:root {
  --color-basalt: #111827;
  --color-wood: #5C4033;
  --color-clay: #B45309;
  --color-pebble: #9CA3AF;
  
  /* Additional Wabi-Sabi Tones */
  --color-sand: #F5F2EB;
  --color-stone: #E5E1D8;
  --color-charcoal: #1F2937;
  --color-white: #FFFFFF;
  --color-overlay: rgba(17, 24, 39, 0.4);
  --color-glass: rgba(245, 242, 235, 0.75);

  /* Fonts */
  --font-serif: 'Lora', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

  /* Transitions */
  --transition-smooth: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: all 0.2s ease-in-out;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--color-sand);
  color: var(--color-basalt);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--color-basalt);
  line-height: 1.3;
}

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

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

/* Utility Classes */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.text-center { text-align: center; }
.text-clay { color: var(--color-clay); }
.text-pebble { color: var(--color-pebble); }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  padding: 1rem 2.5rem;
  border: 1px solid var(--color-basalt);
  background: transparent;
  color: var(--color-basalt);
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-basalt);
  z-index: -1;
  transform: translateY(100%);
  transition: var(--transition-smooth);
}

.btn:hover {
  color: var(--color-sand);
}

.btn:hover::before {
  transform: translateY(0);
}

.btn-clay {
  border-color: var(--color-clay);
  color: var(--color-clay);
}

.btn-clay::before {
  background-color: var(--color-clay);
}

.btn-clay:hover {
  color: var(--color-sand);
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: var(--color-glass);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(17, 24, 39, 0.05);
  transition: var(--transition-smooth);
}

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

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  transition: var(--transition-smooth);
}

header.scrolled .nav-container {
  padding: 1rem 0;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-basalt);
}

.logo span {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--color-clay);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-basalt);
  position: relative;
  padding-bottom: 0.25rem;
}

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

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

.burger {
  display: none;
  cursor: pointer;
}

.burger div {
  width: 25px;
  height: 2px;
  background-color: var(--color-basalt);
  margin: 5px;
  transition: var(--transition-smooth);
}

/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--color-basalt);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  filter: grayscale(10%) contrast(1.1);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, transparent 20%, var(--color-basalt) 90%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--color-sand);
  max-width: 650px;
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.9rem;
  color: var(--color-pebble);
  margin-bottom: 1rem;
  display: block;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: var(--color-white);
}

.hero-desc {
  font-size: 1.1rem;
  font-weight: 300;
  margin-bottom: 2.5rem;
  color: var(--color-stone);
}

/* Sections */
.section {
  padding: 8rem 0;
  position: relative;
}

.section-title-wrap {
  margin-bottom: 5rem;
  position: relative;
}

.section-subtitle {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-clay);
  display: block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
  padding-bottom: 1rem;
}

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

.section-title-wrap.text-left .section-title::after {
  left: 0;
  transform: none;
}

/* Basalt Stone Block Layout (Grid) */
.basalt-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
}

.basalt-card {
  grid-column: span 6;
  background-color: var(--color-stone);
  border: 1px solid rgba(17, 24, 39, 0.05);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: var(--transition-smooth);
}

.basalt-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background-color: var(--color-wood);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-smooth);
}

.basalt-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(17, 24, 39, 0.05);
}

.basalt-card:hover::before {
  transform: scaleX(1);
}

.basalt-card-num {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: rgba(180, 83, 9, 0.15);
  line-height: 1;
  margin-bottom: 1.5rem;
}

.basalt-card-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.basalt-card-text {
  font-size: 0.95rem;
  color: var(--color-charcoal);
  margin-bottom: 2rem;
}

/* Oak Structure Layouts (Split Showcase) */
.oak-split {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin-bottom: 8rem;
}

.oak-split:nth-child(even) {
  flex-direction: row-reverse;
}

.oak-img-wrapper {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.oak-img-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px solid var(--color-wood);
  transform: translate(15px, 15px);
  z-index: -1;
  transition: var(--transition-smooth);
}

.oak-split:hover .oak-img-wrapper::after {
  transform: translate(5px, 5px);
}

.oak-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: var(--transition-smooth);
  filter: sepia(10%) contrast(1.02);
}

.oak-split:hover .oak-img {
  transform: scale(1.03);
}

.oak-content {
  flex: 1;
}

.oak-content h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.oak-content p {
  margin-bottom: 2rem;
  color: var(--color-charcoal);
}

/* Category Filter & Products */
.filter-controls {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.5rem 1.5rem;
  cursor: pointer;
  color: var(--color-pebble);
  position: relative;
  transition: var(--transition-fast);
}

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

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

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

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem 2rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border: 1px solid rgba(17, 24, 39, 0.03);
  padding: 1rem;
  transition: var(--transition-smooth);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(17, 24, 39, 0.04);
}

.product-img-holder {
  position: relative;
  overflow: hidden;
  height: 350px;
  margin-bottom: 1.5rem;
}

.product-img-holder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

.product-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: var(--color-clay);
  color: var(--color-sand);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.product-info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.product-title {
  font-size: 1.25rem;
}

.product-price {
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--color-clay);
}

.product-desc {
  font-size: 0.85rem;
  color: var(--color-pebble);
  margin-bottom: 1.5rem;
}

/* Floating Label Form */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-form-side {
  background-color: var(--color-stone);
  padding: 4rem;
  border-left: 5px solid var(--color-wood);
}

.form-group {
  position: relative;
  margin-bottom: 2rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-pebble);
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-basalt);
  transition: var(--transition-smooth);
}

.form-input:focus {
  outline: none;
  border-bottom-color: var(--color-clay);
}

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

/* Floating logic */
.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
  top: -1.25rem;
  font-size: 0.75rem;
  color: var(--color-clay);
}

/* Map placeholder representing custom stone carving map */
.map-side {
  position: relative;
  min-height: 400px;
}

.stone-map {
  width: 100%;
  height: 100%;
  background-color: var(--color-basalt);
  border: 1px solid var(--color-wood);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stone-map::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  background-image: radial-gradient(rgba(156, 163, 175, 0.15) 1px, transparent 0);
  background-size: 24px 24px;
  transform: rotate(15deg);
}

.map-card {
  position: relative;
  z-index: 2;
  background-color: var(--color-sand);
  padding: 2.5rem;
  width: 80%;
  max-width: 380px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
  border-top: 3px solid var(--color-clay);
}

.map-card h4 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.map-card p {
  font-size: 0.9rem;
  color: var(--color-charcoal);
  margin-bottom: 0.5rem;
}

/* Testimonials */
.testimonial-carousel {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.testimonial-item {
  display: none;
  animation: fadeIn 0.8s ease-in-out forwards;
}

.testimonial-item.active {
  display: block;
}

.quote-icon {
  font-family: var(--font-serif);
  font-size: 5rem;
  line-height: 1;
  color: rgba(180, 83, 9, 0.15);
  margin-bottom: 1rem;
}

.testimonial-text {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: var(--color-basalt);
}

.testimonial-author {
  font-family: var(--font-sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
}

.testimonial-city {
  font-size: 0.8rem;
  color: var(--color-pebble);
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 3rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-stone);
  cursor: pointer;
  transition: var(--transition-fast);
}

.dot.active {
  background-color: var(--color-clay);
  transform: scale(1.3);
}

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

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

/* Legal Pages */
.legal-container {
  padding: 12rem 0 8rem 0;
  max-width: 800px;
}

.legal-content h1 {
  font-size: 3rem;
  margin-bottom: 2rem;
}

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

.legal-content p, .legal-content ul {
  margin-bottom: 1.5rem;
  color: var(--color-charcoal);
}

.legal-content ul {
  padding-left: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
  max-width: 600px;
  background-color: var(--color-basalt);
  color: var(--color-sand);
  padding: 2rem;
  z-index: 1000;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(245, 242, 235, 0.1);
  display: none;
  animation: slideUp 0.6s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.cookie-content {
  margin-bottom: 1.5rem;
}

.cookie-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--color-white);
}

.cookie-text {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--color-stone);
}

.cookie-text a {
  text-decoration: underline;
  color: var(--color-white);
}

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

.cookie-btn {
  font-size: 0.8rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--color-sand);
  background-color: transparent;
  color: var(--color-sand);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition-fast);
}

.cookie-btn.accept {
  background-color: var(--color-clay);
  border-color: var(--color-clay);
  color: var(--color-sand);
}

.cookie-btn:hover {
  background-color: var(--color-sand);
  color: var(--color-basalt);
}

.cookie-btn.accept:hover {
  background-color: var(--color-white);
  border-color: var(--color-white);
  color: var(--color-basalt);
}

/* Footer */
footer {
  background-color: var(--color-basalt);
  color: var(--color-stone);
  padding: 6rem 0 3rem 0;
  border-top: 5px solid var(--color-wood);
}

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

.footer-brand h3 {
  color: var(--color-white);
  margin-bottom: 1.5rem;
}

.footer-brand p {
  font-size: 0.95rem;
  color: var(--color-pebble);
  max-width: 320px;
}

.footer-links-col h4 {
  color: var(--color-white);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links-col ul {
  list-style: none;
}

.footer-links-col li {
  margin-bottom: 0.75rem;
}

.footer-links-col a {
  font-size: 0.9rem;
  color: var(--color-pebble);
}

.footer-links-col a:hover {
  color: var(--color-clay);
}

.footer-bottom {
  border-top: 1px solid rgba(245, 242, 235, 0.05);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--color-pebble);
}

.footer-legal-links {
  display: flex;
  gap: 2rem;
}

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

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .basalt-card {
    grid-column: span 12;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .burger {
    display: block;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .oak-split {
    flex-direction: column !important;
    gap: 2rem;
  }
  .oak-img {
    height: 350px;
  }
  .contact-wrap {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  .footer-legal-links {
    flex-direction: column;
    gap: 1rem;
  }
  .cookie-banner {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    padding: 1.5rem;
  }
  .cookie-buttons {
    flex-direction: column;
  }
}
