/* =====================================================
   BELLA DEAL — Home Decor Affiliate Blog
   style.css
   ===================================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --white:   #FFFFFF;
  --black:   #1A1A1A;
  --accent:  #8C7B6B;
  --accent-light: #C4B5A8;
  --bg-soft: #F8F6F4;
  --bg-card: #FDFCFB;
  --text-body:    #3D3D3D;
  --text-muted:   #8A8A8A;
  --border:       #EAE6E2;
  --shadow-soft:  0 4px 24px rgba(140,123,107,0.10);
  --shadow-hover: 0 12px 40px rgba(140,123,107,0.20);
  --radius:  12px;
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-body);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  color: var(--black);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2.4rem, 6vw, 5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-body);
}

/* ---------- Utilities ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section--alt {
  background: var(--bg-soft);
}

.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.divider {
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin: 20px 0 32px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  transition: var(--transition);
  text-decoration: none;
}

.btn--primary {
  background: var(--black);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(140,123,107,0.30);
}

.btn--outline {
  background: transparent;
  color: var(--black);
  border: 1.5px solid var(--black);
}

.btn--outline:hover {
  background: var(--black);
  color: var(--white);
  transform: translateY(-2px);
}

.btn--accent {
  background: var(--accent);
  color: var(--white);
  width: 100%;
  justify-content: center;
}

.btn--accent:hover {
  background: var(--black);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ---------- Disclosure Banner ---------- */
.disclosure-bar {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 8px 24px;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.disclosure-bar a {
  color: var(--accent);
  text-decoration: underline;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.header__logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.header__logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: 0.02em;
}

.header__logo-tagline {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__link {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-body);
  transition: color var(--transition);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav__link:hover {
  color: var(--accent);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__cta {
  padding: 10px 22px;
  font-size: 0.75rem;
}

/* Mobile menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--black);
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1586023492125-27b2c045efd7?w=1800&q=85&auto=format&fit=crop');
  background-size: cover;
  background-position: center 40%;
  transform: scale(1.04);
  transition: transform 8s ease;
}

.hero__bg.loaded {
  transform: scale(1);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(255,255,255,0.92) 0%,
    rgba(255,255,255,0.70) 45%,
    rgba(255,255,255,0.10) 100%
  );
}

.hero__content {
  position: relative;
  max-width: 660px;
  padding-top: 70px;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}

.hero__eyebrow-line {
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.hero__eyebrow span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero__title {
  opacity: 0;
  animation: fadeUp 0.8s 0.4s forwards;
  margin-bottom: 24px;
}

.hero__title em {
  font-style: italic;
  color: var(--accent);
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-body);
  max-width: 480px;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.8s 0.6s forwards;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s 0.8s forwards;
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0;
  animation: fadeIn 1s 1.4s forwards;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: var(--accent);
  animation: scrollLine 1.5s 1.6s ease-in-out infinite;
}

/* ---------- Products Section ---------- */
.products__header {
  text-align: center;
  margin-bottom: 64px;
}

.products__header .tag {
  display: block;
}

.products__header .divider {
  margin: 20px auto 32px;
}

.products__header p {
  max-width: 520px;
  margin: 0 auto;
  color: var(--text-muted);
}

.products__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: start;
}

/* ---------- Product Card ---------- */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(24px);
}

.product-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease,
              box-shadow var(--transition), transform var(--transition);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.product-card__image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-soft);
}

.product-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .product-card__image-wrap img {
  transform: scale(1.06);
}

.product-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--white);
  color: var(--accent);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  border: 1px solid var(--border);
}

.product-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.product-card__category {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.product-card__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1.3;
}

.product-card__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px 16px;
  margin-top: auto;
}

.product-card__price {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--black);
}

.product-card__stars {
  display: flex;
  gap: 2px;
  color: var(--accent);
  font-size: 0.85rem;
}

.product-card__cta {
  padding: 0 24px 24px;
}

/* ---------- Features Strip ---------- */
.features {
  background: var(--black);
  padding: 24px 0;
}

