/* ═════════════ ROOT ═════════════ */
:root {
  --primary: #ff7043;
  --primary-light: #ffc3a7;
  --bg: #fff;
  --text: #403e46;
  --card: #fff9f7;
  --bubble: #fff0ea;
  --radius: 16px;
  --shadow: 0 5px 18px rgba(0,0,0,.06);
  --max-width: 1200px;
  font-size: 16px;
  scroll-behavior: smooth;
}

/* ═════════════ RESET ═════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ═════════════ GLOBAL TYPO & LAYOUT ═════════════ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 2rem;
}
.page-title,
.section-title {
  font-family: 'Fredoka', cursive;
  color: var(--primary);
  text-align: center;
}
.page-title {
  font-size: 2.3rem;
  margin-bottom: 2.5rem;
}
.section-title {
  font-size: 1.8rem;
  margin: 3rem 0 1.5rem;
}
.btn {
  display: inline-block;
  padding: .9rem 1.9rem;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: .25s;
  margin: .6rem 0;
}
.btn:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}
.btn.big {
  display: block;
  width: max-content;
  margin: 2rem auto 3rem auto;
}
.btn.big.disabled {
  background: #eee;
  color: #aaa;
  pointer-events: none;
}
.accent {
  color: var(--primary);
}

/* ═════════════ NAVBAR ═════════════ */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  border-bottom: 2px dotted var(--primary-light);
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--bg);
}
.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
}
.brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: var(--shadow);
}
.logo-text {
  font-family: 'Fredoka', cursive;
  font-size: 1.6rem;
  color: var(--primary);
}
#nav-menu ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
#nav-menu a {
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
}
#nav-menu a.active,
#nav-menu a:hover {
  color: var(--primary);
}
#nav-toggle {
  display: none;
  font-size: 1.9rem;
  background: none;
  border: 0;
  color: var(--primary);
  cursor: pointer;
}

/* ═════════════ HERO (2-COLUMN) ═════════════ */
.hero-2col {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  padding: 4rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}
.hero-text {
  flex: 1 1 360px;
  text-align: left;
}
.hero-text h1 {
  font-family: 'Fredoka', cursive;
  font-size: 2.5rem;
  margin-bottom: .6rem;
}
.hero-image {
  flex: 1 1 360px;
  max-width: 500px;
}
.hero-image img {
  width: 100%;
  height: auto;
}

/* ═════════════ SKELETON LOADING ═════════════ */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.image-container {
  position: relative;
  overflow: hidden;
  border-radius: inherit;
}

.image-container img {
  transition: opacity 0.3s ease;
}

.image-container img.loading {
  opacity: 0;
}

.image-container img.loaded {
  opacity: 1;
}

.skeleton-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  transition: opacity 0.3s ease;
}

.skeleton-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

/* ═════════════ FEATURED CAROUSEL ═════════════ */
.carousel-wrapper {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 80px, black calc(100% - 80px), transparent);
  mask-image: linear-gradient(to right, transparent, black 80px, black calc(100% - 80px), transparent);
  margin: 0 40px;
}
.carousel-track {
  display: flex;
  gap: 2rem;
  animation: carouselMove 60s linear infinite;
  scroll-behavior: smooth;
}
.carousel-item {
  flex: 0 0 300px;
  max-width: 300px;
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
  transition: transform 0.3s ease, opacity 0.3s ease;
  cursor: default;
}

