/* ============================================
   Anna's Collection — Stylesheet
   Mobile-first, responsive design
   ============================================ */

/* --- CSS Variables --- */
:root {
  --bg-main: #faf8f5;
  --bg-card: #ffffff;
  --text-primary: #2c2a26;
  --text-secondary: #6b665e;
  --accent-olive: #6b7a5c;
  --accent-olive-light: #e8ede4;
  --accent-olive-hover: #5a664d;
  --border-soft: #e5e0da;
  --shadow-subtle: 0 4px 24px rgba(44, 42, 38, 0.06);

  --font-heading: "Cormorant Garamond", Georgia, serif;
  --font-body:
    "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  --max-width: 1200px;
  --navbar-height: 64px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--navbar-height);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
  list-style: none;
}

blockquote {
  margin: 0;
}

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-olive);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  z-index: 10000;
  font-weight: 600;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 1rem;
}

/* --- Focus Visible --- */
:focus-visible {
  outline: 2px solid var(--accent-olive);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* --- Section Titles --- */
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.875rem, 5vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 1rem;
  text-align: center;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

/* ============================================
   Navbar
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--navbar-height);
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-soft);
  transition: box-shadow var(--transition-base);
}

.navbar--scrolled {
  box-shadow: var(--shadow-subtle);
}

.navbar__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.navbar__logo {
  width: 50px;
  height: 50px;

  & img {
    aspect-ratio: 4/4;
  }
}

.navbar__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.navbar__toggle-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition:
    transform var(--transition-base),
    opacity var(--transition-base);
}

.navbar__toggle[aria-expanded="true"] .navbar__toggle-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar__toggle[aria-expanded="true"] .navbar__toggle-line:nth-child(2) {
  opacity: 0;
}

.navbar__toggle[aria-expanded="true"] .navbar__toggle-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu (fullscreen overlay) */
.navbar__menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: var(--bg-main);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.05);
  transition:
    opacity 0.4s ease,
    visibility 0.4s ease,
    transform 0.4s ease;
  z-index: 999;
}

.navbar__menu--open {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

/* Close button */
.navbar__close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 2px solid var(--border-soft);
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 1001;
}

.navbar__close:hover,
.navbar__close:focus-visible {
  border-color: var(--accent-olive);
  background: var(--accent-olive-light);
}

.navbar__close-icon {
  width: 20px;
  height: 20px;
  position: relative;
}

.navbar__close-icon::before,
.navbar__close-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
}

.navbar__close-icon::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.navbar__close-icon::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.navbar__link {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-primary);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  transition:
    color var(--transition-fast),
    transform var(--transition-fast);
  opacity: 0;
  transform: translateY(20px);
}

.navbar__menu--open .navbar__link {
  opacity: 1;
  transform: translateY(0);
}

.navbar__menu--open .navbar__link:nth-child(1) {
  transition-delay: 0.1s;
}
.navbar__menu--open .navbar__link:nth-child(2) {
  transition-delay: 0.15s;
}
.navbar__menu--open .navbar__link:nth-child(3) {
  transition-delay: 0.2s;
}
.navbar__menu--open .navbar__link:nth-child(4) {
  transition-delay: 0.25s;
}

.navbar__link:hover,
.navbar__link:focus-visible {
  color: var(--accent-olive);
  transform: translateY(-2px);
}

@media (min-width: 768px) {
  .navbar__toggle {
    display: none;
  }

  .navbar__close {
    display: none;
  }

  .navbar__menu {
    position: static;
    flex-direction: row;
    gap: 0.25rem;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    width: auto;
    height: auto;
  }

  .navbar__link {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    opacity: 1;
    transform: none;
    transition: color var(--transition-fast);
  }

  .navbar__link:hover,
  .navbar__link:focus-visible {
    transform: none;
  }
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--navbar-height) + 2rem) 1.25rem 4rem;
  background: url("../assets/img/main-Photoroom.png") center/cover no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(250, 248, 245, 0.75);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 7vw, 4.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 300;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.5;
  animation: scrollHint 2s ease-in-out infinite;
}

.hero__scroll-arrow {
  display: block;
  width: 24px;
  height: 24px;
  border-right: 2px solid var(--accent-olive);
  border-bottom: 2px solid var(--accent-olive);
  transform: rotate(45deg);
}

@keyframes scrollHint {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__scroll-hint {
    animation: none;
  }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 500;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  text-align: center;
  line-height: 1.4;
}

.btn__icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.btn-primary {
  background: var(--accent-olive);
  color: #fff;
  padding: 0.875rem 2rem;
  font-size: 1rem;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--accent-olive-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(107, 122, 92, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: transparent;
  color: var(--accent-olive);
  border-color: var(--accent-olive);
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--accent-olive);
  color: #fff;
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}

/* ============================================
   About Section
   ============================================ */
.about {
  padding: 5rem 0;
  background: var(--bg-main);
}

.about__grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: center;
}

.about__image {
  width: 100%;
  max-width: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
}

.about__image img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.about__text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.about__features {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-top: 2rem;
}

.about__feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.about__feature-icon {
  font-size: 1.125rem;
  color: var(--accent-olive);
  flex-shrink: 0;
}

