/* ============================================================
   GRSC Hub — shared styles
   Palette drawn from the GRSC flyers: warm cream, golden tan,
   deep chocolate brown.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,700;0,900;1,600&family=Dancing+Script:wght@600&family=Source+Sans+3:wght@400;600;700&display=swap');

:root {
  --cream: #FAF3E3;
  --cream-soft: #FDF9EF;
  --cream-deep: #F1E4C8;
  --gold: #C08A3E;
  --gold-bright: #D9A144;
  --gold-dark: #9A6B2B;
  --brown: #4A3720;
  --ink: #33270F;
  --ink-soft: #6B5A3E;
  --card: #FFFDF7;
  --line: rgba(154, 107, 43, 0.25);
  --green: #4C7A4C;
  --red: #A94438;
  --shadow: 0 10px 30px rgba(74, 55, 32, 0.12);
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', -apple-system, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
}

h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; color: var(--ink); }

.script { font-family: 'Dancing Script', cursive; color: var(--gold-dark); }

a { color: var(--gold-dark); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 243, 227, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; gap: 14px;
  padding-top: 10px; padding-bottom: 10px;
}
.site-header img.logo { width: 54px; height: 54px; object-fit: contain; }
.site-header .brand { line-height: 1.2; }
.site-header .brand .name {
  font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.05rem;
}
.site-header .brand .sub {
  font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-soft);
}
.site-header nav { margin-left: auto; display: flex; gap: 22px; align-items: center; }
.site-header nav a {
  text-decoration: none; font-weight: 600; font-size: 0.9rem; color: var(--brown);
  letter-spacing: 0.5px;
}
.site-header nav a:hover { color: var(--gold-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; border: none; cursor: pointer; text-decoration: none;
  font-family: 'Source Sans 3', sans-serif; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; font-size: 0.85rem;
  padding: 14px 28px; border-radius: 10px; transition: all 0.18s ease;
  text-align: center;
}
.btn-gold {
  background: linear-gradient(160deg, var(--gold-bright), var(--gold));
  color: #fff; box-shadow: 0 6px 16px rgba(192, 138, 62, 0.35);
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(192, 138, 62, 0.45); }
.btn-gold:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-outline {
  background: transparent; color: var(--gold-dark);
  border: 2px solid var(--gold);
}
.btn-outline:hover { background: var(--gold); color: #fff; }
.btn-block { display: block; width: 100%; }

/* ---------- Hero (landing) ---------- */
.hero {
  position: relative; display: flex; align-items: flex-end; justify-content: center;
  min-height: 62vh; padding: 60px 24px 54px; text-align: center;
  background:
    linear-gradient(to bottom, rgba(51, 39, 15, 0.08) 40%, rgba(51, 39, 15, 0.55)),
    url('/assets/hero.jpg') center 30% / cover no-repeat;
}
.hero .tagline {
  font-size: clamp(2rem, 5vw, 3.2rem); color: #FDF8EC; line-height: 1.25;
  text-shadow: 0 2px 18px rgba(30, 22, 8, 0.75), 0 1px 4px rgba(30, 22, 8, 0.6);
  max-width: 800px;
}

