/*
 * style.css
 * Shaker Style & Traditional Wood Italian Furniture Store - baptizeframe.click
 * Palette: Warm Cherry (#7A3E2B), Oat Cream (#F4F1EA), Forest Pine (#3F4E3F)
 * Typography: Lora & Inter
 */

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

:root {
  --color-cherry: #7A3E2B;
  --color-cherry-dark: #5C2B1C;
  --color-cherry-light: #A35C48;
  --color-oat: #F4F1EA;
  --color-oat-dark: #E6DFD3;
  --color-pine: #3F4E3F;
  --color-pine-dark: #2A362A;
  --color-pine-light: #526652;
  --color-charcoal: #2A2523;
  --color-cream-white: #FAF9F6;
  --color-border: #D1C9BC;
  
  --font-serif: 'Lora', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.05);
  --shadow-medium: 0 8px 30px rgba(122, 62, 43, 0.08);
  
  --max-width: 1280px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-oat);
  color: var(--color-charcoal);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-serif {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--color-charcoal);
}

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

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

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

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

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

@media (max-width: 768px) {
  .section-padding {
    padding: 4rem 0;
  }
}

/* Premium Header / Navigation */
header {
  background-color: var(--color-oat);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background-color: rgba(244, 241, 234, 0.95);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background-color: var(--color-cherry);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-oat);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
}

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

.logo-sub {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-pine);
  margin-top: -2px;
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-charcoal);
  padding: 0.5rem 0;
  position: relative;
}

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

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

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-cherry);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--color-charcoal);
  margin: 5px 0;
  transition: var(--transition-smooth);
}

/* Navigation Drawer */
.mobile-nav {
  position: fixed;
  top: 90px;
  left: 0;
  width: 100%;
  background-color: var(--color-oat);
  border-bottom: 1px solid var(--color-border);
  padding: 2rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transform: translateY(-150%);
  transition: var(--transition-smooth);
  z-index: 99;
}

.mobile-nav.open {
  transform: translateY(0);
}

.mobile-nav a {
  font-size: 1.1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

@media (max-width: 992px) {
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.25rem;
  border-radius: 0;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background-color: var(--color-cherry);
  color: var(--color-oat);
  border: 1px solid var(--color-cherry);
}

.btn-primary:hover {
  background-color: var(--color-cherry-dark);
  border-color: var(--color-cherry-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-charcoal);
  border: 1px solid var(--color-charcoal);
}

.btn-secondary:hover {
  background-color: var(--color-charcoal);
  color: var(--color-oat);
  transform: translateY(-2px);
}

.btn-outline-cherry {
  background-color: transparent;
  color: var(--color-cherry);
  border: 1px solid var(--color-cherry);
}

.btn-outline-cherry:hover {
  background-color: var(--color-cherry);
  color: var(--color-oat);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  position: relative;
  background-color: var(--color-pine-dark);
  color: var(--color-oat);
  min-height: calc(100vh - 90px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 4rem 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(63, 78, 63, 0.92) 0%, rgba(42, 54, 42, 0.85) 100%);
  z-index: 1;
}

/* Wood Grain Background Pattern Simulation */
.wood-grain-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.05;
  z-index: 2;
  pointer-events: none;
  background-image: 
    radial-gradient(ellipse at 50% 50%, rgba(255,255,255,0.8) 0%, transparent 80%),
    repeating-linear-gradient(90deg, rgba(0,0,0,0.1) 0px, rgba(0,0,0,0.1) 1px, transparent 1px, transparent 10px),
    repeating-linear-gradient(0deg, rgba(0,0,0,0.1) 0px, rgba(0,0,0,0.1) 1px, transparent 1px, transparent 15px);
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 650px;
}

.hero-sub {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--color-oat-dark);
  margin-bottom: 1.5rem;
  display: block;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.15;
  color: var(--color-cream-white);
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
}

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

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 5rem;
}

.section-sub {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-cherry);
  margin-bottom: 1rem;
  display: block;
}

.section-title {
  font-size: 2.5rem;
  line-height: 1.25;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 1.5rem;
}

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

.section-desc {
  font-size: 1.05rem;
  color: #666;
}

/* Feature Grid (Traditional Craftsmanship) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

@media (max-width: 992px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.feature-card {
  background-color: var(--color-cream-white);
  border: 1px solid var(--color-border);
  padding: 3.5rem 2.5rem;
  text-align: center;
  transition: var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
  border-color: var(--color-cherry-light);
}

.feature-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 2rem;
  background-color: var(--color-oat);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-cherry);
  border: 1px solid var(--color-border);
}

.feature-title {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.feature-text {
  font-size: 0.95rem;
  color: #666;
  font-weight: 300;
}

/* Collections / Products Grid */
.products-filter {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: none;
  border: none;
  padding: 0.75rem 1.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-charcoal);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition-smooth);
}

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

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

@media (max-width: 992px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}

.product-card {
  background-color: var(--color-cream-white);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

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

.product-img-wrapper {
  position: relative;
  aspect-ratio: 4/3;
  background-color: var(--color-oat);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, var(--color-oat-dark) 0%, var(--color-oat) 100%);
  color: var(--color-pine);
  padding: 2rem;
  text-align: center;
  position: relative;
}

