/* =========================
   RESET
========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", sans-serif;
  background: #fbf8f5;
  color: #292321;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* =========================
   VARIABLES
========================= */

:root {
  --cream: #fbf8f5;
  --cream-dark: #f4eee9;

  --pink: #d89aa1;
  --pink-light: #f2d9dc;
  --pink-dark: #b96f79;

  --rose: #8d525a;

  --text: #292321;
  --muted: #77706c;

  --white: #ffffff;

  --border: rgba(41, 35, 33, 0.1);
}

/* =========================
   NAVBAR
========================= */

.navbar {
  position: fixed;

  top: 0;
  left: 0;

  width: 100%;
  height: 82px;

  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 6%;

  transition: all 0.35s ease;
}

.navbar.scrolled {
  background: rgba(251, 248, 245, 0.95);

  backdrop-filter: blur(18px);

  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

.logo,
.footer-logo {
  font-family: "Cormorant Garamond", serif;

  font-size: 32px;

  font-weight: 600;

  letter-spacing: -1px;
}

.logo span,
.footer-logo span {
  color: var(--pink-dark);
}

.nav-links {
  display: flex;

  align-items: center;

  gap: 38px;

  font-size: 14px;
}

.nav-links a {
  position: relative;

  color: #4d4643;
}

.nav-links a::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: -7px;

  width: 0;
  height: 1px;

  background: var(--pink-dark);

  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--pink-dark);
}

.nav-button {
  padding: 13px 22px;

  border-radius: 100px;

  background: var(--text);

  color: white;

  font-size: 13px;

  transition: all 0.3s ease;
}

.nav-button:hover {
  background: var(--rose);

  transform: translateY(-2px);
}

.mobile-menu {
  display: none;

  border: none;

  background: transparent;

  font-size: 25px;

  cursor: pointer;
}

/* =========================
   HERO
========================= */

.examples-hero {
  min-height: 65vh;

  position: relative;

  display: flex;

  align-items: center;

  justify-content: center;

  text-align: center;

  padding: 150px 6% 90px;

  overflow: hidden;

  background:
    radial-gradient(
      circle at 15% 30%,
      rgba(236, 190, 196, 0.32),
      transparent 27%
    ),
    radial-gradient(
      circle at 85% 20%,
      rgba(236, 190, 196, 0.25),
      transparent 25%
    ),
    var(--cream);
}

.examples-hero::after {
  content: "";

  position: absolute;

  width: 550px;
  height: 550px;

  border: 1px solid rgba(185, 111, 121, 0.12);

  border-radius: 50%;

  bottom: -430px;

  left: 50%;

  transform: translateX(-50%);
}

.examples-hero-content {
  position: relative;

  z-index: 2;

  max-width: 850px;
}

.eyebrow {
  display: inline-flex;

  align-items: center;

  gap: 10px;

  margin-bottom: 25px;

  color: var(--rose);

  font-size: 10px;

  text-transform: uppercase;

  letter-spacing: 3px;
}

.eyebrow::before,
.eyebrow::after {
  content: "";

  width: 35px;
  height: 1px;

  background: var(--pink-dark);
}

.examples-hero h1 {
  font-family: "Cormorant Garamond", serif;

  font-size: clamp(65px, 8vw, 110px);

  line-height: 0.84;

  font-weight: 500;

  letter-spacing: -4px;

  margin-bottom: 30px;
}

.examples-hero h1 em {
  display: block;

  color: var(--pink-dark);

  font-style: italic;
}

.examples-hero p {
  max-width: 600px;

  margin: auto;

  color: var(--muted);

  font-size: 15px;

  line-height: 1.8;
}

.hero-decoration {
  position: absolute;

  color: var(--pink-dark);

  opacity: 0.35;

  font-family: "Cormorant Garamond", serif;

  pointer-events: none;
}

.hero-heart {
  left: 9%;
  top: 32%;

  font-size: 100px;

  transform: rotate(-15deg);
}

.hero-star {
  right: 10%;
  top: 25%;

  font-size: 55px;

  transform: rotate(15deg);
}

/* =========================
   TEMPLATES SECTION
========================= */

.templates-section {
  padding: 120px 7% 150px;

  background: #f6f0ec;
}

.templates-header {
  max-width: 1200px;

  margin: 0 auto 55px;

  display: flex;

  align-items: end;

  justify-content: space-between;

  gap: 60px;
}

.section-label {
  font-size: 10px;

  text-transform: uppercase;

  letter-spacing: 3px;

  color: var(--pink-dark);

  margin-bottom: 18px;
}

.templates-header h2 {
  font-family: "Cormorant Garamond", serif;

  font-size: clamp(52px, 5vw, 75px);

  line-height: 0.88;

  font-weight: 500;
}

