/**
 * Karva Chauth page.
 *
 * Loads alongside the main theme stylesheet, so everything is namespaced with
 * a kc- prefix and --kc- custom properties. Element rules (including the
 * source page's global reset) are scoped under .kc-page so they cannot reach
 * the site header.
 */

body.karva-chauth-page {
  --kc-gold: #c99a3b;
  --kc-gold2: #8b641d;
  --kc-green: #168a43;
  --kc-maroon: #5a171b;
  --kc-maroon2: #7a2426;
  --kc-cream: #fffaf0;
  --kc-card: #fffdf7;
  --kc-ink: #2a1712;
  --kc-muted: #6f625a;

  background: var(--kc-cream);
  color: var(--kc-ink);
}

/* Scoped to the page, not body, so the site header keeps its own font. */
.kc-page,
.kc-bottom {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.6;
}

.kc-page *,
.kc-page *::before,
.kc-page *::after { box-sizing: border-box; }

.kc-page h1,
.kc-page h2,
.kc-page h3,
.kc-page p,
.kc-page ul { margin: 0; padding: 0; }

.kc-page h1 { font-size: clamp(42px, 7vw, 78px); line-height: 1.02; margin-bottom: 22px; }
.kc-page h2 { font-size: clamp(30px, 5vw, 48px); line-height: 1.1; margin: 10px 0 14px; }

.kc-container { width: min(1160px, 92%); margin: auto; }

