/*
Theme Name: Maekawa Rústica
Theme URI: https://mkwarterustica.com
Author: Maekawa Rústica
Description: Catálogo one-page de peças artesanais em madeira.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: maekawa-rustica
*/

/* ===================== RESET & BASE ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --wood-dark:   #3d2b1f;
  --wood-mid:    #6b3f2a;
  --wood-light:  #c8956c;
  --wood-warm:   #e8d5b0;
  --cream:       #f7f2ea;
  --text-dark:   #2a1a0e;
  --text-mid:    #5c3d2e;
  --accent:      #2d6a6a;
  --accent-light:#4a9999;
  --white:       #ffffff;
  --shadow:      rgba(61,43,31,.18);
  --font-head:   'Playfair Display', Georgia, serif;
  --font-body:   'Lato', 'Segoe UI', sans-serif;
  --radius:      8px;
  --section-pad: 90px 20px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.7;
  font-size: 16px;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===================== TYPOGRAPHY ===================== */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--wood-dark);
  line-height: 1.2;
}

/* ===================== NAVBAR ===================== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(61,43,31,.95);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 64px;
  transition: background .3s;
}

#navbar .logo {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--wood-warm);
  letter-spacing: .04em;
}

#navbar .logo span { color: var(--accent-light); }

#navbar nav { display: flex; gap: 28px; align-items: center; }

#navbar nav a {
  color: var(--wood-warm);
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: color .2s;
}

#navbar nav a:hover { color: var(--accent-light); text-decoration: none; }

.nav-cta {
  background: var(--accent);
  color: var(--white) !important;
  padding: 8px 18px;
  border-radius: 4px;
  transition: background .2s !important;
}

.nav-cta:hover { background: var(--accent-light) !important; }

/* hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 24px; height: 2px; background: var(--wood-warm); border-radius: 2px; transition: .3s; }

/* ===================== HERO ===================== */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px 60px;
  background:
    linear-gradient(to bottom, rgba(30,15,5,.55) 0%, rgba(30,15,5,.35) 60%, rgba(30,15,5,.7) 100%),
    url('images/hero-bg.png') center/cover no-repeat;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

#hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--cream));
}

.hero-inner { position: relative; z-index: 1; max-width: 720px; }

.hero-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
}

#hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  color: var(--white);
  margin-bottom: 20px;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
}

#hero p {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: rgba(255,255,255,.88);
  max-width: 560px;
  margin: 0 auto 36px;
}

.btn-primary {
  display: inline-block;
  background: var(--wood-mid);
  color: var(--white);
  padding: 14px 36px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .04em;
  transition: background .2s, transform .2s;
  margin: 6px;
}

.btn-primary:hover { background: var(--wood-dark); transform: translateY(-2px); text-decoration: none; }

.btn-outline {
  display: inline-block;
  border: 2px solid rgba(255,255,255,.7);
  color: var(--white);
  padding: 12px 32px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1rem;
  transition: background .2s, border-color .2s;
  margin: 6px;
}

.btn-outline:hover { background: rgba(255,255,255,.12); text-decoration: none; }

/* ===================== SOBRE ===================== */
#sobre {
  padding: var(--section-pad);
  background: var(--white);
}

.sobre-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.sobre-text .section-label {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.sobre-text h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 20px; }

.sobre-text p { color: var(--text-mid); margin-bottom: 16px; }

.sobre-stats {
  display: flex;
  gap: 32px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.stat { text-align: center; }
.stat strong { display: block; font-size: 2rem; font-family: var(--font-head); color: var(--wood-mid); }
.stat span { font-size: .82rem; color: var(--text-mid); }

.sobre-image { border-radius: var(--radius); overflow: hidden; box-shadow: 0 12px 40px var(--shadow); background: var(--wood-dark); display: flex; align-items: center; justify-content: center; min-height: 300px; }
.sobre-image img { width: 100%; height: 420px; object-fit: cover; }
.sobre-image .sobre-logo { width: 100%; height: auto; max-height: 420px; object-fit: contain; padding: 40px; }

/* ===================== SECTION SHARED ===================== */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}

.section-label {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-header h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 14px; }
.section-header p { color: var(--text-mid); font-size: 1.05rem; }

/* ===================== LINHAS / CATÁLOGO ===================== */
#catalogo { padding: var(--section-pad); background: var(--cream); }

/* nav de filtro */
.filter-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 48px;
}

.filter-btn {
  background: none;
  border: 2px solid var(--wood-light);
  color: var(--wood-mid);
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 30px;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--wood-mid);
  border-color: var(--wood-mid);
  color: var(--white);
}

