/* ===========================
   GARP Steward — Global Styles
   =========================== */

:root {
  --navy:    #1a2b4a;
  --teal:    #2a7f7f;
  --gold:    #c9a84c;
  --ivory:   #f8f5ef;
  --white:   #ffffff;
  --gray:    #6b7280;
  --light:   #e8e4dc;
  --dark:    #111827;
  --radius:  8px;
  --shadow:  0 4px 20px rgba(0,0,0,0.08);
  --transition: 0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Georgia', serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--dark);
  background: var(--white);
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: 'Georgia', serif;
  line-height: 1.25;
  color: var(--navy);
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p  { max-width: 68ch; }

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--gold); }

/* ---- Layout ---- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 88px 0; }
.section-alt { background: var(--ivory); }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: 'Georgia', serif;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
}
.btn-primary   { background: var(--gold); color: var(--navy); font-weight: bold; }
.btn-primary:hover { background: #b8963e; color: var(--navy); }
.btn-outline   { background: transparent; border: 2px solid var(--gold); color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--navy); }
.btn-teal      { background: var(--teal); color: var(--white); }
.btn-teal:hover { background: #236868; color: var(--white); }

/* ---- Navigation ---- */
#navbar {
  position: sticky; top: 0; z-index: 1000;
  background: var(--navy);
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-logo {
  font-size: 1.35rem; font-weight: bold; color: var(--gold);
  letter-spacing: 0.02em;
}
.nav-logo span { color: var(--white); font-weight: normal; }
.nav-links { display: flex; gap: 28px; list-style: none; align-items: center; }
.nav-links a { color: var(--light); font-size: 0.92rem; letter-spacing: 0.03em; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-links .btn { padding: 8px 20px; font-size: 0.88rem; }

/* Lang toggle */
.lang-toggle {
  display: flex; gap: 4px; align-items: center;
  background: rgba(255,255,255,0.1);
  border-radius: 20px; padding: 4px 6px;
}
.lang-btn {
  background: none; border: none; color: var(--light);
  font-size: 0.8rem; padding: 3px 10px; border-radius: 14px;
  cursor: pointer; transition: var(--transition);
}
.lang-btn.active { background: var(--gold); color: var(--navy); font-weight: bold; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); transition: var(--transition); }

/* ---- Hero ---- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0f1e35 60%, #1a3a5c 100%);
  color: var(--white);
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; max-width: 760px; }
.hero-tag {
  display: inline-block;
  background: rgba(201,168,76,0.2);
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 5px 16px; border-radius: 20px;
  font-size: 0.82rem; letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 24px;
}
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero p { color: rgba(255,255,255,0.78); font-size: 1.15rem; margin-bottom: 36px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---- Cards ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px; margin-top: 48px;
}
.card {
  background: var(--white);
  border-radius: 12px;
  padding: 36px 32px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--gold);
  transition: var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,0.12); }
.card-icon { font-size: 2.2rem; margin-bottom: 16px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.95rem; color: var(--gray); }

/* ---- Section headers ---- */
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .eyebrow {
  display: inline-block; color: var(--teal);
  font-size: 0.78rem; letter-spacing: 0.15em;
  text-transform: uppercase; margin-bottom: 12px;
}
.section-header h2 { margin-bottom: 14px; }
.section-header p { color: var(--gray); margin: 0 auto; text-align: center; }
.divider {
  width: 52px; height: 3px;
  background: var(--gold);
  margin: 18px auto 0;
  border-radius: 2px;
}

/* ---- Roles ---- */
.roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px; margin-top: 48px;
}
.role-card {
  border: 1px solid var(--light);
  border-radius: 12px; padding: 40px 32px;
  position: relative; overflow: hidden;
  transition: var(--transition);
}
.role-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--gold);
}
.role-card:hover { box-shadow: var(--shadow); border-color: var(--gold); }
.role-number {
  font-size: 3rem; font-weight: bold;
  color: var(--light); position: absolute;
  top: 20px; right: 24px; line-height: 1;
}
.role-card h3 { color: var(--teal); margin-bottom: 12px; font-size: 1.15rem; }

