/* ============================================================
   SUN LAW AZ — Booking App Public Stylesheet
   Brand: Oswald (headings) · Roboto (body) · Lora (accents)
   Gold: #CFA74C · Cream: #FCF8EE · Black: #000 · Text: #364D59
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;600;700&family=Roboto:wght@300;400;500;700&family=Lora:ital,wght@0,400;0,600;1,400;1,600&display=swap');

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --gold:         #CFA74C;
  --gold-light:   #E3B853;
  --gold-dark:    #A1833B;
  --gold-glow:    rgba(207, 167, 76, 0.22);
  --gold-shadow:  0 8px 32px rgba(207, 167, 76, 0.26);
  --cream:        #FCF8EE;
  --black:        #000000;
  --text:         #364D59;
  --text-soft:    #52565E;
  --bg-light:     #F5F6F7;
  --ease:         cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce:  cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--text);
  background: var(--cream);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--gold-dark); text-decoration: none; }
a:hover { color: var(--gold); }
img { display: block; max-width: 100%; }

/* ── Flash messages ────────────────────────────────────────── */
.flash {
  padding: .75rem 1.5rem;
  font-family: 'Roboto', sans-serif;
  font-size: .875rem;
  font-weight: 500;
  text-align: center;
  letter-spacing: .02em;
}
.flash--notice { background: #d3f9d8; color: #1a6b2a; }
.flash--alert  { background: #ffe3e3; color: #c92a2a; }

/* ── Site Header ───────────────────────────────────────────── */
.site-header {
  background: var(--black);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(207, 167, 76, 0.3);
}
.site-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.site-logo {
  height: 44px;
  width: auto;
  flex-shrink: 0;
}
.header-contact {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--gold-light);
  font-family: 'Roboto', sans-serif;
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-decoration: none;
  transition: color .2s;
}
.header-contact:hover { color: #fff; }
.header-contact-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ── Page wrapper / footer push ───────────────────────────── */
.page-content {
  flex: 1;
}

/* ── Gold divider accent ───────────────────────────────────── */
.gold-line {
  display: block;
  width: 52px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto;
}
.gold-line-left {
  margin: 0;
}

/* ── Section heading pattern (Oswald) ─────────────────────── */
.section-label {
  font-family: 'Oswald', sans-serif;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .5rem;
}
.section-title {
  font-family: 'Oswald', sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--black);
  line-height: 1.1;
}

/* ── Animations ────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.anim-fade-up {
  animation: fadeUp .7s var(--ease) both;
}
.anim-fade-up-2 { animation: fadeUp .7s var(--ease) .1s both; }
.anim-fade-up-3 { animation: fadeUp .7s var(--ease) .2s both; }
.anim-fade-up-4 { animation: fadeUp .7s var(--ease) .3s both; }

@media (prefers-reduced-motion: reduce) {
  .anim-fade-up, .anim-fade-up-2, .anim-fade-up-3, .anim-fade-up-4 {
    animation: none;
  }
}

/* ============================================================
   CALENDAR PAGE — /e/:meeting_url
   ============================================================ */
.cal-hero {
  background: var(--black);
  color: #fff;
  padding: 3rem 2rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cal-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.cal-hero .section-label { color: var(--gold-light); }
.cal-hero-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #fff;
  line-height: 1.1;
  margin-bottom: .5rem;
}
.cal-hero-title span { color: var(--gold-light); }
.cal-hero-subtitle {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 1rem;
  color: rgba(255,255,255,.65);
  margin-top: .5rem;
}

.cal-body {
  max-width: 780px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

/* 7-day strip */
.cal-days-label {
  font-family: 'Oswald', sans-serif;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: .75rem;
}

.day-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .5rem;
  margin-bottom: 2.5rem;
}

.day-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: .875rem .25rem;
  border: 1.5px solid #d8d2c4;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease), color .2s;
  gap: .1rem;
  position: relative;
  overflow: hidden;
}
.day-btn::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform .2s var(--ease);
}
.day-btn:hover { border-color: var(--gold); background: var(--cream); }
.day-btn:hover::after { transform: scaleX(1); }
.day-btn.active {
  border-color: var(--gold);
  background: var(--black);
  color: #fff;
}
.day-btn.active::after { transform: scaleX(1); background: var(--gold-light); }

.day-name  {
  font-family: 'Oswald', sans-serif;
  font-size: .6rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: inherit;
  opacity: .7;
}
.day-num   {
  font-family: 'Oswald', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  color: inherit;
}
.day-month {
  font-family: 'Roboto', sans-serif;
  font-size: .6rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: inherit;
  opacity: .6;
}
.day-btn.active .day-name,
.day-btn.active .day-month { opacity: .7; }

/* Slot section */
.slot-section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.slot-heading {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text);
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: .6rem;
}