/* cards grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
}

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

.card-image {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: var(--wood-warm);
}

.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .card-image img { transform: scale(1.05); }

.card-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--wood-dark);
  color: var(--wood-warm);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
}

.card-body { padding: 28px 24px 24px; flex: 1; display: flex; flex-direction: column; }

.card-category {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.card-body h3 { font-size: 1.35rem; margin-bottom: 10px; color: var(--wood-dark); line-height: 1.3; }

.linha-label {
  display: block;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--wood-light);
  margin-bottom: 2px;
  font-family: var(--font-body);
}
.card-body p { color: var(--text-mid); font-size: .93rem; margin-bottom: 18px; flex: 1; }

.card-features { list-style: none; margin-bottom: 22px; }
.card-features li {
  font-size: .88rem;
  color: var(--text-mid);
  padding: 4px 0;
  border-bottom: 1px solid var(--wood-warm);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.card-features li::before { content: '✓'; color: var(--accent); font-weight: 700; flex-shrink: 0; }

.card-cta {
  display: block;
  text-align: center;
  background: var(--wood-mid);
  color: var(--white);
  padding: 11px;
  border-radius: 4px;
  font-weight: 700;
  font-size: .9rem;
  transition: background .2s;
  margin-top: auto;
}
.card-cta:hover { background: var(--wood-dark); text-decoration: none; }

/* ===================== DIFERENCIAIS ===================== */
#diferenciais {
  padding: var(--section-pad);
  background: var(--wood-dark);
  color: var(--white);
}

#diferenciais .section-header h2 { color: var(--wood-warm); }
#diferenciais .section-label { color: var(--accent-light); }
#diferenciais .section-header p { color: rgba(255,255,255,.7); }

.diferenciais-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}

.diferencial-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: background .2s;
}

.diferencial-card:hover { background: rgba(255,255,255,.13); }

.diferencial-icon { font-size: 2.4rem; margin-bottom: 14px; }
.diferencial-card h3 { font-size: 1.1rem; color: var(--wood-warm); margin-bottom: 8px; }
.diferencial-card p { font-size: .88rem; color: rgba(255,255,255,.68); }

/* ===================== PERSONALIZAÇÃO ===================== */
#personalizacao {
  padding: var(--section-pad);
  background: var(--white);
}

.pers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.pers-image { border-radius: var(--radius); overflow: hidden; box-shadow: 0 12px 40px var(--shadow); }
.pers-image img { width: 100%; height: 400px; object-fit: cover; }

.pers-text .section-label { display: block; margin-bottom: 10px; }
.pers-text h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 16px; }
.pers-text p { color: var(--text-mid); margin-bottom: 16px; }

.pers-options { display: flex; flex-direction: column; gap: 14px; margin: 24px 0 32px; }

.pers-option {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px;
  background: var(--cream);
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
}

.pers-option-icon { font-size: 1.4rem; flex-shrink: 0; }
.pers-option h4 { font-size: .95rem; color: var(--wood-dark); margin-bottom: 2px; }
.pers-option p { font-size: .85rem; color: var(--text-mid); margin: 0; }

/* ===================== CONTATO ===================== */
#contato {
  padding: var(--section-pad);
  background: var(--cream);
}

.contato-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.contato-inner h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 14px; }
.contato-inner > p { color: var(--text-mid); margin-bottom: 48px; font-size: 1.05rem; }

.contato-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.contato-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 20px;
  box-shadow: 0 4px 16px var(--shadow);
  text-align: center;
}

.contato-card .icon { font-size: 2rem; margin-bottom: 10px; }
.contato-card h4 { font-size: .85rem; color: var(--text-mid); font-weight: 600; margin-bottom: 6px; letter-spacing: .06em; text-transform: uppercase; }
.contato-card a { font-size: 1rem; font-weight: 700; color: var(--wood-mid); }
.contato-card a:hover { color: var(--accent); text-decoration: none; }

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: var(--white) !important;
  padding: 16px 40px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  transition: background .2s, transform .2s;
  text-decoration: none !important;
}

.whatsapp-btn:hover { background: #1ebe5d; transform: translateY(-2px); }

.whatsapp-btn svg { width: 24px; height: 24px; fill: currentColor; }

/* ===================== FOOTER ===================== */
#footer {
  background: var(--wood-dark);
  color: rgba(255,255,255,.6);
  text-align: center;
  padding: 32px 20px;
  font-size: .85rem;
}

#footer .footer-logo {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--wood-warm);
  margin-bottom: 8px;
}

#footer .footer-logo span { color: var(--accent-light); }

/* ===================== GALLERY OVERLAY (cards catálogo) ===================== */
.card-gallery { cursor: pointer; }

.card-gallery .gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(0,0,0,.3);
  opacity: 0;
  transition: opacity .25s;
}

