/* ============================================================
   PADARIA INDEPENDÊNCIA — CAMADA DE TEMA MODERNO
   Carregada DEPOIS de style.css. Moderniza tipografia, navbar,
   botões, cards, seções e footer sem alterar o HTML/estrutura.
   Aplicar em todas as páginas: <link rel="stylesheet" href="css/modern.css">
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  --brand:        #d22e1c;
  --brand-deep:   #a51f12;
  --brand-soft:   #fbeae7;
  --gold:         #e6a93a;
  --gold-soft:    #f7e9cd;
  --ink:          #201a17;   /* headings / preto quente */
  --body:         #57514c;   /* texto corrido */
  --muted:        #8a827b;
  --cream:        #faf6f0;
  --cream-2:      #f4ece1;
  --surface:      #ffffff;
  --line:         #ece5db;

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --r-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(32,26,23,.06);
  --shadow:    0 12px 34px -12px rgba(32,26,23,.22);
  --shadow-lg: 0 26px 60px -20px rgba(32,26,23,.32);

  --ui: 'Poppins', 'Open Sans', system-ui, sans-serif;
  --serif: 'DM Serif Display', Georgia, serif;

  --ease: cubic-bezier(.4,0,.2,1);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--body);
  font-size: 16px;
  line-height: 1.75;
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5 { color: var(--ink); letter-spacing: -.01em; }
::selection { background: var(--brand); color: #fff; }
a { color: var(--brand); }
a:hover { color: var(--brand-deep); }
img { max-width: 100%; }

:focus-visible {
  outline: 3px solid rgba(210,46,28,.45);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Navbar moderna (fixa, com blur ao rolar) ---------- */
/* z-index alto: várias seções do tema usam z-index:5 (ex.: .relative-higher,
   .site-footer) e, por virem depois no HTML, cobriam a navbar fixa ao rolar
   (bug do menu na página de contato). 1030 mantém a navbar sempre por cima. */
header[role="banner"] { position: fixed; z-index: 1030; }
@media (min-width: 768px) { header[role="banner"] { padding: 14px 0; } }

.navbar {
  transition: background .35s var(--ease), box-shadow .35s var(--ease), padding .35s var(--ease);
  border-radius: 0;
}
@media (min-width: 768px) {
  .navbar {
    background: linear-gradient(180deg, rgba(20,15,13,.55), rgba(20,15,13,0)) !important;
    backdrop-filter: saturate(120%);
  }
  .navbar.navbar-scrolled {
    background: rgba(24,18,16,.86) !important;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px -14px rgba(0,0,0,.6);
    padding-top: .35rem !important;
    padding-bottom: .35rem !important;
  }
}
.navbar-brand img { transition: transform .35s var(--ease); }
.navbar-brand:hover img { transform: scale(1.04); }

/* Páginas sem hero (ex.: políticas, termos): navbar sólida sempre e espaço
   reservado para o cabeçalho fixo não cobrir o conteúdo. */
body.nav-solid { padding-top: 78px; }
@media (min-width: 768px) {
  body.nav-solid .navbar {
    background: rgba(24,18,16,.92) !important;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
}

header .navbar .nav-link {
  font-family: var(--ui);
  font-size: .95rem !important;
  font-weight: 500;
  letter-spacing: .01em;
  position: relative;
  padding: 1.4rem .95rem !important;
}
@media (min-width: 768px) {
  header .navbar .nav-link::after {
    content: "";
    position: absolute;
    left: .95rem; right: .95rem; bottom: 1.05rem;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s var(--ease);
    border-radius: 2px;
  }
  header .navbar .nav-link:hover::after,
  header .navbar .nav-link.active::after { transform: scaleX(1); }
}
header .navbar .nav-link.active { color: #fff !important; }
header .navbar .dropdown-menu {
  border-radius: var(--r-sm);
  box-shadow: var(--shadow);
  padding: .4rem;
  overflow: hidden;
}
header .navbar .dropdown-menu .dropdown-item {
  border-radius: 8px;
  font-family: var(--ui);
  font-weight: 500;
  padding: .55rem .8rem;
}
header .navbar .dropdown-menu .dropdown-item:hover { background: var(--brand); }

/* ---------- Botões ---------- */
.btn {
  font-family: var(--ui) !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: .01em !important;
  border-radius: var(--r-pill) !important;
  padding: .78em 1.7em !important;
  font-size: .95rem !important;
  border-width: 2px !important;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease) !important;
}
.btn:hover { transform: translateY(-2px); }

.btn.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep)) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 12px 26px -10px rgba(210,46,28,.6) !important;
}
.btn.btn-primary:hover,
.btn.btn-primary:focus,
.btn.btn-primary:active {
  background: linear-gradient(135deg, var(--brand-deep), var(--brand-deep)) !important;
  color: #fff !important;
  box-shadow: 0 16px 34px -10px rgba(210,46,28,.7) !important;
}

.btn.btn-outline-primary {
  color: var(--brand) !important;
  border-color: var(--brand) !important;
  background: transparent !important;
}
.btn.btn-outline-primary:hover,
.btn.btn-outline-primary:focus {
  background: var(--brand) !important;
  color: #fff !important;
  box-shadow: 0 12px 26px -12px rgba(210,46,28,.55) !important;
}