.templates-header h2 em {
  color: var(--pink-dark);

  font-style: italic;
}

.templates-header > p {
  max-width: 390px;

  color: var(--muted);

  font-size: 13px;

  line-height: 1.8;
}

/* =========================
   FILTERS
========================= */

.filters {
  max-width: 1200px;

  margin: 0 auto 45px;

  display: flex;

  flex-wrap: wrap;

  gap: 10px;
}

.filter-button {
  border: 1px solid rgba(41, 35, 33, 0.13);

  background: transparent;

  padding: 11px 20px;

  border-radius: 100px;

  color: #716a66;

  font-size: 11px;

  cursor: pointer;

  transition: all 0.3s ease;
}

.filter-button:hover {
  border-color: var(--pink-dark);

  color: var(--rose);
}

.filter-button.active {
  background: var(--text);

  color: white;

  border-color: var(--text);
}

/* =========================
   GRID
========================= */

.template-grid {
  max-width: 1200px;

  margin: auto;

  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 65px 30px;
}

/* =========================
   TEMPLATE CARD
========================= */

.template-card {
  position: relative;

  transition: transform 0.4s ease;
}

.template-card.hidden {
  display: none;
}

.template-card:hover {
  transform: translateY(-5px);
}

.template-image {
  display: block;

  position: relative;

  aspect-ratio: 4 / 5;

  overflow: hidden;

  background: #e9dfda;
}

.template-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  display: block;

  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.template-card:hover .template-image img {
  transform: scale(1.05);
}

/* =========================
   IMAGE OVERLAY
========================= */

.image-overlay {
  position: absolute;

  inset: 0;

  display: flex;

  align-items: center;

  justify-content: center;

  flex-direction: column;

  gap: 10px;

  background: rgba(40, 32, 29, 0.32);

  color: white;

  opacity: 0;

  transition: opacity 0.4s ease;
}

.template-card:hover .image-overlay {
  opacity: 1;
}

.image-overlay span {
  font-family: "Cormorant Garamond", serif;

  font-size: 26px;

  font-weight: 500;
}

.image-overlay strong {
  width: 42px;
  height: 42px;

  display: flex;

  align-items: center;

  justify-content: center;

  border: 1px solid rgba(255, 255, 255, 0.7);

  border-radius: 50%;

  font-size: 16px;

  font-weight: 400;
}

/* =========================
   TEMPLATE INFO
========================= */

.template-info {
  padding: 22px 5px 0;
}

.template-meta {
  display: flex;

  align-items: center;

  justify-content: space-between;

  margin-bottom: 8px;

  font-size: 9px;

  text-transform: uppercase;

  letter-spacing: 1.5px;

  color: var(--pink-dark);
}

.template-meta strong {
  font-size: 11px;

  color: var(--text);
}

.template-info h3 {
  font-family: "Cormorant Garamond", serif;

  font-size: 34px;

  font-weight: 600;

  line-height: 1;

  margin-bottom: 10px;
}

.template-info p {
  max-width: 500px;

  color: var(--muted);

  font-size: 12px;

  line-height: 1.7;

  margin-bottom: 15px;
}

/* =========================
   TAGS
========================= */

.template-tags {
  display: flex;

  flex-wrap: wrap;

  gap: 7px;
}

.template-tags span {
  padding: 5px 10px;

  background: #ede3df;

  color: #756c68;

  font-size: 8px;

  text-transform: uppercase;

  letter-spacing: 1px;
}

/* =========================
   FEATURED
========================= */

.featured-card::before {
  content: "";

  position: absolute;

  top: -8px;
  right: -8px;

  width: 100%;
  height: 100%;

  border: 1px solid rgba(185, 111, 121, 0.25);

  pointer-events: none;

  z-index: 0;
}

.featured-label {
  position: absolute;

  top: 14px;
  left: 14px;

  z-index: 5;

  padding: 7px 12px;

  background: rgba(255, 255, 255, 0.92);

  color: var(--rose);

  font-size: 8px;

  text-transform: uppercase;

  letter-spacing: 1.5px;
}

.premium-card .template-image {
  box-shadow: 0 20px 60px rgba(50, 30, 25, 0.13);
}

/* =========================
   EMPTY
========================= */

.empty-state {
  display: none;

  max-width: 500px;

  margin: 80px auto 0;

  text-align: center;
}

.empty-state.active {
  display: block;
}

.empty-state > div {
  font-family: "Cormorant Garamond", serif;

  font-size: 60px;

  color: var(--pink-dark);

  margin-bottom: 15px;
}

.empty-state h3 {
  font-family: "Cormorant Garamond", serif;

  font-size: 32px;

  margin-bottom: 10px;
}

