:root {
  --primary: #1ea69a;
  --primary-dark: #179081;
  --accent: #ea723d;
  --accent-hover: #d05f2d;
  --text: #1a1a1a;
  --text-muted: #666666;
  --surface: #f7f7f7;
  --white: #ffffff;
  --border: #e5e5e5;
  --radius: 0.5rem;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --header-height: 4rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  font-family: "Open Sans", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Rubik", sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

p {
  margin: 0 0 1rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary-dark);
  text-decoration: none;
}

.container {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
}

.container--narrow {
  width: min(100% - 2rem, 48rem);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-family: "Rubik", sans-serif;
  font-weight: 500;
  font-size: 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  border: none;
  cursor: pointer;
  color: var(--white);
  background: var(--primary);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(30, 166, 154, 0.25);
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.btn--accent {
  background: var(--accent);
}

.btn--accent:hover,
.btn--accent:focus-visible {
  background: var(--accent-hover);
  box-shadow: 0 6px 18px rgba(234, 114, 61, 0.25);
}

.btn--outline {
  background: transparent;
  color: var(--primary-dark);
  border: 2px solid var(--primary);
}

.btn--outline:hover,
.btn--outline:focus-visible {
  background: var(--primary);
  color: var(--white);
}

.btn--large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  height: var(--header-height);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo img {
  width: auto;
  height: 2.25rem;
  object-fit: contain;
}

.header__cta {
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding: 6rem 1rem 4rem;
  overflow: hidden;
}

.hero__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 27, 43, 0.32) 0%, rgba(15, 27, 43, 0.50) 100%);
  z-index: 1;
}

.hero__bg { display: none; }

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 50rem;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 3.25rem);
  margin-bottom: 1rem;
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  margin-bottom: 2rem;
  opacity: 0.95;
}

/* Sections */
.section {
  padding: 4rem 1rem;
}

.section--alt {
  background: var(--surface);
}

.section__title {
  text-align: center;
  font-size: clamp(1.6rem, 4vw, 2rem);
  margin-bottom: 2rem;
}

.section__lead {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.section__cta {
  text-align: center;
  margin-top: 2rem;
}

/* Grid */
.grid {
  display: grid;
  gap: 1.5rem;
}

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

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.card__number {
  display: inline-block;
  color: var(--accent);
  font-family: "Rubik", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

/* Process steps */
.step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.step__icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: rgba(30, 166, 154, 0.08);
  border-radius: 50%;
}

/* Listings */
.listing {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.listing img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.listing__body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.listing__tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.listing h3 {
  font-size: 1.25rem;
}

.listing p {
  color: var(--text-muted);
  flex: 1;
}

.listing .btn {
  margin-top: auto;
}

/* Benefits */
.benefit {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow);
}

.benefit h3 {
  color: var(--primary-dark);
}

/* FAQ accordion */
.accordion__item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.accordion__item summary {
  padding: 1.25rem;
  font-family: "Rubik", sans-serif;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion__item summary::-webkit-details-marker {
  display: none;
}

.accordion__item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--accent);
}

.accordion__item[open] summary::after {
  content: "−";
}

.accordion__item p {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-muted);
}

/* Lead form */
.form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.form__row {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form__field:not(:last-child) {
  margin-bottom: 1rem;
}

.form label {
  font-family: "Rubik", sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
}

.form input,
.form select {
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: "Open Sans", sans-serif;
  background: var(--white);
  color: var(--text);
}

.form input:focus,
.form select:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-color: var(--primary);
}

.form button[type="submit"] {
  width: 100%;
}

.form__success {
  margin-top: 1rem;
  padding: 0.75rem;
  background: rgba(30, 166, 154, 0.1);
  color: var(--primary-dark);
  border-radius: var(--radius);
  text-align: center;
  font-weight: 600;
}

/* Footer */
.footer {
  background: var(--text);
  color: var(--white);
  padding: 3rem 1rem 1rem;
}

.footer__inner {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer__brand img {
  height: 2rem;
  width: auto;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.footer__brand p {
  opacity: 0.8;
  max-width: 24rem;
}

.footer__contact h3 {
  margin-bottom: 1rem;
}

.footer__contact p {
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.footer__contact a {
  color: var(--primary);
}

.footer__bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1rem;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Chatbot */
.chatbot {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
}

.chatbot__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  border-radius: 2rem;
  background: var(--accent);
  color: var(--white);
  border: none;
  font-family: "Rubik", sans-serif;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(234, 114, 61, 0.35);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.chatbot__toggle:hover,
.chatbot__toggle:focus-visible {
  transform: scale(1.03);
  background: var(--accent-hover);
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.chatbot__panel {
  position: absolute;
  bottom: calc(100% + 0.75rem);
  right: 0;
  width: min(20rem, calc(100vw - 2rem));
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border);
  overflow: hidden;
}

.chatbot__header {
  background: var(--primary);
  color: var(--white);
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

.chatbot__header strong {
  font-family: "Rubik", sans-serif;
}

.chatbot__header span {
  font-size: 0.85rem;
  opacity: 0.9;
}

.chatbot__body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.chatbot__msg {
  display: block;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.95rem;
  transition: background-color 0.15s ease;
}

.chatbot__msg:hover,
.chatbot__msg:focus-visible {
  background: rgba(30, 166, 154, 0.12);
  outline: none;
}

.chatbot__cta {
  display: block;
  margin: 0 1rem 1rem;
  padding: 0.75rem;
  text-align: center;
  background: var(--accent);
  color: var(--white);
  border-radius: var(--radius);
  font-weight: 600;
}

.chatbot__cta:hover,
.chatbot__cta:focus-visible {
  background: var(--accent-hover);
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Tablet+ */
@media (min-width: 640px) {
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

/* Desktop */
@media (min-width: 1024px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero {
    min-height: 88vh;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .chatbot__toggle,
  .chatbot__msg {
    transition: none;
  }
}
