:root {
  --page: #f6fbfd;
  --paper: #ffffff;
  --ink: #101923;
  --soft-ink: #253849;
  --muted: #607283;
  --teal: #077f8d;
  --teal-dark: #075a66;
  --blue: #cfeeff;
  --aqua: #e9fbff;
  --silver: #d7e3ea;
  --line: rgba(16, 25, 35, 0.12);
  --line-strong: rgba(7, 127, 141, 0.32);
  --nav: #0d1722;
  --gold: #f0b429;
  --green: #157f5f;
  --danger: #b83232;
  --shadow: 0 24px 70px rgba(15, 42, 56, 0.13);
  --small-shadow: 0 12px 34px rgba(15, 42, 56, 0.1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(207, 238, 255, 0.46), rgba(246, 251, 253, 0) 28rem),
    var(--page);
  color: var(--ink);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 14px clamp(16px, 4vw, 46px);
  background: rgba(246, 251, 253, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: linear-gradient(145deg, #ffffff, #dcf7ff);
  box-shadow: var(--small-shadow);
  color: var(--teal);
}

.logo-mark svg {
  width: 34px;
  height: 34px;
}

.logo-roof,
.logo-house,
.logo-window,
.logo-pane {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.logo-roof {
  stroke-width: 4.8;
  color: var(--nav);
}

.logo-house {
  stroke-width: 3.4;
  color: var(--nav);
}

.logo-window,
.logo-pane {
  stroke-width: 2.6;
}

.logo-shine {
  fill: var(--gold);
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-name {
  font-size: 1.06rem;
  font-weight: 720;
  letter-spacing: 0;
}

.brand-name::first-letter {
  color: var(--teal);
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.78rem;
}

nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

nav a {
  color: var(--soft-ink);
  font-size: 0.95rem;
  font-weight: 620;
  text-decoration: none;
}

.primary-button,
.secondary-button,
.danger-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 11px 16px;
  font-size: 0.95rem;
  font-weight: 680;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-button {
  background: linear-gradient(135deg, var(--teal), #0b98a8);
  color: white;
  box-shadow: 0 14px 28px rgba(7, 127, 141, 0.24);
}

.secondary-button {
  background: #edf6f9;
  color: var(--soft-ink);
  border: 1px solid var(--line);
}

.file-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 16px;
  background: #edf6f9;
  color: var(--soft-ink);
  font-size: 0.95rem;
  font-weight: 680;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.file-button:hover {
  transform: translateY(-1px);
}

.file-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.danger-button {
  background: var(--danger);
  color: white;
}

.primary-button:hover,
.secondary-button:hover,
.danger-button:hover {
  transform: translateY(-1px);
}

.small {
  min-height: 36px;
  padding: 8px 12px;
}

.is-confirmed {
  background: var(--green) !important;
  color: white !important;
}

.hero {
  display: grid;
  grid-template-columns: minmax(290px, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: clamp(30px, 5vw, 72px) clamp(16px, 5vw, 72px) 38px;
}

.hero-copy {
  display: grid;
  gap: 20px;
  max-width: 690px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.1rem, 8vw, 7.4rem);
  line-height: 0.92;
  letter-spacing: 0;
  color: var(--nav);
}

.hero p,
.section-heading p,
.story-copy p,
.story-panel p,
.pricing-grid p,
.quick-facts p {
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.56;
}

.hero-actions,
.modal-actions,
.admin-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.trust-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.trust-strip span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--soft-ink);
  font-size: 0.9rem;
}

.hero-media {
  position: relative;
  min-width: 0;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.media-note {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: min(300px, calc(100% - 36px));
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 8px;
  background: rgba(13, 23, 34, 0.78);
  color: white;
  backdrop-filter: blur(12px);
}

.media-note span {
  display: block;
  margin-bottom: 4px;
  color: #b8f4ff;
  font-size: 0.84rem;
  font-weight: 680;
}

.media-note p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.92rem;
  line-height: 1.4;
}

.quick-facts,
.panel-section,
.story-band {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 34px;
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.quick-facts article,
.booking-panel,
.calendar-card,
.contact-form,
.admin-panel,
.admin-row,
.review-card,
.pricing-grid article,
.story-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.quick-facts article {
  display: grid;
  gap: 10px;
  padding: 18px;
  box-shadow: var(--small-shadow);
}

.quick-facts h2,
.pricing-grid h3,
.prep-card h3,
.calendar-card h3,
.contact-form h3 {
  margin: 0;
  color: var(--soft-ink);
  font-size: 1.05rem;
  line-height: 1.2;
  font-weight: 680;
}

.fact-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(7, 127, 141, 0.18), rgba(207, 238, 255, 0.5)),
    #ffffff;
  border: 1px solid var(--line-strong);
  position: relative;
}

.fact-icon::before,
.fact-icon::after {
  content: "";
  position: absolute;
}

.shield-icon::before {
  inset: 9px 10px 8px;
  border: 2px solid var(--teal);
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  clip-path: polygon(50% 100%, 0 62%, 0 0, 100% 0, 100% 62%);
}

.clock-icon::before {
  inset: 8px;
  border: 2px solid var(--teal);
  border-radius: 50%;
}

.clock-icon::after {
  left: 17px;
  top: 12px;
  width: 8px;
  height: 9px;
  border-left: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
}

.home-icon::before {
  left: 8px;
  top: 14px;
  width: 20px;
  height: 15px;
  border: 2px solid var(--teal);
}

.home-icon::after {
  left: 8px;
  top: 8px;
  width: 20px;
  height: 20px;
  border-left: 2px solid var(--teal);
  border-top: 2px solid var(--teal);
  transform: rotate(45deg);
}

.panel-section {
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid rgba(7, 127, 141, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--small-shadow);
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.section-heading h2,
.story-copy h2,
.modal-card h2,
.admin-card h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: 0;
  color: var(--nav);
  font-weight: 680;
}

.booking-grid {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.booking-panel,
.calendar-card,
.contact-form {
  padding: 18px;
}

.booking-panel {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--soft-ink);
  font-size: 0.94rem;
  font-weight: 620;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: #fbfdfe;
  color: var(--ink);
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(7, 127, 141, 0.14);
}

.service-options {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.service-options legend {
  margin-bottom: 6px;
  color: var(--soft-ink);
  font-size: 0.94rem;
  font-weight: 620;
}

.service-options label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfe;
  cursor: pointer;
}

.service-options label:has(input:checked) {
  border-color: var(--teal);
  background: var(--aqua);
}

.service-options input {
  width: auto;
  margin-top: 3px;
}

.service-options span span {
  display: block;
  color: var(--ink);
  font-weight: 680;
}

.service-options small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.35;
}

.estimate-card,
.prep-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, #ffffff, #f2fbfd);
}

