/* ============================================
   Nepheli Cupcake Art — Shared Stylesheet
   Colors: Soft purple #9370db, Pink #e895b3,
           Light lavender #f8f0ff
   Fonts: Satisfy (display), Catamaran (body)
   ============================================ */

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

:root {
  --purple: #9370db;
  --purple-dark: #7b5fbf;
  --pink: #e895b3;
  --pink-light: #f2bdd0;
  --lavender: #f8f0ff;
  --white: #ffffff;
  --dark: #2d2235;
  --gray: #6b6275;
  --gray-light: #e8e0f0;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(147, 112, 219, 0.15);
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Catamaran', sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a {
  color: var(--purple);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--pink);
}

h1, h2, h3, h4 {
  font-family: 'Satisfy', cursive;
  color: var(--purple);
  line-height: 1.3;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.6rem; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section--lavender {
  background: var(--lavender);
}

.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 30px;
  font-family: 'Catamaran', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-align: center;
}

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

.btn--primary:hover {
  background: var(--purple-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn--outline {
  background: transparent;
  color: var(--purple);
  border: 2px solid var(--purple);
}

.btn--outline:hover {
  background: var(--purple);
  color: var(--white);
  transform: translateY(-2px);
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  transition: box-shadow var(--transition);
  padding: 0 20px;
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(147, 112, 219, 0.15);
}

.navbar__inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.navbar__brand {
  font-family: 'Satisfy', cursive;
  font-size: 1.6rem;
  color: var(--purple);
  white-space: nowrap;
}

.navbar__brand:hover {
  color: var(--pink);
}

.navbar__links {
  display: flex;
  list-style: none;
  gap: 8px;
}

.navbar__links a {
  display: block;
  padding: 8px 16px;
  border-radius: 8px;
  color: var(--dark);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
}

.navbar__links a:hover,
.navbar__links a.active {
  color: var(--purple);
  background: var(--lavender);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--purple);
  border-radius: 3px;
  transition: all var(--transition);
}

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

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

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

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  padding: 100px 0 10px;
  font-size: 0.85rem;
  color: var(--gray);
}

.breadcrumbs a {
  color: var(--gray);
}

.breadcrumbs a:hover {
  color: var(--purple);
}

.breadcrumbs span {
  margin: 0 6px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--lavender) 0%, var(--white) 60%, var(--pink-light) 100%);
  text-align: center;
}

.hero h1 {
  font-size: 3.4rem;
  margin-bottom: 16px;
}

.hero p {
  font-size: 1.15rem;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto 32px;
}

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

/* ---------- Section Titles ---------- */
.section__title {
  text-align: center;
  margin-bottom: 12px;
}

.section__subtitle {
  text-align: center;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto 48px;
}

/* ---------- Card Grid ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 30px rgba(147, 112, 219, 0.22);
}

.card__image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--gray-light);
}

.card__image-placeholder {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, var(--lavender), var(--pink-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple);
  font-family: 'Satisfy', cursive;
  font-size: 1.3rem;
}

.card__body {
  padding: 24px;
}

.card__body h3 {
  margin-bottom: 8px;
}

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

.card__price {
  display: inline-block;
  margin-top: 12px;
  font-weight: 700;
  color: var(--pink);
  font-size: 1.1rem;
}

/* ---------- Gallery Grid ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.gallery-grid__item {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.gallery-grid__item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform var(--transition);
}

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

.gallery-placeholder {
  width: 100%;
  height: 260px;
  background: linear-gradient(135deg, var(--lavender), var(--pink-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple);
  font-family: 'Satisfy', cursive;
  font-size: 1.2rem;
}

/* ---------- Lightbox ---------- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.88);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox.active {
  display: flex;
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 2.4rem;
  color: var(--white);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
}

/* ---------- About / Story ---------- */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-split__text h2 {
  margin-bottom: 16px;
}

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

.about-split__image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-split__image-placeholder {
  width: 100%;
  height: 380px;
  background: linear-gradient(135deg, var(--lavender), var(--pink-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple);
  font-family: 'Satisfy', cursive;
  font-size: 1.5rem;
}

/* ---------- Features / Highlights ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 30px;
}

.feature {
  text-align: center;
  padding: 32px 20px;
}

.feature__icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.feature h3 {
  margin-bottom: 8px;
  font-size: 1.4rem;
}

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

/* ---------- Contact Form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info h3 {
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--gray);
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.contact-info__icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 4px;
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--dark);
  font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius);
  font-family: 'Catamaran', sans-serif;
  font-size: 1rem;
  transition: border-color var(--transition);
  margin-bottom: 20px;
  background: var(--white);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--purple);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 30px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer h4 {
  color: var(--white);
  margin-bottom: 16px;
  font-size: 1.4rem;
}

.footer p {
  font-size: 0.95rem;
  line-height: 1.8;
}

.footer__links {
  list-style: none;
}

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

.footer__links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.footer__links a:hover {
  color: var(--pink);
}

.footer__social {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}

.footer__social a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.4rem;
  transition: color var(--transition);
}

.footer__social a:hover {
  color: var(--pink);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
}

/* ---------- Fade-in Animation ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: var(--white);
  text-align: center;
  padding: 60px 20px;
  border-radius: var(--radius);
  margin: 0 20px;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 12px;
}

.cta-banner p {
  margin-bottom: 24px;
  opacity: 0.9;
}

.cta-banner .btn {
  background: var(--white);
  color: var(--purple);
}

.cta-banner .btn:hover {
  background: var(--lavender);
}

/* ---------- Testimonials ---------- */
.testimonial {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  text-align: center;
}

.testimonial__text {
  font-style: italic;
  color: var(--gray);
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.testimonial__author {
  font-weight: 700;
  color: var(--purple);
}

/* ---------- Page Header ---------- */
.page-header {
  padding: 120px 0 40px;
  background: linear-gradient(135deg, var(--lavender) 0%, var(--white) 100%);
  text-align: center;
}

.page-header h1 {
  margin-bottom: 8px;
}

.page-header p {
  color: var(--gray);
  max-width: 550px;
  margin: 0 auto;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.7rem; }

  .hero { padding: 120px 0 60px; }
  .hero h1 { font-size: 2.4rem; }
  .section { padding: 60px 0; }

  .hamburger { display: flex; }

  .navbar__links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    gap: 4px;
  }

  .navbar__links.open {
    display: flex;
  }

  .about-split {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.9rem; }
  .hero__buttons { flex-direction: column; align-items: center; }
}