/* Hero */
.kc-hero {
  min-height: 720px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 70px 0;
  color: #fff;
  background:
    radial-gradient(circle at 78% 20%, rgba(244, 212, 123, .18), transparent 25%),
    radial-gradient(circle at 15% 80%, rgba(216, 168, 62, .12), transparent 28%),
    linear-gradient(135deg, #26050d, #4b0918 58%, #25040c);
}
.kc-hero::before { content: ""; position: absolute; inset: 18px; border: 1px solid rgba(244, 212, 123, .28); pointer-events: none; }
.kc-moon { position: absolute; right: 7%; top: 11%; width: 220px; height: 220px; border-radius: 50%; background: var(--kc-gold2); box-shadow: 0 0 70px rgba(244, 212, 123, .3); }
.kc-moon::after { content: ""; position: absolute; right: 35px; top: -5px; width: 205px; height: 205px; border-radius: 50%; background: #320711; }
.kc-kalash { position: absolute; right: 12%; bottom: 12%; font-size: 82px; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .35)); }
.kc-hero-inner { position: relative; z-index: 2; max-width: 760px; }
.kc-brand-mark { font-size: 13px; letter-spacing: 3px; font-weight: 800; color: #e3b45c; margin-bottom: 12px; text-transform: uppercase; }
.kc-badge { display: inline-block; border: 1px solid var(--kc-gold); color: #f2cf82; padding: 8px 18px; border-radius: 30px; letter-spacing: 2px; font-size: 12px; text-transform: uppercase; margin-bottom: 22px; background: rgba(0, 0, 0, .12); }
.kc-page .kc-hero h1 span { color: #f2cf82; }
.kc-page .kc-hero p { font-size: 20px; max-width: 680px; color: #f8eede; margin-bottom: 30px; }

.kc-cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.kc-btn { padding: 14px 23px; border-radius: 40px; font-weight: bold; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid var(--kc-gold); transition: .25s; cursor: pointer; font: inherit; }
.kc-btn.kc-gold { background: linear-gradient(135deg, #d49d2d, #f3d477); color: #35100f; box-shadow: 0 10px 25px rgba(216, 168, 62, .18); }
.kc-btn.kc-outline { color: #fff; background: rgba(255, 255, 255, .04); }
.kc-btn:hover { transform: translateY(-2px); }

/* Sections */
.kc-section { padding: 76px 0; }
.kc-section.kc-dark { background: linear-gradient(135deg, #300611, #4c0918); color: #fff; }
.kc-section-title { text-align: center; max-width: 760px; margin: 0 auto 42px; }
.kc-kicker { color: #8f6312; font-size: 12px; letter-spacing: 3px; font-weight: bold; text-transform: uppercase; }
.kc-dark .kc-kicker { color: #f2cf82; }
.kc-sub { color: var(--kc-muted); }
.kc-dark .kc-sub { color: #eadbd1; }

.kc-info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.kc-info-card { background: #fff; border: 1px solid #ead9b9; border-radius: 18px; padding: 25px; text-align: center; box-shadow: 0 10px 28px rgba(58, 7, 19, .06); }
.kc-info-card b { display: block; font-size: 28px; color: var(--kc-maroon); }
.kc-info-card span { color: var(--kc-muted); }

.kc-design-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.kc-design-card { min-height: 280px; border-radius: 24px; overflow: hidden; position: relative; border: 1px solid rgba(216, 168, 62, .45); background: linear-gradient(145deg, #5a0b1c, #26050d); display: flex; align-items: flex-end; }
.kc-design-art { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 90px; opacity: .92; }
.kc-design-card:nth-child(2) .kc-design-art { font-size: 75px; }
.kc-design-card:nth-child(3) .kc-design-art { font-size: 105px; }
.kc-design-copy { position: relative; z-index: 2; width: 100%; padding: 22px; background: linear-gradient(transparent, rgba(20, 2, 7, .95)); }
.kc-page .kc-design-copy h3 { color: #fff; font-size: 23px; }
.kc-page .kc-design-copy p { color: #e8d6c8; font-size: 14px; }

.kc-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.kc-feature { background: #fff; border-radius: 18px; padding: 24px; border-left: 4px solid var(--kc-gold); box-shadow: 0 8px 24px rgba(58, 7, 19, .06); }
.kc-feature b { display: block; color: var(--kc-maroon); font-size: 20px; margin-bottom: 4px; }

/* Offer + bulk booking */
.kc-offer { background: var(--kc-maroon); color: #fff; border-radius: 24px; padding: 34px; text-align: center; border: 1px solid var(--kc-gold); }
.kc-offer > strong { display: block; color: #f2cf82; font-size: 34px; margin: 6px 0 10px; }
.kc-festival-pattern { position: relative; margin-top: 28px; padding: 22px; border: 1px solid rgba(201, 154, 59, .38); border-radius: 22px; overflow: hidden; background: radial-gradient(circle at 15% 25%, rgba(201, 154, 59, .16), transparent 18%), radial-gradient(circle at 85% 75%, rgba(255, 255, 255, .08), transparent 20%), repeating-radial-gradient(circle at 50% 50%, rgba(201, 154, 59, .10) 0 2px, transparent 2px 24px); }
.kc-pattern-row { display: flex; justify-content: space-around; gap: 12px; align-items: center; color: #d8a83e; font-size: 34px; letter-spacing: 5px; }
.kc-pattern-caption { text-align: center; margin-top: 10px; color: #eadbd1; font-size: 13px; letter-spacing: 1px; }

.kc-bulk-box { padding: 28px; border-radius: 22px; background: linear-gradient(135deg, #fff7df, #f5e4c0); border: 1px solid #d9b56c; box-shadow: 0 12px 30px rgba(58, 7, 19, .08); }
.kc-page .kc-bulk-title { font-size: 28px; color: var(--kc-maroon); margin-bottom: 8px; }
.kc-page .kc-bulk-box p + p { margin-top: 12px; }
.kc-bulk-dates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0; }
.kc-bulk-date { padding: 15px; border-radius: 15px; text-align: center; background: #fff; border: 1px solid #e3c887; color: var(--kc-maroon); font-weight: 800; }

/* Booking form */
.kc-booking { background: linear-gradient(135deg, #fffdf8, #f6ead3); border: 1px solid #e4ca91; border-radius: 28px; padding: 38px; }
.kc-offer-box { margin: 18px 0; padding: 18px; border: 1px solid rgba(212, 175, 55, .55); border-radius: 18px; background: #fffdf5; text-align: center; }
.kc-offer-box .kc-offer-head { font-size: 1.25rem; font-weight: 800; color: var(--kc-maroon); }
.kc-page .kc-offer-box p { margin: 8px 0 4px; }
.kc-page .kc-offer-box p:last-child { margin-bottom: 0; }

.kc-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.kc-page .kc-form input,
.kc-page .kc-form select,
.kc-page .kc-form textarea { width: 100%; padding: 15px; border: 1px solid #ddcda9; border-radius: 12px; background: #fff; font: inherit; color: var(--kc-ink); }
.kc-page .kc-form textarea { min-height: 120px; grid-column: 1 / -1; }
.kc-full { grid-column: 1 / -1; }
.kc-page .kc-form label { display: block; font-weight: 800; color: var(--kc-maroon); margin-bottom: 7px; }

.kc-photo-upload { grid-column: 1 / -1; padding: 18px; border: 1.5px dashed var(--kc-gold); border-radius: 17px; background: #fffaf0; }
.kc-photo-upload small { display: block; color: var(--kc-muted); margin-bottom: 12px; }
.kc-page .kc-photo-upload input { padding: 10px; border: 1px solid #dfc48d; }
.kc-preview-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.kc-preview-grid img { width: 100%; height: 90px; object-fit: cover; border-radius: 12px; border: 1px solid #dfc48d; background: #fff; }
.kc-upload-note { margin-top: 10px; font-size: 12px; color: #7b5b28; }
.kc-note { font-size: 13px; color: #6d585c; margin-top: 12px; }

/* Pattern gallery */
.kc-gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kc-gallery-card { display: block; overflow: hidden; border: 1px solid rgba(201, 154, 59, .55); border-radius: 18px; background: #2a0710; box-shadow: 0 10px 28px rgba(58, 7, 19, .08); }
.kc-gallery-card img { width: 100%; aspect-ratio: 1 / 1.15; object-fit: cover; transition: transform 280ms ease; }
.kc-gallery-card:hover img,
.kc-gallery-card:focus-visible img { transform: scale(1.05); }
.kc-gallery-card:focus-visible { outline: 3px solid rgba(201, 154, 59, .55); outline-offset: 3px; }
.kc-gallery-empty { padding: 26px; border: 1px dashed #c99a3b; border-radius: 18px; background: #fffaf0; color: var(--kc-ink); text-align: center; line-height: 1.8; }
.kc-gallery-empty code { background: rgba(90, 23, 27, .08); border-radius: 5px; padding: 2px 6px; font-size: 13px; }
.kc-gallery-empty em { display: block; margin-top: 8px; color: var(--kc-muted); font-size: 13px; }
.kc-gallery-more { margin-top: 26px; text-align: center; }

/* FAQ */
.kc-faq { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.kc-faq details { background: #fff; border: 1px solid #ead9b9; border-radius: 15px; padding: 18px 20px; }
.kc-faq summary { font-weight: bold; color: var(--kc-maroon); cursor: pointer; }
.kc-page .kc-faq p { margin-top: 10px; color: var(--kc-muted); }

.kc-location { text-align: center; margin-top: 30px; color: var(--kc-muted); }

/* Footer + sticky bar */
.kc-footer { background: #1e0309; color: #f4e8d9; padding: 42px 0; }
.kc-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.kc-page .kc-footer h3 { color: #f2cf82; margin-bottom: 10px; }
.kc-footer a { text-decoration: underline; }

.kc-spacer { height: 84px; }
.kc-bottom { position: fixed; bottom: 0; left: 0; right: 0; z-index: 99; background: rgba(31, 3, 9, .96); backdrop-filter: blur(12px); display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 10px calc(10px + env(safe-area-inset-bottom)); }
.kc-bottom a { text-align: center; padding: 13px; border-radius: 30px; font-weight: bold; }
.kc-bottom .kc-call { background: linear-gradient(135deg, #d49d2d, #f4d47b); color: #32100e; }
.kc-bottom .kc-wa { border: 1px solid var(--kc-gold); color: #f4d47b; }

@media (max-width: 850px) {
  .kc-moon { width: 150px; height: 150px; right: -20px; top: 45px; opacity: .5; }
  .kc-moon::after { width: 140px; height: 140px; right: 24px; }
  .kc-info-grid,
  .kc-design-grid { grid-template-columns: 1fr 1fr; }
  .kc-gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .kc-faq,
  .kc-footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .kc-bulk-dates { grid-template-columns: 1fr; }
  .kc-preview-grid { grid-template-columns: repeat(2, 1fr); }
  .kc-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

@media (max-width: 560px) {
  .kc-hero { min-height: 640px; padding: 55px 0; }
  .kc-hero::before { inset: 10px; }
  .kc-page .kc-hero p { font-size: 17px; }
  .kc-info-grid,
  .kc-design-grid,
  .kc-features,
  .kc-form { grid-template-columns: 1fr; }
  .kc-section { padding: 55px 0; }
  .kc-booking { padding: 25px; }
  .kc-page h1 { font-size: 40px; }
  .kc-kalash { right: 4%; bottom: 17%; font-size: 58px; }
  .kc-page .kc-form textarea,
  .kc-full { grid-column: auto; }
  .kc-cta-row .kc-btn { width: 100%; }
}
