/*
Theme Name: Consul Rest
Theme URI: https://consul.rest/
Author: Consul Rest
Description: Marketing site for the Consul Rest restaurant management platform.
Version: 1.0.0
Text Domain: consulrest
*/

:root {
  --ink: #17211b;
  --muted: #53615a;
  --paper: #fffaf2;
  --surface: #ffffff;
  --line: rgba(23, 33, 27, 0.14);
  --green: #0f6b4b;
  --green-2: #d9f0df;
  --tomato: #d94635;
  --gold: #dca74a;
  --charcoal: #121817;
  --blue: #2a6f97;
  --shadow: 0 22px 70px rgba(18, 24, 23, 0.16);
  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: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
}

body.menu-open {
  overflow: hidden;
}

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

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: rgba(255, 250, 242, 0.86);
  border-bottom: 1px solid rgba(23, 33, 27, 0.08);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: block;
  object-fit: contain;
  box-shadow: 0 10px 28px rgba(15, 107, 75, 0.28);
}

.brand span:last-child {
  font-size: 1.04rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #314039;
  font-size: 0.95rem;
}

.main-nav a:hover {
  color: var(--green);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.btn-primary {
  background: var(--green);
  color: white;
  box-shadow: 0 14px 34px rgba(15, 107, 75, 0.26);
}

.btn-primary:hover {
  background: #0b5b3f;
}

.btn-light {
  background: white;
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.62);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.14);
  color: white;
  border-color: rgba(255, 255, 255, 0.42);
}

.hero {
  min-height: 92vh;
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  color: white;
  background: var(--charcoal);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 18, 17, 0.94) 0%, rgba(13, 18, 17, 0.76) 37%, rgba(13, 18, 17, 0.18) 72%),
    linear-gradient(0deg, rgba(13, 18, 17, 0.78), rgba(13, 18, 17, 0.04) 46%);
  z-index: -1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 140px 0 74px;
  display: grid;
  grid-template-columns: minmax(0, 650px) 1fr;
  gap: 48px;
  align-items: end;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #f8e7c1;
  font-weight: 800;
  font-size: 0.86rem;
}

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

.hero h1 {
  margin: 18px 0 18px;
  max-width: 11ch;
  font-size: clamp(4.2rem, 12vw, 9.5rem);
  line-height: 0.86;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 660px;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.08rem, 2vw, 1.34rem);
}

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

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

.proof-pill {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.proof-pill strong {
  display: block;
  font-size: 1.18rem;
}

.proof-pill span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
}

.hero-price {
  justify-self: end;
  width: min(340px, 100%);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(18, 24, 23, 0.68);
  backdrop-filter: blur(12px);
}

.hero-price small {
  color: #f8e7c1;
  font-weight: 800;
}

.price-line {
  display: flex;
  align-items: end;
  gap: 6px;
  margin: 8px 0 8px;
}

.price-line strong {
  font-size: 3.1rem;
  line-height: 1;
}

.price-line span {
  margin-bottom: 7px;
  color: rgba(255, 255, 255, 0.72);
}

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

.section {
  padding: 92px 0;
}

.section.alt {
  background: #f1f6ed;
}

.section.dark {
  background: var(--charcoal);
  color: white;
}

.wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.72fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 38px;
}

.kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--tomato);
  font-weight: 900;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section h2 {
  max-width: 880px;
  margin-bottom: 0;
  font-size: clamp(2.1rem, 5vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.section-head p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.dark .section-head p,
.dark .flow-copy p,
.dark .feature-card p {
  color: rgba(255, 255, 255, 0.72);
}

.flow {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 38px;
  align-items: center;
  margin-top: 50px;
}

.flow.reverse {
  grid-template-columns: 1.1fr 0.9fr;
}

.flow.reverse .flow-media {
  order: -1;
}

.flow-copy h3 {
  margin-bottom: 12px;
  font-size: clamp(1.65rem, 3vw, 2.6rem);
  line-height: 1.03;
}

.flow-copy p {
  color: var(--muted);
  font-size: 1.04rem;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
}

.check-list li::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, white 0 23%, var(--green) 25% 100%);
  border: 2px solid var(--green);
}

