
:root {
  --color-bg: #f7f1eb;
  --color-bg-soft: #fff7f0;
  --color-brand: #cc1b1b;
  --color-brand-dark: #9F1C20;
  --color-text: #3c2c21;
  --color-grey: #666468;
  --color-text-soft: #5c4635;
  --color-border: #eadfd4;
  --color-white: #ffffff;
  --color-muted: #d9d9d9;
  --color-contact-form-bg: #FAF9F9;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-soft: 0 18px 40px -22px rgba(0, 0, 0, 0.2);
}

/* RESET BÁSICO E TIPOGRAFIA -------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Helvetica, Arial, sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.5;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
}

/* LAYOUT BASE ---------------------------------- */

.container {
  margin: 0 auto;
  padding: 0 16px;
  max-width: 1120px;
}

.section {
  padding: 20px 0;
  background: var(--color-white);
}

.section + .section {
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

/* HEADER / NAV -------------------------------- */

header {
  background-color: var(--color-white);
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0px 16px 32px;
  gap: 12px;
}

nav {
  display: none; /* mobile-first: esconde menu desktop */
}

nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
  font-weight: 700;
  font-size: 0.98rem;
}

nav a {
  position: relative;
  color: #211f1e;
  transition: color 0.2s ease;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--color-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

nav a:hover,
nav a:focus-visible {
  color: var(--color-brand);
}

nav a:hover::after,
nav a:focus-visible::after {
  transform: scaleX(1);
}

/* HAMBURGER / MENU MOBILE --------------------- */

.hamburger {
  display: inline-flex;
  border: none;
  background: transparent;
  color: var(--color-brand);
  cursor: pointer;
  padding: 4px;
  padding-right: 32px;
}

.hamburger svg {
  display: block;
}

.mobile-menu {
  position: absolute;
  inset-inline: 0;
  top: 64px;
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
  padding: 10px 16px;
  z-index: 25;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu a {
  display: block;
  padding: 10px 8px;
  color: #211f1e;
  font-weight: 700;
}

.mobile-menu a:hover,
.mobile-menu a:focus-visible {
  color: var(--color-brand);
}

/* HERO ---------------------------------------- */

#hero {
  background-image: url('/src/assets/images/fundosessao1.png');
  background-size: cover;
  background-position: left;
  min-height: 520px;
  position: relative;
  color: var(--color-white);
  isolation: isolate;
  display: flex;
  align-items: stretch;
  position: relative;
  z-index: 1;
}

.hero-overlay {
  background: linear-gradient(
    120deg,
    rgba(0, 0, 0, 0.25) 0%,
    rgba(0, 0, 0, 0.15) 35%,
    rgba(0, 0, 0, 0.4) 100%
  );
  width: 100%;
}

.hero-content {
  padding: 60px 0 56px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 540px;
}

.hero-content h1 {
  padding-left: 14px;
}

.hero-sub-container {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 35px 14px;
  margin-top: 200px;
}

.hero-content h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2rem, 6vw, 2.5rem);
  font-weight: 600;
  max-width: 250px;
}

.hero-copy {
  margin: 0;
  font-size: 1.02rem;
  color: var(--color-text);
}

.hero-copy strong {
  font-weight: 600;
}

.hero-highlight {
  font-size: 1.2rem;
  color: var(--color-brand-dark);
}

.hero-highlight-2 {
  font-size: 1.2rem;
  font-weight: bolder;
  color: var(--color-text);
}

.hero-subtext {
  margin: 30px 0 0;
  font-size: 0.98rem;
  color: var(--color-text);
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  margin-bottom: 50px;
  color: var(--color-text);
}

.store-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--color-brand-dark);
  color: var(--color-bg);
  font-weight: 600;
  box-shadow: 0 18px 40px -22px rgba(186, 24, 27, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.store-cta:hover,
.store-cta:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 22px 46px -24px rgba(186, 24, 27, 0.3);
}

/* SOBRE / ABOUT ------------------------------ */

