@font-face {
  font-family: "Boston Angel Regular";
  src: url("../assets/Boston Angel Regular/Boston Angel Regular.ttf")
    format("truetype");
  font-weight: 100;
  font-style: normal;
}

:root {
  /* Colors */
  --color-primary: #ab4050;
  --color-primary-light: #dda097;
  --color-secondary: #fff9f1;
  --color-text: #ab4050;
  --color-text-light: #dda097;
  --color-background: #fff9f1;
  --color-white: #ffffff;

  /* Typography */
  --font-heading: "Boston Angel Regular", serif;
  --font-body: "Inter", sans-serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  /* Container */
  --container-max-width: 1200px;
  --container-padding: 1.5rem;
}

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

/* Base styles */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  touch-action: manipulation;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-background);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-tap-highlight-color: transparent;
}

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

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: var(--spacing-md);
  color: var(--color-text);
  font-weight: 100;
}

/* Header */
.header {
  padding: var(--spacing-sm) 0;
  background-color: var(--color-white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  filter: drop-shadow(0px 0px 2px #0004);
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: right;
}

.logo {
  display: block;
}

.logo img {
  display: block;
  height: auto;
}

.nav__list {
  display: flex;
  gap: var(--spacing-md);
  list-style: none;
}

.nav__link {
  font-weight: 500;
  transition: color 0.3s ease;
}

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

/* Hero section */
.hero {
  padding: var(--spacing-xl) 0;
  background-image: url("../assets/header-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

@supports (background-image: url("../assets/header-bg.webp")) {
  .hero {
    background-image: url("../assets/header-bg.webp");
  }
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(
    221,
    160,
    151,
    0.85
  ); /* Using our light yellow color with 85% opacity */
  z-index: 0;
}

.hero__container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
}

.hero__title {
  text-shadow: #fff4da 0px 0px 10px;
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: var(--spacing-sm);
  color: var(--color-text);
  font-weight: 100;
}

.hero__text {
  font-size: 1.25rem;
  color: var(--color-text-light);
  margin-bottom: var(--spacing-md);
}

.button {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--color-primary);
  color: var(--color-white);
  border-radius: 9999px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.button:hover {
  background-color: var(--color-primary-light);
}

/* Products section */
.products {
  padding: var(--spacing-xl) 0;
  background-color: var(--color-white);
}

.products__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
}

.product-card {
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.product-card__image {
  aspect-ratio: 1;
  object-fit: cover;
}

.product-card__title {
  padding: var(--spacing-sm);
  font-size: 1.25rem;
  text-align: center;
}

/* Feature section */
.feature {
  background: #fff4da;
  padding: var(--spacing-xl) 0;
  position: relative;
}

.feature .container {
  position: relative;
  z-index: 2;
}

.feature__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
}

.feature__text {
  font-size: 1.25rem;
  color: var(--color-text-light);
}

/* Footer */
.footer {
  padding: var(--spacing-lg) 0;
  background-color: var(--color-secondary);
}

.footer__container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer__nav {
  display: flex;
  gap: var(--spacing-md);
}

/* Responsive design */
@media (max-width: 768px) {
  .hero__container,
  .feature__container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__image {
    order: -1;
  }

  .nav__list {
    gap: var(--spacing-sm);
  }

  .footer__container {
    flex-direction: column;
    gap: var(--spacing-md);
    text-align: center;
  }
}

@media (max-width: 480px) {
  :root {
    --container-padding: 1rem;
  }
}

/* Yellow overlay utility */
.yellow-overlay {
  position: relative;
}
.yellow-overlay::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff4da;
  opacity: 0.7;
  z-index: 0;
  border-radius: inherit;
}
.yellow-overlay > * {
  position: relative;
  z-index: 1;
}

.over-mij {
  margin: 3rem 1rem;
  justify-self: center;
  padding: 2.5rem 2rem;
  max-width: 700px;
  border-radius: 2rem;
}

.over-mij .section-title {
  color: #ab4050;
  font-weight: 100;
  margin-bottom: var(--spacing-md);
}

.over-mij p {
  font-size: 1.15rem;
  color: #ab4050;
  font-weight: 100;
  line-height: 1.7;
}

.fab {
  width: 80px;
  height: 80px;
  background: #ab4050;
  border-radius: 50%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  color: #fff4da;
  align-items: center;
  position: fixed;
  right: 40px;
  bottom: 40px;
  border: none;
  -webkit-font-smoothing: antialiased;
  gap: 4px;
  cursor: pointer;
  z-index: 1000;
}
.fab svg {
  width: 80px;
  height: 80px;
  display: block;
}

.sweets-gallery-section {
  background: #fff4da;
  padding: var(--spacing-xl) 0;
}

.sweets-gallery {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-bottom: 1rem;
}

.sweets-gallery-row {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  justify-content: space-evenly;
}

.sweets-img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 1.2rem;
  flex-shrink: 0;
  background: #fff9f1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s;
}
.sweets-img:hover {
  transform: scale(1.04);
}

@media (max-width: 900px) {
  .sweets-img {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 600px) {
  .sweets-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 1fr;
    gap: 0.5rem;
    overflow-x: unset;
    padding-bottom: 0;
  }
  .sweets-gallery-row {
    display: contents;
  }
  .sweets-img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 0.8rem;
  }
}

/* Modal styles */
.sweets-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  align-items: center;
  justify-content: center;
}
.sweets-modal.active {
  display: flex;
}
.sweets-modal-content {
  position: relative;
  background: none;
  border-radius: 1.2rem;
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sweets-modal-content img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 1.2rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}
.sweets-modal-close {
  position: absolute;
  top: -24px;
  right: -24px;
  background: #ab4050;
  color: #fff4da;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

#organic1 {
  background-image: url("../assets/organic.png");
  background-position: bottom;
}

@supports (background-image: url("../assets/organic.webp")) {
  #organic1 {
    background-image: url("../assets/organic.webp");
  }
}

#organic2 {
  background-image: url("../assets/organic2.png");
  background-position: top;
}

@supports (background-image: url("../assets/organic2.webp")) {
  #organic2 {
    background-image: url("../assets/organic2.webp");
  }
}

#organic1,
#organic2 {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-repeat: no-repeat;
  z-index: 0;
  background-size: contain;
}

header > div > a {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 30px;
}

/* Add button hover effects */
button {
  transition: all 0.3s ease;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.button--outline {
  background: white;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  border-radius: 9999px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Prevent image dragging */
img {
  max-width: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-tap-highlight-color: transparent;
}

/* Prevent double tap zoom on mobile */
html {
  touch-action: manipulation;
}
