/* =========================================================
   EMERGENCY RESPONSE PLATFORM
   MAIN STYLE SHEET
   ========================================================= */

:root {
  --red: #ef3636;
  --red-dark: #c92727;

  --ink: #101923;
  --muted: #60748c;

  --line: #dfe6ee;
  --soft: #f6f8fb;
  --white: #ffffff;

  --dark: #091019;

  --green: #16a36a;
  --amber: #e99a16;

  --shadow: 0 20px 50px rgba(16, 25, 35, 0.10);
  --radius: 22px;
}


/* =========================================================
   RESET
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  padding: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
  background: #ffffff;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  cursor: pointer;
}


/* =========================================================
   NAVBAR
   ========================================================= */

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;

  min-height: 82px;

  display: flex;
  align-items: center;

  padding: 0 6.5%;
  gap: 28px;

  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);

  backdrop-filter: blur(10px);
}


/* BRAND */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;

  font-size: 20px;
  font-weight: 800;

  white-space: nowrap;
}

.brand b {
  color: var(--red);
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 22px;
}


/* NAVIGATION */

.nav-links {
  display: flex;
  align-items: center;

  gap: 34px;
  margin-left: auto;

  height: 100%;
}

.nav-links a {
  position: relative;

  display: flex;
  align-items: center;

  min-height: 82px;

  padding: 0;

  color: #223247;

  font-size: 15px;
  font-weight: 600;

  transition: 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--red);
}

.nav-links a.active::after {
  content: "";

  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  height: 3px;

  background: var(--red);
  border-radius: 3px;
}


/* SOS NAV BUTTON */

.sos-nav {
  border: 0;

  padding: 14px 24px;

  background: var(--red);
  color: #ffffff;

  font-size: 15px;
  font-weight: 800;

  border-radius: 13px;

  box-shadow: 0 9px 25px rgba(239, 54, 54, 0.22);

  transition: 0.2s ease;
}

.sos-nav:hover {
  background: var(--red-dark);

  transform: translateY(-2px);

  box-shadow: 0 12px 30px rgba(239, 54, 54, 0.30);
}


/* MOBILE MENU BUTTON */

.menu-btn {
  display: none;

  border: 0;
  background: transparent;

  color: var(--ink);

  font-size: 25px;
  line-height: 1;

  padding: 5px;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
  min-height: 680px;

  display: grid;
  grid-template-columns: 1.2fr 0.8fr;

  gap: 60px;

  align-items: center;

  padding: 70px 7%;

  background:
    radial-gradient(
      circle at 90% 10%,
      #fff0f0 0,
      transparent 30%
    ),
    linear-gradient(
      180deg,
      #ffffff,
      #f8fafc
    );
}

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

.eyebrow,
.panel-kicker {
  color: var(--red);

  font-size: 13px;
  font-weight: 800;

  letter-spacing: 2px;
}

.hero h1 {
  margin: 28px 0 24px;

  font-size: clamp(48px, 6vw, 82px);
  line-height: 1.03;

  letter-spacing: -4px;
}

.hero h1 span,
.page-hero h1 span {
  color: var(--red);
}

.hero-text {
  max-width: 720px;

  margin: 0;

  color: var(--muted);

  font-size: 19px;
}

.hero-actions {
  display: flex;
  align-items: center;

  gap: 16px;

  margin-top: 34px;

  flex-wrap: wrap;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 50px;

  padding: 14px 24px;

  border: 0;
  border-radius: 13px;

  font-weight: 800;

  transition: 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--red);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--red-dark);
}

.btn-danger {
  background: var(--red);
  color: #ffffff;

  box-shadow: 0 10px 25px rgba(239, 54, 54, 0.20);
}

.btn-danger:hover {
  background: var(--red-dark);
}

.btn-secondary {
  background: #ffffff;
  color: #223247;

  border: 1px solid var(--line);
}

.btn-secondary:hover {
  background: #f8fafc;
}