.flow-media {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #0d1412;
}

.flow-media video {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.flow-media.phone {
  justify-self: center;
  width: min(420px, 100%);
  border-radius: 28px;
  padding: 12px;
  background: #111;
}

.flow-media.phone video {
  aspect-ratio: 9 / 19.5;
  border-radius: 20px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.tag {
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: #38463f;
  font-weight: 800;
  font-size: 0.82rem;
}

.dark .tag {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
  color: white;
}

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

.feature-card {
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.dark .feature-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.feature-card .icon {
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--green-2);
  color: var(--green);
  font-weight: 900;
}

.feature-card h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
}

.metrics-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--line);
}

.metric {
  padding: 28px 22px;
  background: white;
}

.metric strong {
  display: block;
  margin-bottom: 6px;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
  color: var(--green);
}

.metric span {
  color: var(--muted);
}

.pricing {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(310px, 0.65fr);
  gap: 28px;
  align-items: stretch;
}

.price-panel,
.trial-panel {
  border-radius: 8px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.price-panel {
  padding: 36px;
}

.price-panel h2 {
  margin-bottom: 18px;
}

.price-display {
  display: flex;
  align-items: end;
  gap: 8px;
  margin: 26px 0 18px;
}

.price-display strong {
  font-size: clamp(4rem, 12vw, 7.6rem);
  line-height: 0.86;
}

.price-display span {
  margin-bottom: 10px;
  color: var(--muted);
  font-weight: 800;
}

.price-note {
  color: var(--muted);
}

.trial-panel {
  padding: 26px;
}

.trial-panel h3 {
  margin-bottom: 8px;
  font-size: 1.7rem;
}

.trial-panel p {
  color: var(--muted);
}

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

.field {
  display: grid;
  gap: 6px;
}

.field label {
  color: #34443b;
  font-weight: 800;
  font-size: 0.88rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid rgba(23, 33, 27, 0.18);
  border-radius: 8px;
  background: #fffdf9;
  color: var(--ink);
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  min-height: 22px;
  margin: 2px 0 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.form-status.ok {
  color: var(--green);
  font-weight: 800;
}

.form-status.error {
  color: var(--tomato);
  font-weight: 800;
}

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

.faq details {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.faq summary {
  cursor: pointer;
  font-weight: 900;
}

.faq p {
  margin: 12px 0 0;
  color: var(--muted);
}

.site-footer {
  padding: 42px 0;
  background: #0f1514;
  color: rgba(255, 255, 255, 0.78);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 16px;
}

@media (max-width: 920px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    inset: 72px 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

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

  .main-nav a,
  .main-nav .btn {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-inner,
  .section-head,
  .flow,
  .flow.reverse,
  .pricing {
    grid-template-columns: 1fr;
  }

  .hero-price,
  .flow-media.phone {
    justify-self: start;
  }

  .flow.reverse .flow-media {
    order: 0;
  }

  .feature-grid,
  .metrics-band,
  .faq {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .nav-wrap {
    width: min(100% - 22px, 1180px);
  }

  .hero {
    min-height: 96vh;
  }

  .hero-inner {
    width: min(100% - 22px, 1180px);
    padding: 112px 0 32px;
  }

  .hero h1 {
    font-size: clamp(4.4rem, 24vw, 6.7rem);
  }

  .hero-proof,
  .feature-grid,
  .metrics-band,
  .faq {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 0;
  }

  .wrap {
    width: min(100% - 22px, 1180px);
  }

  .flow {
    margin-top: 34px;
  }

  .price-panel,
  .trial-panel {
    padding: 22px;
  }

  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }
}
