/* ============================================================
   INDÚSTRIA MEDEIROS — style.css
   Compartilhado por todas as páginas
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ---------- VARIÁVEIS ---------- */
:root {
  --navy:   #1a1f5e;
  --red:    #e03020;
  --yellow: #e8c84a;
  --white:  #ffffff;
  --off:    #f7f8fc;
  --border: #e4e7f0;
  --muted:  #6b7399;
  --text:   #1a1f5e;

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;

  --radius: 14px;
  --shadow: 0 4px 24px rgba(26,31,94,.08);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  
  /* NOVAS LINHAS PARA FIXAR O RODAPÉ */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ---------- CABEÇALHO ---------- */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  height: auto;
  min-height: 100px;
  background: var(--white);
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-logo img {
    height: auto !important;
    max-height: 110px !important; /* Mantém o tamanho maior */
    width: auto !important;
    display: block !important;
    flex-shrink: 0 !important;
    /* Removeu-se o transform: translate daqui para não atropelar o menu */
  
  /* ESTA LINHA BAIXA A LOGO COM SEGURANÇA: */
    margin-top: 15px !important;
}
.header-logo .logo-placeholder {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--navy);
  letter-spacing: 1px;
}

.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .5px;
  color: var(--muted);
  text-transform: uppercase;
  transition: color .2s;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--navy);
  border-bottom-color: var(--red);
}

/* ---------- RODAPÉ ---------- */
.site-footer {
  background: var(--navy) !important;
  padding: .9rem 2.5rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  margin-top: auto !important; 
  position: relative !important;
  width: 100% !important;
}
.footer-brand {
  font-size: 12px;
  font-weight: 600;
  color: var(--yellow);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.footer-contacts { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-contacts .fc {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #aab8e8;
}
.footer-contacts .fc svg { width: 14px; height: 14px; stroke: var(--yellow); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ---------- HERO (index) ---------- */
.hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--white);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 5rem 2.5rem;
  max-width: 54%;
}

.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 40px !important;
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 1.4rem;
}
.hero h1 em { font-style: italic; color: var(--red); }

.hero-sub {
  font-size: 14px;
  color: var(--muted);
  max-width: 400px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.btn-primary {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  border: none;
  padding: 14px 32px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .5px;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.btn-primary:hover { background: var(--red); transform: translateY(-1px); }

/* Hero: imagem direita com animação */
.hero-image-wrap {
  position: absolute;
  top: 0; right: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: slideInRight .9s cubic-bezier(.22,.8,.44,1) both;
}

/* placeholder enquanto não tem foto */
.hero-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #eef0fa 0%, #c5cce8 60%, var(--navy) 100%);
  animation: slideInRight .9s cubic-bezier(.22,.8,.44,1) both;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 20px;
}
.hero-image-placeholder span {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}

.hero-image-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--white) 0%, transparent 40%);
  z-index: 1;
}