.slot {
  display: block;
  padding: .75rem .5rem;
  border-radius: 3px;
  font-family: 'Oswald', sans-serif;
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-align: center;
  transition: all .2s var(--ease);
  text-decoration: none;
}
.slot--available {
  background: #fff;
  border: 1.5px solid var(--gold);
  color: var(--text);
}
.slot--available:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--gold-shadow);
  text-decoration: none;
}
.slot--booked {
  background: var(--bg-light);
  border: 1.5px solid #ddd;
  color: #bbb;
  cursor: not-allowed;
  text-decoration: line-through;
}
.slot-empty, .slot-loading, .slot-error {
  grid-column: 1 / -1;
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: .95rem;
  color: var(--text-soft);
  padding: 1.5rem 0;
  text-align: center;
}
.slot-error { color: #c92a2a; }

/* ============================================================
   BOOKING FORM — /e/:meeting_url/book
   ============================================================ */
.booking-page {
  min-height: calc(100vh - 72px);
  background: var(--cream);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 3rem 1.25rem 5rem;
}

.booking-card {
  background: #fff;
  border: 1px solid rgba(207, 167, 76, 0.25);
  border-top: 3px solid var(--gold);
  border-radius: 2px;
  box-shadow: 0 20px 60px rgba(0,0,0,.07);
  padding: 3rem 2.5rem;
  width: 100%;
  max-width: 520px;
}

.booking-eyebrow {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.75rem;
}
.booking-eyebrow-line {
  flex: 1;
  height: 1px;
  background: rgba(207, 167, 76, 0.3);
}

.booking-event-name {
  font-family: 'Oswald', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--black);
  margin-bottom: .5rem;
  line-height: 1.1;
}

.booking-time-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--black);
  color: var(--gold-light);
  font-family: 'Oswald', sans-serif;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .45rem .9rem;
  border-radius: 2px;
  margin-bottom: 2rem;
}
.booking-time-badge svg {
  width: 14px; height: 14px;
  fill: var(--gold);
  flex-shrink: 0;
}

/* Form fields */
.booking-form .form-group {
  margin-bottom: 1.35rem;
}
.booking-form label {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: .4rem;
}
.booking-form label .req {
  color: var(--gold);
  margin-left: .1rem;
}
.booking-form input[type="text"],
.booking-form input[type="email"],
.booking-form input[type="tel"] {
  display: block;
  width: 100%;
  padding: .8rem 1rem;
  border: 1.5px solid #ddd;
  border-radius: 45px;
  font-family: 'Roboto', sans-serif;
  font-size: .95rem;
  color: var(--text);
  background: var(--cream);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.booking-form input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(207, 167, 76, 0.18);
  background: #fff;
}

.form-errors {
  background: #fff5f5;
  border-left: 3px solid #c92a2a;
  padding: .9rem 1rem;
  margin-bottom: 1.5rem;
  font-size: .875rem;
  color: #c92a2a;
}
.form-errors p + p { margin-top: .25rem; }

/* Submit button */
.btn-gold {
  display: block;
  width: 100%;
  padding: 1rem 2rem;
  background: var(--gold);
  color: #fff;
  border: 2px solid var(--gold);
  border-radius: 50px;
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, color .2s, transform .15s, box-shadow .2s;
  text-align: center;
  text-decoration: none;
  margin-top: 1.5rem;
}
.btn-gold:hover {
  background: transparent;
  color: var(--gold-dark);
  transform: translateY(-1px);
  box-shadow: var(--gold-shadow);
  text-decoration: none;
}
.btn-gold:active { transform: scale(.98); }

.back-link {
  display: block;
  text-align: center;
  margin-top: 1.25rem;
  font-family: 'Roboto', sans-serif;
  font-size: .825rem;
  color: var(--text-soft);
  letter-spacing: .02em;
}
.back-link a { color: var(--gold-dark); }
.back-link a:hover { color: var(--gold); }

/* ============================================================
   CONFIRMATION PAGE
   ============================================================ */
.confirm-page {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.25rem 5rem;
  background: var(--cream);
}

.confirm-card {
  background: #fff;
  border: 1px solid rgba(207, 167, 76, 0.25);
  border-top: 3px solid var(--gold);
  border-radius: 2px;
  box-shadow: 0 20px 60px rgba(0,0,0,.07);
  padding: 3.5rem 2.5rem;
  width: 100%;
  max-width: 540px;
  text-align: center;
}

.confirm-icon {
  width: 68px;
  height: 68px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.75rem;
  background: var(--cream);
}
.confirm-icon svg {
  width: 28px; height: 28px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.confirm-title {
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--black);
  margin-bottom: .5rem;
}
.confirm-subtitle {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--text-soft);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.confirm-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.75rem;
}
.confirm-divider-line {
  flex: 1;
  height: 1px;
  background: rgba(207, 167, 76, 0.3);
}
.confirm-divider-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.confirm-details {
  background: var(--cream);
  border: 1px solid rgba(207, 167, 76, 0.2);
  border-radius: 2px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  text-align: left;
}
.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: .6rem 0;
  border-bottom: 1px solid rgba(207, 167, 76, 0.15);
}
.detail-row:last-child { border-bottom: none; padding-bottom: 0; }
.detail-row:first-child { padding-top: 0; }
.detail-label {
  font-family: 'Oswald', sans-serif;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  flex-shrink: 0;
}
.detail-value {
  font-family: 'Roboto', sans-serif;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
  text-align: right;
}

