/* ============================================
   Arwood - Custom Design System v2
   Wood + Reed Diffuser Luxury Brand
   Responsive PC & Mobile
   ============================================ */

/* --- CSS Variables --- */
:root {
  --arwood-wood: #8B7355;
  --arwood-wood-dark: #6B5740;
  --arwood-wood-light: #C4A882;
  --arwood-cream: #FAF7F2;
  --arwood-charcoal: #2D2D2D;
  --arwood-sage: #9CAF88;
  --arwood-gold: #B8963E;
  --arwood-white: #FFFFFF;
}

/* --- Reset Kadence constraints for hero --- */
.wp-site-blocks {
  padding-top: 0 !important;
}

.arwood-hero {
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
  width: 100vw !important;
  max-width: 100vw !important;
}

/* --- Typography Enhancement --- */
body {
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .wp-block-post-title {
  letter-spacing: -0.02em;
}

/* Hide default page title on homepage */
body.home .wp-block-post-title:first-of-type,
body.home .entry-title {
  display: none;
}

/* --- Hero Parallax Section --- */
.arwood-hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #6B5740 0%, #8B7355 40%, #A0845C 70%, #C4A882 100%);
}

.arwood-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(ellipse at 30% 20%, rgba(196,168,130,0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(184,150,62,0.12) 0%, transparent 50%);
  animation: heroFloat 20s ease-in-out infinite;
  z-index: 0;
}

@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(1%, -0.5%) rotate(0.3deg); }
  66% { transform: translate(-0.5%, 1%) rotate(-0.3deg); }
}

.arwood-hero .wp-block-group__inner-container {
  position: relative;
  z-index: 2;
  color: #FFFFFF;
  max-width: 650px;
  padding: clamp(2rem, 5vw, 4rem);
}

.arwood-hero h1 {
  font-size: clamp(2rem, 5vw, 4rem) !important;
  font-weight: 300;
  line-height: 1.15 !important;
  margin-bottom: 1.5rem !important;
  animation: fadeInUp 0.8s ease-out;
}

.arwood-hero h1 strong {
  font-weight: 600;
  display: block;
  color: #C4A882;
}

.arwood-hero p {
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  line-height: 1.7;
  opacity: 0.88;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s 0.2s ease-out both;
}

.arwood-hero .wp-block-button__link {
  animation: fadeInUp 0.8s 0.4s ease-out both;
  background: #C4A882 !important;
  color: #2D2D2D !important;
  border: none !important;
  padding: clamp(0.8rem, 1.5vw, 1rem) clamp(1.5rem, 3vw, 2.5rem) !important;
  font-size: clamp(0.85rem, 1.2vw, 1rem) !important;
  letter-spacing: 0.05em;
  border-radius: 0 !important;
  transition: all 0.3s ease;
  font-weight: 500;
}

.arwood-hero .wp-block-button__link:hover {
  background: #FFFFFF !important;
  color: #6B5740 !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* --- Fade In Up --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- Scroll Animation Observer --- */
.arwood-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.arwood-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Sections --- */
.arwood-section {
  position: relative;
  padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 3vw, 2rem);
}

.arwood-section-light {
  background: #FAF7F2;
}

/* Section Titles */
.arwood-section-title {
  text-align: center;
  margin-bottom: 3rem !important;
}

.arwood-section-title h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.5rem) !important;
  font-weight: 300;
  color: #8B7355;
  letter-spacing: 0.03em;
}

/* --- Feature Blocks --- */
.arwood-feature {
  text-align: center;
  padding: clamp(1.5rem, 3vw, 2rem) clamp(1rem, 2vw, 1.5rem);
  transition: transform 0.3s ease;
}

.arwood-feature:hover {
  transform: translateY(-6px);
}

.arwood-feature h3 {
  font-size: clamp(1rem, 1.3vw, 1.15rem) !important;
  font-weight: 500;
  margin-bottom: 0.5rem !important;
  color: #6B5740;
}

.arwood-feature p {
  font-size: clamp(0.85rem, 1vw, 0.9rem);
  color: #888;
  line-height: 1.6;
}