@keyframes slideInRight {
  from { transform: translateX(60px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* ---------- CATÁLOGO (index) ---------- */
.catalog {
  padding: 5rem 2.5rem;
  background: var(--off);
}

.section-label {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

/* Cards largos (ocupam 2 colunas) */
.product-card.wide { grid-column: span 2; }
.product-card.wide .product-card-img { height: 240px; font-size: 72px; }

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  text-decoration: none;
  display: block;
  color: inherit;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--navy);
}

.product-card-img {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  background: #eef0fa;
  position: relative;
  overflow: hidden;
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-card-img.warm { background: #fdf6ee; }
.product-card-img.red  { background: #fef0ee; }
.product-card-img.green { background: #eef7ee; }

.product-card-body { padding: 1rem; }
.product-card-body h3 { font-size: 15px; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.product-card-body p { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* ---------- SOBRE (index) ---------- */
.about-strip {
  padding: 5rem 2.5rem;
  background: var(--white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  border-top: 1px solid var(--border);
}
.about-strip h2 {
  font-family: var(--font-display);
  font-size: 37px;
  color: var(--navy);
  line-height: 1.2;
}
.about-strip h2 em { font-style: italic; color: var(--red); }
.about-strip p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: .9rem;
}
.about-strip p:last-child { margin-bottom: 0; }

/* ---------- TÍTULO CLEAN PÁGINAS INTERNAS ---------- */
.page-title {
  padding: 3rem 2.5rem 2rem;
  border-bottom: 1px solid var(--border);
}
.page-title-eyebrow {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .6rem;
}
.page-title h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--navy);
  font-weight: 400;
}

/* ---------- CONTEÚDO PÁGINA INTERNA ---------- */
.page-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 2.5rem 5rem;
}
.page-content p {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.9;
    margin-bottom: 1.2rem;
}

/* ---------- CONTATO ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 3rem 2.5rem 5rem;
  max-width: 700px;
  margin: 0 auto;
}
.contact-card {
  background: var(--off);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: border-color .2s, box-shadow .2s;
  text-decoration: none;
  color: inherit;
}
.contact-card:hover { border-color: var(--navy); box-shadow: var(--shadow); }
.contact-card svg { width: 28px; height: 28px; stroke: var(--red); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-card .cc-label { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.contact-card .cc-value { font-size: 15px; font-weight: 500; color: var(--navy); }

/* ---------- PRODUTOS (grade completa) ---------- */
.products-section {
  padding: 3rem 2.5rem 5rem;
}
.products-section .section-label { margin-bottom: 2rem; }
.products-big-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

/* ---------- PÁGINA PRODUTO ESPECÍFICO ---------- */
.product-detail {
  padding: 4rem 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.product-detail h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 1.5rem;
}
.variations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}
.variation-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--off);
}
.variation-img {
  height: 180px;
  background: #eef0fa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  overflow: hidden;
}
.variation-img img { width: 100%; height: 100%; object-fit: cover; }
.variation-info { padding: .75rem 1rem; }
.variation-info h4 { font-size: 13px; font-weight: 600; color: var(--navy); }
.variation-info p { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ---------- RESPONSIVO (MOBILE) ---------- */
@media (max-width: 768px) {
  .site-header { 
    padding: 1rem; 
    flex-direction: column; 
    height: auto; 
    gap: 1rem;
    justify-content: center;
  }
  
  .header-logo img {
    max-height: 60px; 
  }

  .site-nav {
    width: 100%;
    justify-content: center;
    gap: 1rem;
  }

  .contact-grid { 
    grid-template-columns: 1fr; 
    padding: 2rem 1.5rem 3rem; 
  }

  .hero-content { max-width: 100%; padding: 3rem 1.5rem 16rem; }
  .hero-image-wrap { width: 100%; top: auto; bottom: 0; height: 220px; }
  .hero-image-wrap::before { background: linear-gradient(to bottom, var(--white) 0%, transparent 40%); }
  .about-strip { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 1.5rem; }
  .catalog { padding: 3rem 1.5rem; }
  .page-content { padding: 2.5rem 1.5rem; }
  .products-section { padding: 2.5rem 1.5rem 3rem; }

  /* AJUSTE EXCLUSIVO DO RODAPÉ NO CELULAR */
  .site-footer { 
    display: flex !important;
    flex-direction: column !important; 
    align-items: center !important; 
    text-align: center !important;
    padding: 35px 20px !important; 
    gap: 25px !important;
  }
  .footer-brand {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1.8 !important;
    font-size: 13px !important;
    text-align: center !important;
  }
  .footer-brand span {
    display: none !important; 
  }
  .footer-brand a {
    margin-left: 0 !important;
    margin-top: 8px !important;
  }
  .footer-contacts { 
    display: flex !important;
    flex-direction: column !important; 
    align-items: center !important;
    gap: 18px !important; 
    width: 100% !important;
  }
  .footer-contacts .fc {
    justify-content: center !important;
    font-size: 13px !important;
    width: 100% !important;
  }
}

/* --- GRID DE PRODUTOS COMPLEMENTAR --- */
.section-header {
    margin-bottom: 30px;
    text-align: left;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    display: block;
    font-size: 0.85rem;
    color: #888;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.product-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important; 
    gap: 20px !important;
    max-width: 1200px !important;
    width: 100% !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

.models-section .variation-card {
    display: flex !important;
    flex-direction: column !important;
    border-radius: 16px !important;
    padding: 20px !important;
    text-decoration: none !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    min-height: 240px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.models-section .variation-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05) !important;
}

.models-section .variation-img {
    height: 100px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 50px !important;
    margin-bottom: 15px !important;
}

.models-section .variation-info h4 {
    color: #1a1a4b !important;
    font-size: 1.1rem !important;
    margin: 0 0 6px 0 !important;
}

.models-section .variation-info p {
    color: #555 !important;
    font-size: 0.9rem !important;
    line-height: 1.3 !important;
    margin: 0 !important;
}

/* Cores pastel */
.card-blue   { background-color: #f0f4ff !important; }
.card-purple { background-color: #f6f0ff !important; }
.card-red    { background-color: #fff0f0 !important; }
.card-green  { background-color: #f0fff4 !important; }
.card-yellow { background-color: #fffdf0 !important; }
.card-orange { background-color: #fff7f0 !important; }

.models-section {
    min-height: 75vh !important; 
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    margin-bottom: 50px !important;
}

.section-label::after,
.page-title-eyebrow::after {
    display: none !important;
    content: none !important;
}

.page-title-eyebrow {
    border-bottom: none !important;
}

/* Tipografia compacta caixas internas */
.page-title:has(+ .models-section) h1 {
    font-size: 1.7rem !important; 
}

.section-subtitle {
    font-size: 0.85rem !important;
    letter-spacing: 0.5px !important;
}

.models-section .variation-img {
    font-size: 32px !important;
    margin-bottom: 8px !important;
}

.models-section .variation-info h4 {
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    margin: 0 0 4px 0 !important;
}

.models-section .variation-info p {
    font-size: 0.78rem !important;
    line-height: 1.2 !important;
    color: #666 !important;
}

.models-section .variation-card {
    min-height: 150px !important;
    padding: 15px !important;
}

/* Página 3 */
.models-section > .product-grid:first-child {
    margin-top: 50px !important;
}

.models-section > .product-grid:first-child .variation-card {
    max-width: 280px !important;
    min-height: 150px !important;
    padding: 15px !important;
}

.models-section > .product-grid:first-child .variation-img {
    font-size: 32px !important;
    margin-bottom: 8px !important;
}

.models-section > .product-grid:first-child .variation-info h4 {
    font-size: 0.95rem !important;
    font-weight: 600 !important;
}

.models-section > .product-grid:first-child .variation-info p {
    font-size: 0.78rem !important;
}