/*
Theme Name: Saint Claire
Theme URI: https://underdogbytes.com
Author: Olá Chico & Underdog Bytes
Author URI: https://underdogbytes.com
Description: Saint Claire foi codado para ser fácil de usar, manter e reutilizar.
Requires at least: 6.4
Tested up to: 6.9
Requires PHP: 7.0
Version: 1.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: saintclaire
Tags: bakery, cafe
*/

/* Fonts: Outfit */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');

/* ATENÇÃO: desenvolvido mobile first!
  A base é para telas com >> 600px <<
  Tudo customizado para telas maiores tão lá embaixo nos @media

  Mantenha o código elegante 🍷
*/
:root {
  --text-default: #2C2825;
  --red-brand: #BD1D43;
  --light-green: #8BFE8F;
  --divider: #595959;

  --container-mobile: 100%;
  --container-tablet: 720px;
  --container-desktop: 1120px;

  --padding-mobile: 1rem;

  --img-default-border-radius: 2rem;

  --border-top-solid: 1px solid var(--text-default);
  --btn-float-whats: 3.5rem;
  --hero-width: 1400px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: "Outfit", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-size: 16px;
  color: var(--text-default);
}

button,
a.button {
  width: 100%;
  max-width: 100%;
  padding: 12px;
  display: block;
  box-sizing: border-box;

  border-radius: 12px;
  background-color: var(--light-green);
  font-size: 24px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  color: var(--text-default);
}

a.button:hover,
button:hover {
  cursor: pointer;
  opacity: 0.9;
}

a.button__whatsapp {
  width: var(--btn-float-whats);
  height: var(--btn-float-whats);
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 2;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  background-color: #24a528;
  text-decoration: none;
}

a.button__whatsapp:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 4px;
}

a.button__whatsapp svg {
  width: 50px;
  height: 50px;
}

img {
  width: 100%;
}

.heading__1 {
  font-weight: bold;
  font-size: 30px;
  text-transform: uppercase;
  color: var(--red-brand);
}

.heading__1.black {
  color: var(--text-default);
}

.heading__1--pages {
  width: fit-content;
  margin: 1rem 0rem 3rem 0;
}

.heading__2 {
  font-weight: bold;
  font-size: 35px;
}

.caption__1 {
  font-weight: bold;
  font-size: 18px;
  text-transform: uppercase;
  color: var(--red-brand);
}

p {
  font-size: 16px;
}

.container {
  width: 100%;
  max-width: var(--container-mobile);
  margin: auto;
}

.border-top-solid {
  border-top: var(--border-top-solid);
}

.mt-2 {
  margin-top: 2rem;
}

.mb-5 {
  margin-bottom: 5rem;
}

/* Início: header */
.site-header {
  width: 100%;
  border-bottom: 1px solid #eee;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo img {
  max-height: 3rem;
  width: auto;
}

.menu {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu a {
  text-decoration: none;
  font-weight: 600;
  color: #c4161c;
}

.menu-toggle {
  width: fit-content;
  display: none;
  background: none;
  border: 0;
  font-size: 2rem;
  cursor: pointer;
  color: var(--red-brand);
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    display: none;
  }

  .site-nav.is-open {
    display: block;
    position: absolute;
    left: 0;
    padding: 2rem;
    background: white;
    z-index: 5;
    width: 100%;
    top: 5rem;
    height: 100%;
  }

  .menu {
    flex-direction: column;
    gap: 1rem;
  }
}
/* Fim: header */


/* Início: Seção Hero */
section.hero {
  width: 100%;
  min-height: min(500px, 650px);
  margin: 0 0 3rem 0;
}

section.hero .hero__carousel img {
  width: 100%;
  max-width: fit-content;
  height: 480px;
  margin: 0;
  object-fit: cover;
}
/* Fim: Seção Hero */


/* Início: Seção Nossa História */
section.our-history {
  width: 100%;
}

section.our-history .our-history__header,
section.our-history .our-history__cta {
  max-width: 900px;
  margin: auto;
  padding: var(--padding-mobile);
  text-align: center;
  place-items: center;
}

/* Fim: Seção Nossa História */


/* Início: Seção O que Oferecemos */
section.we-offer {
  width: 100%;
  margin: auto;
  padding: 3rem 1rem;
  text-align: center;
}

section.we-offer .we-offer__header {
  margin-bottom: 1rem;
}

section.we-offer .we-offer__image img {
  width: 100%;
  height: auto;
  border-radius: var(--img-default-border-radius);
  object-fit: cover;
}
/* Fim: Seção O que Oferecemos */


/* Início: Seção Cards de Serviços */
section.services {
  display: block;
  padding: var(--padding-mobile);
}

