/* ===========================
   Alpaka Yoga — Stylesheet
   =========================== */

/* --- Custom Properties --- */
:root {
  --teal: #2D5F5D;
  --teal-light: #3A7A77;
  --teal-dark: #1E4240;
  --burgundy: #6B2D3E;
  --burgundy-light: #8A3D52;
  --mauve: #7A4F6B;
  --cream: #FAF8F6;
  --white: #FFFFFF;
  --gray-50: #F7F5F3;
  --gray-100: #EDE9E5;
  --gray-200: #D9D3CC;
  --gray-400: #A89F96;
  --gray-600: #6B6259;
  --gray-800: #3D3630;
  --gray-900: #2A2420;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --shadow-sm: 0 1px 3px rgba(45, 95, 93, 0.08);
  --shadow-md: 0 4px 16px rgba(45, 95, 93, 0.10);
  --shadow-lg: 0 8px 32px rgba(45, 95, 93, 0.12);
  --shadow-card: 0 2px 12px rgba(45, 95, 93, 0.07);

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

  --header-height: 72px;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--gray-800);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--teal-light);
}

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

ul {
  list-style: none;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

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

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  color: var(--burgundy);
  margin-bottom: 12px;
  text-align: center;
}

.section__subtitle {
  font-size: 1.1rem;
  color: var(--gray-600);
  text-align: center;
  max-width: 540px;
  margin: 0 auto 56px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  white-space: nowrap;
}

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

.btn--primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn--outline:hover {
  background: var(--white);
  color: var(--teal);
}

.btn--sm {
  padding: 10px 22px;
  font-size: 0.875rem;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(250, 248, 246, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  border-bottom: 1px solid rgba(45, 95, 93, 0.08);
  transition: box-shadow 0.3s;
}

.header--scrolled {
  box-shadow: var(--shadow-sm);
}

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

.header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header__logo-img {
  height: 52px;
  width: auto;
}

.nav__list {
  display: flex;
  gap: 32px;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-800);
  position: relative;
  padding: 4px 0;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
  transition: width 0.25s ease;
}

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

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

.header__cta {
  background: var(--teal);
  color: var(--white) !important;
  border-color: var(--teal);
}

.header__cta:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: var(--white);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-800);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: center 30%;
  will-change: transform;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 66, 64, 0.25);
}

.hero__content {
  position: relative;
  text-align: center;
  color: var(--white);
  padding: 140px 24px 100px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.hero__subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  opacity: 0.9;
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Cards --- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.card--featured {
  border: 2px solid var(--teal);
}

.card__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--teal);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 1;
}

.card__image {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.4s ease;
}

.card:hover .card__image img {
  transform: scale(1.05);
}

.card__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--burgundy);
  margin: 0 32px 12px;
  padding-top: 24px;
}

.card__desc {
  color: var(--gray-600);
  font-size: 0.95rem;
  margin: 0 32px 20px;
  flex-grow: 1;
}

.card__details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 32px 24px;
}

.card__details li {
  font-size: 0.8rem;
  color: var(--gray-600);
  background: var(--gray-50);
  padding: 4px 12px;
  border-radius: 50px;
}

.card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 32px;
  padding: 20px 0 32px;
  border-top: 1px solid var(--gray-100);
}

.card__price {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--teal);
}

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

.about__text p {
  margin-bottom: 16px;
  color: var(--gray-600);
}

.about__text p:last-child {
  margin-bottom: 0;
}

.about__text .section__title {
  text-align: left;
  margin-bottom: 24px;
}

.about__photo {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-md);
}

/* --- Carousel (Alpakaerne) --- */
.alpakaerne .section__subtitle {
  max-width: 680px;
  margin-bottom: 48px;
}

.carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
}

.carousel__track-container {
  overflow: hidden;
  border-radius: var(--radius-lg);
  flex: 1;
}

.carousel__track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.carousel__slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--cream);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.carousel__image {
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.carousel__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel__info {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.carousel__name {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--burgundy);
  margin-bottom: 8px;
}

.carousel__named-after {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--mauve);
  margin-bottom: 20px;
}

.carousel__info > p:last-child {
  color: var(--gray-600);
  line-height: 1.75;
  font-size: 0.95rem;
}

.carousel__btn {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--gray-200);
  background: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  color: var(--gray-600);
  z-index: 2;
}