.card-gallery:hover .gallery-overlay { opacity: 1; }

.gallery-icon {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  display: flex; align-items: center; justify-content: center;
}

.gallery-icon svg { width: 22px; height: 22px; color: var(--wood-mid); }

.gallery-label {
  font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--white); text-shadow: 0 1px 4px rgba(0,0,0,.6);
}

/* ===================== DIFERENCIAL LICHTENBERG ===================== */
.diferencial-card--link {
  text-decoration: none;
  display: block;
}

.diferencial-play {
  display: inline-block;
  margin-top: 12px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--accent-light);
  letter-spacing: .06em;
}

.lichtenberg-trigger.diferencial-card:hover { background: rgba(255,255,255,.18); }

/* ===================== CARROSSEL MODAL ===================== */
#carousel-modal {
  display: none;
  position: fixed;
  inset: 0; z-index: 2000;
  background: rgba(0,0,0,.88);
  align-items: center; justify-content: center;
  padding: 20px;
}

#carousel-modal.open { display: flex !important; z-index: 2000 !important; }

.carousel-inner {
  position: relative;
  width: 100%; max-width: 860px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}

.carousel-close {
  position: absolute; top: -44px; right: 0;
  background: none; border: none;
  color: var(--white); font-size: 2rem;
  cursor: pointer; opacity: .8; transition: opacity .2s; line-height: 1;
}

.carousel-close:hover { opacity: 1; }

.carousel-label-top {
  font-family: var(--font-head);
  font-size: 1.1rem; color: var(--wood-warm);
  letter-spacing: .04em;
}

.carousel-stage {
  display: flex; align-items: center; gap: 12px; width: 100%;
}

.carousel-prev, .carousel-next {
  background: rgba(255,255,255,.15); border: none;
  color: var(--white); font-size: 2.4rem; line-height: 1;
  width: 48px; height: 48px; border-radius: 50%;
  cursor: pointer; flex-shrink: 0;
  transition: background .2s; display: flex; align-items: center; justify-content: center;
}

.carousel-prev:hover, .carousel-next:hover { background: rgba(255,255,255,.3); }
.carousel-prev:disabled, .carousel-next:disabled { opacity: .25; cursor: default; }

.carousel-img-wrap {
  flex: 1; display: flex; align-items: center; justify-content: center;
  min-height: 200px; max-height: 70vh;
}

.carousel-img-wrap img {
  max-width: 100%; max-height: 70vh;
  object-fit: contain; border-radius: var(--radius);
  display: block;
}

.carousel-footer {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}

.carousel-counter { font-size: .82rem; color: rgba(255,255,255,.6); }

.carousel-dots { display: flex; gap: 8px; }

.carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.3); border: none; cursor: pointer;
  padding: 0; transition: background .2s;
}

.carousel-dot.active { background: var(--accent-light); }

/* ===================== LICHTENBERG TRIGGER ===================== */
.lichtenberg-trigger { position: relative; cursor: pointer; }

.lichtenberg-trigger .play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(0,0,0,.32);
  opacity: 0;
  transition: opacity .25s;
}

.lichtenberg-trigger:hover .play-overlay { opacity: 1; }

.play-overlay .play-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-overlay .play-icon svg { width: 22px; height: 22px; fill: var(--accent); margin-left: 3px; }

.play-overlay .play-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
}

/* ===================== MODAL ===================== */
#video-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,.82);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#video-modal.open { display: flex; }

.modal-inner {
  position: relative;
  width: 100%;
  max-width: 420px;
}

.modal-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  opacity: .8;
  transition: opacity .2s;
}

.modal-close:hover { opacity: 1; }

.modal-video {
  position: relative;
  padding-bottom: 177.78%;
  height: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}

.modal-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ===================== PLACEHOLDER IMG ===================== */
.img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, var(--wood-warm), var(--wood-light));
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .sobre-grid, .pers-grid { grid-template-columns: 1fr; gap: 36px; }
  .sobre-image, .pers-image { order: -1; }
  .sobre-image img, .pers-image img { height: 300px; }
}

@media (max-width: 768px) {
  #navbar { padding: 0 20px; }
  #navbar nav { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--wood-dark); padding: 20px; gap: 16px; }
  #navbar nav.open { display: flex; }
  .hamburger { display: flex; }
  .products-grid { grid-template-columns: 1fr; }
  .diferenciais-grid { grid-template-columns: 1fr 1fr; }
  :root { --section-pad: 60px 16px; }
}

@media (max-width: 480px) {
  .diferenciais-grid { grid-template-columns: 1fr; }
  .sobre-stats { gap: 20px; }
  .filter-nav { gap: 8px; }
  .filter-btn { font-size: .75rem; padding: 6px 14px; }
}