section.services .services__label {
  width: fit-content;
}

section.services .services__label .caption__1 {
  margin: 0;
  color: var(--text-default);
}

section.services .services__cards {
  width: 100%;
  max-width: 900px;
}

section.services .services__cards .card {
  width: 100%;
  max-width: 600px;
  padding: 2rem 0;
  margin-bottom: 2rem;
  border-top: 1px solid #595959;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem;
  color: var(--text-default);
}

section.services .services__cards .card .card__image {
  order: 1;
}

section.services .services__cards .card .card__image img {
  width: 100%;
  max-width: 443px;
  height: 100%;
  max-height: 382px;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  border-radius: var(--img-default-border-radius);
}

section.services .services__cards .card .card__descriptive {
  order: 2;
  margin-bottom: auto;
}

section.services .services__cards .card .card__descriptive .heading__1 {
  margin: 0 0 1rem 0;
}

section.services .services__cards .card .card__descriptive a.button {
  margin: 2rem 0;
  text-transform: none;
  font-size: 24px;
}
/* Fim: Seção Cards de Serviços */


/* Início: Footer */
footer {
  margin-top: 5rem;
  color: #fff;
}

footer a,
footer a:active {
  color: #fff;
  text-decoration: none;
}

.footer__container {
  width: 100%;
  max-width: var(--container-mobile);
  min-height: min(634px, 90vh);
  padding: 0;
  margin: auto;
  display: flex;
  border-radius: 2rem 2rem 0 0;

  position: relative;
  overflow: hidden;
}

