/* Happilyo — Design System */
:root {
  --pink: #ffb5ec;
  --burgundy: #aa0430;
  --cream: #fff8d7;
  --gray: #ededed;
  --ink: #1a0a0f;
  --apple: #2d5a27;
  --apple-lime: #b8e05c;
  --fig: #5c0a2e;
  --white: #ffffff;
  --nav-h: 4.5rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "anona", sans-serif;
  --font-body: "Dacht", sans-serif;
  --font-script: "anona", sans-serif;
}

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

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--burgundy);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

.container-fluid-xl {
  width: min(1240px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* ——— Nav ——— */
.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease-out), backdrop-filter 0.4s;
}

.site-nav.is-scrolled {
  background: rgba(170, 4, 48, 0.88);
  backdrop-filter: blur(14px);
}

.site-nav .nav-inner {
  width: min(1240px, calc(100% - 2rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo img {
  height: 48px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0.85;
  transition: opacity 0.25s, color 0.25s;
  font-family: var(--font-display);
  font-weight: 600;
}

.nav-links a:hover,
.nav-links a.is-active {
  opacity: 1;
  color: var(--pink);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 181, 236, 0.4);
  color: var(--pink);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.4rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--pink);
}

@media (max-width: 992px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto;
    background: rgba(26, 10, 15, 0.96);
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 1.5rem 1.75rem;
    gap: 0;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s var(--ease-out), opacity 0.3s;
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255, 248, 215, 0.08);
    font-size: 0.9rem;
  }
}

/* ——— Buttons ——— */
.btn-happilyo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.35s var(--ease-out), background 0.25s, color 0.25s;
}

.btn-happilyo:hover {
  transform: translateY(-2px);
}

.btn-happilyo--pink {
  background: var(--pink);
  color: var(--burgundy);
}

.btn-happilyo--pink:hover {
  background: var(--cream);
}

.btn-happilyo--outline {
  background: transparent;
  color: var(--cream);
  border: 1.5px solid rgba(255, 248, 215, 0.45);
}

.btn-happilyo--outline:hover {
  background: var(--cream);
  color: var(--burgundy);
  border-color: var(--cream);
}

.btn-happilyo--dark {
  background: var(--burgundy);
  color: var(--cream);
}

.btn-happilyo--dark:hover {
  background: var(--ink);
}

/* ——— Typography helpers ——— */
.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 0.75rem;
}

.display-title {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.script-name {
  font-family: var(--font-script);
  font-weight: 700;
  line-height: 1;
}

.lead-copy {
  font-size: clamp(1rem, 1.4vw, 1rem);
  line-height: 1.65;
  opacity: 0.9;
  max-width: 36rem;
  font-weight: 500;
}

/* ——— Pattern bg ——— */
.pattern-bg {
  position: relative;
  overflow: hidden;
}

.pattern-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/logo-pattern2.svg");
  background-size: 130%;
  background-repeat: repeat;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
  background-position: center;
}

.pattern-bg > * {
  position: relative;
  z-index: 1;
}

/* ——— Marquee ——— */
.usp-marquee {
  background: var(--pink);
  color: var(--burgundy);
  overflow: hidden;
  padding: 0.85rem 0;
  border-block: 1px solid rgba(170, 4, 48, 0.12);
}

.usp-marquee__track {
  display: flex;
  width: max-content;
  gap: 0;
  will-change: transform;
}

.usp-marquee__group {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding-right: 2.5rem;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.8rem, 1.2vw, 0.95rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.usp-marquee__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--burgundy);
  opacity: 0.45;
  flex-shrink: 0;
}

/* ——— Sections ——— */
.section {
  padding: clamp(4.5rem, 10vw, 7.5rem) 0;
}

.section-head {
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.75rem);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 0.75rem;
}

/* ——— Product cards (interaction containers) ——— */
.product-tile {
  position: relative;
  border: none;
  background: transparent;
  padding: 0;
  text-align: center;
  cursor: pointer;
  display: block;
  color: inherit;
}

.product-tile__img {
  width: 100%;
  max-width: 280px;
  margin-inline: auto;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.35));
  transition: transform 0.5s var(--ease-out);
  will-change: transform;
}

.product-tile:hover .product-tile__img {
  transform: translateY(-10px) rotate(-2deg);
}

.product-tile__label {
  margin-top: 1rem;
  font-family: var(--font-script);
  font-size: clamp(2rem, 3vw, 1.75rem);
  color: var(--cream);
  font-weight: 700;
}

/* ——— Footer ——— */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 4.5rem 0 0;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/logo-pattern2.svg");
  background-size: 80%;
  opacity: 0.04;
  pointer-events: none;
  background-position: center;
}

.site-footer > .container-fluid-xl {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: clamp(2rem, 4vw, 3rem);
  padding-bottom: 3rem;
}

.footer-col__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pink);
  margin: 0 0 1.1rem;
}

.footer-brand img {
  height: 36px;
  margin-bottom: 1rem;
}

.footer-tagline {
  font-size: 0.95rem;
  line-height: 1.55;
  opacity: 0.7;
  max-width: 16rem;
  margin: 0 0 1.5rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-nav a {
  font-size: 0.9rem;
  opacity: 0.7;
  transition: opacity 0.2s, color 0.2s, transform 0.2s;
}

.footer-nav a:hover {
  opacity: 1;
  color: var(--pink);
  transform: translateX(3px);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.9rem;
  opacity: 0.75;
}

.footer-contact a {
  transition: color 0.2s;
}

.footer-contact a:hover {
  color: var(--pink);
}

.footer-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.footer-brands a {
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 181, 236, 0.3);
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--pink);
  transition: background 0.25s, color 0.25s;
}

.footer-brands a:hover {
  background: var(--pink);
  color: var(--burgundy);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.footer-social a {
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border: 1.5px solid rgba(255, 181, 236, 0.35);
  border-radius: 50%;
  color: var(--pink);
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
}

.footer-social a svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: currentColor;
}

.footer-social a:hover {
  background: var(--pink);
  color: var(--burgundy);
  border-color: var(--pink);
  transform: translateY(-2px);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(255, 248, 215, 0.1);
  padding: 1.35rem 0 1.75rem;
  font-size: 0.75rem;
  opacity: 0.5;
}

.footer-bottom__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.footer-bottom__links a:hover {
  color: var(--pink);
  opacity: 1;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ——— Yakında ——— */
.page-soon {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--burgundy);
  padding: 6rem 1.5rem 3rem;
}

.page-soon h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 8vw, 5rem);
  color: var(--pink);
  margin: 1rem 0 0.5rem;
}

.page-soon p {
  color: var(--cream);
  opacity: 0.8;
  margin-bottom: 2rem;
}

/* GSAP initial states */
[data-reveal] {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .usp-marquee__track {
    animation: none !important;
  }
}
