:root {
  --ink: #10182e;
  --muted: #4f566a;
  --paper: #f3f0e8;
  --paper-strong: #fff9ee;
  --charcoal: #070b14;
  --navy: #172650;
  --deep-navy: #0b1431;
  --steel: #344670;
  --orange: #f39a25;
  --gold: #e8bc76;
  --orange-dark: #bd6a18;
  --line: rgba(23, 38, 80, 0.16);
  --shadow: 0 28px 80px rgba(3, 7, 18, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(23, 38, 80, 0.035) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(0deg, rgba(23, 38, 80, 0.024) 1px, transparent 1px) 0 0 / 72px 72px,
    var(--paper);
  font-family: Georgia, "Times New Roman", serif;
}

button,
input {
  font: inherit;
}

.portal-shell {
  min-height: 100vh;
}

.gate-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 28px;
  background:
    linear-gradient(120deg, rgba(243, 154, 37, 0.13), transparent 34%),
    linear-gradient(145deg, var(--paper-strong), #e8dfcf);
}

.gate-card {
  width: min(560px, 100%);
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid rgba(23, 38, 80, 0.16);
  background: rgba(255, 249, 238, 0.76);
  box-shadow: 0 18px 52px rgba(23, 38, 80, 0.14);
  text-align: left;
}

.gate-logo {
  width: min(330px, 100%);
  height: auto;
  margin-bottom: 34px;
}

.gate-card h1 {
  margin-bottom: 16px;
  color: var(--navy);
  font-size: clamp(42px, 8vw, 70px);
  line-height: 0.95;
  font-weight: 500;
}

.gate-card p:not(.eyebrow) {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.45;
}

.gate-button {
  width: auto;
  margin-top: 14px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  min-height: auto;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(243, 154, 37, 0.13), transparent 34%),
    linear-gradient(145deg, var(--paper-strong), #e8dfcf);
}

.hero-brand {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: clamp(22px, 3.2vw, 42px);
  width: min(1120px, calc(100% - 44px));
  margin: 0 auto;
  padding: clamp(26px, 4vw, 54px) 0 clamp(18px, 3vw, 34px);
  background: transparent;
  position: relative;
  overflow: hidden;
}

.brand-lockup,
.contact-strip,
.greeting {
  position: relative;
  z-index: 1;
}

.brand-lockup {
  display: flex;
  gap: 20px;
  align-items: center;
}

.brand-logo {
  width: clamp(170px, 20vw, 286px);
  height: auto;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 22px rgba(3, 7, 18, 0.42));
}

