/* ============================================================
   Amazonecobeauty — Design System CSS (Inspirado em L'Oréal)
   ============================================================ */

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

/* ── BASE E VARIÁVEIS ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:       #000000;
  --primary-light: #333333;
  --bg-color:      #ffffff;
  --bg-alt:        #f8f8f8;
  --bg-alt2:       #f0f0f0;
  --text:          #1a1a1a;
  --text-muted:    #666666;
  --border-color:  #e0e0e0;
  --accent:        #b78b5e; /* Tom dourado suave / nude */
  --accent-light:  #d9be9e;
  --error:         #d32f2f;
  --success:       #388e3c;
  
  --font-sans: 'Montserrat', sans-serif;
  --font-serif: 'Playfair Display', serif;
  
  --radius: 0px; /* L'Oreal usa cantos bem retos/agudos */
  --transition: all 0.3s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--bg-color);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: var(--transition); }
img { max-width: 100%; display: block; object-fit: cover; }
ul { list-style: none; }

/* ── NAVBAR ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem 3rem;
  background: var(--bg-color);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}
.navbar.scrolled {
  padding: 1rem 3rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border-bottom: 1px solid var(--border-color);
}
.navbar__brand {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--primary);
  text-transform: uppercase;
}
.navbar__nav {
  display: flex; align-items: center; gap: 2.5rem;
}
.navbar__nav a {
  font-size: 0.85rem; font-weight: 500; text-transform: uppercase;
  letter-spacing: 1px; color: var(--text);
  position: relative;
}
.navbar__nav a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px; background: var(--primary);
  transform: scaleX(0); transition: transform 0.3s ease; transform-origin: right;
}
.navbar__nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.navbar__actions { display: flex; align-items: center; gap: 1.5rem; }
.navbar__toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--primary); }

/* ── BOTÕES ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
  cursor: pointer; border: 1px solid var(--primary);
  transition: var(--transition); border-radius: 0;
}
.btn-primary {
  background: var(--primary); color: #fff;
}
.btn-primary:hover { background: #fff; color: var(--primary); }
.btn-outline {
  background: transparent; color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-accent {
  background: var(--bg-alt2); border-color: var(--bg-alt2); color: var(--primary);
}
.btn-accent:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-lg { padding: 1.2rem 3rem; font-size: 0.9rem; }
.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.75rem; }

/* ── HERO SECTION ── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative; padding-top: 80px;
  background: var(--bg-alt);
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  /* Espaço para uma imagem de fundo elegante no estilo L'Oreal */
  background: linear-gradient(to right, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.4) 100%),
              url('https://images.unsplash.com/photo-1522337660859-02fbefca4702?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
}
.hero__content {
  max-width: 1200px; width: 100%; margin: 0 auto; padding: 0 3rem; position: relative; z-index: 1;
}
.hero__text { max-width: 600px; }
.hero__badge {
  font-family: var(--font-sans); font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 2px; color: var(--text-muted);
  margin-bottom: 1.5rem; display: block;
}
.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 400; line-height: 1.1; color: var(--primary);
  margin-bottom: 1.5rem;
}
.hero__desc {
  font-size: 1.05rem; line-height: 1.8; color: var(--text-muted);
  margin-bottom: 2.5rem; font-weight: 400;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── SEARCH BAR FLAT ── */
.search-bar {
  display: flex; align-items: center;
  border-bottom: 2px solid var(--primary);
  padding: 0.5rem 0;
  max-width: 500px; width: 100%;
  margin-bottom: 2.5rem;
}
.search-bar input {
  flex: 1; border: none; background: transparent; outline: none;
  font-family: var(--font-serif); font-size: 1.2rem; color: var(--primary);
  padding: 0.5rem 0;
}
.search-bar input::placeholder { color: #a0a0a0; font-style: italic; }
.search-bar button {
  background: transparent; border: none; cursor: pointer;
  font-size: 1.2rem; color: var(--primary); padding: 0 0.5rem;
}

/* ── SEÇÕES ── */
.section { padding: 6rem 3rem; }
.section__center { max-width: 1200px; margin: 0 auto; }
.section__header { text-align: center; margin-bottom: 4rem; }
.section__tag {
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 2px;
  color: var(--text-muted); margin-bottom: 1rem; display: block;
}
.section__title {
  font-family: var(--font-serif); font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 400; color: var(--primary); margin-bottom: 1rem;
}
.section__desc {
  max-width: 600px; margin: 0 auto; color: var(--text-muted);
  line-height: 1.7; font-size: 1rem;
}

/* ── CATEGORIES (CARDS MINIMALISTAS) ── */
.cats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem;
}
.cat-card {
  text-align: center; padding: 2rem; background: var(--bg-alt);
  border: 1px solid transparent; transition: var(--transition);
}
.cat-card:hover { background: var(--bg-color); border-color: var(--border-color); transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.03); }
.cat-card__icon { font-size: 2rem; margin-bottom: 1.5rem; color: var(--primary); }
.cat-card__name { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 600; margin-bottom: 0.5rem; }
.cat-card__count { font-size: 0.8rem; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; }