.btn-light {
  background: #ffffff;
  color: var(--ink);
}

.btn.small {
  min-height: 42px;

  padding: 10px 14px;

  font-size: 13px;
}

.wide {
  width: 100%;
}


/* =========================================================
   LOCATION STATUS
   ========================================================= */

.location-status {
  min-height: 22px;

  margin-top: 16px;

  color: var(--green);

  font-size: 14px;
  font-weight: 600;
}


/* =========================================================
   SOS CARD
   ========================================================= */

.sos-card {
  position: relative;

  min-height: 490px;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  padding: 55px 45px;

  overflow: hidden;

  border-radius: 32px;

  background: var(--dark);
  color: #ffffff;

  text-align: center;

  box-shadow: var(--shadow);
}

.sos-card::before {
  content: "";

  position: absolute;

  width: 290px;
  height: 290px;

  border: 1px solid #24303c;

  border-radius: 50%;
}

.sos-circle {
  position: relative;
  z-index: 1;

  width: 148px;
  height: 148px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  background: var(--red);

  font-size: 38px;
  font-weight: 900;

  box-shadow:
    0 0 0 18px rgba(239, 54, 54, 0.05),
    0 0 40px rgba(239, 54, 54, 0.25);
}

.sos-card h2 {
  position: relative;
  z-index: 1;

  margin: 28px 0 6px;

  font-size: 25px;
}

.sos-card p {
  position: relative;
  z-index: 1;

  max-width: 360px;

  margin: 0;

  color: #b9c7d7;
}

.sos-card .btn {
  position: relative;
  z-index: 1;

  margin-top: 20px;
}


/* =========================================================
   STATS
   ========================================================= */

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);

  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats-strip div {
  padding: 28px;

  text-align: center;

  border-right: 1px solid var(--line);
}

.stats-strip div:last-child {
  border-right: 0;
}

.stats-strip strong {
  display: block;

  margin-bottom: 3px;

  font-size: 30px;
}

.stats-strip span {
  color: var(--muted);

  font-size: 13px;
}


/* =========================================================
   GENERAL SECTION
   ========================================================= */

.section {
  padding: 90px 7%;
}

.section.compact {
  padding-top: 35px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;

  gap: 30px;

  margin-bottom: 35px;
}

.section-heading h2 {
  margin: 10px 0 0;

  font-size: 40px;
  line-height: 1.1;

  letter-spacing: -1.5px;
}

.section-heading > p {
  max-width: 450px;

  margin: 0;

  color: var(--muted);
}


/* =========================================================
   WORKFLOW
   ========================================================= */

.workflow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);

  gap: 18px;
}

.workflow-card {
  padding: 28px;

  background: #ffffff;

  border: 1px solid var(--line);
  border-radius: 18px;

  transition: 0.2s ease;
}

.workflow-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.workflow-card span {
  color: var(--red);

  font-weight: 900;
}

.workflow-card h3 {
  margin: 15px 0 5px;

  font-size: 21px;
}

.workflow-card p {
  margin: 0;

  color: var(--muted);
}


/* =========================================================
   FEATURE BAND
   ========================================================= */

.feature-band {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 30px;

  margin: 10px 7% 70px;
  padding: 55px;

  border-radius: 26px;

  background: var(--dark);
  color: #ffffff;
}

.feature-band h2 {
  margin: 8px 0;

  font-size: 38px;
  line-height: 1.1;
}

.feature-band p {
  max-width: 650px;

  margin: 0;

  color: #b9c7d7;
}


/* =========================================================
   SERVICE CARDS
   ========================================================= */

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);

  gap: 16px;
}