.eyebrow,
.agent-label,
.slot-header,
.service-number,
label,
legend,
.appointment-card span {
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

.eyebrow,
.agent-label,
.service-number {
  margin: 0 0 10px;
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(34px, 5vw, 70px);
  line-height: 0.92;
  font-weight: 500;
}

.greeting {
  max-width: 700px;
  padding: 0;
}

.greeting h2,
.section-intro h2,
.handoff-copy h2 {
  margin-bottom: 18px;
  font-size: clamp(40px, 6vw, 84px);
  line-height: 0.95;
  font-weight: 500;
}

.greeting p:last-child,
.section-intro p,
.handoff-copy p,
.panel-heading p {
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.45;
}

.contact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.install-note {
  min-height: 20px;
  margin: -28px 0 0;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.button,
.text-button {
  min-height: 46px;
  border: 0;
  cursor: pointer;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 150px;
  padding: 13px 18px;
  border-radius: 4px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover,
.slot-button:hover,
.text-button:hover {
  transform: translateY(-1px);
}

.button.primary {
  width: 100%;
  color: #10182e;
  background: var(--orange);
}

.button.secondary {
  color: var(--navy);
  background: rgba(23, 38, 80, 0.08);
  border: 1px solid rgba(23, 38, 80, 0.18);
}

.button.ghost {
  color: var(--navy);
  border: 1px solid rgba(23, 38, 80, 0.18);
  background: rgba(255, 249, 238, 0.72);
  backdrop-filter: blur(8px);
}

.request-panel {
  width: min(1120px, calc(100% - 44px));
  margin: 0 auto;
  padding: 0 0 clamp(34px, 5vw, 66px);
  background: transparent;
  color: #10182e;
  box-shadow: none;
  border-left: 0;
}

.panel-heading {
  max-width: 620px;
  margin-bottom: 18px;
}

.panel-heading h2 {
  margin-bottom: 10px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1;
  font-weight: 500;
}

.panel-heading p {
  color: #5b6173;
  font-size: 17px;
}

.slot-block {
  margin: 28px 0;
  padding: 18px;
  background: var(--paper-strong);
  border: 1px solid #d8d2c5;
}

.slot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  color: #2d3657;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.text-button {
  min-height: 32px;
  padding: 0;
  color: var(--orange-dark);
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

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

.slot-grid.expanded {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.slot-button {
  min-height: 72px;
  padding: 10px;
  border: 1px solid #c8c1b5;
  border-radius: 4px;
  color: #10182e;
  background: #f7efe1;
  font-family: Arial, Helvetica, sans-serif;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

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

.slot-button strong {
  margin-bottom: 5px;
  font-size: 14px;
}

.slot-button span {
  color: #5b6173;
  font-size: 13px;
}

.slot-button.selected {
  color: #f8efdf;
  background: var(--navy);
  border-color: var(--navy);
}

.slot-button.selected span {
  color: #d9dfef;
}

.request-form {
  display: grid;
  gap: 14px;
}

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

label,
legend {
  display: grid;
  gap: 7px;
  color: #2d3657;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #c8c1b5;
  border-radius: 4px;
  padding: 12px 13px;
  color: #10182e;
  background: #fffaf1;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
}

input:focus,
.slot-button:focus,
.button:focus,
.text-button:focus {
  outline: 3px solid rgba(243, 154, 37, 0.34);
  outline-offset: 2px;
}

.service-picker {
  display: grid;
  gap: 9px;
  margin: 4px 0 8px;
  padding: 0;
  border: 0;
}

.scheduler-frame {
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid rgba(23, 38, 80, 0.18);
  border-radius: 6px;
  background: var(--paper-strong);
  box-shadow: 0 18px 46px rgba(23, 38, 80, 0.16);
}

.scheduler-topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(23, 38, 80, 0.14);
  color: var(--navy);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
}

.scheduler-topline span {
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
}

.scheduler-topline strong {
  color: var(--navy);
}

.scheduler-frame iframe {
  display: block;
  width: 100%;
  height: 1100px;
  border: 0;
  background: #ffffff;
}

.service-option {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 12px;
  border: 1px solid #d2cabd;
  border-radius: 4px;
  background: var(--paper-strong);
  text-transform: none;
}

.service-option input {
  width: 19px;
  height: 19px;
  min-height: 0;
  accent-color: var(--orange-dark);
}

.service-option strong,
.service-option small {
  display: block;
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

.service-option strong {
  color: #10182e;
  font-size: 14px;
}

.service-option small {
  margin-top: 4px;
  color: #5b6173;
  font-size: 13px;
  font-weight: 600;
}

.service-option.recommended {
  border-color: var(--orange);
  box-shadow: inset 4px 0 0 var(--orange);
}

.service-option.permission {
  background: #eee7da;
}

.services-section,
.handoff-section {
  padding: clamp(44px, 7vw, 96px) clamp(22px, 5vw, 72px);
}

.section-intro {
  max-width: 880px;
  margin-bottom: 42px;
}

.service-editorial {
  display: grid;
  grid-template-columns: 1.25fr repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-editorial article {
  min-height: 260px;
  padding: clamp(22px, 3vw, 36px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 249, 238, 0.62);
}

.service-editorial .service-feature {
  grid-row: span 2;
  min-height: 520px;
  background:
    linear-gradient(180deg, rgba(243, 154, 37, 0.18), rgba(23, 38, 80, 0.12)),
    rgba(255, 249, 238, 0.8);
}

.service-editorial h3 {
  margin-bottom: 14px;
  color: var(--navy);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 500;
  line-height: 1;
}

.service-editorial p:not(.service-number) {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.included-note {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(23, 38, 80, 0.16);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
}

.handoff-section {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(320px, 0.65fr);
  gap: clamp(28px, 6vw, 82px);
  align-items: center;
  background: #e8dfcf;
  border-top: 1px solid var(--line);
}

.handoff-copy {
  max-width: 780px;
}

.handoff-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.handoff-actions .button {
  width: auto;
}

.pdf-preview {
  padding: 22px;
  border: 1px solid rgba(23, 38, 80, 0.18);
  border-radius: 6px;
  background: var(--paper);
  color: #10182e;
  box-shadow: var(--shadow);
}

.pdf-preview h3 {
  margin-bottom: 12px;
  color: #10182e;
  font-size: clamp(30px, 3vw, 46px);
  font-weight: 500;
  line-height: 1;
}

.pdf-preview p {
  margin-bottom: 20px;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.pdf-list {
  display: grid;
  gap: 12px;
  margin: 0 0 24px;
  padding-left: 19px;
  color: #232c46;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.45;
}

.pdf-open-button {
  width: 100%;
}

.install-sheet {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: end center;
  padding: 22px;
  background: rgba(7, 11, 20, 0.46);
}

.install-sheet[hidden] {
  display: none;
}

.install-sheet-panel {
  position: relative;
  width: min(520px, 100%);
  padding: 28px;
  border: 1px solid rgba(23, 38, 80, 0.18);
  border-radius: 6px;
  background: var(--paper-strong);
  box-shadow: var(--shadow);
}

.install-sheet-panel h2 {
  margin-bottom: 14px;
  color: var(--navy);
  font-size: clamp(30px, 7vw, 48px);
  line-height: 1;
  font-weight: 500;
}

.install-sheet-panel p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.sheet-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(23, 38, 80, 0.18);
  border-radius: 4px;
  color: var(--navy);
  background: rgba(23, 38, 80, 0.08);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 980px) {
  .hero,
  .handoff-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-brand {
    min-height: 72vh;
  }

  .brand-lockup {
    align-items: flex-start;
    flex-direction: column;
  }

  .slot-grid.expanded,
  .service-editorial {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-editorial .service-feature {
    grid-row: auto;
    grid-column: span 2;
    min-height: 320px;
  }
}

@media (max-width: 640px) {
  .hero-brand {
    min-height: auto;
  }

  .greeting {
    padding: 54px 0;
  }

  .brand-logo {
    width: min(76vw, 300px);
  }

  .contact-strip,
  .handoff-actions,
  .field-row,
  .slot-grid,
  .slot-grid.expanded,
  .service-editorial {
    grid-template-columns: 1fr;
  }

  .contact-strip,
  .handoff-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .service-editorial .service-feature {
    grid-column: auto;
  }
}
