/* =====================================================================
   Cafe d'Arte — editorial studio theme
   ===================================================================== */
:root {
  --bg:        #f5f1ea;   /* warm bone */
  --surface:   #fffdfa;   /* cards */
  --ink:       #241f1b;   /* near-black warm */
  --muted:     #6f665d;
  --faint:     #9a9088;
  --clay:      #a85c39;   /* primary accent */
  --clay-deep: #8a4a2c;
  --sage:      #6d7457;
  --line:      #e6dfd3;
  --line-2:    #d8cfc0;
  --shadow-sm: 0 1px 2px rgba(36,31,27,.05);
  --shadow-md: 0 18px 44px -22px rgba(36,31,27,.30);
  --r-sm: 8px;
  --r-md: 14px;
  --maxw: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, .serif { font-family: "Playfair Display", Georgia, serif; font-weight: 600; letter-spacing: -0.01em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(var(--maxw), 90%); margin: 0 auto; }

.eyebrow {
  display: inline-block; font-family: "Inter", sans-serif;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--clay); margin-bottom: 16px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-family: "Inter", sans-serif; font-size: 0.95rem; font-weight: 500; letter-spacing: 0.01em;
  padding: 13px 26px; border-radius: var(--r-sm); border: 1px solid var(--ink);
  background: var(--ink); color: var(--bg);
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .15s ease;
}
.btn:hover { background: var(--clay); border-color: var(--clay); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: transparent; color: var(--clay); border-color: var(--clay); transform: translateY(-1px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245,241,234,.82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 15px 0; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.nav-logo { height: 40px; width: 40px; object-fit: contain; border-radius: 8px; background: #fff; border: 1px solid var(--line-2); padding: 4px; box-shadow: var(--shadow-sm); }
.brand-name { font-family: "Playfair Display", serif; font-size: 1.35rem; font-weight: 600; color: var(--ink); }
.brand-by { font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  padding: 9px 14px; font-size: 0.9rem; font-weight: 500; color: var(--muted);
  border-radius: var(--r-sm); transition: color .2s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.btn { color: var(--bg); margin-left: 8px; }
.nav-links a.btn:hover { color: var(--bg); }

/* ---------- "Seats left" banner ---------- */
.topbar-sticky { position: sticky; top: 0; z-index: 50; }
.topbar-sticky .site-header { position: static; }
.seats-banner {
  background: linear-gradient(90deg, var(--clay), var(--clay-deep));
  color: #fff8f2; border-bottom: 1px solid var(--clay-deep);
}
.seats-inner {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 8px 18px; padding: 10px 0; text-align: center;
}
.seats-msg {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.92rem; font-weight: 500; letter-spacing: 0.01em;
}
.seats-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #ffe6b8; flex: none;
  box-shadow: 0 0 0 0 rgba(255,230,184,.7); animation: seatsPulse 1.8s ease-out infinite;
}
@keyframes seatsPulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,230,184,.65); }
  70%  { box-shadow: 0 0 0 8px rgba(255,230,184,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,230,184,0); }
}
.seats-cta {
  display: inline-flex; align-items: center; font-size: 0.85rem; font-weight: 600;
  padding: 6px 16px; border-radius: 999px; background: #fff8f2; color: var(--clay-deep);
  transition: transform .15s ease, background .2s ease;
}
.seats-cta:hover { transform: translateY(-1px); background: #fff; color: var(--clay-deep); }
@media (prefers-reduced-motion: reduce) { .seats-dot { animation: none; } }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 84px; border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 5.2vw, 4.1rem); line-height: 1.06; }
.hero h1 .accent { color: var(--clay); font-style: italic; }
.hero .lead { margin: 22px 0 32px; font-size: 1.12rem; color: var(--muted); max-width: 40ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-art {
  position: relative; aspect-ratio: 4/5; border-radius: var(--r-md); overflow: hidden;
  background:
    linear-gradient(160deg, #efe6d8 0%, #e7ded0 50%, #e4ddcb 100%);
  border: 1px solid var(--line-2); box-shadow: var(--shadow-md);
  display: grid; place-items: center;
}
.hero-art .fallback-mark {
  width: 44%; height: 44%; color: #c4a488;
}
.hero-art .fallback-mark svg { width: 100%; height: 100%; }
.hero-art.has-logo {
  aspect-ratio: auto; min-height: 0; width: fit-content; max-width: 100%;
  justify-self: center; margin: 0 auto;
  background: var(--surface); padding: 18px; box-shadow: var(--shadow-md);
}
.hero-art .hero-logo-img { width: auto; height: auto; max-width: 100%; max-height: 300px; object-fit: contain; }

/* ---------- Section scaffolding ---------- */
section.block { padding: 92px 0; }
.section-head { max-width: 620px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 3.8vw, 2.9rem); line-height: 1.12; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }
.alt-bg { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Upcoming event ---------- */
.event-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: center; }
.event-poster {
  aspect-ratio: 3/4; border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--line-2); box-shadow: var(--shadow-md);
  display: grid; place-items: center; background: var(--bg);
}
.event-poster img { width: 100%; height: 100%; object-fit: cover; }
.placeholder {
  display: grid; place-items: center; gap: 10px; height: 100%; width: 100%;
  color: var(--faint); font-size: 0.82rem; text-align: center; padding: 22px;
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    repeating-linear-gradient(45deg, #ece3d4, #ece3d4 10px, #e6dccb 10px, #e6dccb 20px);
}
.placeholder svg { width: 34px; height: 34px; color: var(--line-2); }
.placeholder code { color: var(--muted); font-size: 0.78rem; }
.event-details h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin: 6px 0 22px; }
.event-meta { list-style: none; display: grid; gap: 16px; margin-bottom: 26px; }
.event-meta li { display: flex; align-items: center; gap: 14px; font-size: 1.05rem; }
.event-meta .ic { flex: none; width: 22px; height: 22px; color: var(--clay); }
.event-meta .ic svg { width: 100%; height: 100%; }
.event-note {
  display: block; font-size: 0.88rem; color: var(--sage); font-weight: 500;
  letter-spacing: 0.02em; border-left: 2px solid var(--sage); padding-left: 12px; margin-bottom: 26px;
}
.map-link {
  margin-left: 10px; font-size: 0.85rem; font-weight: 500; color: var(--clay);
  border-bottom: 1px solid currentColor; transition: color .2s ease;
}
.map-link:hover { color: var(--clay-deep); }