.confirm-note {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: .9rem;
  color: var(--text-soft);
  line-height: 1.65;
  margin-bottom: 0;
}

/* ============================================================
   SITE FOOTER
   ============================================================ */
.site-footer {
  background: var(--black);
  color: #fff;
  padding: 3.5rem 2rem 2rem;
  border-top: 1px solid rgba(207, 167, 76, 0.3);
}
.site-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem 4rem;
  align-items: start;
}
.footer-logo {
  height: 40px;
  width: auto;
  margin-bottom: 1.25rem;
}
.footer-tagline {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: .9rem;
  color: rgba(255,255,255,.55);
  line-height: 1.6;
  max-width: 300px;
}
.footer-contact-heading {
  font-family: 'Oswald', sans-serif;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-family: 'Roboto', sans-serif;
  font-size: .875rem;
  color: rgba(255,255,255,.75);
  line-height: 1.5;
}
.footer-contact-list li a {
  color: rgba(255,255,255,.75);
  transition: color .2s;
}
.footer-contact-list li a:hover { color: var(--gold-light); }
.footer-contact-icon {
  width: 15px; height: 15px;
  fill: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}
.footer-bottom {
  max-width: 1100px;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-copy {
  font-family: 'Roboto', sans-serif;
  font-size: .775rem;
  color: rgba(255,255,255,.35);
  letter-spacing: .02em;
}
.footer-disclaimer {
  font-family: 'Roboto', sans-serif;
  font-size: .75rem;
  color: rgba(255,255,255,.25);
  letter-spacing: .01em;
  text-align: right;
}

/* ============================================================
   AUTH PAGES (login / signup — minimal, consistent)
   ============================================================ */
.auth-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 72px);
  padding: 2rem 1rem;
  background: var(--cream);
}
.auth-card {
  background: #fff;
  border: 1px solid rgba(207, 167, 76, 0.25);
  border-top: 3px solid var(--gold);
  border-radius: 2px;
  box-shadow: 0 20px 60px rgba(0,0,0,.07);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 420px;
}
.auth-card h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--black);
  margin-bottom: 1.5rem;
}
.auth-subtitle {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: .9rem;
  color: var(--text-soft);
  margin-bottom: 1.5rem;
}
.auth-form .form-group { margin-bottom: 1.1rem; }
.auth-form label {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: .4rem;
}
.auth-form input {
  display: block;
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid #ddd;
  border-radius: 45px;
  font-family: 'Roboto', sans-serif;
  font-size: .95rem;
  background: var(--cream);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.auth-form input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(207, 167, 76, 0.18);
  background: #fff;
}
.auth-form .btn-gold { margin-top: .75rem; }

/* ============================================================
   INLINE BOOKING CONFIRMATION (Turbo Stream replacement)
   ============================================================ */
@keyframes confirmReveal {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.inline-confirm {
  animation: confirmReveal .5s var(--ease) both;
  text-align: center;
  padding: .5rem 0;
}

.inline-confirm-icon {
  width: 60px;
  height: 60px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  background: var(--cream);
}
.inline-confirm-icon svg {
  width: 26px; height: 26px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.inline-confirm-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--black);
  margin-bottom: .6rem;
}

.inline-confirm-message {
  font-family: 'Roboto', sans-serif;
  font-size: .95rem;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.inline-confirm-details {
  background: var(--cream);
  border: 1px solid rgba(207, 167, 76, 0.25);
  border-left: 3px solid var(--gold);
  border-radius: 2px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.25rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.inline-confirm-row {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-family: 'Roboto', sans-serif;
  font-size: .9rem;
  color: var(--text);
  line-height: 1.5;
}
.inline-confirm-row svg {
  width: 16px; height: 16px;
  fill: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}
.inline-confirm-row a { color: var(--gold-dark); }
.inline-confirm-row a:hover { color: var(--gold); }

.inline-confirm-note {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: .85rem;
  color: var(--text-soft);
  line-height: 1.6;
}
.inline-confirm-note a { color: var(--gold-dark); font-style: normal; }
.inline-confirm-note a:hover { color: var(--gold); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .day-strip {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .3rem;
    justify-items: center;
  }
  .day-btn { padding: .6rem .15rem; width: 100%; }
  .day-num  { font-size: 1.2rem; }
  .booking-card, .confirm-card { padding: 2rem 1.25rem; }
  .site-footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-disclaimer { text-align: left; }
  .cal-hero { padding: 2rem 1.25rem; }
}
@media (max-width: 420px) {
  .day-name, .day-month { display: none; }
  .day-btn { padding: .5rem .1rem; }
}