/* fade edges are now handled by mask-image on .carousel-wrapper */
@keyframes carouselMove {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Add styles for carousel navigation */
.carousel-nav {
  display: none; /* Hide on desktop by default */
  justify-content: space-between;
  width: 100%;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 10;
}

.carousel-arrow {
  color: var(--primary);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  font-size: 2rem;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.carousel-arrow.prev {
  margin-left: 5px;
}

.carousel-arrow.next {
  margin-right: 5px;
}

/* ═════════════ GALLERY GRID ═════════════ */
.gallery.grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.art-card {
  aspect-ratio: 4 / 5;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  transition: transform .25s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.art-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
  cursor: default;
  transition: opacity 0.3s ease;
}

.art-card figcaption {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: .5rem 1rem;
  font-size: .95rem;
  color: #fff;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
}
.art-card:hover {
  transform: translateY(-4px);
}

/* ═════════════ PRICE CARDS ═════════════ */
.price-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: flex-start;
  margin-bottom: 2rem;
}
.price-card {
  flex: 0 1 300px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.price-card .plan-img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
}
.price-card h3 {
  font-family: 'Fredoka', cursive;
  font-size: 1.3rem;
  margin: 0;
  color: var(--primary);
}
.price {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}
.price-card ul {
  list-style: none;
  padding-left: 0;
  font-size: .95rem;
}
.price-card li {
  margin-bottom: .5rem;
}
.price-card .opt {
  opacity: .8;
  font-style: italic;
}

/* ═════════════ EXTRAS LIST ═════════════ */
.extras-list {
  max-width: var(--max-width);
  margin: 2rem auto;
  text-align: center;
}
.extras-list ul {
  list-style: none;
  padding-left: 0;
  font-size: .95rem;
}
.extras-list li {
  margin-bottom: .5rem;
  opacity: .8;
  font-style: italic;
}

/* ═════════════ CONTENT GUIDELINES ═════════════ */
.guideline-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 2rem;
}
.guideline-card {
  flex: 0 1 300px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem;
}
.guideline-card h3 {
  font-family: 'Fredoka', cursive;
  font-size: 1.3rem;
  margin-bottom: .6rem;
}
.guideline-card.allowed {
  border: 2px solid #a8e6cf;
}
.guideline-card.prohibited {
  border: 2px solid #ff8b94;
}
.guideline-card ul {
  list-style: none;
  padding-left: 0;
}
.guideline-card li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: .6rem;
}
.guideline-card.allowed li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #2e7d32;
}
.guideline-card.prohibited li::before {
  content: "✖";
  position: absolute;
  left: 0;
  color: #c62828;
}

/* ═════════════ TERMS OF SERVICE ═════════════ */
.tos-heading {
  font-family: 'Fredoka', cursive;
  font-size: 1.5rem;
  text-align: center;
  margin: 3rem 0 1.5rem;
  color: var(--primary);
}
.tos-blocks {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.tos-card {
  flex: 0 0 300px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem;
}
.tos-card h3 {
  font-family: 'Fredoka', cursive;
  font-size: 1.15rem;
  margin-bottom: .4rem;
  color: var(--primary);
}
.tos-card p {
  font-size: .95rem;
}

/* ═════════════ FOOTER ═════════════ */
.footer {
  background: var(--bubble);
  margin-top: 4rem;
  padding: 3rem 2rem 2rem;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

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

.footer-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  transition: all 0.25s ease;
}

.footer-links a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,.1);
  background: var(--primary-light);
}

.footer-links svg {
  width: 20px;
  height: 20px;
  fill: var(--primary);
  transition: fill 0.25s ease;
}

.footer-links img {
  width: 20px;
  height: 20px;
}

.footer p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.7;
  text-align: center;
}

/* ═════════════ RESPONSIVE ═════════════ */
@media (max-width: 900px) {
  .price-cards,
  .guideline-cards {
    gap: 1.5rem;
  }
}
@media (max-width: 800px) {
  #nav-toggle {
    display: block;
  }
  #nav-menu {
    display: none;
    width: 100%;
  }
  #nav-menu.open {
    display: block;
    margin-top: 1rem;
  }
  #nav-menu ul {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
@media (max-width: 600px) {
  .footer-links {
    flex-direction: column;
    width: 100%;
  }
  
  .footer-links a {
    width: 100%;
    justify-content: center;
  }
  
  /* Show carousel arrows only on mobile */
  .carousel-nav {
    display: flex;
  }
  
  /* Remove animation and add scroll behavior on mobile */
  .carousel-track {
    animation: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0 10px;
  }
  
  .carousel-item {
    scroll-snap-align: center;
    flex: 0 0 85%;
    max-width: 85%;
    /* Maintain aspect ratio */
    aspect-ratio: 4 / 5;
  }
  
  .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  /* Reduce mask/fade effect on mobile for better visibility */
  .carousel-wrapper {
    -webkit-mask-image: linear-gradient(to right, transparent, black 40px, black calc(100% - 40px), transparent);
    mask-image: linear-gradient(to right, transparent, black 40px, black calc(100% - 40px), transparent);
    margin: 0 20px;
  }
  
  /* Ensure consistent aspect ratio for portfolio gallery items on mobile */
  .gallery.grid {
    gap: 1.5rem;
  }
  
  .art-card {
    width: 100%;
    aspect-ratio: 4 / 5;
  }
  
  .art-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  /* Price card images need consistent aspect ratio too */
  .price-card .plan-img {
    aspect-ratio: 4 / 5;
    width: 100%;
    object-fit: cover;
  }
}