.btn.btn-white,
.btn.btn-outline-white {
  color: #fff !important;
  border-color: rgba(255,255,255,.85) !important;
  background: rgba(255,255,255,.06) !important;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.btn.btn-white:hover,
.btn.btn-outline-white:hover {
  background: #fff !important;
  color: var(--ink) !important;
  border-color: #fff !important;
}

/* ---------- Ritmo de seções ---------- */
.section { padding: 6.5em 0; }
@media (max-width: 991px) { .section { padding: 4.5em 0; } }
.section.py-5 { padding-top: 4.5em !important; padding-bottom: 4.5em !important; }

.bg-light { background: var(--cream) !important; }
.text-primary { color: var(--brand) !important; }

/* ---------- Títulos de seção ---------- */
.heading-wrap h2,
.section-heading h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  font-weight: 400 !important;
  line-height: 1.1;
}
.heading-wrap h2::before {
  height: 3px;
  width: 64px;
  background: linear-gradient(90deg, var(--brand), var(--gold)) !important;
  border-radius: 3px;
}
.heading-wrap .back-text,
.heading-wrap .back-text-dark { color: var(--cream-2) !important; }

/* “eyebrow” opcional: <p class="eyebrow"> */
.eyebrow {
  font-family: var(--ui);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--brand);
}

/* ---------- Hero / slider ---------- */
.slider-item,
.owl-carousel.home-slider .slider-item,
.slider-item .slider-text,
.owl-carousel.home-slider .slider-item .slider-text {
  height: 88vh !important;
  min-height: 540px !important;
}
.owl-carousel.home-slider.inner-page .slider-item,
.owl-carousel.home-slider.inner-page .slider-item .slider-text {
  height: 46vh !important;
  min-height: 360px !important;
}
.slider-item::before,
.owl-carousel.home-slider .slider-item::before {
  background: linear-gradient(180deg, rgba(24,16,13,.35) 0%, rgba(24,16,13,.62) 100%) !important;
}
.slider-item .slider-text h1,
.owl-carousel.home-slider .slider-item .slider-text h1 {
  font-family: var(--serif);
  font-weight: 400 !important;
  font-size: clamp(2.4rem, 6vw, 4.6rem) !important;
  line-height: 1.08 !important;
  letter-spacing: -.02em;
  text-shadow: 0 4px 30px rgba(0,0,0,.35);
}
.slider-item .slider-text a { text-decoration: none !important; }

/* ---------- Cards “Queridinhos da casa” ---------- */
.item-dishes {
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  isolation: isolate;
}
.item-dishes img { display: block; width: 100%; height: 100%; object-fit: cover; }
.item-dishes::before {
  background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.72) 100%) !important;
  opacity: 1 !important;
  transition: opacity .3s var(--ease);
}
.item-dishes .text { top: auto; bottom: 26px; transform: none; }
.item-dishes .text .dishes-heading {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.4vw, 1.8rem) !important;
  text-transform: none !important;
  text-shadow: 0 2px 14px rgba(0,0,0,.4);
}
.item-dishes:hover { box-shadow: var(--shadow-lg); }

/* ---------- Depoimentos ---------- */
.testimonial {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 40px 38px 32px;
  box-shadow: var(--shadow);
  position: relative;
}
.testimonial::before {
  content: "\201C";
  font-family: var(--serif);
  position: absolute;
  top: 6px; left: 26px;
  font-size: 90px;
  line-height: 1;
  color: var(--gold-soft);
  z-index: 0;
}
.testimonial p {
  font-family: var(--serif);
  font-size: 1.25rem !important;
  line-height: 1.5;
  color: var(--ink) !important;
  position: relative;
  z-index: 1;
}
.testimonial .author img { border: 3px solid var(--brand-soft); }
.testimonial .author h4 { font-family: var(--ui); font-weight: 600; }
.testimonial .author p { font-family: var(--ui); color: var(--muted) !important; }

/* ---------- Formulários (pecaja / encomendas / contato) ---------- */
.form-control {
  border-radius: var(--r-sm) !important;
  border: 1.5px solid var(--line) !important;
  height: 50px;
  font-family: var(--ui);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.form-control:focus {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 4px rgba(210,46,28,.12) !important;
}
textarea.form-control { height: auto; }
label { font-family: var(--ui); font-weight: 600; color: var(--ink); }
.form-wrap { border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }

/* ---------- Footer moderno ---------- */
.site-footer {
  background: #1c1512;
  color: #cfc6bd;
  padding: 5.5em 0 2.5em;
}
.site-footer::before { display: none; } /* remove o skew branco antigo */
.site-footer h3 {
  color: #fff;
  font-family: var(--ui);
  font-weight: 600;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  margin-bottom: 22px;
}
.site-footer a { color: #cfc6bd; }
.site-footer a:hover { color: #fff; }
.site-footer .text-black { color: #fff !important; }
.footer-social a {
  width: 38px; height: 38px; line-height: 38px;
  border: 1px solid rgba(255,255,255,.16);
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.footer-social a:hover { background: var(--brand); border-color: var(--brand); color: #fff; transform: translateY(-3px); }

/* ---------- Botão flutuante WhatsApp ---------- */
.whatsapp-float {
  box-shadow: 0 12px 30px -8px rgba(37,211,102,.6);
  border-radius: 50%;
}
.whatsapp-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37,211,102,.5);
  animation: wa-pulse 2.4s infinite;
}
@keyframes wa-pulse {
  70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------- Mapa ---------- */
.map-responsive iframe { border-radius: var(--r-lg) !important; box-shadow: var(--shadow); }