.service-card {
  padding: 26px;

  background: #ffffff;

  border: 1px solid var(--line);
  border-radius: 18px;

  transition: 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service-card span {
  display: block;

  margin-bottom: 10px;

  font-size: 30px;
}

.service-card h3 {
  margin: 0 0 3px;

  font-size: 20px;
}

.service-card p {
  margin: 0;

  color: var(--muted);
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 40px;

  padding: 45px 7%;

  background: #fbfcfe;

  border-top: 1px solid var(--line);
}

.footer p {
  margin: 8px 0 0;

  color: var(--muted);
}

.footer > div:last-child {
  display: flex;
  align-items: center;

  gap: 22px;

  font-weight: 600;
}

.footer > div:last-child a {
  transition: 0.2s ease;
}

.footer > div:last-child a:hover {
  color: var(--red);
}


/* =========================================================
   PAGE HEADER
   ========================================================= */

.page-main {
  min-height: calc(100vh - 82px);
}

.page-hero {
  padding: 80px 7% 55px;

  background: linear-gradient(
    180deg,
    #fbfcfe,
    #ffffff
  );
}

.page-hero h1 {
  margin: 15px 0;

  font-size: clamp(44px, 6vw, 70px);
  line-height: 1.05;

  letter-spacing: -3px;
}

.page-hero p {
  max-width: 760px;

  margin: 0;

  color: var(--muted);

  font-size: 18px;
}


/* =========================================================
   REPORT PAGE
   ========================================================= */

.report-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;

  gap: 25px;

  padding: 20px 7% 90px;
}


/* PANEL */

.panel {
  background: #ffffff;

  border: 1px solid var(--line);
  border-radius: var(--radius);

  box-shadow: 0 12px 35px rgba(16, 25, 35, 0.05);
}

.form-panel {
  padding: 34px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  margin-bottom: 25px;
}

.panel-head h2 {
  margin: 5px 0 0;

  font-size: 26px;
}

.live-dot {
  color: var(--green);

  font-size: 12px;
  font-weight: 800;
}


/* FORM */

.form-panel label {
  display: block;

  margin-bottom: 17px;

  font-size: 13px;
  font-weight: 800;
}

.form-panel input,
.form-panel select,
.form-panel textarea {
  display: block;

  width: 100%;

  margin-top: 7px;

  padding: 13px 14px;

  outline: none;

  background: #ffffff;
  color: var(--ink);

  border: 1px solid var(--line);
  border-radius: 11px;
}

.form-panel input:focus,
.form-panel select:focus,
.form-panel textarea:focus {
  border-color: var(--red);

  box-shadow:
    0 0 0 3px rgba(239, 54, 54, 0.08);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;

  gap: 17px;
}


/* LOCATION */

.location-box {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 15px;

  padding: 15px;
  margin: 5px 0 20px;

  border: 1px dashed #cbd6e2;
  border-radius: 14px;
}

.location-box p {
  margin: 2px 0 0;

  color: var(--muted);

  font-size: 13px;
}


/* SIDE PANEL */

.side-panel {
  height: max-content;

  padding: 28px;
}

.priority-preview {
  padding: 25px;

  background: #0b141e;
  color: #ffffff;

  border-radius: 18px;
}

.priority-preview span {
  color: #aebdcb;

  font-size: 11px;
  font-weight: 800;

  letter-spacing: 1.5px;
}

.priority-preview strong {
  display: block;

  margin: 8px 0;

  font-size: 29px;
}

.priority-preview p {
  margin: 0;

  color: #b9c7d7;
}

.response-list {
  padding-top: 25px;
}

.response-list h3 {
  margin-top: 0;
}

.response-item {
  display: flex;
  align-items: center;

  gap: 14px;

  padding: 14px 0;

  border-bottom: 1px solid var(--line);
}

.response-item > span {
  font-size: 25px;
}

.response-item b,
.response-item small {
  display: block;
}

.response-item small {
  color: var(--muted);
}


/* SAFETY */

.safety-note {
  margin-top: 22px;
  padding: 16px;

  background: #fff7e7;

  border-radius: 14px;

  color: #6f531c;

  font-size: 13px;
}

.safety-note p {
  margin: 4px 0 0;
}


/* RESULT */

.result-box {
  margin-top: 18px;
  padding: 15px;

  background: #edf9f3;

  border-radius: 13px;

  color: #146b49;

  font-weight: 700;
}

