/* ============================================
   HnK Party — Components: Buttons, Hero, Cards, Catalog, Products, Packages, Gallery, Testimonials, Pillar Cards
   ============================================ */

/* ===== Buttons ===== */
/* ===== Buttons ===== */
.btn {
  display: inline-block; padding: 14px 32px;
  background: var(--charcoal); color: var(--cream);
  border-radius: var(--radius-pill); font-weight: 600; font-size: 15px;
  transition: all 0.2s; cursor: pointer; text-align: center;
}
.btn:hover { background: var(--terracotta); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--charcoal); border: 2px solid var(--charcoal); padding: 12px 30px; }
.btn-outline:hover { background: var(--charcoal); color: var(--cream); }
.btn-light { background: var(--cream); color: var(--charcoal); }
.btn-light:hover { background: var(--terracotta); color: var(--cream); }
.btn-small { padding: 10px 22px; font-size: 14px; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--blush) 0%, #f3ead7 40%, var(--blush-deep) 100%);
  padding: 100px 0 120px; position: relative; overflow: hidden;
}
.hero::before, .hero::after {
  content: ''; position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.4);
}
.hero::before { width: 400px; height: 400px; top: -100px; right: -100px; }
.hero::after { width: 300px; height: 300px; bottom: -80px; left: -80px; }
.hero-content { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; text-align: center; }
.hero-tag {
  display: inline-block; background: rgba(255,255,255,0.65);
  padding: 6px 16px; border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 600; color: var(--terracotta);
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 20px;
}
.hero-title { font-size: 56px; margin-bottom: 20px; }
.hero-subtitle { font-size: 18px; color: var(--charcoal-soft); margin: 0 auto 36px; max-width: 560px; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Compact hero for inner pages */
.page-hero {
  background: linear-gradient(135deg, #006f65 0%, #00897c 60%, #c9af7f 100%);
  color: var(--cream);
  padding: 80px 0 70px; text-align: center;
  position: relative; overflow: hidden;
}
.page-hero h1 {
  color: var(--cream); font-size: 64px; margin-bottom: 12px;
  font-family: 'Italiana', var(--serif); font-weight: 400; line-height: 1.1; letter-spacing: 1px;
}
.page-hero p {
  color: rgba(250,246,240,0.95); max-width: 660px; margin: 0 auto;
  font-size: 18px; line-height: 1.6;
}
.page-hero .hero-ctas { justify-content: center; margin-top: 28px; }
.page-hero .btn-light { background: #fff; color: var(--charcoal); border: 0; }
.page-hero .btn-light:hover { background: var(--cream); }
/* Mobile sizing — must live here because components.css loads after layout.css */
@media (max-width: 900px) {
  .page-hero h1 { font-size: 40px; }
  .page-hero p { font-size: 16px; }
}
@media (max-width: 600px) {
  .page-hero h1 { font-size: 28px; line-height: 1.2; overflow-wrap: break-word; }
  .page-hero p { font-size: 14px; }
}
@media (max-width: 380px) {
  .page-hero h1 { font-size: 25px; }
}

/* Service-page hero banner (charcoal → teal, soft circles) */
.sc-hero { background: linear-gradient(135deg, #2b2520 0%, #3a3128 50%, #006f65 100%); color: #fff; padding: 90px 0 76px; text-align: center; position: relative; overflow: hidden; }
.sc-hero::before, .sc-hero::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255,255,255,0.08); pointer-events: none; }
.sc-hero::before { width: 380px; height: 380px; top: -130px; right: -110px; }
.sc-hero::after { width: 280px; height: 280px; bottom: -100px; left: -60px; }
.sc-hero .container { position: relative; z-index: 1; }
.sc-hero h1 { font-family: var(--serif); font-size: 50px; font-weight: 500; color: #fff; line-height: 1.1; margin-bottom: 14px; }
.sc-hero h1 em { font-style: italic; font-weight: 400; color: #ffe8c2; }
.sc-hero p { color: rgba(255,255,255,0.92); font-size: 18px; max-width: 700px; margin: 0 auto; line-height: 1.6; }
@media (max-width: 600px) { .sc-hero { padding: 56px 0 48px; } .sc-hero h1 { font-size: 36px; } .sc-hero p { font-size: 16px; } }

/* "What happens next" step card (service pages) */
.wn-card { max-width: 760px; margin: 0 auto; background: #fff; border-left: 4px solid var(--terracotta); border-radius: 0 14px 14px 0; box-shadow: 0 12px 32px rgba(43,37,32,0.07); padding: 34px 40px; text-align: left; }
.wn-card h2 { font-family: var(--serif); font-size: 26px; font-weight: 500; color: var(--charcoal); margin: 0 0 4px; }
.wn-card .wn-sub { color: var(--muted); font-size: 14px; margin: 0 0 6px; }
.wn-step { display: flex; gap: 18px; align-items: flex-start; padding: 22px 0; border-bottom: 1px solid var(--soft-grey); }
.wn-step:last-child { border-bottom: 0; padding-bottom: 4px; }
.wn-num { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--terracotta); color: #fff; display: flex; align-items: center; justify-content: center; font-family: 'Bebas Neue', sans-serif; font-size: 18px; line-height: 1; }
.wn-body h4 { font-family: var(--sans); font-size: 16px; font-weight: 700; color: var(--charcoal); margin: 4px 0 4px; }
.wn-body p { font-size: 14px; color: var(--charcoal-soft); line-height: 1.55; margin: 0; }
@media (max-width: 600px) { .wn-card { padding: 26px 22px; } }

/* ===== Features strip ===== */
.features { background: #fff; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.features-grid.features-grid-4 { grid-template-columns: repeat(4, 1fr); gap: 32px; }
@media (max-width: 900px) {
  .features-grid.features-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .features-grid.features-grid-4 { grid-template-columns: 1fr; }
}
.feature { text-align: center; }
.feature-icon {
  width: 64px; height: 64px; margin: 0 auto 16px;
  background: var(--blush); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
}
.feature h3 { font-size: 20px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15px; }

/* ===== Category grid (homepage) ===== */
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.category-card {
  position: relative; aspect-ratio: 4 / 5;
  border-radius: var(--radius-md); overflow: hidden;
  display: flex; align-items: flex-end; padding: 24px;
  color: #fff; transition: transform 0.3s;
  cursor: pointer;
}
.category-card:hover { transform: translateY(-4px); }
.category-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(43,37,32,0.7) 0%, rgba(43,37,32,0.1) 50%, transparent 100%);
  z-index: 1;
}
.category-card-bg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 120px; }
.category-card-content { position: relative; z-index: 2; }
.category-card h3 { color: #fff; font-size: 22px; margin-bottom: 6px; }
.category-card p { font-size: 14px; opacity: 0.9; margin-bottom: 10px; }
.category-card .category-link { font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* ===== Catalog ===== */
.catalog-layout { display: grid; grid-template-columns: 220px 1fr; gap: 40px; }
.catalog-filters-side h3 { font-family: var(--sans); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; color: var(--muted); }
.filter-list { list-style: none; }
.filter-list li { margin-bottom: 4px; }
.filter-btn {
  width: 100%; text-align: left;
  padding: 10px 14px; border-radius: var(--radius-sm);
  background: transparent; font-size: 14px; font-weight: 500;
  transition: all 0.2s; color: var(--charcoal);
}
.filter-btn:hover { background: var(--blush); }
.filter-btn.active { background: var(--charcoal); color: var(--cream); }
.filter-count { float: right; color: var(--muted); font-size: 12px; }
.filter-btn.active .filter-count { color: var(--cream); opacity: 0.7; }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card {
  background: #fff; border-radius: var(--radius-md); overflow: hidden;
  transition: all 0.3s; border: 1px solid transparent;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-img-wrap {
  aspect-ratio: 1 / 1; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 72px; color: rgba(43,37,32,0.5);
}
.product-img-wrap .product-label {
  position: absolute; bottom: 12px; left: 12px;
  background: rgba(255,255,255,0.85); padding: 4px 10px;
  border-radius: var(--radius-pill); font-size: 11px; font-weight: 600;
  color: var(--charcoal); text-transform: uppercase; letter-spacing: 0.5px;
}
.product-info { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.product-info h3 { font-family: var(--sans); font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.product-info .category { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; }
.product-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.price { font-weight: 700; font-size: 18px; color: var(--terracotta); }
.price small { font-size: 11px; font-weight: 500; color: var(--muted); }
.add-btn {
  padding: 8px 14px; background: var(--charcoal); color: var(--cream);
  border-radius: var(--radius-sm); font-size: 13px; font-weight: 600;
  transition: background 0.2s;
}
.add-btn:hover { background: var(--terracotta); }
.add-btn.added { background: var(--success); }

/* ===== Product detail page ===== */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.product-gallery-main {
  aspect-ratio: 1 / 1; border-radius: var(--radius-md); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 200px; color: rgba(43,37,32,0.3);
}
.product-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.product-thumb {
  aspect-ratio: 1 / 1; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; cursor: pointer; opacity: 0.7;
  transition: opacity 0.2s;
}
.product-thumb:hover, .product-thumb.active { opacity: 1; border: 2px solid var(--terracotta); }
.product-meta .breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.product-meta .breadcrumb a { color: var(--terracotta); }
.product-meta h1 { font-size: 36px; margin-bottom: 12px; }
.product-meta .price-big { font-size: 28px; font-weight: 700; color: var(--terracotta); font-family: var(--serif); margin-bottom: 8px; }
.product-meta .price-note { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.product-meta .description { color: var(--charcoal-soft); margin-bottom: 24px; line-height: 1.7; }
.spec-list { list-style: none; margin-bottom: 24px; padding: 18px; background: #fff; border-radius: var(--radius-md); }
.spec-list li { font-size: 14px; padding: 6px 0; border-bottom: 1px solid var(--soft-grey); display: flex; justify-content: space-between; }
.spec-list li:last-child { border-bottom: none; }
.spec-list li strong { color: var(--charcoal); }


/* ===== Packages ===== */
.package-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.package-card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  transition: all 0.3s;
}
.package-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.package-img {
  aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center;
  font-size: 80px;
}
.package-body { padding: 28px; }
.package-body h3 { font-size: 24px; margin-bottom: 8px; }
.package-body .package-price { font-family: var(--serif); font-size: 22px; color: var(--terracotta); margin-bottom: 16px; }
.package-includes { list-style: none; margin-bottom: 20px; }
.package-includes li { padding: 4px 0; font-size: 14px; color: var(--charcoal-soft); }
.package-includes li::before { content: '✓ '; color: var(--success); font-weight: 700; }


/* ===== How it works ===== */
.how-it-works { background: var(--charcoal); color: var(--cream); }
.how-it-works h2, .how-it-works h3 { color: var(--cream); }
.how-it-works .section-subtitle { color: #d9c9b7; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.step { text-align: center; }
.step-num {
  width: 56px; height: 56px; margin: 0 auto 16px;
  background: var(--terracotta); color: var(--cream); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 24px; font-weight: 700;
}
.step h3 { font-size: 22px; margin-bottom: 10px; }
.step p { color: #d9c9b7; font-size: 15px; }


/* ===== Gallery ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-item {
  aspect-ratio: 1 / 1; border-radius: var(--radius-sm); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 56px; transition: transform 0.3s; cursor: pointer;
  position: relative;
}
.gallery-item:hover { transform: scale(1.03); }
.gallery-item .gallery-label {
  position: absolute; bottom: 10px; left: 10px;
  background: rgba(43,37,32,0.7); color: #fff;
  padding: 4px 10px; border-radius: var(--radius-pill);
  font-size: 11px; font-weight: 600;
}


/* ===== Testimonials ===== */
.testimonials { background: #fff; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.testimonial {
  padding: 32px; background: var(--cream); border-radius: var(--radius-md);
  border-left: 4px solid var(--terracotta);
}
.stars { color: var(--gold); font-size: 18px; margin-bottom: 12px; }
.testimonial p { font-style: italic; color: var(--charcoal-soft); margin-bottom: 16px; }
.testimonial-author { font-weight: 600; font-size: 14px; }
.testimonial-event { font-size: 13px; color: var(--muted); }


/* ===== Page-specific content ===== */
.content-prose { max-width: 760px; margin: 0 auto; }
.content-prose h2 { font-size: 28px; margin: 36px 0 12px; }
.content-prose h3 { font-size: 20px; margin: 24px 0 10px; }
.content-prose p { margin-bottom: 16px; color: var(--charcoal-soft); }
.content-prose ul { margin: 0 0 16px 24px; }
.content-prose ul li { margin-bottom: 6px; color: var(--charcoal-soft); }


/* ===== Homepage pillar cards (clickable feature cards) ===== */
/* ===== Homepage pillar cards (clickable feature cards) ===== */
.feature.pillar-link {
  display: flex; flex-direction: column;
  padding: 28px 24px;
  background: #fff;
  border: 1px solid var(--soft-grey);
  border-radius: var(--radius-md);
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
}
.feature.pillar-link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--terracotta);
}
.feature.pillar-link .feature-icon { width: 64px; height: 64px; }
.feature.pillar-link h3 { margin-bottom: 10px; }
.feature.pillar-link p { font-size: 14px; flex: 1; }
.feature.pillar-link .pillar-cta {
  display: inline-block;
  align-self: center;
  margin-top: 24px;
  padding: 10px 22px;
  font-size: 12px;
  font-weight: 700;
  color: var(--terracotta);
  background: transparent;
  border: 1.5px solid var(--terracotta);
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}
.feature.pillar-link:hover .pillar-cta {
  background: var(--terracotta);
  color: var(--cream);
  transform: translateY(-1px);
}

/* ===== Shop By Occasion cards (homepage) ===== */
.occ-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px 18px;
  text-align: center;
  text-decoration: none;
  color: var(--charcoal);
  border: 1px solid var(--soft-grey);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: block;
}
.occ-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,111,101,0.10);
  border-color: var(--terracotta);
}


/* ============================================
   Section ornament — small decorative flourish above H2s
   Drop in: <div class="section-ornament" aria-hidden="true"></div>
   Or wrap a title: <div class="section-title-wrap">…<h2>…</h2></div>
   ============================================ */
.section-ornament {
  width: 96px;
  height: 22px;
  margin: 0 auto 14px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  /* Terracotta line-art with a soft gold center diamond */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 22'>\
<line x1='2' y1='11' x2='32' y2='11' stroke='%23bf5d3e' stroke-width='1' stroke-linecap='round'/>\
<line x1='64' y1='11' x2='94' y2='11' stroke='%23bf5d3e' stroke-width='1' stroke-linecap='round'/>\
<circle cx='2' cy='11' r='1.5' fill='%23bf5d3e'/>\
<circle cx='94' cy='11' r='1.5' fill='%23bf5d3e'/>\
<path d='M48 3 L55 11 L48 19 L41 11 Z' fill='none' stroke='%23bf5d3e' stroke-width='1.2'/>\
<circle cx='48' cy='11' r='2' fill='%23c9af7f'/>\
</svg>");
}

/* Left-aligned variant — for sections where the title isn't centered */
.section-ornament.align-left { margin-left: 0; margin-right: 0; }

/* Smaller variant for inline use */
.section-ornament.small { width: 72px; height: 18px; margin-bottom: 10px; }

/* Wrap pattern — auto-injects the ornament before any h2 inside */
.section-title-wrap { text-align: center; }
.section-title-wrap > h2::before {
  content: "";
  display: block;
  width: 96px;
  height: 22px;
  margin: 0 auto 14px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 22'>\
<line x1='2' y1='11' x2='32' y2='11' stroke='%23bf5d3e' stroke-width='1' stroke-linecap='round'/>\
<line x1='64' y1='11' x2='94' y2='11' stroke='%23bf5d3e' stroke-width='1' stroke-linecap='round'/>\
<circle cx='2' cy='11' r='1.5' fill='%23bf5d3e'/>\
<circle cx='94' cy='11' r='1.5' fill='%23bf5d3e'/>\
<path d='M48 3 L55 11 L48 19 L41 11 Z' fill='none' stroke='%23bf5d3e' stroke-width='1.2'/>\
<circle cx='48' cy='11' r='2' fill='%23c9af7f'/>\
</svg>");
}