/* compact banner on registration page */
.event-banner {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 30px;
  max-width: 820px; margin: 0 auto 40px; padding: 16px 26px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-sm); font-size: 0.95rem; color: var(--ink);
}
.event-banner > span { display: inline-flex; align-items: center; gap: 9px; }
.event-banner .ic { width: 18px; height: 18px; color: var(--clay); flex: none; }
.event-banner .ic svg { width: 100%; height: 100%; }
.event-banner .sep { color: var(--line-2); }

/* ---------- Activities ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.card {
  background: var(--surface); padding: 34px 28px; transition: background .25s ease;
}
.card:hover { background: #fbf7f0; }
.card .ic { width: 34px; height: 34px; color: var(--clay); margin-bottom: 18px; }
.card .ic svg { width: 100%; height: 100%; }
.card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.95rem; }
.card .index { font-size: 0.72rem; letter-spacing: 0.18em; color: var(--faint); text-transform: uppercase; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.gallery figure {
  position: relative; margin: 0; border-radius: var(--r-md); overflow: hidden;
  aspect-ratio: 4/3; border: 1px solid var(--line); background: var(--bg); box-shadow: var(--shadow-sm);
}
.gallery img, .gallery video { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute; inset: auto 0 0 0; padding: 26px 18px 14px; color: #fff;
  font-size: 0.9rem; font-weight: 500; letter-spacing: 0.01em;
  background: linear-gradient(to top, rgba(28,20,14,.78), transparent);
}
.gallery .placeholder { font-size: 0.82rem; }
.video-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px;
  background: rgba(28,20,14,.62); backdrop-filter: blur(4px); color: #fff;
  font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px;
}
.video-badge svg { width: 11px; height: 11px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 40px 30px; }
.step { position: relative; padding-top: 26px; border-top: 1px solid var(--line-2); }
.step .num { font-family: "Playfair Display", serif; font-size: 1.05rem; color: var(--clay); font-weight: 600; letter-spacing: 0.04em; }
.step h3 { font-size: 1.2rem; margin: 8px 0 6px; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden; transition: border-color .2s ease;
}
.faq-item[open] { border-color: var(--line-2); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  gap: 18px; padding: 18px 22px; font-family: "Playfair Display", serif;
  font-size: 1.08rem; font-weight: 600; color: var(--ink); transition: color .2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--clay); }
.faq-icon { position: relative; flex: none; width: 15px; height: 15px; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; background: var(--clay); border-radius: 2px; transition: transform .25s ease, opacity .25s ease;
}
.faq-icon::before { top: 6.5px; left: 0; width: 15px; height: 2px; }
.faq-icon::after  { top: 0; left: 6.5px; width: 2px; height: 15px; }
.faq-item[open] .faq-icon::after { transform: rotate(90deg); opacity: 0; }
.faq-answer { padding: 0 22px 20px; color: var(--muted); font-size: 0.98rem; }
.faq-answer p { margin: -2px 0 0; }

/* ---------- Registration ---------- */
.reg-wrap { display: grid; grid-template-columns: 1.5fr 0.85fr; gap: 40px; align-items: start; }
.form-card, .pay-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 34px; box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 22px; }
.field label { display: block; font-weight: 500; margin-bottom: 8px; font-size: 0.92rem; }
.field .hint { font-weight: 400; color: var(--muted); font-size: 0.82rem; }
input[type="text"], input[type="tel"], input[type="email"], input[type="number"], select {
  width: 100%; padding: 12px 14px; font-size: 0.98rem; font-family: inherit; color: var(--ink);
  border: 1px solid var(--line-2); border-radius: var(--r-sm); background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
input::placeholder { color: #b3a89c; }
input:focus, select:focus {
  outline: none; border-color: var(--clay); box-shadow: 0 0 0 3px rgba(168,92,57,.12);
}
.participant-row {
  display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: center;
  padding: 12px; border: 1px solid var(--line); border-radius: var(--r-sm); margin-bottom: 12px; background: #fff;
}
.participant-row.single { grid-template-columns: 1fr; }
.participant-row .pnum {
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-2);
  display: grid; place-items: center; font-size: 0.8rem; color: var(--muted);
}
.check-line {
  display: flex; align-items: center; gap: 10px; margin: -6px 0 22px;
  font-size: 0.93rem; color: var(--ink); cursor: pointer; user-select: none;
}
.check-line input { width: 17px; height: 17px; accent-color: var(--clay); cursor: pointer; }
.total-bar {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 20px 4px; margin: 6px 0 24px;
}
.total-bar .label { font-weight: 500; }
.total-bar .hint { font-size: 0.82rem; color: var(--muted); }
.total-bar .amount { font-family: "Playfair Display", serif; font-size: 1.8rem; font-weight: 600; color: var(--ink); }

.pay-card { text-align: center; position: sticky; top: 92px; }
.pay-card h3 { font-size: 1.3rem; margin-bottom: 4px; }
.pay-card .hint { color: var(--muted); font-size: 0.85rem; }
.qr-box {
  margin: 18px auto; width: 200px; height: 200px; border-radius: var(--r-sm);
  border: 1px solid var(--line-2); background: #fff; display: grid; place-items: center; overflow: hidden;
}
.qr-box img { width: 100%; height: 100%; object-fit: contain; }
.qr-placeholder { color: var(--faint); font-size: 0.8rem; padding: 16px; }
.upi { font-size: 0.9rem; color: var(--muted); word-break: break-all; }
.upi strong { color: var(--ink); font-weight: 600; }
.pay-notice {
  display: flex; align-items: flex-start; gap: 10px; text-align: left;
  margin-top: 16px; padding: 12px 14px; border-radius: var(--r-sm);
  background: #f6efe1; border: 1px solid #ecdcb8; color: #7a5c18; font-size: 0.86rem; line-height: 1.5;
}
.pay-notice .ic { flex: none; width: 18px; height: 18px; color: var(--clay); margin-top: 1px; }
.pay-notice .ic svg { width: 100%; height: 100%; }
.pay-notice strong { color: var(--clay-deep); }

.form-msg { padding: 15px 17px; border-radius: var(--r-sm); margin-bottom: 20px; font-size: 0.94rem; display: none; }
.form-msg.show { display: block; }
.form-msg.success { background: #eef2e8; color: #40532f; border: 1px solid #d7e2c8; }
.form-msg.error   { background: #f7e7e0; color: #8a3a20; border: 1px solid #eecbbc; }
.form-msg.info    { background: #f6efe1; color: #7a5c18; border: 1px solid #ecdcb8; }
.form-msg pre { background: rgba(0,0,0,.04); padding: 10px; border-radius: 6px; }

/* ---------- Honeypot (spam trap — hidden from real users) ---------- */
.hp-field {
  display: none !important;
}

/* ---------- Payment screenshot upload ---------- */
.screenshot-field { margin-top: 20px; text-align: left; border-top: 1px solid var(--line); padding-top: 18px; }
.screenshot-field label { display: block; font-weight: 500; font-size: 0.92rem; margin-bottom: 4px; }
.screenshot-field label .opt { color: var(--faint); font-weight: 400; }
.screenshot-field label .req { color: #c0392b; font-weight: 700; }
.screenshot-field .hint { color: var(--muted); font-size: 0.82rem; margin-bottom: 10px; }
.screenshot-field input[type="file"] {
  width: 100%; font-size: 0.85rem; color: var(--muted);
  padding: 8px; border: 1px dashed var(--line-2); border-radius: var(--r-sm); background: #fff; cursor: pointer;
}
.screenshot-field input[type="file"]::file-selector-button {
  font-family: inherit; font-size: 0.85rem; margin-right: 12px; padding: 7px 14px; cursor: pointer;
  border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--bg); color: var(--ink);
  transition: background .2s ease, border-color .2s ease;
}
.screenshot-field input[type="file"]::file-selector-button:hover { background: #fbf7f0; border-color: var(--clay); color: var(--clay); }
.screenshot-preview { position: relative; margin-top: 12px; }
.screenshot-preview img { width: 100%; max-height: 220px; object-fit: contain; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: #fff; }
.screenshot-remove {
  margin-top: 8px; font-family: inherit; font-size: 0.82rem; cursor: pointer;
  background: transparent; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  padding: 6px 12px; color: var(--muted); transition: color .2s ease, border-color .2s ease;
}
.screenshot-remove:hover { color: var(--clay-deep); border-color: var(--clay); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #d9cfc2; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.site-footer .brand-name { color: #f0ddca; }
.site-footer .brand-by { color: #b6a897; }
.site-footer p { color: #b6a897; }
.site-footer h4 { font-family: "Inter", sans-serif; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: #9a8d7d; margin-bottom: 16px; font-weight: 600; }
.site-footer ul { list-style: none; display: grid; gap: 10px; font-size: 0.95rem; }
.site-footer a { color: #d9cfc2; transition: color .2s ease; }
.site-footer a:hover { color: #f0ddca; }
.copyright { text-align: center; margin-top: 46px; padding-top: 22px; border-top: 1px solid #3a322b; color: #8d8172; font-size: 0.82rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { order: -1; max-width: 300px; }
  .event-wrap { grid-template-columns: 1fr; gap: 34px; }
  .event-poster { max-width: 320px; margin: 0 auto; }
  .reg-wrap { grid-template-columns: 1fr; }
  .pay-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links a:not(.btn) { display: none; }
}
@media (max-width: 520px) {
  section.block { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr; }
}