.about__feature-text {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
}

@media (min-width: 1024px) {
  .about {
    padding: 7rem 0;
  }

  .about__grid {
    flex-direction: row;
    gap: 4rem;
  }

  .about__image {
    flex: 0 0 380px;
    max-width: none;
  }

  .about__content {
    flex: 1;
  }
}

/* ============================================
   Products Section
   ============================================ */
.products {
  padding: 5rem 0;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-items: center;
  gap: 2rem;
}

.products__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.product-card {
  display: grid;
  grid-template-rows: 1fr minmax(300px, auto);
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base),
    border-color var(--transition-base);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-subtle);
  border-color: var(--accent-olive);
}

.product-card__image-wrapper {
  position: relative;
  aspect-ratio: 3 / 4;
}

.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

.product-card__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.product-card__description {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  flex-grow: 2;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.product-card__price {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--accent-olive);
}

@media (min-width: 768px) {
  .products {
    padding: 6rem 0;
  }

  .products__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .products {
    padding: 7rem 0;
  }

  .products__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

/* ============================================
   Reviews Section
   ============================================ */
.reviews {
  padding: 5rem 0;
  background: var(--bg-main);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.reviews__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

.review-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  background: var(--bg-card);
  transition: box-shadow var(--transition-base);
}

.review-card:hover {
  box-shadow: var(--shadow-subtle);
}

/* Alternating backgrounds */
.review-card:nth-child(odd) {
  background: var(--bg-card);
}

.review-card:nth-child(even) {
  background: var(--accent-olive-light);
}

.review-card__stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.star-icon {
  width: 18px;
  height: 18px;
  fill: #d4a843;
}

.review-card__text {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-primary);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.review-card__author {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.review-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-olive);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  flex-shrink: 0;

  img {
    border-radius: 50%;
  }
}

.review-card__name {
  display: block;
  font-style: normal;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
}

.review-card__date {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-top: 0.125rem;
}

@media (min-width: 768px) {
  .reviews {
    padding: 6rem 0;
  }

  .reviews__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .reviews {
    padding: 7rem 0;
  }

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

/* ============================================
   Delivery Banner
   ============================================ */
.delivery-banner {
  padding: 2rem 0;
  background: var(--accent-olive-light);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.delivery-banner__content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.delivery-banner__icon {
  width: 32px;
  height: 32px;
  fill: var(--accent-olive);
  flex-shrink: 0;
}

.delivery-banner__text {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--accent-olive);
  text-align: center;
  line-height: 1.5;
}

@media (max-width: 480px) {
  .delivery-banner__content {
    flex-direction: column;
    gap: 0.5rem;
  }

  .delivery-banner__text {
    font-size: 1rem;
  }
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
  padding: 5rem 0;
  background: var(--bg-card);
}

.contact__content {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.contact__text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.contact .btn {
  margin-top: 1.5rem;
}

.contact__social {
  margin-top: 1.5rem;
  padding: 1rem 1.5rem;
  background: var(--accent-olive-light);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
}

.contact__social-text {
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

.contact__social-link {
  color: var(--accent-olive);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

.contact__social-link:hover,
.contact__social-link:focus-visible {
  color: var(--accent-olive-hover);
}

@media (min-width: 768px) {
  .contact {
    padding: 6rem 0;
  }
}

@media (min-width: 1024px) {
  .contact {
    padding: 7rem 0;
  }
}

/* ============================================
   Footer
   ============================================ */
.footer {
  padding: 2.5rem 0;
  background: var(--bg-main);
  border-top: 1px solid var(--border-soft);
}

.footer__divider {
  width: 60px;
  height: 3px;
  background: var(--accent-olive);
  border-radius: 2px;
  margin: 0 auto 1.5rem;
}

.footer__content {
  text-align: center;
}

.footer__copyright {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.footer__privacy {
  font-size: 0.75rem;
  color: var(--text-secondary);
  opacity: 0.7;
}

/* ============================================
   Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .product-card:hover {
    transform: none;
  }

  .btn-primary:hover,
  .btn-primary:focus-visible {
    transform: none;
  }

  .review-card:hover {
    transform: none;
    box-shadow: none;
  }
}

/* ============================================
   Utility: Animation Classes (for GSAP)
   ============================================ */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
}

.fade-in {
  opacity: 0;
}

.scale-in {
  opacity: 0;
  transform: scale(0.95);
}

/* ============================================
   Enhanced Animation Support
   ============================================ */

/* Section title character spans (for GSAP text reveal) */
.section-title span {
  display: inline-block;
}

/* Product image parallax support */
.product-card__image-wrapper {
  overflow: hidden;
}

.product-card__image {
  will-change: transform;
  /* Make image slightly larger for parallax effect */
  min-height: 110%;
}

/* GPU acceleration for animated elements */
.product-card,
.review-card,
.hero__content {
  will-change: transform, opacity;
}

/* Override CSS transitions on hover when GSAP handles it */
@media (min-width: 0) {
  .product-card:hover {
    /* Let GSAP handle the transform */
    transition: border-color 0.3s ease;
  }
}