.footer__content {
  width: 100%;
  margin-top: auto;
  padding: 2rem;
  padding-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.footer__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.footer__logo {
  display: flex;
}

.footer__logo img {
  max-width: 210px;
  height: auto;
  margin: auto;
}

.footer__contact {
  gap: 1rem;
  padding-top: 1.5rem;
  display: block;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.4;
}

.footer__contact span {
  display: block;
  padding: 0 0 2rem 0;
  opacity: 0.9;
  text-align: center;
}
/* Fim: Footer */


/* Início: Página Nossa História */
.page--nossa-historia {
  max-width: var(--container-desktop);
  margin: auto;
  padding: var(--padding-mobile);
}
/* Fim: Página Nossa História */

/* Início: Página Produtos */
.page--produtos {
  padding: var(--padding-mobile);
}

.produtos_carrosel > * {
  max-width: 900px;
  margin-left: auto;
}
/* Fim: Página Produtos */


/* Início: Página Contato */
section.page--contato {
  width: 100%;
  margin: auto;
}

section.page--contato .content {
  padding-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

section.page--contato .content iframe {
  width: 100%;
  border-radius: var(--img-default-border-radius);
}

section.page--contato .content h3,
section.page--contato .content p {
  width: fit-content;
  font-size: 1rem;
}

section.page--contato .content h3 {
  margin: 0;
  text-transform: uppercase;
}

section.page--contato .content p {
  margin: 0 0 1rem 0;
}

section.page--contato .content .contact__button {
  margin: 2rem 0;
}

section.page--contato .content .contact__button a.button {
  width: 236px;
}
/* Fim: Página Contato */


/* Início: Página Blog */
section.page--blog {
  width: 100%;
  max-width: var(--container-mobile);
  margin: auto;
  padding: var(--padding-mobile);
}

.page--blog .heading__1 {
  font-size: 30px;
  margin-bottom: 3rem;
}

.pagination {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.pagination .page-numbers {
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  text-decoration: none;
  color: var(--red-brand);
}

.pagination .current {
  font-weight: bold;
}
/* Fim: Página Blog */


/* Início: Página Post */
main.page--single-post {
  width: 100%;
  max-width: var(--container-desktop);
  margin: auto;
  padding: var(--padding-mobile);
}

main.page--single-post .single-post__featured {
  max-width: var(--container-desktop);
  max-height: 400px;
}

main.page--single-post .single-post__featured img {
  width: 100%;
  max-height: 400px;
  border-radius: 0;
  object-fit: cover;
}

.single-post__meta {
  display: grid;
  font-weight: bold;
}

.single-post__category a {
  color: var(--red-brand);
  font-weight: normal;
}

.single-post__entry {
  margin: 2rem 0;
}
/* Fim: Página Post */


/* Início: componente card de mídia */
.media-section {
  max-width: 900px;
  margin-bottom: 5rem;
  margin-left: auto;
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 1fr;
  gap: 2rem;
  align-items: center;
}

.media-section::before {
  content: "";
  position: absolute;
  top: -2rem;
  left: 0;

  width: 100%;
  height: 0.5px;

  background: var(--divider);
}

.media-section__content {
  display: grid;
  align-self: start;
}

.media-section__content .heading__1 {
  margin: 0 0 1rem 0;
}

.media-section__media {
  display: grid;
  align-self: start;
}

.media-section__media img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  display: flex;
  margin-left: auto;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  border-radius: var(--img-default-border-radius);
}

.media-section--reverse {
  grid-template-columns: 1fr minmax(280px, 1fr);
}

.media-section--reverse .media-section__content {
  order: 1;
}

.media-section--reverse .media-section__media {
  order: 2;
}
/* Fim: componente card de mídia */

/* Início: Linha decorativa */
.line {
  position: relative;
}

.line::before {
  content: "";
  position: absolute;
  top: -2rem;
  left: 0;

  width: 100%;
  height: 0.5px;

  background: var(--divider);
}
/* Fim: Linha Decorativa */


/* Início: componente carrossel */
.carousel {
  width: 100%;
  margin: 2rem -10px;
}

.carousel .slick-slide {
  padding: 0 5px;
}

.slick-arrow {
  position: absolute;
  z-index: 2;
  width: fit-content;
  top: 50%;
  border: none;
  background-color: transparent;
  font-size: 3rem;
  color: #00000099;
}

.slick-next.slick-arrow {
  right: 0;
}

.carousel img {
  width: 100%;
  max-width: fit-content;
  object-fit: cover;
  border-radius: var(--img-default-border-radius);
}
.carousel--square {
  width: 100%;
  margin: 2rem -10px;
}

.carousel--square .slick-slide {
  padding: 0 10px;
}

.carousel--square img {
  aspect-ratio: 1 / 1;
  margin-left: 10px;
}

.carousel--9-16 img {
  margin: 0;
  aspect-ratio: 9 / 16;
}


/*
//////////////////
//// RESPONSIVO
**/
/* mobile piquitito */
@media (max-width: 768px) {
  .media-section {
    grid-template-columns: 1fr;
  }
}

/* tablet grande / desktop pequeno */
@media (min-width: 900px) {
  .header-container {
    padding: 1rem 2rem;
  }
  .container {
    width: 100%;
    max-width: var(--container-tablet);
  }

  button,
  a.button {
    width: fit-content;
  }

  a.button__whatsapp {
    width: var(--btn-float-whats);
  }

  /* Início: Seção Hero */
  section.hero {
    width: 100%;
    padding: 0 2rem 2rem 2rem;
  }

  section.hero .hero__carousel img {
    width: 100%;
    max-width: var(--hero-width);
    margin: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--img-default-border-radius);
  }
  /* Fim: Seção Hero */

  /* Início: Seção Cards de Serviços */
  section.services .services__cards .card {
    max-width: 900px;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  }

  section.services .services__cards .card .card__image {
    order: 2;
  }

  section.services .services__cards .card .card__descriptive {
    order: 1;
  }
  /* Fim: Seção Cards de Serviços */

  /* Início: componente card de mídia */
  .media-section__media img {
    max-width: 480px;
  }
  /* Fim: componente card de mídia */

  /* Início: Página Post */
  .single-post__meta {
    display: flex;
    gap: 1rem;
  }
  /* Fim: Página Post */
}

/* Responsivo: desktop */
@media (min-width: 1200px) {
  .heading__1 {
    font-size: 48px;
  }

  .heading__2 {
    font-size: 40px;
  }

  .container {
    width: 100%;
    max-width: var(--container-desktop);
  }

  /* Início: Página Contato */
  section.page--contato .content iframe {
    width: 488px;
    height: 421px;
  }

  section.page--contato .content {
    grid-template-columns: 490px 390px;
    justify-content: flex-end;
  }
  /* Fim: Página Contato */


  /* Início: Página Blog */
  section.page--blog {
    max-width: var(--container-desktop);
  }
  /* Fim: Página Blog */
  
  /* Início: Seção O que Oferecemos */
  section.we-offer .we-offer__header {
    max-width: 855px;
    margin: auto auto 2rem auto;
  }

  section.we-offer .we-offer__image img {
    max-width: 1200px;
    max-height: 730px;
    margin: auto;
    border-radius: 0;
  }
  /* Fim: Seção O que Oferecemos */
  
  
  /* Início: Seção Cards de Serviços */
  section.services {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 100px 1fr;
  }

  section.services .services__cards {
    max-width: 900px;
    margin-left: auto;
  }
  /* Fim: Seção Cards de Serviços */


  /* Início: Footer */
  .footer__container {
    width: 100%;
    max-width: var(--container-desktop);
  }

  .footer__contact {
    display: flex;
    justify-content: space-between;
  }

  .footer__contact span {
    padding: 0;
  }
  /* Fim: Footer */
}