.carousel__btn:hover {
  border-color: var(--teal);
  color: var(--teal);
  box-shadow: var(--shadow-sm);
}

.carousel__btn svg {
  width: 20px;
  height: 20px;
}

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-200);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s;
}

.carousel__dot.active {
  background: var(--teal);
  transform: scale(1.2);
}

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

  .carousel__image {
    aspect-ratio: 4 / 3;
  }

  .carousel__info {
    padding: 28px 24px 32px;
  }

  .carousel__name {
    font-size: 1.5rem;
  }

  .carousel__btn {
    display: none;
  }

  .carousel__track-container {
    /* Enable touch/swipe scrolling on mobile */
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .carousel__track-container::-webkit-scrollbar {
    display: none;
  }

  .carousel__track {
    transition: none;
  }

  .carousel__slide {
    scroll-snap-align: start;
  }
}

/* --- Gallery --- */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery__item {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3 / 4;
}

.gallery__item--wide {
  grid-column: span 2;
  aspect-ratio: 3 / 2;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transition: transform 0.4s ease;
}

.gallery__item:hover img {
  transform: scale(1.06);
}

/* --- FAQ / Accordion --- */
.accordion {
  max-width: 720px;
  margin: 0 auto;
}

.accordion__item {
  border-bottom: 1px solid var(--gray-100);
}

.accordion__item:last-child {
  border-bottom: none;
}

.accordion__header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--gray-800);
  text-align: left;
  transition: color 0.2s;
}

.accordion__header:hover {
  color: var(--teal);
}

.accordion__chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--gray-400);
  transition: transform 0.3s ease;
}

.accordion__item.active .accordion__chevron {
  transform: rotate(180deg);
  color: var(--teal);
}

.accordion__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.accordion__item.active .accordion__body {
  max-height: 500px;
}

.accordion__body p {
  padding: 0 0 20px;
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- Contact --- */
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 48px;
}

.contact__item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.contact__icon {
  width: 24px;
  height: 24px;
  color: var(--teal);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact__item strong {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-400);
  margin-bottom: 4px;
}

.contact__item p {
  color: var(--gray-800);
  font-size: 0.95rem;
}

.contact__item a {
  color: var(--teal);
}

.contact__item a:hover {
  color: var(--teal-light);
}

/* --- Footer --- */
.footer {
  background: var(--gray-900);
  color: var(--gray-200);
  padding: 64px 0 32px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}

.footer__logo {
  height: 60px;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.footer__brand p {
  font-size: 0.9rem;
  opacity: 0.7;
  line-height: 1.6;
}

.footer__links h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  margin-bottom: 16px;
}

.footer__links li {
  margin-bottom: 10px;
}

.footer__links a {
  color: var(--gray-200);
  font-size: 0.9rem;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.footer__links a:hover {
  opacity: 1;
  color: var(--white);
}

.footer__copy {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.5;
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 1024px) {
  .cards {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

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

  .gallery__item--wide {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .section {
    padding: 64px 0;
  }

  /* Mobile nav */
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    padding: 100px 32px 40px;
    transition: right 0.35s ease;
    box-shadow: var(--shadow-lg);
    z-index: 999;
  }

  .nav.open {
    right: 0;
  }

  .nav__list {
    flex-direction: column;
    gap: 0;
  }

  .nav__link {
    display: block;
    padding: 14px 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--gray-100);
  }

  .nav__link::after {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .header__cta {
    display: none;
  }

  /* About */
  .about__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about__text .section__title {
    text-align: center;
  }

  .about__image {
    order: -1;
  }

  /* Contact */
  .contact__inner {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .footer__logo {
    margin: 0 auto 16px;
  }
}

@media (max-width: 480px) {
  .hero__content {
    padding: 120px 16px 80px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }

  .card {
    padding: 32px 24px 24px;
  }
}

/* --- Overlay for mobile menu --- */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 998;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* --- Animations --- */
@media (prefers-reduced-motion: no-preference) {
  .card,
  .accordion__item,
  .about__inner > *,
  .gallery__item {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
  }

  .card.visible,
  .accordion__item.visible,
  .about__inner > .visible,
  .gallery__item.visible {
    opacity: 1;
    transform: translateY(0);
  }
}