/* --- 3D Product Cards --- */
.arwood-product-card {
  perspective: 1200px;
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

.arwood-product-card-inner {
  position: relative;
  transition: transform 0.15s ease-out;
  transform-style: preserve-3d;
}

.arwood-product-card-inner:hover {
  transform: rotateY(2deg) rotateX(-2deg) translateY(-4px);
}

.arwood-product-card-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 4px;
  box-shadow: 
    0 4px 15px rgba(0,0,0,0.06),
    0 15px 40px rgba(0,0,0,0.08);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.arwood-product-card-inner:hover::after {
  opacity: 1;
}

/* Product card headings */
.arwood-product-card-inner h3 {
  font-size: clamp(1rem, 1.3vw, 1.15rem) !important;
  font-weight: 500;
  margin: 1rem 0 0.3rem !important;
  color: #6B5740;
}

.arwood-product-card-inner p {
  font-size: clamp(0.8rem, 1vw, 0.9rem);
  color: #999;
  line-height: 1.5;
}

/* --- Image Hover Zoom --- */
.arwood-zoom-img {
  overflow: hidden;
  margin-bottom: 0 !important;
}

.arwood-zoom-img img {
  width: 100%;
  height: clamp(200px, 30vw, 320px);
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.arwood-zoom-img:hover img {
  transform: scale(1.05);
}

/* --- Parallax Banner --- */
.arwood-parallax-banner {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  color: #FFFFFF;
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
  width: 100vw !important;
  max-width: 100vw !important;
}

.arwood-parallax-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(43,43,43,0.55);
  z-index: 1;
}

.arwood-parallax-banner .wp-block-group__inner-container {
  position: relative;
  z-index: 2;
  padding: 2rem;
}

.arwood-parallax-banner h2 {
  font-size: clamp(1.6rem, 3vw, 2.5rem) !important;
  font-weight: 300 !important;
  margin-bottom: 0.5rem !important;
  color: #FFFFFF !important;
}

.arwood-parallax-banner p {
  font-size: clamp(0.9rem, 1.2vw, 1.1rem) !important;
  opacity: 0.9;
  color: rgba(255,255,255,0.9) !important;
}

/* --- Buttons --- */
.arwood-btn-fill .wp-block-button__link {
  background: #8B7355 !important;
  color: #FFFFFF !important;
  border: 2px solid #8B7355 !important;
  border-radius: 0 !important;
  padding: clamp(0.7rem, 1.5vw, 0.85rem) clamp(1.5rem, 3vw, 2.2rem) !important;
  font-size: clamp(0.8rem, 1vw, 0.9rem) !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  font-weight: 500;
}

.arwood-btn-fill .wp-block-button__link:hover {
  background: #6B5740 !important;
  border-color: #6B5740 !important;
}

/* --- Navigation --- */
.wp-block-navigation {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.site-header,
header.wp-block-template-part {
  position: sticky;
  top: 0;
  z-index: 100;
}

.wp-block-navigation .wp-block-navigation-item__content {
  position: relative;
  transition: color 0.3s ease;
}

.wp-block-navigation .wp-block-navigation-item__content::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: #C4A882;
  transition: width 0.3s ease;
}

.wp-block-navigation .wp-block-navigation-item__content:hover::after {
  width: 100%;
}

/* --- Footer --- */
footer,
.wp-block-template-part footer {
  background: #2D2D2D !important;
  color: rgba(255,255,255,0.65) !important;
  padding: clamp(2rem, 4vw, 3rem) clamp(1rem, 3vw, 2rem) !important;
}

footer a {
  color: rgba(255,255,255,0.75) !important;
  transition: color 0.3s ease;
  text-decoration: none;
}

footer a:hover {
  color: #C4A882 !important;
}

/* ==========================================
   MOBILE RESPONSIVE - BREAKPOINTS
   ========================================== */

/* --- Tablet (max 1024px) --- */
@media (max-width: 1024px) {
  .arwood-hero {
    min-height: 70vh;
  }

  .arwood-hero .wp-block-group__inner-container {
    max-width: 500px;
  }

  .arwood-parallax-banner {
    min-height: 40vh;
    background-attachment: scroll !important;
  }

  .arwood-product-card {
    perspective: none;
  }
}

/* --- Mobile (max 768px) --- */
@media (max-width: 768px) {
  /* Hero */
  .arwood-hero {
    min-height: 55vh;
    text-align: center;
  }

  .arwood-hero .wp-block-group__inner-container {
    max-width: 100%;
    padding: 2rem 1.5rem;
  }

  .arwood-hero h1 {
    font-size: 1.8rem !important;
    line-height: 1.2 !important;
  }

  .arwood-hero p {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .arwood-hero .wp-block-button__link {
    padding: 0.7rem 1.8rem !important;
    font-size: 0.85rem !important;
  }

  .arwood-hero .wp-block-buttons {
    justify-content: center;
  }

  /* Sections */
  .arwood-section {
    padding: 2.5rem 1rem;
  }

  .arwood-section-title h2 {
    font-size: 1.4rem !important;
    margin-bottom: 1.5rem !important;
  }

  /* Features */
  .arwood-feature {
    padding: 1rem 0.5rem;
  }

  .arwood-feature:hover {
    transform: none;
  }

  /* Product Cards */
  .arwood-product-card {
    margin-bottom: 1.5rem;
  }

  .arwood-product-card-inner:hover {
    transform: none;
  }

  .arwood-product-card-inner::after {
    display: none;
  }

  .arwood-zoom-img img {
    height: 200px;
  }

  /* Parallax Banner */
  .arwood-parallax-banner {
    min-height: 30vh;
    background-attachment: scroll !important;
  }

  .arwood-parallax-banner h2 {
    font-size: 1.4rem !important;
  }

  .arwood-parallax-banner p {
    font-size: 0.85rem !important;
  }

  /* Navigation - hamburger menu */
  .wp-block-navigation__responsive-container-open {
    display: block !important;
  }

  /* Scroll animations off on mobile for performance */
  .arwood-animate {
    opacity: 1 !important;
    transform: none !important;
  }

  /* Prevent overscroll bounce */
  body {
    overscroll-behavior-y: none;
  }
}

/* --- Small Mobile (max 480px) --- */
@media (max-width: 480px) {
  .arwood-hero {
    min-height: 50vh;
    background: linear-gradient(160deg, #6B5740 0%, #8B7355 50%, #A0845C 100%);
  }

  .arwood-hero .wp-block-group__inner-container {
    padding: 1.5rem 1rem;
  }

  .arwood-hero h1 {
    font-size: 1.5rem !important;
  }

  .arwood-hero p {
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
  }

  .arwood-section {
    padding: 2rem 0.8rem;
  }

  .arwood-section-title h2 {
    font-size: 1.2rem !important;
  }

  .arwood-zoom-img img {
    height: 180px;
  }

  .arwood-parallax-banner {
    min-height: 25vh;
  }
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: #FAF7F2;
}
::-webkit-scrollbar-thumb {
  background: #C4A882;
  border-radius: 3px;
}