/* ---- Programs page ---- */
.program-block {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px; align-items: start;
  padding: 56px 0;
  border-bottom: 1px solid var(--light);
}
.program-block:last-child { border-bottom: none; }
.program-meta { position: sticky; top: 90px; }
.program-label {
  display: inline-block;
  background: var(--teal); color: var(--white);
  font-size: 0.75rem; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 4px 14px;
  border-radius: 20px; margin-bottom: 16px;
}
.program-weeks { color: var(--gray); font-size: 0.9rem; margin-top: 8px; }
.program-body h3 { color: var(--navy); margin: 24px 0 8px; font-size: 1.05rem; }
.program-body ul { padding-left: 20px; color: var(--gray); font-size: 0.95rem; }
.program-body ul li { margin-bottom: 6px; }

/* ---- Philosophy ---- */
.philosophy-body {
  max-width: 780px; margin: 0 auto;
}
.philosophy-body p { margin-bottom: 24px; color: #333; }
.philosophy-body h3 { margin: 40px 0 16px; color: var(--teal); }
.pull-quote {
  border-left: 4px solid var(--gold);
  padding: 16px 28px;
  margin: 32px 0;
  background: var(--ivory);
  border-radius: 0 8px 8px 0;
  font-size: 1.1rem; font-style: italic;
  color: var(--navy);
}

/* ---- Calendar ---- */
.calendar-wrapper {
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.cal-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px;
  background: var(--navy);
  color: var(--white);
  gap: 16px; flex-wrap: wrap;
}
.cal-toolbar h3 { color: var(--white); font-size: 1.1rem; min-width: 180px; }
.cal-view-btns { display: flex; gap: 6px; }
.cal-view-btn {
  background: rgba(255,255,255,0.12); border: none;
  color: var(--light); padding: 7px 18px;
  border-radius: 6px; cursor: pointer;
  font-size: 0.85rem; transition: var(--transition);
}
.cal-view-btn.active { background: var(--gold); color: var(--navy); font-weight: bold; }
.cal-nav { display: flex; gap: 8px; align-items: center; }
.cal-nav-btn {
  background: rgba(255,255,255,0.12); border: none;
  color: var(--white); width: 34px; height: 34px;
  border-radius: 6px; cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.cal-nav-btn:hover { background: var(--gold); color: var(--navy); }
.cal-today-btn {
  background: rgba(255,255,255,0.12); border: none;
  color: var(--light); padding: 7px 14px;
  border-radius: 6px; cursor: pointer;
  font-size: 0.82rem; transition: var(--transition);
}
.cal-today-btn:hover { background: rgba(255,255,255,0.22); }

/* Month view */
.cal-month { padding: 0; }
.cal-month-header {
  display: grid; grid-template-columns: repeat(7, 1fr);
  background: var(--ivory);
}
.cal-month-header .dow {
  text-align: center; padding: 10px 0;
  font-size: 0.78rem; font-weight: bold;
  color: var(--gray); text-transform: uppercase; letter-spacing: 0.05em;
}
.cal-month-grid {
  display: grid; grid-template-columns: repeat(7, 1fr);
  border-top: 1px solid var(--light);
  border-left: 1px solid var(--light);
}
.cal-day {
  min-height: 100px; padding: 8px;
  border-right: 1px solid var(--light);
  border-bottom: 1px solid var(--light);
  cursor: pointer; transition: background var(--transition);
  position: relative;
}
.cal-day:hover { background: var(--ivory); }
.cal-day.other-month .day-num { color: #ccc; }
.cal-day.today .day-num {
  background: var(--teal); color: var(--white);
  border-radius: 50%; width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.88rem;
}
.cal-day.has-slots::after {
  content: '';
  position: absolute; bottom: 6px; right: 8px;
  width: 8px; height: 8px;
  background: var(--gold); border-radius: 50%;
}
.day-num { font-size: 0.88rem; color: var(--navy); margin-bottom: 4px; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; }
.day-slots { display: flex; flex-direction: column; gap: 2px; }
.slot-chip {
  font-size: 0.7rem; padding: 2px 6px;
  border-radius: 4px; background: rgba(42,127,127,0.12);
  color: var(--teal); white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; cursor: pointer;
}
.slot-chip.booked { background: rgba(201,168,76,0.15); color: var(--gold); }
.slot-chip.full { background: #fee2e2; color: #dc2626; cursor: default; }

/* Week view */
.cal-week {
  display: grid;
  grid-template-columns: 64px repeat(7, 1fr);
  border-top: 1px solid var(--light);
  overflow-x: auto;
}
.week-time-col { background: var(--ivory); }
.week-day-header {
  text-align: center; padding: 12px 4px;
  font-size: 0.8rem; border-bottom: 2px solid var(--light);
  border-left: 1px solid var(--light);
  position: sticky; top: 0; background: var(--white); z-index: 2;
}
.week-day-header.today-col { background: rgba(42,127,127,0.06); }
.week-day-header .wk-dow { color: var(--gray); font-size: 0.72rem; text-transform: uppercase; }
.week-day-header .wk-date { font-size: 1.1rem; font-weight: bold; color: var(--navy); }
.week-day-header.today-col .wk-date { color: var(--teal); }
.week-time-header { height: 52px; border-bottom: 2px solid var(--light); }
.week-body { display: contents; }
.time-label {
  font-size: 0.72rem; color: var(--gray);
  padding: 0 8px;
  display: flex; align-items: flex-start; justify-content: flex-end;
  height: 64px; padding-top: 6px;
  border-bottom: 1px solid var(--light);
}
.week-slot-cell {
  height: 64px; border-left: 1px solid var(--light);
  border-bottom: 1px solid var(--light);
  position: relative; cursor: pointer;
  transition: background var(--transition);
}
.week-slot-cell:hover { background: var(--ivory); }
.week-slot-cell.today-col { background: rgba(42,127,127,0.025); }
.slot-block {
  position: absolute; inset: 3px 4px;
  border-radius: 5px; padding: 4px 8px;
  font-size: 0.73rem; font-weight: bold;
  cursor: pointer; transition: var(--transition);
  overflow: hidden;
}
.slot-block.available { background: rgba(42,127,127,0.15); color: var(--teal); border-left: 3px solid var(--teal); }
.slot-block.available:hover { background: rgba(42,127,127,0.28); }
.slot-block.booked { background: rgba(201,168,76,0.18); color: #8b6914; border-left: 3px solid var(--gold); }
.slot-block.full { background: #fee2e2; color: #dc2626; border-left: 3px solid #dc2626; cursor: default; }

/* Day view */
.cal-day-view { padding: 0; }
.day-view-header {
  text-align: center; padding: 24px;
  background: var(--ivory); border-bottom: 1px solid var(--light);
}
.day-view-header h4 { font-size: 1.3rem; color: var(--navy); }
.day-view-header p { color: var(--gray); font-size: 0.9rem; }
.day-view-slots { padding: 16px 24px; display: flex; flex-direction: column; gap: 8px; }
.day-slot-row {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 20px;
  border: 1px solid var(--light); border-radius: 10px;
  cursor: pointer; transition: var(--transition);
}
.day-slot-row:hover { border-color: var(--teal); background: var(--ivory); }
.day-slot-row.full { opacity: 0.6; cursor: default; }
.day-slot-row.full:hover { border-color: var(--light); background: none; }
.day-slot-time {
  font-size: 0.95rem; font-weight: bold; color: var(--navy);
  min-width: 120px;
}
.day-slot-info { flex: 1; }
.day-slot-title { font-size: 0.92rem; color: var(--teal); }
.day-slot-spots { font-size: 0.8rem; color: var(--gray); }
.day-slot-action .btn { padding: 8px 20px; font-size: 0.82rem; }
.day-slot-row.full .day-slot-action .btn { background: var(--light); color: var(--gray); cursor: default; }

/* ---- Modal ---- */
.modal-backdrop {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.55); z-index: 2000;
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--white); border-radius: 16px;
  max-width: 520px; width: 100%;
  box-shadow: 0 24px 80px rgba(0,0,0,0.25);
  overflow: hidden; animation: slideUp 0.25s ease;
}
@keyframes slideUp { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-header {
  background: var(--navy); padding: 24px 28px;
  display: flex; align-items: flex-start; justify-content: space-between;
}
.modal-header h3 { color: var(--white); font-size: 1.05rem; }
.modal-header p { color: rgba(255,255,255,0.65); font-size: 0.88rem; margin-top: 4px; }
.modal-close {
  background: none; border: none; color: rgba(255,255,255,0.6);
  font-size: 1.4rem; cursor: pointer; line-height: 1;
  transition: var(--transition); padding: 0 0 0 16px; flex-shrink: 0;
}
.modal-close:hover { color: var(--white); }
.modal-body { padding: 28px; }
.modal-slot-summary {
  background: var(--ivory); border-radius: 8px; padding: 14px 18px;
  margin-bottom: 24px; border-left: 4px solid var(--gold);
}
.modal-slot-summary p { font-size: 0.92rem; color: var(--navy); margin: 0; max-width: 100%; }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 0.85rem; color: var(--gray); margin-bottom: 6px; font-family: sans-serif; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--light); border-radius: 8px;
  font-size: 0.95rem; font-family: 'Georgia', serif;
  transition: var(--transition); background: var(--white);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(42,127,127,0.12);
}
.form-row textarea { height: 80px; resize: vertical; }
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.modal-footer { padding: 0 28px 28px; display: flex; gap: 12px; justify-content: flex-end; }
.modal-success {
  text-align: center; padding: 48px 28px;
  display: none;
}
.modal-success.show { display: block; }
.success-icon { font-size: 3rem; margin-bottom: 16px; }
.modal-success h3 { color: var(--teal); margin-bottom: 10px; }
.modal-success p { color: var(--gray); font-size: 0.92rem; margin: 0 auto; }

/* ---- Contact ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px; align-items: start;
}
.contact-info h2 { margin-bottom: 16px; }
.contact-info p { color: var(--gray); }
.contact-detail { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-item-icon { font-size: 1.2rem; margin-top: 2px; }
.contact-item-text strong { display: block; color: var(--navy); }
.contact-item-text span { color: var(--gray); font-size: 0.92rem; }
.contact-form { background: var(--white); border-radius: 16px; padding: 40px; box-shadow: var(--shadow); }
.contact-form h3 { margin-bottom: 24px; }

/* ---- Footer ---- */
footer {
  background: var(--navy); color: rgba(255,255,255,0.6);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-brand .nav-logo { display: inline-block; margin-bottom: 14px; }
.footer-brand p { font-size: 0.9rem; max-width: 340px; }
.footer-col h4 { color: var(--white); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.footer-col ul a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.83rem; flex-wrap: wrap; gap: 8px;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--navy); padding: 20px 24px; gap: 16px; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  #navbar { position: relative; }
  .hero { padding: 72px 0 64px; }
  .hero-ctas { flex-direction: column; }
  .program-block { grid-template-columns: 1fr; gap: 24px; }
  .program-meta { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-2col { grid-template-columns: 1fr; }
  .cal-week { font-size: 0.8rem; }
  .modal-footer { flex-direction: column; }
  .modal-footer .btn { width: 100%; text-align: center; }
}
@media (max-width: 480px) {
  .cal-month-header .dow { font-size: 0.65rem; padding: 8px 0; }
  .cal-day { min-height: 64px; padding: 4px; }
  .day-slot-row { flex-wrap: wrap; }
  .day-slot-action { width: 100%; }
  .day-slot-action .btn { width: 100%; }
}
