/* ===== Base Color Palette ===== */
:root {
  --color-white: #f5f0ec;
  --color-black: #111;
  --color-dark: #222;
  --color-grey: #bbb;
  --color-pink: #ffe4ec;

  /* ===== Semantic Colors ===== */
  --bg-main: var(--color-white);
  --text-main: var(--color-dark);
  --bg-hero: var(--color-black);
  --overlay-hero: #221702cc;
  --bg-modal: rgba(17,17,17,0.8);
  --bg-caption: rgba(255,255,255,0.8);
  --text-caption: var(--color-dark);
  --btn-bg: var(--color-white);
  --btn-hover: var(--color-pink);
  --btn-text: var(--color-black);
  --footer-bg: var(--color-black);
  --footer-text: var(--color-grey);
  --title-color: var(--color-white);
  --accent: var(--color-pink);

  /* ===== Typography ===== */
  --font-main: 'Segoe UI', 'Helvetica Neue', Arial, 'Liberation Sans', sans-serif;
  --font-title: 'Veneer', serif;
  --font-size-body: 1.15rem;
  --font-size-title-lg: 2.8rem;
  --font-size-title-md: 2.5rem;
  --font-size-title-sm: 2.2rem;
  --font-size-hero-desc: 1.5rem;
  --font-size-caption: 1rem;
  --font-size-footer: 0.85rem;

  /* ===== Layout & Spacing ===== */
  --border-radius-lg: 2rem;
  --border-radius-md: 1rem;
  --border-radius-sm: 0.75rem;
  --spacing-hero-padding: 3rem 2rem;
  --spacing-buy-btn: 1.2rem 2.5rem;
  --spacing-footer: 2rem 0 1rem 0;
  --spacing-img-caption: 1.2rem 1.5rem;

  /* ===== Shadows & Effects ===== */
  --shadow-hero: 0 8px 32px rgba(0,0,0,0.25);
  --shadow-img: 0 4px 24px rgba(0,0,0,0.18);
  --shadow-caption: 0 2px 12px rgba(0,0,0,0.10);

  /* ===== Image Block Settings ===== */
  --img-block-max-width: 50rem;
  --img-block-max-height: 50vh;
  --img-caption-max-width: 50rem;
  --img-caption-max-height: 30vh;
  --img-caption-bottom: 2.5rem;

  /* ===== Z-Index Layers ===== */
  --z-modal: 1000;
  --z-img-caption: 20;
  --z-img-block: 10;
  --z-hero-content: 1;
  --z-hero-img: 0;
}

/* ===== Font Face ===== */
@font-face {
  font-family: 'Veneer';
  src: url('fonts/Veneer.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* ===== Base Styles ===== */
html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  background: var(--bg-main);
  color: var(--text-main);
  scroll-behavior: smooth;
}

main {
  height: 100vh;
  width: 100vw;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  position: relative;
}

section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  scroll-snap-align: start;
  position: relative;
  padding: 0 1rem;
  box-sizing: border-box;
  overflow: hidden;
  /* Fade-in animation initial state */
  opacity: 0;
  transition: opacity 1.8s ease-out, transform 1.8s ease-out;
}

/* Fade-in animation active state */
section.fadein {
  opacity: 1;
}

/* ===== Utility Classes ===== */
.title-base {
  font-family: var(--font-title);
  font-weight: bold;
  letter-spacing: 0.04em;
}

.title-lg { 
  font-size: var(--font-size-title-lg); 
}

.title-md { 
  font-size: var(--font-size-title-md); 
}

.title-sm { 
  font-size: var(--font-size-title-sm); 
}

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

.bg-pattern-pink {
  background-image: 
    radial-gradient(circle at center center, #f6f74533, #f17dc433), 
    repeating-radial-gradient(circle at center center, #f6f74533, #f6f74533, 28px, transparent 56px, transparent 28px);
  background-blend-mode: multiply;
}

.bg-pattern-lines {
  background-size: 20px 20px;
  background-image: repeating-linear-gradient(to right, #e3a1dd22, #e3a1dd22 1px, #000000 1px, #000000);
}

/* ===== Hero Section ===== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-hero);
  overflow: hidden;
  /* Override fade-in for hero section - make it immediately visible */
  opacity: 1 !important;
}

.hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: var(--z-hero-img);
}

.hero-content {
  position: relative;
  text-align: center;
  z-index: var(--z-hero-content);
  background: var(--overlay-hero);
  border-radius: var(--border-radius-md);
  padding: var(--spacing-hero-padding);
  max-width: 32rem;
  margin: 0 auto;
  box-shadow: var(--shadow-hero);
}

.hero-title {
  color: var(--title-color);
  margin-bottom: 1rem;
}

.hero-desc {
  font-family: var(--font-title);
  font-size: var(--font-size-hero-desc);
  color: var(--title-color);
  opacity: 0.9;
}

/* ===== Fullwidth Section ===== */
.fullwidth-section {
  width: 100vw;
  height: 100vh;
  background: var(--bg-hero);
  display: flex;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
  padding: 0;
}

.fullwidth-img {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  display: block;
}

/* ===== Image Caption Container ===== */
.image-caption-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  max-width: var(--img-block-max-width);
  margin: 0 auto;
}