.result-box.hidden {
  display: none;
}


/* =========================================================
   SERVICES PAGE
   ========================================================= */

.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;

  gap: 22px;

  padding: 20px 7% 70px;
}

.service-detail {
  display: grid;
  grid-template-columns: 90px 1fr;

  gap: 20px;

  padding: 28px;

  border: 1px solid var(--line);
  border-radius: 22px;

  background: #ffffff;
}

.big-icon {
  font-size: 55px;
}

.service-detail h2 {
  margin: 4px 0 8px;

  font-size: 28px;
}

.service-detail p {
  color: var(--muted);
}

.service-detail ul {
  padding-left: 20px;

  color: #43556b;
}

.service-detail li {
  margin: 5px 0;
}


/* CALLOUT */

.info-callout {
  margin: 0 7% 80px;
  padding: 45px;

  background: #fff0f0;

  border-radius: 24px;

  text-align: center;
}

.info-callout h2 {
  margin: 0 0 6px;

  font-size: 32px;
}

.info-callout p {
  margin: 0 0 20px;

  color: var(--muted);
}


/* =========================================================
   ABOUT PAGE
   ========================================================= */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;

  gap: 22px;

  padding: 20px 7% 50px;
}

.about-grid .panel {
  padding: 35px;
}

.about-grid h2 {
  font-size: 32px;
  line-height: 1.15;
}

.about-grid p {
  color: var(--muted);
}

.dark-panel {
  background: var(--dark);
  color: #ffffff;

  border-color: var(--dark);
}

.dark-panel p {
  color: #b9c7d7;
}


/* =========================================================
   TIMELINE
   ========================================================= */

.timeline {
  max-width: 850px;

  margin-left: 10px;

  padding-left: 0;

  border-left: 2px solid #e5ebf1;
}

.timeline > div {
  position: relative;

  display: flex;

  gap: 22px;

  margin-bottom: 26px;

  padding-left: 25px;
}

.timeline > div > b {
  position: absolute;

  left: -22px;

  width: 42px;
  height: 42px;

  display: grid;
  place-items: center;

  background: var(--red);
  color: #ffffff;

  border-radius: 50%;
}

.timeline h3 {
  margin: 2px 0;
}

.timeline p {
  margin: 0;

  color: var(--muted);
}


/* =========================================================
   TECHNOLOGY STACK
   ========================================================= */

.tech-stack {
  display: flex;
  flex-wrap: wrap;

  gap: 10px;

  padding: 0 7% 80px;
}

.tech-stack span {
  padding: 9px 14px;

  background: #f0f3f7;

  border-radius: 999px;

  color: #44566c;

  font-size: 13px;
  font-weight: 700;
}


/* =========================================================
   SOS MODAL
   ========================================================= */

.modal {
  position: fixed;
  inset: 0;
  z-index: 3000;

  display: grid;
  place-items: center;

  padding: 20px;

  background: rgba(3, 8, 13, 0.65);
}

.modal.hidden {
  display: none;
}

.modal-card {
  position: relative;

  width: min(470px, 100%);

  padding: 35px;

  background: #ffffff;

  border-radius: 24px;

  text-align: center;

  box-shadow:
    0 25px 70px rgba(0, 0, 0, 0.30);
}

.modal-close {
  position: absolute;

  top: 13px;
  right: 18px;

  border: 0;
  background: transparent;

  color: #667;

  font-size: 30px;

  line-height: 1;
}

.modal-icon {
  width: 80px;
  height: 80px;

  display: grid;
  place-items: center;

  margin: 0 auto 18px;

  background: var(--red);
  color: #ffffff;

  border-radius: 50%;

  font-size: 23px;
  font-weight: 900;
}

.modal-card h2 {
  margin: 0;
}

.modal-card p {
  color: var(--muted);
}

