/* ==========================================================================
   DOMUS — Minimalist Boutique Product Catalog
   Design System: Clean Editorial & Warm Organic Aesthetics
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Local Custom Font Definition
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Merriweather';
  src: url('Fontes/Merriweather-VariableFont_opsz,wdth,wght.ttf') format('truetype-variations'),
       url('Fontes/Merriweather-VariableFont_opsz,wdth,wght.ttf') format('truetype');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   1. Design Tokens & Root Variables
   -------------------------------------------------------------------------- */
:root {
  /* User Specific Color Palette: #47594b | #76866f | #eaede9 */
  --bg-main: #EAEDE9;
  --bg-surface: #DFE3DD;
  --bg-card: #FFFFFF;
  
  --text-main: #2C382F;
  --text-muted: #526155;
  --text-light: #76866F;

  --accent-green: #47594B;
  --accent-green-dark: #334237;
  --accent-sage: #76866F;
  --accent-sage-soft: rgba(118, 134, 111, 0.15);

  --border-light: rgba(71, 89, 75, 0.12);
  --border-hover: rgba(71, 89, 75, 0.28);
  --border-dashed: rgba(71, 89, 75, 0.15);

  /* Shadows */
  --shadow-sm: 0 3px 10px rgba(44, 56, 47, 0.04);
  --shadow-md: 0 8px 20px rgba(44, 56, 47, 0.07);

  /* Typography */
  --font-serif: 'Merriweather', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Layout */
  --max-width: 820px;
  --radius-card: 16px;
  --radius-pill: 9999px;
}

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

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

body {
  position: relative;
  min-height: 100vh;
  line-height: 1.6;
  background-color: var(--bg-main);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* --------------------------------------------------------------------------
   3. Hero / Header Section
   -------------------------------------------------------------------------- */
.hero-header {
  padding: 3rem 1.25rem 3.25rem;
  text-align: center;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-logo {
  max-width: 185px;
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 0;
  filter: drop-shadow(0 4px 10px rgba(71, 89, 75, 0.08));
}

.hero-tagline {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 3.2vw, 1.4rem);
  font-style: italic;
  font-weight: 400;
  color: var(--accent-green);
  line-height: 1.3;
  letter-spacing: 0.01em;
  margin-top: -0.4rem;
  text-align: center;
}

/* --------------------------------------------------------------------------
   4. Category Section & Titles
   -------------------------------------------------------------------------- */
.main-content {
  padding-bottom: 2rem;
}

.category-section {
  margin-bottom: 3rem;
}

.category-title {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 4.2vw, 2.1rem);
  font-weight: 700;
  color: var(--accent-green-dark);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(71, 89, 75, 0.12);
  letter-spacing: -0.01em;
}

/* --------------------------------------------------------------------------
   4b. Category Specific Color Themes (Casais & Fé)
   -------------------------------------------------------------------------- */

/* Bloco 2: Casais (#8b2738) */
#casais .category-title {
  color: #8b2738;
  border-bottom-color: rgba(139, 39, 56, 0.18);
}

#casais .accordion-item.active {
  border-color: #8b2738;
}

#casais .accordion-icon {
  color: #8b2738;
  background: rgba(139, 39, 56, 0.1);
}

#casais .accordion-item.active .accordion-icon {
  background: #8b2738;
  color: #FFFFFF;
}

#casais .btn-material {
  background: #8b2738;
  box-shadow: 0 5px 15px rgba(139, 39, 56, 0.22);
}

#casais .btn-material:hover {
  background: #6e1e2c;
  box-shadow: 0 8px 20px rgba(110, 30, 44, 0.32);
}

/* Bloco 3: Fé (#1b2a54) */
#fe .category-title {
  color: #1b2a54;
  border-bottom-color: rgba(27, 42, 84, 0.18);
}

#fe .accordion-item.active {
  border-color: #1b2a54;
}

#fe .accordion-icon {
  color: #1b2a54;
  background: rgba(27, 42, 84, 0.1);
}

#fe .accordion-item.active .accordion-icon {
  background: #1b2a54;
  color: #FFFFFF;
}

#fe .btn-material {
  background: #1b2a54;
  box-shadow: 0 5px 15px rgba(27, 42, 84, 0.22);
}

#fe .btn-material:hover {
  background: #121d3b;
  box-shadow: 0 8px 20px rgba(18, 29, 59, 0.32);
}

/* --------------------------------------------------------------------------
   5. Accordion Product List & Items (Zero Extra Padding Fix)
   -------------------------------------------------------------------------- */
.accordion-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-item:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.accordion-item.active {
  border-color: var(--accent-green);
  box-shadow: var(--shadow-md);
  background: #FFFFFF;
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.9rem 1.2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 1rem;
  transition: background-color 0.2s ease;
}

.accordion-header:hover {
  background-color: rgba(234, 237, 233, 0.5);
}

.product-title-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.product-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(44, 56, 47, 0.08);
  border: 1px solid rgba(71, 89, 75, 0.1);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-item:hover .product-icon {
  transform: scale(1.04);
}

.product-name {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.6vw, 1.3rem);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
}

.accordion-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-surface);
  color: var(--accent-green);
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, color 0.3s ease;
}

.accordion-icon svg {
  width: 18px;
  height: 18px;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
  background: var(--accent-green);
  color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   6. Accordion Body & Expandable Content (Clean Grid Transition)
   -------------------------------------------------------------------------- */
.accordion-body {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  visibility: hidden;
  transition: grid-template-rows 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0.35s;
}

.accordion-item.active .accordion-body {
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
}

.accordion-inner {
  overflow: hidden;
  padding: 0 1.2rem 0;
  border-top: 1px dashed transparent;
  transition: padding 0.35s ease, border-color 0.35s ease;
}

.accordion-item.active .accordion-inner {
  padding: 1rem 1.2rem 1.35rem;
  border-top-color: var(--border-dashed);
}

.product-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  font-weight: 400;
}

.btn-material {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #FFFFFF;
  background: var(--accent-green);
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(71, 89, 75, 0.22);
}

.btn-material svg {
  width: 15px;
  height: 15px;
  transition: transform 0.3s ease;
}

.btn-material:hover {
  background: var(--accent-green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(51, 66, 55, 0.3);
}

.btn-material:hover svg {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   7. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  padding: 3.5rem 1.25rem 2.5rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  margin-top: 3.5rem;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer-logo-img {
  max-width: 130px;
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.footer-quote {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--accent-green);
  margin-bottom: 1.25rem;
}

.copyright {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* --------------------------------------------------------------------------
   8. Mobile Responsive Optimization
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .hero-header {
    padding: 2.25rem 1rem 2.5rem;
  }
  .hero-logo {
    max-width: 165px;
    margin-bottom: 0;
  }
  .hero-tagline {
    margin-top: -0.45rem;
  }
  .accordion-header {
    padding: 0.85rem 1rem;
    gap: 0.75rem;
  }
  .product-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
  }
  .accordion-inner {
    padding: 0 1rem 0;
  }
  .accordion-item.active .accordion-inner {
    padding: 0.9rem 1rem 1.15rem;
  }
}