/* ---------- Events list ---------- */
.events-section { padding: 48px 0 72px; }
.events-section h2 {
  text-align: center; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700;
}
.events-section .section-sub {
  text-align: center; color: var(--ink-soft); margin: 8px 0 40px; font-size: 1.05rem;
}
.event-card {
  display: grid; grid-template-columns: 110px 220px 1fr;
  gap: 28px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 30px; margin-bottom: 22px; box-shadow: 0 4px 14px rgba(74, 55, 32, 0.06);
  transition: all 0.2s ease;
}
a.event-card { text-decoration: none; color: inherit; }
a.event-card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold);
}
.event-card.disabled { opacity: 0.72; }
.event-date { text-align: center; border-right: 2px solid var(--cream-deep); padding-right: 20px; }
.event-date .month {
  font-size: 0.8rem; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold-dark); font-weight: 700;
}
.event-date .day { font-family: 'Playfair Display', serif; font-size: 2.6rem; font-weight: 900; line-height: 1.1; }
.event-art {
  height: 130px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: rgba(255, 253, 247, 0.95); overflow: hidden;
}
.event-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 58%; display: block; }
.event-art.art-birthday { background: linear-gradient(135deg, #D9A144, #A96F2D); }
.event-art.art-paws { background: linear-gradient(135deg, #B5772F, #6B4A1E); }
.event-art.art-xmas { background: linear-gradient(135deg, #7A5A32, #3E2E1A); }
.event-info h3 { font-size: 1.45rem; font-weight: 700; }
.event-info .meta { color: var(--ink-soft); font-size: 0.92rem; margin: 4px 0 8px; }
.event-info .desc { font-size: 0.98rem; color: var(--brown); }
.event-cta {
  display: inline-block; margin-top: 12px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; font-size: 0.8rem; color: var(--gold-dark);
}
.badge {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; padding: 4px 12px; border-radius: 999px; margin-top: 10px;
}
.badge-past { background: var(--cream-deep); color: var(--ink-soft); }
.badge-soon { background: rgba(76, 122, 76, 0.12); color: var(--green); }
.badge-live { background: rgba(192, 138, 62, 0.15); color: var(--gold-dark); }

/* ---------- About strip (landing) ---------- */
.about-strip { background: var(--cream-deep); padding: 56px 0; }
.about-strip .inner { max-width: 780px; margin: 0 auto; text-align: center; }
.about-strip h2 { font-size: 2rem; margin-bottom: 6px; }
.about-strip .script { font-size: 1.5rem; }
.about-strip p { margin-top: 16px; color: var(--brown); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brown); color: var(--cream); text-align: center;
  padding: 46px 20px 30px; margin-top: 0;
}
.site-footer .script { color: var(--gold-bright); font-size: 1.9rem; }
.site-footer p { margin-top: 10px; font-size: 0.9rem; opacity: 0.85; }
.site-footer a { color: var(--gold-bright); }
.site-footer .admin-link {
  display: inline-block; margin-top: 18px; font-size: 0.75rem; opacity: 0.55; color: var(--cream);
}
.site-footer .socials { display: flex; gap: 14px; justify-content: center; margin: 20px 0 4px; }
.site-footer .socials a {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid rgba(250, 243, 227, 0.4);
  display: flex; align-items: center; justify-content: center;
  color: var(--cream); transition: all 0.18s ease;
}
.site-footer .socials a:hover {
  background: var(--gold); border-color: var(--gold); color: #fff; transform: translateY(-2px);
}
.site-footer .socials svg { width: 21px; height: 21px; fill: currentColor; }
.site-footer .powered {
  margin-top: 26px; font-size: 0.78rem; letter-spacing: 0.5px; opacity: 0.75;
}
.site-footer .powered a { color: var(--gold-bright); text-decoration: none; font-weight: 600; }
.site-footer .powered a:hover { text-decoration: underline; }

/* ---------- Event page banner ---------- */
.event-banner {
  background:
    linear-gradient(to bottom, rgba(46, 33, 12, 0.45), rgba(46, 33, 12, 0.72)),
    url('/assets/event-gathering.jpg') center 62% / cover no-repeat;
  color: var(--cream); text-align: center; padding: 90px 20px 84px;
}
.event-banner .script { color: var(--gold-bright); font-size: 1.7rem; }
.event-banner h1 {
  color: #fff; font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 900; margin-top: 4px;
}
.event-banner .date-badge {
  display: inline-block; margin-top: 18px; background: rgba(250, 243, 227, 0.14);
  border: 1px solid rgba(250, 243, 227, 0.35); border-radius: 999px;
  padding: 8px 24px; letter-spacing: 2px; font-size: 0.9rem; font-weight: 600;
  text-transform: uppercase;
}

/* ---------- Sponsors / Vendors ---------- */
.sponsors {
  background: var(--card); border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line); padding: 34px 0 38px; margin: 10px 0 14px;
}
.sponsors .container { text-align: center; }
.sponsors .label {
  font-size: 0.78rem; letter-spacing: 3px; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 700; margin-bottom: 14px;
}
.sponsors .logos {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 22px 16px; align-items: start; justify-items: center;
  max-width: 1020px; margin: 0 auto;
}
.sponsors .placeholder { color: var(--ink-soft); font-style: italic; font-size: 0.95rem; grid-column: 1 / -1; }
.vendor { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 0; width: 100%; }
.vendor img, .vendor .no-logo {
  width: 84px; height: 84px; object-fit: contain; border-radius: 14px;
  background: #fff; border: 1px solid var(--cream-deep); padding: 7px;
  box-shadow: 0 2px 8px rgba(74, 55, 32, 0.06);
}
.vendor .no-logo {
  display: flex; align-items: center; justify-content: center;
  background: var(--cream-deep); font-family: 'Playfair Display', serif;
  font-weight: 900; font-size: 1.5rem; color: var(--gold-dark); letter-spacing: 1px;
}
.vendor figcaption {
  font-size: 0.74rem; color: var(--ink-soft); text-align: center; line-height: 1.35;
  font-weight: 600; max-width: 110px;
}

/* ---------- Event page layout ---------- */
.event-layout {
  display: grid; grid-template-columns: 1fr 430px; gap: 36px;
  padding: 46px 0 20px; align-items: start;
}
.content-col section { margin-bottom: 40px; }
.content-col h2 {
  font-size: 1.7rem; font-weight: 700; padding-bottom: 12px;
  border-bottom: 2px solid var(--cream-deep); margin-bottom: 18px;
}
.content-col p { margin-bottom: 14px; color: var(--brown); }
.content-col ul { margin: 0 0 14px 22px; color: var(--brown); }
.content-col li { margin-bottom: 8px; }
.notice-box {
  background: var(--cream-deep); border-left: 4px solid var(--gold);
  border-radius: 8px; padding: 18px 20px; font-size: 0.95rem;
}

/* ---------- Ticket card ---------- */
.ticket-card {
  position: sticky; top: 86px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 26px 26px 22px;
}
.ticket-card .from-price { display: flex; align-items: baseline; gap: 12px; }
.ticket-card .from-price .from { color: var(--ink-soft); font-size: 1rem; }
.ticket-card .from-price .price {
  font-family: 'Playfair Display', serif; font-size: 2.2rem; font-weight: 900; color: var(--gold);
}
.ticket-card hr { border: none; border-top: 1px solid var(--cream-deep); margin: 16px 0; }
.tc-row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.tc-row .icon { font-size: 1.3rem; line-height: 1.4; }
.tc-row .txt { font-size: 0.97rem; }
.tc-row .txt strong { display: block; }
.tc-row .txt a { font-weight: 600; }

.ticket-card h3.choose {
  font-size: 1.2rem; margin: 4px 0 14px;
}
.ticket-line {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px dashed var(--cream-deep);
}
.ticket-line .lbl strong { display: block; font-size: 0.97rem; }
.ticket-line .lbl span { font-size: 0.85rem; color: var(--ink-soft); }
.stepper { display: flex; align-items: center; gap: 0; }
.stepper button {
  width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--gold);
  background: transparent; color: var(--gold-dark); font-size: 1.2rem; font-weight: 700;
  cursor: pointer; line-height: 1; transition: all 0.15s;
}
.stepper button:hover:not(:disabled) { background: var(--gold); color: #fff; }
.stepper button:disabled { opacity: 0.3; cursor: default; }
.stepper .qty { width: 40px; text-align: center; font-weight: 700; font-size: 1.05rem; }

/* Dog tag add-on */
.tag-addon {
  margin-top: 18px; background: var(--cream-soft); border: 1px solid var(--line);
  border-radius: 10px; padding: 14px;
}
.tag-addon .head { display: flex; gap: 12px; align-items: center; }
.tag-addon img { width: 64px; height: 64px; object-fit: contain; }
.tag-addon .head strong { font-size: 0.97rem; display: block; }
.tag-addon .head span { font-size: 0.83rem; color: var(--ink-soft); display: block; }
.tag-addon .head .stepper { margin-left: auto; }
.tag-fields { margin-top: 10px; display: grid; gap: 8px; }
.tag-fields .tag-pair {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  background: #fff; padding: 10px; border-radius: 8px; border: 1px solid var(--cream-deep);
}
.tag-fields .tag-pair .n { grid-column: 1 / -1; font-size: 0.78rem; font-weight: 700; color: var(--gold-dark); letter-spacing: 1px; text-transform: uppercase; }

/* Order summary */
.order-summary { margin-top: 20px; }
.order-summary h3 { font-size: 1.15rem; margin-bottom: 10px; }
.order-summary table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.order-summary th {
  text-align: left; font-size: 0.75rem; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--ink-soft); padding-bottom: 6px; border-bottom: 1px solid var(--cream-deep);
}
.order-summary th:nth-child(2), .order-summary td:nth-child(2) { text-align: center; }
.order-summary th:last-child, .order-summary td:last-child { text-align: right; }
.order-summary td { padding: 7px 0; border-bottom: 1px dashed var(--cream-deep); }
.order-summary .total-row td {
  border-bottom: none; padding-top: 12px; font-weight: 700; font-size: 1.1rem;
}
.order-summary .total-row .amount { color: var(--gold-dark); font-size: 1.3rem; font-family: 'Playfair Display', serif; }
.order-summary .empty { color: var(--ink-soft); font-style: italic; padding: 10px 0; }

/* Contact form */
.contact-form { margin-top: 18px; display: grid; gap: 10px; }
.contact-form h3 { font-size: 1.15rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"] {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 8px;
  font-family: inherit; font-size: 0.95rem; background: #fff; color: var(--ink);
}
input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(192, 138, 62, 0.15); }

.secure-note { text-align: center; font-size: 0.82rem; color: var(--ink-soft); margin-top: 12px; }
.form-error {
  display: none; background: rgba(169, 68, 56, 0.1); color: var(--red);
  border-radius: 8px; padding: 10px 14px; font-size: 0.9rem; margin-top: 10px;
}
.form-error.show { display: block; }
.demo-banner {
  background: rgba(76, 122, 76, 0.12); color: var(--green); border-radius: 8px;
  padding: 8px 14px; font-size: 0.85rem; text-align: center; margin-bottom: 14px;
}

/* ---------- Standalone content sections (T&Cs, Rights of Admission) ---------- */
.content-block { padding: 26px 0 10px; }
.content-block h2 {
  font-size: 1.7rem; font-weight: 700; padding-bottom: 12px;
  border-bottom: 2px solid var(--cream-deep); margin-bottom: 18px;
}
.content-block p { margin-bottom: 14px; color: var(--brown); }
.content-block ul { margin: 0 0 14px 22px; color: var(--brown); }
.content-block li { margin-bottom: 8px; }
.content-block:last-of-type { padding-bottom: 64px; }

/* ---------- Location / Directions ---------- */
.directions { padding: 26px 0 10px; }
.directions h2 {
  font-size: 1.7rem; font-weight: 700; padding-bottom: 12px;
  border-bottom: 2px solid var(--cream-deep); margin-bottom: 22px;
}
.map-wrap {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow); height: 380px;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-wrap a.map-overlay { position: absolute; inset: 0; }
.directions .address { margin-top: 20px; }
.directions .address strong { display: block; font-size: 1.05rem; }
.directions .address p { color: var(--ink-soft); margin: 4px 0 14px; }

/* ---------- Success page ---------- */
.success-wrap { max-width: 640px; margin: 60px auto; padding: 0 24px; text-align: center; }
.success-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 44px 38px;
}
.success-card .big { font-size: 3.4rem; }
.success-card h1 { font-size: 2rem; margin: 10px 0 4px; }
.success-card .order-no {
  display: inline-block; background: var(--cream-deep); border-radius: 999px;
  padding: 6px 20px; font-weight: 700; letter-spacing: 1px; margin: 12px 0;
}
.success-card table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 0.95rem; }
.success-card td { padding: 8px 0; border-bottom: 1px dashed var(--cream-deep); text-align: left; }
.success-card td:last-child { text-align: right; }
.status-pill {
  display: inline-block; padding: 4px 14px; border-radius: 999px; font-size: 0.8rem;
  font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
}
.status-paid, .status-demo { background: rgba(76, 122, 76, 0.15); color: var(--green); }
.status-pending { background: rgba(192, 138, 62, 0.15); color: var(--gold-dark); }
.status-cancelled { background: rgba(169, 68, 56, 0.12); color: var(--red); }