.modal-actions {
  display: flex;
  justify-content: center;

  gap: 12px;

  margin-top: 20px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

  .nav-links {
    gap: 22px;
  }

  .hero {
    gap: 40px;
  }

  .workflow,
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}


/* =========================================================
   MOBILE NAVIGATION
   ========================================================= */

@media (max-width: 900px) {

  .navbar {
    min-height: 72px;

    padding: 0 5%;

    gap: 15px;
  }

  .nav-links {
    position: absolute;

    top: 72px;
    left: 0;
    right: 0;

    display: none;
    flex-direction: column;
    align-items: stretch;

    gap: 0;

    height: auto;

    margin: 0;
    padding: 10px 5% 15px;

    background: #ffffff;

    border-bottom: 1px solid var(--line);

    box-shadow: 0 15px 30px rgba(16, 25, 35, 0.08);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    min-height: auto;

    padding: 12px 0;
  }

  .nav-links a.active::after {
    display: none;
  }

  .menu-btn {
    display: block;
  }

  .hero {
    grid-template-columns: 1fr;

    padding: 55px 5%;
  }

  .stats-strip {
    grid-template-columns: 1fr 1fr;
  }

  .section-heading {
    display: block;
  }

  .feature-band {
    flex-direction: column;
    align-items: flex-start;

    margin: 20px 5% 50px;
    padding: 35px;
  }

  .report-layout,
  .service-detail-grid,
  .about-grid {
    grid-template-columns: 1fr;

    padding-left: 5%;
    padding-right: 5%;
  }

  .page-hero {
    padding-right: 5%;
    padding-left: 5%;
  }

  .footer {
    padding: 35px 5%;
  }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 600px) {

  .brand {
    font-size: 17px;
  }

  .brand-icon {
    font-size: 19px;
  }

  .sos-nav {
    padding: 11px 15px;
  }

  .hero {
    min-height: auto;
  }

  .hero h1 {
    font-size: 48px;

    letter-spacing: -2px;
  }

  .hero-text {
    font-size: 17px;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .sos-card {
    min-height: 420px;

    padding: 40px 25px;
  }

  .stats-strip {
    grid-template-columns: 1fr;
  }

  .stats-strip div {
    border-right: 0;

    border-bottom: 1px solid var(--line);
  }

  .stats-strip div:last-child {
    border-bottom: 0;
  }

  .workflow,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-panel,
  .side-panel {
    padding: 22px;
  }

  .location-box {
    align-items: flex-start;

    flex-direction: column;
  }

  .service-detail {
    grid-template-columns: 1fr;
  }

  .big-icon {
    font-size: 45px;
  }

  .page-hero h1 {
    font-size: 46px;
  }

  .feature-band h2 {
    font-size: 30px;
  }

  .footer {
    display: block;

    text-align: center;
  }

  .footer .brand {
    justify-content: center;
  }

  .footer > div:last-child {
    display: none;
  }

  .modal-card {
    padding: 30px 22px;
  }

  .modal-actions {
    flex-direction: column;
  }

  .modal-actions .btn {
    width: 100%;
  }
}

/* =========================================================
   VOICE INPUT
   ========================================================= */

.voice-field {
  position: relative;
  width: 100%;
}

.voice-field textarea {
  width: 100%;
  padding-right: 58px;
  box-sizing: border-box;
}

.voice-btn {
  position: absolute;

  right: 12px;
  bottom: 12px;

  width: 40px;
  height: 40px;

  border-radius: 50%;

  border: 1px solid #dfe6ee;

  background: #ffffff;

  cursor: pointer;

  font-size: 18px;

  display: flex;
  align-items: center;
  justify-content: center;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.voice-btn:hover {

  transform: scale(1.08);

  background: #f6f8fb;

  box-shadow:
    0 5px 15px
    rgba(0, 0, 0, 0.10);
}

.voice-btn:active {

  transform: scale(0.95);

}

.voice-status {

  display: block;

  margin-top: 6px;

  font-size: 12px;

  color: #60748c;

  min-height: 18px;
}