.features__inner {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-item svg {
  color: var(--accent-light);
  flex-shrink: 0;
}

/* ---------- About Section ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about__image-wrap {
  position: relative;
}

.about__image-wrap::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: 20px;
  bottom: 20px;
  border: 2px solid var(--accent-light);
  border-radius: var(--radius);
  z-index: 0;
}

.about__image-wrap img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
}

.about__content .tag {
  display: block;
}

.about__content h2 {
  margin-bottom: 16px;
}

.about__content .divider {
  margin-bottom: 24px;
}

.about__content p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 40px 0;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat {
  text-align: center;
}

.stat__number {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
}

.stat__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* ---------- Newsletter Section ---------- */
.newsletter {
  background: var(--accent);
  padding: 80px 0;
  text-align: center;
}

.newsletter h2 {
  color: var(--white);
  margin-bottom: 12px;
}

.newsletter p {
  color: rgba(255,255,255,0.8);
  max-width: 420px;
  margin: 0 auto 36px;
}

.newsletter__form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
  justify-content: center;
}

.newsletter__input {
  flex: 1;
  padding: 14px 20px;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  border: none;
  border-radius: 4px;
  background: rgba(255,255,255,0.15);
  color: var(--white);
  outline: none;
  transition: background var(--transition);
}

.newsletter__input::placeholder {
  color: rgba(255,255,255,0.55);
}

.newsletter__input:focus {
  background: rgba(255,255,255,0.22);
}

.newsletter__btn {
  padding: 14px 28px;
  background: var(--black);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.newsletter__btn:hover {
  background: var(--white);
  color: var(--black);
}

.newsletter__note {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
  margin-top: 16px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--black);
  padding: 80px 0 0;
  color: rgba(255,255,255,0.6);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer__brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  display: block;
  margin-bottom: 4px;
}

.footer__brand-tagline {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-light);
}

.footer__bio {
  font-size: 0.875rem;
  line-height: 1.7;
  margin: 20px 0 24px;
  color: rgba(255,255,255,0.5);
}

.footer__socials {
  display: flex;
  gap: 12px;
}

.footer__social {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  transition: var(--transition);
}

.footer__social:hover {
  border-color: var(--accent-light);
  color: var(--accent-light);
  background: rgba(196,181,168,0.08);
}

.footer__col-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 24px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--accent-light);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__copyright {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}

.footer__legal {
  display: flex;
  gap: 24px;
}

.footer__legal a {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  transition: color var(--transition);
}

.footer__legal a:hover {
  color: var(--accent-light);
}

.footer__affiliate-note {
  background: rgba(255,255,255,0.04);
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  padding: 16px 24px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.25);
  line-height: 1.5;
}

.footer__affiliate-note a {
  color: var(--accent-light);
  text-decoration: underline;
}

/* ---------- Privacy Policy Page ---------- */
.policy-hero {
  background: var(--bg-soft);
  padding: 140px 0 80px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.policy-hero h1 {
  margin-bottom: 12px;
}

.policy-hero p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.policy-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 24px;
}

.policy-content h2 {
  font-size: 1.4rem;
  margin: 48px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.policy-content h2:first-child {
  margin-top: 0;
}

.policy-content p,
.policy-content li {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.policy-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 20px;
}

.policy-content a {
  color: var(--accent);
  text-decoration: underline;
}

/* ---------- Scroll Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- Keyframes ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scrollLine {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50%       { transform: scaleY(0.4); opacity: 0.4; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .products__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about__image-wrap::before {
    display: none;
  }

  .about__image-wrap img {
    aspect-ratio: 16/9;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 72px 0;
  }

  .nav {
    display: none;
    position: fixed;
    inset: 70px 0 0;
    background: rgba(255,255,255,0.98);
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    z-index: 99;
    backdrop-filter: blur(12px);
  }

  .nav.open {
    display: flex;
  }

  .nav__link {
    font-size: 1rem;
  }

  .hamburger {
    display: flex;
  }

  .products__grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .hero__actions {
    flex-direction: column;
  }

  .newsletter__form {
    flex-direction: column;
  }

  .newsletter__btn {
    width: 100%;
  }

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

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .about__stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .features__inner {
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .about__stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero__scroll {
    display: none;
  }
}