.estimate-card > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.estimate-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

.estimate-card output {
  color: var(--teal-dark);
  font-size: 1.8rem;
  font-weight: 740;
}

#block-helper {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

#block-helper.is-warning {
  color: var(--danger);
}

.prep-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.45;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  margin-bottom: 14px;
}

.calendar-header p {
  margin: 4px 0 0;
  color: var(--muted);
}

.legend {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.88rem;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 5px;
  border-radius: 50%;
}

.dot.open {
  background: var(--green);
}

.dot.reserved {
  background: var(--danger);
}

.date-control {
  max-width: 260px;
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.slot {
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfe;
  color: var(--soft-ink);
  cursor: pointer;
}

.slot strong,
.slot span {
  display: block;
}

.slot strong {
  color: var(--ink);
  font-size: 1rem;
}

.slot span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.35;
}

.slot.open {
  border-color: rgba(21, 127, 95, 0.36);
}

.slot.open:hover {
  border-color: var(--green);
  box-shadow: 0 12px 30px rgba(21, 127, 95, 0.12);
}

.slot.reserved,
.slot.closed {
  opacity: 0.68;
  cursor: not-allowed;
  background: #eef4f6;
}

.story-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 22px;
  align-items: stretch;
  padding: clamp(20px, 3.5vw, 34px);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--nav), #123242);
  color: white;
}

.story-copy {
  display: grid;
  gap: 12px;
}

.story-copy h2 {
  color: white;
}

.story-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.story-panel {
  align-self: stretch;
  padding: 18px;
  background: rgba(255, 255, 255, 0.92);
}

.story-panel h3 {
  margin: 0 0 8px;
  color: var(--nav);
  font-weight: 680;
}