.product-wood-texture {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    rgba(122, 62, 43, 0.03),
    rgba(122, 62, 43, 0.03) 10px,
    rgba(122, 62, 43, 0.06) 10px,
    rgba(122, 62, 43, 0.06) 20px
  );
}

.product-tag {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--color-pine);
  color: var(--color-oat);
  padding: 0.35rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.product-info {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-cat {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-cherry);
  margin-bottom: 0.5rem;
}

.product-name {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.product-desc {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1.5rem;
  font-weight: 300;
  flex-grow: 1;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--color-border);
  padding-top: 1.25rem;
}

.product-price {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-charcoal);
}

.product-detail-btn {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-cherry);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.product-detail-btn:hover {
  color: var(--color-cherry-dark);
}

/* Workshop/Simplicity Values (Grid with text and SVG layout) */
.values-section {
  background-color: var(--color-pine-dark);
  color: var(--color-oat);
}

.values-section h2, .values-section h3, .values-section p {
  color: var(--color-oat);
}

.values-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 5rem;
  align-items: center;
}

@media (max-width: 992px) {
  .values-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.values-graphics {
  position: relative;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Traditional woodworking joinery SVG demo box */
.joinery-box {
  width: 100%;
  max-width: 350px;
}

/* Testimonials / Quotes */
.testimonials-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

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

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

.quote-icon {
  font-size: 4rem;
  font-family: var(--font-serif);
  color: var(--color-border);
  line-height: 1;
  margin-bottom: 1rem;
}

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

@media (max-width: 768px) {
  .testimonial-text {
    font-size: 1.25rem;
  }
}

.testimonial-author {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-cherry);
}

.testimonial-role {
  display: block;
  font-size: 0.75rem;
  color: #777;
  margin-top: 4px;
}

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

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-border);
  cursor: pointer;
  border: none;
  padding: 0;
  transition: var(--transition-smooth);
}

.dot.active {
  background-color: var(--color-cherry);
  transform: scale(1.2);
}

/* Form Styling with Floating Labels */
.form-group {
  position: relative;
  margin-bottom: 2.25rem;
}

.form-control {
  width: 100%;
  padding: 1.25rem 0 0.5rem;
  background-color: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-charcoal);
  outline: none;
  transition: var(--transition-smooth);
}

.form-control:focus {
  border-bottom-color: var(--color-cherry);
}

.form-label {
  position: absolute;
  top: 1.25rem;
  left: 0;
  color: #777;
  pointer-events: none;
  transition: var(--transition-smooth);
  font-size: 0.95rem;
}

.form-control:focus ~ .form-label,
.form-control:not(:placeholder-shown) ~ .form-label {
  top: 0;
  font-size: 0.75rem;
  color: var(--color-cherry);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Custom map styling */
.map-container {
  height: 450px;
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
  background-color: var(--color-oat-dark);
}

.classic-map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse at 50% 50%, rgba(244, 241, 234, 0.6) 0%, rgba(244, 241, 234, 0.9) 100%),
    repeating-linear-gradient(45deg, rgba(63, 78, 63, 0.02) 0px, rgba(63, 78, 63, 0.02) 10px, transparent 10px, transparent 20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem;
  text-align: center;
}

.map-card {
  background-color: var(--color-cream-white);
  border: 1px solid var(--color-border);
  padding: 2.5rem;
  max-width: 400px;
  box-shadow: var(--shadow-medium);
}

/* Footer */
footer {
  background-color: var(--color-charcoal);
  color: var(--color-oat-dark);
  padding: 5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-logo {
  color: var(--color-oat);
  margin-bottom: 1.5rem;
}

.footer-logo .logo-text {
  color: var(--color-oat);
}

.footer-desc {
  font-size: 0.9rem;
  color: #999;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.footer-title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-oat);
  margin-bottom: 1.5rem;
}

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

.footer-links a {
  font-size: 0.9rem;
  color: #999;
}

.footer-links a:hover {
  color: var(--color-oat);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: #777;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* GDPR Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 450px;
  background-color: var(--color-cream-white);
  border: 1px solid var(--color-border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  padding: 2rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transform: translateY(150%);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.5s ease;
}

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

@media (max-width: 576px) {
  .cookie-banner {
    bottom: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    border-right: none;
    border-left: none;
    border-bottom: none;
  }
}

.cookie-banner-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-charcoal);
  margin-bottom: 0.5rem;
}

.cookie-banner-text {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.5;
}

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

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

.cookie-banner-buttons button {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

/* Scroll Animation classes */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Privacy/Policy layout styling */
.policy-container {
  max-width: 800px;
  margin: 0 auto;
}

.policy-container h2 {
  font-size: 1.75rem;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  color: var(--color-cherry);
}

.policy-container h3 {
  font-size: 1.3rem;
  margin-top: 1.75rem;
  margin-bottom: 1rem;
}

.policy-container p, .policy-container ul {
  margin-bottom: 1.5rem;
  font-weight: 300;
  color: #444;
}

.policy-container ul {
  padding-left: 1.5rem;
}

.policy-container li {
  margin-bottom: 0.5rem;
}

.consent-id-box {
  background-color: var(--color-oat-dark);
  border: 1px solid var(--color-border);
  padding: 1.5rem;
  margin: 2rem 0;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.consent-id-value {
  font-family: monospace;
  font-weight: 600;
  color: var(--color-pine-dark);
}