/* ===== Image Blocks ===== */
.img-block {
  width: 100%;
  max-height: var(--img-block-max-height);
  object-fit: cover;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-img);
  display: block;
  flex-shrink: 0;
}

.caption {
  text-align: center;
  max-width: var(--img-caption-max-width);
  color: var(--text-caption);
  padding: 0;
  background: none;
  border-radius: 0;
  box-shadow: none;
  font-size: var(--font-size-body);
  line-height: 1.6;
  margin: 0;
}

.caption p {
  margin: 0 0 1rem 0;
}

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

/* ===== Colored Sections ===== */
.section-pink {
  background: var(--accent);
  background-image:
    radial-gradient(circle at center center, #f6f74533, #f17dc433),
    repeating-radial-gradient(circle at center center, #f6f74533, #f6f74533, 28px, transparent 56px, transparent 28px);
  background-blend-mode: multiply;
}

.section-pink h2 {
  margin-bottom: 1.5rem;
}

.section-pink p {
  max-width: 36rem;
  font-size: var(--font-size-body);
  margin: 0 auto 1rem auto;
  line-height: 1.7;
}

.section-black {
  background-color: var(--color-black);
  position: relative;
  color: var(--color-white)
}

.section-black h2 {
  margin-bottom: 1.5rem;
}

/* ===== Gallery Section ===== */
.gallery-section {
  margin-bottom: 3rem;
}

.gallery-section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  width: 100%;
  max-width: 80rem;
  box-sizing: border-box;
}

.gallery-img {
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-img);
  object-fit: cover;
  width: 100%;
  aspect-ratio: 4/3;
  cursor: zoom-in;
  transition: transform 0.2s;
  display: block;
}

.gallery-img:hover {
  transform: scale(1.05);
}

/* ===== Modal ===== */
.modal {
  position: fixed;
  inset: 0;
  background: var(--bg-modal);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
}

.modal.active { 
  display: flex; 
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  color: var(--title-color);
  font-size: 2.5rem;
  font-weight: bold;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem 0.75rem;
  transition: color 0.2s;
}

.modal-close span {
  display: block;
  font-size: inherit;
  line-height: 1;
  text-align: center;
  pointer-events: none;
}

.modal-close:hover {
  color: var(--btn-hover);
}

.modal-img {
  max-width: 90vw;
  max-height: 85vh;
  box-shadow: var(--shadow-hero);
  display: block;
  border-radius: var(--border-radius-lg);
}

/* ===== Buy Button ===== */
.buy-btn {
  display: inline-block;
  margin-top: 0.5rem;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-weight: bold;
  padding: var(--spacing-buy-btn);
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-img);
  font-size: var(--font-size-body);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.buy-btn:hover {
  background: var(--btn-hover);
  color: var(--btn-text);
}

/* ===== Footer ===== */
.footer {
  width: 100%;
  text-align: center;
  color: var(--footer-text);
  font-size: var(--font-size-footer);
  padding: var(--spacing-footer);
  position: absolute;
  bottom: 0;
  left: 0;
}

/* ===== Media Queries ===== */
@media (max-width: 700px) {
  main {
    scroll-snap-type: none;
  }
  
  .image-caption-container {
    gap: 1rem;
  }
  
  .caption {
    padding: 1rem;
    font-size: 0.95rem;
  }
  
  .img-block {
    border-radius: var(--border-radius-md);
  }
}

@media (min-width: 768px) {
  .image-caption-container {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  
  .img-block {
    flex: none;
    max-width: var(--img-block-max-width);
  }
  
  .caption {
    flex: none;
    text-align: center;
    max-width: var(--img-caption-max-width);
  }
}

@media (min-width: 1024px) {
  .gallery {
    grid-template-columns: 1fr 1fr 1fr;
  }
  
  .gallery-img {
    aspect-ratio: 3/4;
  }
  
  .image-caption-container {
    gap: 3rem;
  }
  
  .caption {
    padding: 2rem;
    font-size: var(--font-size-body);
  }
}

/* ===== Footer Contact Link ===== */
.contact-link {
  color: var(--footer-text);
  cursor: pointer;
  font-size: var(--font-size-footer);
  transition: color 0.2s ease;
}

.contact-link:hover {
  color: var(--color-white);
}

.contact-link a {
  color: inherit;
  text-decoration: none;
  margin: 0 0.25rem;
}

.contact-link a:hover {
  text-decoration: underline;
}

.copyright {
    visibility: visible;
}