.story-panel p {
  margin: 0 0 12px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.pricing-grid article {
  padding: 18px;
}

.rate-line {
  margin-bottom: 0;
  color: var(--teal-dark) !important;
  font-size: 1.25rem !important;
}

.rate-line span {
  font-size: 2.1rem;
  font-weight: 740;
}

.minimum-line {
  margin-top: 3px;
  color: var(--soft-ink) !important;
}

.qa-list {
  display: grid;
  gap: 10px;
}

.qa-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfdfe;
}

.qa-item summary {
  cursor: pointer;
  color: var(--soft-ink);
  font-weight: 680;
}

.qa-item p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.review-card {
  padding: 18px;
  background: #fbfdfe;
}

.stars {
  color: var(--gold);
  font-weight: 700;
}

blockquote {
  margin: 10px 0;
  color: var(--soft-ink);
  line-height: 1.5;
}

cite {
  color: var(--muted);
  font-style: normal;
  font-weight: 640;
}

.contact-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  background: #fbfdfe;
}

.form-grid,
.inline-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-note {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.action-status {
  min-height: 1.25em;
}

.action-status.is-success {
  color: var(--green);
  font-weight: 680;
}

.action-status.is-warning {
  color: var(--danger);
  font-weight: 680;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-line input {
  width: auto;
}

.modal,
.admin-modal {
  width: min(980px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  border: 0;
  padding: 0;
  background: transparent;
}

.admin-modal {
  width: min(1120px, calc(100vw - 24px));
}

.modal::backdrop,
.admin-modal::backdrop {
  background: rgba(13, 23, 34, 0.54);
}

.modal-card,
.admin-card {
  position: relative;
  max-height: calc(100vh - 24px);
  overflow: auto;
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.icon-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #edf6f9;
  color: var(--soft-ink);
  font-weight: 700;
  cursor: pointer;
}

.customer-type {
  display: flex;
  gap: 14px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.customer-type label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.customer-type input {
  width: auto;
}

.venmo-box {
  display: grid;
  gap: 7px;
  justify-items: start;
  padding: 16px;
  background: linear-gradient(145deg, #ffffff, var(--aqua));
  border: 1px solid var(--line);
  border-radius: 8px;
}

#venmo-name {
  color: var(--nav);
  font-size: 1.2rem;
  font-weight: 700;
}

#venmo-handle {
  color: var(--teal-dark);
}

.admin-heading {
  justify-content: space-between;
  padding-right: 42px;
}

.admin-heading p {
  margin: 6px 0 0;
  color: var(--muted);
}

.admin-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.tab {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfe;
  color: var(--soft-ink);
  padding: 10px 12px;
  font-weight: 650;
  cursor: pointer;
}

.tab.active {
  background: var(--teal);
  color: white;
}

.admin-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.admin-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
}

.admin-row h3,
.admin-row p {
  margin: 0 0 6px;
}

.admin-row p {
  color: var(--muted);
  line-height: 1.42;
}

.admin-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.admin-panel {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 16px;
  background: #fbfdfe;
}

.data-tools {
  border: 1px solid var(--line);
}

.admin-form {
  display: grid;
  gap: 12px;
}

.status-pill {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e6f5ee;
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 680;
}

.status-pill.danger {
  background: #ffe9e9;
  color: var(--danger);
}

.empty-state {
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fbfdfe;
}

.flyer-admin-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.flyer-admin-preview img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--aqua);
}

.flyer-admin-preview span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .primary-button,
  .secondary-button,
  .danger-button {
    transition: none;
  }
}

@media (max-width: 920px) {
  .topbar,
  .calendar-header,
  .admin-row {
    align-items: start;
    flex-direction: column;
  }

  .hero,
  .booking-grid,
  .story-band,
  .quick-facts,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .story-panel {
    width: 100%;
  }
}

@media (max-width: 700px) {
  .hero {
    padding-top: 24px;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 18vw, 4.2rem);
  }

  .media-note {
    position: static;
    width: auto;
    margin-top: 10px;
    background: var(--nav);
  }

  .slot-grid,
  .review-grid,
  .form-grid,
  .inline-fields {
    grid-template-columns: 1fr;
  }

  .customer-type {
    flex-direction: column;
  }

  nav {
    gap: 10px;
  }
}
