/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: #13203a;
  background: #f6f8fc;
  font-family: system-ui, sans-serif;
}

a:focus-visible {
  outline: 3px solid #f76b1c;
  outline-offset: 4px;
}

.site-header {
  background: #f9fbff;
  border-bottom: 1px solid #d7e0ed;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #13203a;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.brand__icon {
  width: 22px;
  height: 22px;
  color: #f76b1c;
}

.site-header__link {
  color: #5b6e8e;
  font-size: 14px;
  text-decoration: none;
}

.site-header__link:hover {
  color: #13203a;
}

.page {
  min-height: calc(100vh - 61px);
  padding: 56px 24px;
  background:
    radial-gradient(ellipse at 8% 10%, #cfe0ff 0, transparent 55%),
    radial-gradient(ellipse at 92% 3%, #ffe9d8 0, transparent 46%),
    #f6f8fc;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 64px;
  max-width: 1152px;
  margin: 0 auto;
}

.hero__intro {
  max-width: 520px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 20px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  color: #5e7192;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  line-height: 1.15;
}

.hero__description {
  max-width: 490px;
  margin: 24px 0;
  color: #5e7192;
  font-size: 18px;
  line-height: 1.6;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.button--primary {
  background: #c45100;
  color: #fff;
}

.button--primary::after {
  content: "→";
  margin-left: 14px;
  font-size: 20px;
  font-weight: 400;
}

.button--primary:hover {
  background: #a74400;
}

.button--secondary {
  border: 1px solid #d3deec;
  background: #fff;
  color: #13203a;
}

.button--secondary:hover {
  border-color: #a9bbd3;
}

.feature-card,
.placeholder {
  border: 1px solid #d5dfed;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 4px rgb(21 39 67 / 4%);
}

.feature-card {
  min-height: 250px;
  padding: 24px;
}

.feature-card__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.feature-card h2 {
  margin: 0;
  font-size: 20px;
}

.feature-card__badge {
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff1e8;
  color: #bd4c00;
  font-size: 12px;
  font-weight: 700;
}

.feature-card ul {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding-left: 18px;
  color: #5e7192;
  font-size: 14px;
  line-height: 1.5;
}

.page--centered {
  display: grid;
  place-items: center;
}

.placeholder {
  width: min(100%, 620px);
  padding: clamp(28px, 6vw, 56px);
}

.placeholder h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
}

.placeholder .eyebrow {
  padding: 0;
  background: transparent;
}

.placeholder > p:not(.eyebrow) {
  margin: 20px 0 28px;
  color: #5e7192;
  font-size: 17px;
  line-height: 1.6;
}

@media (max-width: 740px) {
  .page {
    padding: 40px 20px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .feature-card {
    min-height: auto;
  }
}

.site-header__links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.catalog,
.admin-page {
  width: min(100%, 900px);
  margin: 0 auto;
}

.catalog h1,
.admin-page h1 {
  margin-bottom: 28px;
}

.event-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 18px;
  margin-top: 28px;
}

.event-type-card,
.admin-panel,
.empty-state {
  padding: 24px;
  border: 1px solid #d5dfed;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 4px rgb(21 39 67 / 4%);
}

.event-type-card h2,
.admin-section h2,
.empty-state h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

.event-type-card p,
.empty-state p,
.empty-state__text {
  color: #5e7192;
  line-height: 1.6;
}

.event-type-card__duration {
  margin-bottom: 0;
  font-weight: 700;
}

.empty-state {
  margin-top: 28px;
}

.empty-state .button {
  margin-top: 8px;
}

.admin-panel {
  padding: clamp(24px, 5vw, 40px);
}

.admin-section {
  margin-top: 36px;
}

.event-type-form {
  display: grid;
  gap: 18px;
  max-width: 560px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field label {
  font-weight: 700;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #c6d2e1;
  border-radius: 8px;
  color: inherit;
  font: inherit;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 3px solid rgb(247 107 28 / 30%);
  border-color: #c45100;
}

.field-error {
  margin: 0;
  color: #a52828;
  font-size: 14px;
}

.notice {
  padding: 12px 16px;
  border-radius: 8px;
  background: #eaf7ed;
  color: #1c6730;
}

.admin-event-type-list {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.admin-event-type-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #e5ebf3;
}

.admin-event-type-list span {
  color: #5e7192;
}

.catalog__back-link {
  display: inline-block;
  margin-bottom: 28px;
  color: #5b6e8e;
}

.catalog__description {
  max-width: 680px;
  color: #5e7192;
  font-size: 17px;
  line-height: 1.6;
}

.catalog__section-title {
  margin: 36px 0 16px;
  font-size: 20px;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(68px, 1fr));
  gap: 8px;
}

.calendar-days__link {
  display: grid;
  min-height: 44px;
  place-items: center;
  border: 1px solid #d3deec;
  border-radius: 8px;
  background: #fff;
  color: #13203a;
  text-decoration: none;
}

.calendar-days__link:hover,
.calendar-days__link--selected {
  border-color: #c45100;
  background: #fff1e8;
}

.available-slots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.available-slots li {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid #d3deec;
  border-radius: 8px;
  background: #fff;
  font-variant-numeric: tabular-nums;
}

.available-slots__button {
  display: inline-flex;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.available-slots__button:hover,
.available-slots__button[aria-pressed="true"] {
  color: #a74400;
}

.available-slots__empty {
  grid-column: 1 / -1;
  color: #5e7192;
}

.selected-time {
  margin: 24px 0 12px;
  font-weight: 700;
}

.guest-booking-form {
  display: grid;
  gap: 18px;
  max-width: 560px;
  margin-top: 12px;
}

.booking-status {
  min-height: 1.5em;
  color: #a52828;
}

.booking-confirmation {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid #b8dec1;
  border-radius: 12px;
  background: #f2fbf4;
}

.booking-confirmation h2 {
  margin-top: 0;
}

.admin-booking-list {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.admin-booking-list li {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto minmax(160px, 1fr) minmax(120px, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #e5ebf3;
}

@media (max-width: 640px) {
  .admin-booking-list li {
    grid-template-columns: 1fr auto;
  }
}