/* ---------- Admin ---------- */
.admin-wrap { max-width: 1180px; margin: 0 auto; padding: 30px 24px 70px; }
.login-card {
  max-width: 400px; margin: 80px auto; background: var(--card); text-align: center;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 40px 34px;
}
.login-card img { width: 110px; height: 110px; object-fit: contain; margin-bottom: 14px; }
.login-card h1 { font-size: 1.5rem; margin-bottom: 18px; }
.login-card form { display: grid; gap: 12px; }

.admin-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.admin-head h1 { font-size: 1.8rem; }
.admin-head .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-sm { padding: 9px 16px; font-size: 0.78rem; }

.stat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px; margin-bottom: 34px;
}
.stat-tile {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: 0 3px 10px rgba(74, 55, 32, 0.05);
}
.stat-tile .num { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 900; color: var(--gold-dark); }
.stat-tile .lbl { font-size: 0.8rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }

.admin-section { margin-bottom: 40px; }
.admin-section h2 { font-size: 1.35rem; margin-bottom: 14px; }
.table-scroll { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 760px; }
table.data th {
  text-align: left; padding: 12px 14px; background: var(--cream-deep);
  font-size: 0.73rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--brown);
}
table.data td { padding: 11px 14px; border-top: 1px solid var(--cream-deep); vertical-align: top; }
table.data tr:hover td { background: var(--cream-soft); }
.row-actions { display: flex; gap: 6px; }
.row-actions button {
  border: 1px solid var(--line); background: #fff; border-radius: 6px; cursor: pointer;
  font-size: 0.75rem; padding: 4px 10px; font-weight: 600; color: var(--brown);
}
.row-actions button:hover { border-color: var(--gold); color: var(--gold-dark); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .event-layout { grid-template-columns: 1fr; }
  .ticket-card { position: static; }
  .event-card { grid-template-columns: 90px 1fr; }
  .event-art { grid-column: 1 / -1; grid-row: 1; height: 170px; width: 100%; }
  .event-date { grid-row: 2; }
  .event-info { grid-row: 2; }
}
@media (max-width: 560px) {
  .event-card { grid-template-columns: 1fr; gap: 10px; }
  .event-art { grid-column: 1; grid-row: 1; }
  .event-date { grid-row: 2; border-right: none; border-bottom: 2px solid var(--cream-deep); padding: 0 0 10px; }
  .event-info { grid-row: 3; }
  .site-header nav { display: none; }
  .tag-fields .tag-pair { grid-template-columns: 1fr; }
}