.empty-state p {
  color: var(--muted);

  font-size: 12px;
}

/* =========================
   CTA
========================= */

.examples-cta {
  position: relative;

  padding: 150px 7%;

  background: #282321;

  color: white;

  text-align: center;

  overflow: hidden;
}

.examples-cta::before {
  content: "";

  position: absolute;

  width: 600px;
  height: 600px;

  border: 1px solid rgba(216, 154, 161, 0.16);

  border-radius: 50%;

  left: 50%;
  top: 50%;

  transform: translate(-50%, -50%);
}

.cta-content {
  position: relative;

  z-index: 2;
}

.cta-flower {
  font-size: 25px;

  color: #dfaab0;

  margin-bottom: 30px;
}

.examples-cta .section-label {
  color: #dfaab0;
}

.examples-cta h2 {
  font-family: "Cormorant Garamond", serif;

  font-size: clamp(55px, 6vw, 85px);

  line-height: 0.85;

  font-weight: 500;

  margin-bottom: 25px;
}

.examples-cta h2 em {
  color: #dfaab0;

  font-style: italic;
}

.examples-cta p {
  max-width: 520px;

  margin: 0 auto 35px;

  color: #aaa19d;

  font-size: 13px;

  line-height: 1.8;
}

.cta-button {
  display: inline-flex;

  align-items: center;

  gap: 15px;

  padding: 15px 25px;

  border-radius: 100px;

  background: #f5dfe1;

  color: var(--rose);

  font-size: 12px;

  transition: all 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-3px);

  background: white;
}

.cta-button span {
  transition: transform 0.3s ease;
}

.cta-button:hover span {
  transform: translateX(4px);
}

/* =========================
   FOOTER
========================= */

.footer {
  background: #24201e;

  color: white;

  padding: 80px 7% 25px;
}

.footer-main {
  max-width: 1200px;

  margin: auto;

  display: grid;

  grid-template-columns: 2fr 1fr 1fr 1.2fr;

  gap: 60px;

  padding-bottom: 70px;
}

.footer-logo {
  display: inline-block;

  color: white;

  font-size: 38px;

  margin-bottom: 20px;
}

.footer-brand p {
  max-width: 370px;

  color: #aaa19d;

  font-size: 13px;

  line-height: 1.8;

  margin-bottom: 25px;
}

.footer-cta {
  color: #e3b1b6;

  font-size: 13px;
}

.footer-column {
  display: flex;

  flex-direction: column;

  gap: 13px;
}

.footer-column h4 {
  font-family: "Cormorant Garamond", serif;

  font-size: 21px;

  font-weight: 500;

  margin-bottom: 8px;
}

.footer-column a {
  color: #aaa19d;

  font-size: 12px;

  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: white;
}

.footer-bottom {
  max-width: 1200px;

  margin: auto;

  padding-top: 25px;

  border-top: 1px solid rgba(255, 255, 255, 0.1);

  display: flex;

  justify-content: space-between;

  color: #77716e;

  font-size: 10px;
}

/* =========================
   REVEAL
========================= */

.reveal {
  opacity: 0;

  transform: translateY(35px);

  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;

  transform: translateY(0);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 950px) {
  .nav-links {
    gap: 20px;
  }

  .templates-header {
    align-items: start;

    flex-direction: column;

    gap: 25px;
  }

  .template-grid {
    gap: 50px 20px;
  }

  .footer-main {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .footer-brand {
    grid-column: span 3;
  }
}

@media (max-width: 750px) {
  .nav-links,
  .nav-button {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .examples-hero {
    min-height: 60vh;
  }

  .examples-hero h1 {
    font-size: 65px;
  }

  .hero-decoration {
    display: none;
  }

  .template-grid {
    grid-template-columns: 1fr;

    max-width: 650px;
  }

  .template-image {
    aspect-ratio: 4 / 5;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: span 2;
  }

  .footer-bottom {
    flex-direction: column;

    gap: 10px;

    text-align: center;
  }
}

@media (max-width: 550px) {
  .navbar {
    padding: 0 5%;
  }

  .examples-hero {
    padding: 130px 5% 80px;
  }

  .examples-hero h1 {
    font-size: 55px;

    letter-spacing: -2px;
  }

  .examples-hero p {
    font-size: 13px;
  }

  .templates-section {
    padding: 90px 5% 110px;
  }

  .templates-header h2 {
    font-size: 55px;
  }

  .filters {
    gap: 7px;
  }

  .filter-button {
    padding: 9px 14px;

    font-size: 10px;
  }

  .template-info h3 {
    font-size: 30px;
  }

  .examples-cta {
    padding: 110px 5%;
  }

  .footer {
    padding: 70px 5% 25px;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }
}