.about {
  background-image: url('/src/assets/images/fundosessao2.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: top;
  border-radius: var(--radius-md);
  color: var(--color-white);
  padding-top: 56px;
  position: relative;
  z-index: 5;
  margin-top: -50px;
}

.about-logo {
  height: 70px;
  margin: 16px auto 0;
}

.about-content {
  margin-top: 100px;
  padding: 20px 24px 40px;
  background: var(--color-brand-dark);
  border-radius: 0px 0px var(--radius-md) var(--radius-md) ;
}

.about-title {
  font-size: 1.6rem;
  margin-bottom: 10px;
  margin-top: 6%;
}

.about-title-icon {
  display: inline-flex;
}

.about-title-icon img{
  padding-left: 0px;
  padding-right: 18px;
}

.about-text {
  font-size: 1.2rem;
  line-height: 1.6;
  margin: 10 0 12px;
  vertical-align: middle;
  text-align: center;
  color: rgba(255, 255, 255, 0.82);
}

/* SEÇÕES / CARDS ------------------------------ */

.section-title {
  text-align: center;
}

.section-title h2 {
  font-size: clamp(1.6rem, 4.2vw, 1.8rem);
  padding: 10px;
}

.section-title span {
  display: block;
  margin-top: 15px;
  font-size: 1.2rem;
  color: var(--color-text-soft);
}

.section-middle-title {
  margin: 12px 0 24px;
}

.section-middle-title h2 {
  font-size: 1.2rem;
  font-weight: 800;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding-bottom: 18px;
}

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
  height: 240px;
  text-align: -webkit-center;
}

.cards-background {
  background: var(--color-contact-form-bg);
  width: 100%;
}

.card img {
  display: flex;
  margin-bottom: 10px;
  height: 40px;
}

.card h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
}

.card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-grey);
}

.card:hover,
.card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.06);
}

/* CONTATO / FORMULÁRIO ------------------------ */

.contact {
  background: var(--color-white);
}

.contact .section-title span {
  max-width: 640px;
  margin-inline: auto;
}