/* ── PROFILES / FEATURES (IMAGENS E TEXTO REVESADOS L'OREAL STYLE) ── */
.profiles-wrap { display: flex; flex-direction: column; gap: 0; }
.profile-row { display: grid; grid-template-columns: 1fr 1fr; min-height: 500px; }
.profile-row:nth-child(even) .profile-content { grid-row: 1; grid-column: 2; }
.profile-row:nth-child(even) .profile-image { grid-row: 1; grid-column: 1; }
.profile-image {
  background: var(--bg-alt2); position: relative; overflow: hidden;
}
.profile-image img { width: 100%; height: 100%; object-fit: cover; }
.profile-content {
  padding: 5rem 4rem; display: flex; flex-direction: column; justify-content: center;
  background: var(--bg-color);
}
.profile-title { font-family: var(--font-serif); font-size: 2.5rem; font-weight: 400; margin-bottom: 1.5rem; }
.profile-desc { color: var(--text-muted); line-height: 1.8; margin-bottom: 2rem; font-size: 1rem; max-width: 450px; }
.profile-link {
  font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
  color: var(--primary); display: inline-flex; align-items: center; gap: 0.5rem;
}
.profile-link::after { content: '→'; transition: transform 0.3s ease; }
.profile-link:hover::after { transform: translateX(5px); }

/* ── CTA FULLWIDTH ── */
.cta-section {
  padding: 8rem 3rem; background: var(--primary); color: #fff; text-align: center;
}
.cta-section .section__title { color: #fff; }
.cta-section .section__desc { color: #ccc; margin-bottom: 3rem; }
.cta-section .btn { border-color: #fff; }

/* ── FOOTER CLASSIC ── */
.footer {
  background: var(--bg-color); border-top: 1px solid var(--border-color);
  padding: 5rem 3rem 2rem; font-family: var(--font-sans);
}
.footer__grid {
  max-width: 1200px; margin: 0 auto 4rem;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 4rem;
}
.footer__brand {
  font-family: var(--font-serif); font-size: 1.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1.5rem;
}
.footer__desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; max-width: 350px; }
.footer__title { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 2rem; }
.footer__links { display: flex; flex-direction: column; gap: 1rem; }
.footer__links a { font-size: 0.9rem; color: var(--text-muted); }
.footer__links a:hover { color: var(--primary); text-decoration: underline; }
.footer__bottom {
  max-width: 1200px; margin: 0 auto; padding-top: 2rem;
  border-top: 1px solid var(--border-color); display: flex; justify-content: space-between;
  font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px;
}

/* ── FORMS E CARDS (AUTH) ── */
.form-card {
  background: var(--bg-color); padding: 4rem 3rem;
  max-width: 500px; width: 100%; margin: 0 auto;
  border: 1px solid var(--border-color);
}
.form-title { font-family: var(--font-serif); font-size: 2.2rem; font-weight: 400; margin-bottom: 0.5rem; text-align: center; }
.form-sub { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 3rem; text-align: center; }
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--primary-light); margin-bottom: 0.5rem; }
.form-control {
  width: 100%; padding: 0.8rem 0; border: none; border-bottom: 1px solid var(--border-color);
  background: transparent; color: var(--primary); font-family: var(--font-sans); font-size: 1rem;
  outline: none; transition: var(--transition); border-radius: 0;
}
.form-control:focus { border-bottom-color: var(--primary); }
.form-control::placeholder { color: #bdbdbd; font-family: var(--font-serif); font-style: italic; }

/* ── RESPONSIVO ── */
@media (max-width: 960px) {
  .profile-row { grid-template-columns: 1fr; min-height: auto; }
  .profile-row:nth-child(even) .profile-content { grid-column: 1; grid-row: 2; }
  .profile-row:nth-child(even) .profile-image { grid-column: 1; grid-row: 1; }
  .profile-image { height: 300px; }
  .profile-content { padding: 4rem 2rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}
@media (max-width: 768px) {
  .navbar { padding: 1rem 1.5rem; }
  .navbar__nav { display: none; }
  .navbar__toggle { display: block; }
  .hero__content { padding: 0 1.5rem; }
  .section { padding: 4rem 1.5rem; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 1rem; text-align: center; }
  
  .navbar__nav.open {
    display: flex; flex-direction: column; position: fixed; top: 70px; left: 0; right: 0;
    background: var(--bg-color); padding: 2rem; box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-top: 1px solid var(--border-color); gap: 2rem;
  }
}