.contact-section {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Mobile: mostra só o formulário, esconde bloco "Fale conosco" */
.contact-info {
  display: none;
}

.contact-highlight-2 {
  color: var(--color-brand-dark) !important;
  font-weight: bolder;
}

.contact-info h3 {
  margin-bottom: 10px;
}

.contact-info p {
  margin: 0 0 18px;
  color: var(--color-text-soft);
}

.contact-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-info li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.contact-info img {
  width: 40px;
  height: 40px;
}

.contact-form {
  background: var(--color-contact-form-bg);
  border-radius: var(--radius-lg);
  padding: 24px 22px 26px;
  box-shadow: none;
}

.contact-form__title {
  margin: 0 0 16px;
  font-size: 1.25rem;
  color: var(--color-brand-dark);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.form-span-2 {
  grid-column: 1 / -1;
}

.form-field {
  display: grid;
  gap: 6px;
}

.form-field label {
  font-size: 0.9rem;
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  border-radius: 12px;
  border: 0px solid var(--color-border);
  padding: 12px 14px;
  font: inherit;
  background: #fff;
  color: var(--color-text);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.form-submit {
  margin-top: 4px;
  border: none;
  background: var(--color-brand-dark);
  color: var(--color-white);
  padding: 14px 18px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.form-submit svg {
  width: 18px;
  height: 18px;
}

.form-submit:hover,
.form-submit:focus-visible {
  background: var(--color-brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 16px 28px -18px rgba(0, 0, 0, 0.5);
}

.alerts {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.alert {
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 600;
  font-size: 0.95rem;
}

.alert--success {
  background: #eaf6ee;
  color: #1b5e20;
}

.alert--error {
  background: #fff1f0;
  color: #b00020;
}

/* FOOTER -------------------------------------- */

footer {
  background: #7f0f0f;
  color: var(--color-white);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 32px 24px;
}

.footer-content img {
  padding-left: 0px;
}

.footer-content p {
  margin: 8px 0 0;
  font-size: 0.9rem;
  max-width: 320px;
}

.footer-column h4 {
  margin: 0 0 10px;
  font-size: 0.95rem;
}

.footer-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-column-social-media {
  display: flex;
}

.footer-column-social-media li {
  padding-right: 10px;
}

.footer-column li {
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.86);
}

.mini-footer {
  background: var(--color-white);
  color: var(--color-text);
  text-align: center;
  padding: 20px 0;
  font-size: 1rem;
}

/* BREAKPOINTS - TABLET E DESKTOP -------------- */

/* >= 640px */
@media (min-width: 640px) {


  .hero-content {
    padding-top: 65px;
    padding-bottom: 65px;
  }

  .cards-grid {
    gap: 18px;
  }

  .contact-form {
    padding: 28px 26px 30px;
  }
}

/* >= 768px */
@media (min-width: 768px) {
  /* header */
  nav {
    display: block;
  }

  .header-content {
    padding: 20px 20px;
  }

  .header-content img {
    padding-left: 14px;
  }

  .hamburger {
    display: none;
  }

  .mobile-menu {
    display: none !important;
  }

  /* hero - texto puxa mais para a direita como na versão web */
  #hero {
    min-height: 600px;
  }
  
  .hero-content {
    margin-left: 54%;
    text-align: left;
    font-size: clamp(2rem, 6vw, 2.2rem);
  }

  .hero-content h1 {
    font-family: Helvetica, Arial, sans-serif;
    font-weight: 400;
    max-width: 100%;
  }

  .hero-sub-container {
    background: transparent;
    border: 0px;
    padding: 0%;
    margin-top: -10px;
    margin-left: 55%;
  }

  .hero-copy {
    color: var(--color-white);
  }

  .hero-subtext {
    color: var(--color-white);
  }

  .hero-highlight {
    color: var(--color-white);
  }

  .hero-highlight-2 {
    color: var(--color-white);
  }

  .store-badges {
    margin-top: 40px;
  }

  .store-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 999px;
    background: var(--color-bg);
    color: var(--color-brand-dark);
    font-weight: 600;
    box-shadow: 0 18px 40px -22px rgba(186, 24, 27, 0.28);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  }

  /* about */

  .about {
    z-index: 5;
    margin-top: -5px;
    border-radius: 0px;
    position: relative;
    background-size: cover;
    min-height: 450px;
  }

  .about-title-icon {
    padding-bottom: 20px;
  }

  .about-logo {
    margin-left: 14%;
  }

  .about-text {
    font-size: 0.9rem;
    text-align: left;
    max-width: 500px;
  }

  .about-content {
    max-width: 100%;
    padding-inline: 24px;
    margin-top: 0px;
    padding: 0px 24px 40px;
    background: transparent;
    border-radius: 0px;
    position: relative;
  }

  /* cards */
  .cards-grid {
    grid-template-columns: repeat(4, minmax(0, 0.16fr));
    justify-content: center;
  }

  .card {
    width: 144px;
    height: 210px;
  }

  .card p {
    font-size: 0.6rem;
  }

  .card h3 {
    font-size: 0.8rem;
  }

  .section {
    padding: 15px 0;
    background-color: var(--color-contact-form-bg);
  }

  .section-title h2 {
    font-size: clamp(1.4rem, 4.2vw, 1.5rem);
    padding: 0px;
  }

  .section-title span {
    display: contents;
    font-size: 1.2rem;
  }

  .section-middle-title {
    margin: 10px 0 30px;
    margin-left: 17%;
  }

  /* footer */
  .footer-content {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    padding: 44px 0;
  }
}

/* >= 960px - layout de contato em 2 colunas */
@media (min-width: 960px) {
  .contact-section {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
    align-items: flex-start;
    gap: 32px;
  }

  .contact-info {
    display: block;
  }

  .contact img {
    padding-left: 0px;
  }

  .contact-form {
    background: var(--color-contact-form-bg);
    box-shadow: var(--shadow-soft);
  }

  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .form-span-2 {
    grid-column: 1 / 3;
  }

  .form-submit {
    justify-self: flex-start;
    padding-inline: 28px;
    width: 206%;
  }
}

/* >= 1120px - hero com logo marca d'água ao fundo */
@media (min-width: 1120px) {
  #hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('/src/assets/images/logo-flena.png');
    background-repeat: no-repeat;
    background-size: 400px;
    background-position: calc(100% - 120px) center;
    opacity: 0.08;
    pointer-events: none;
    z-index: -1;
  }
}
