:root {
  color-scheme: light;
  --ink: #12302f;
  --muted-ink: #526766;
  --paper: #fbf8f2;
  --plain: #ffffff;
  --teal: #0f766e;
  --teal-dark: #0a4f4a;
  --green: #52796f;
  --gold: #b88b42;
  --brand-gray: #767676;
  --line: #d8e0dc;
  --shadow: 0 18px 40px rgba(18, 48, 47, 0.14);
  font-family:
    "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

:focus-visible {
  outline: 4px solid #f2c94c;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 30;
  transform: translateY(-140%);
  background: var(--ink);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 6px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 4rem);
  background: rgba(251, 248, 242, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-weight: 800;
  min-width: 10rem;
}

.brand-logo {
  width: 11rem;
  max-width: 42vw;
  height: auto;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.main-nav a {
  min-height: 2.6rem;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  color: var(--muted-ink);
  text-decoration: none;
  font-size: 0.96rem;
}

.main-nav a:hover {
  background: #eaf3ef;
  color: var(--ink);
}

.hero {
  min-height: 82vh;
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(251, 248, 242, 0.97) 0%, rgba(251, 248, 242, 0.86) 43%, rgba(251, 248, 242, 0.08) 74%),
    url("./assets/yanira-working-v2.jpg") center / cover no-repeat;
  border-bottom: 1px solid var(--line);
}

.hero-overlay {
  width: min(45rem, calc(100% - 2rem));
  margin-left: clamp(1rem, 7vw, 6rem);
  padding-block: clamp(4rem, 10vw, 7rem);
}

.hero-logo {
  width: min(19rem, 60vw);
  height: auto;
  margin-bottom: 1.1rem;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--brand-gray);
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin: 0.85rem 0 0.45rem;
  font-size: 1.35rem;
  line-height: 1.2;
}

.hero-text {
  max-width: 38rem;
  margin: 1.25rem 0 0;
  color: #2d4847;
  font-size: clamp(1.25rem, 2.1vw, 1.6rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.button {
  min-height: 3.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.2rem;
  border-radius: 6px;
  border: 2px solid var(--teal);
  text-decoration: none;
  font-weight: 800;
}

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

.button.secondary {
  background: rgba(255, 255, 255, 0.8);
  color: var(--teal-dark);
}

.button.ghost {
  border-color: #8b8b8b;
  background: rgba(255, 255, 255, 0.62);
  color: #4f4f4f;
}

.quick-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.quick-info div {
  min-height: 8rem;
  padding: clamp(1.25rem, 3vw, 2.2rem);
  background: var(--plain);
}

.quick-info strong,
.quick-info span {
  display: block;
}

.quick-info strong {
  font-size: 1.15rem;
}

.quick-info span {
  color: var(--muted-ink);
  margin-top: 0.25rem;
}

.section,
.contact-section {
  padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1rem, 5vw, 5rem);
}

.section-heading {
  width: min(46rem, 100%);
  margin-bottom: 2rem;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted-ink);
  font-size: 1.12rem;
}

.muted {
  background: #eef4ef;
}

.advisory-section {
  background: #ffffff;
  border-block: 1px solid var(--line);
}

.advisory-section .section-heading {
  width: min(54rem, 100%);
}

.advisory-section .section-heading p:not(.eyebrow) {
  max-width: 50rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.profile-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1rem, 5vw, 5rem);
  background: #f7faf8;
  border-block: 1px solid var(--line);
}

.profile-image-wrap {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.profile-image-wrap img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.profile-copy p:not(.eyebrow) {
  color: var(--muted-ink);
  font-size: 1.12rem;
}

.experience-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.3rem;
}

.experience-list span {
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: #35504f;
  font-weight: 700;
  font-size: 0.95rem;
}

.compact {
  padding-top: clamp(2.8rem, 6vw, 4.5rem);
  padding-bottom: clamp(2.8rem, 6vw, 4.5rem);
}

.service-card {
  min-height: 18rem;
  padding: 1.35rem;
  background: var(--plain);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(18, 48, 47, 0.06);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: #e4f1ee;
  color: var(--teal-dark);
  font-weight: 900;
}

.service-card p {
  color: var(--muted-ink);
  margin-bottom: 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: steps;
}

.steps li {
  min-height: 11rem;
  padding: 1.3rem;
  background: var(--plain);
  border-left: 5px solid var(--gold);
  border-radius: 8px;
  counter-increment: steps;
}

.steps li::before {
  content: counter(steps);
  display: block;
  color: var(--gold);
  font-weight: 900;
  margin-bottom: 0.35rem;
}

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

.steps span {
  color: var(--muted-ink);
  margin-top: 0.35rem;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
  width: min(58rem, 100%);
}

details {
  background: var(--plain);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem 1.2rem;
}

summary {
  cursor: pointer;
  font-weight: 800;
  min-height: 2rem;
}

details p {
  margin-bottom: 0;
  color: var(--muted-ink);
}

.contact-section {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
  background: var(--teal-dark);
  color: white;
}

.contact-copy p {
  color: #d8ece8;
  max-width: 40rem;
}

.contact-copy .eyebrow {
  color: #a8e7db;
}

.contact-panel {
  padding: 1.4rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
}

.contact-panel p {
  margin: 0;
  padding-block: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-panel p:last-child {
  border-bottom: 0;
}

.contact-panel a {
  color: white;
  font-weight: 800;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem clamp(1rem, 5vw, 5rem);
  background: #082f2c;
  color: white;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: white;
}

.chat-toggle {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 25;
  min-height: 4.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 1rem 0.45rem 0.45rem;
  border: 0;
  border-radius: 999px;
  background: var(--teal);
  color: white;
  font-weight: 900;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.chat-toggle img {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid white;
  flex: 0 0 auto;
}

.chat-panel {
  position: fixed;
  right: 1rem;
  bottom: 5rem;
  z-index: 26;
  width: min(25rem, calc(100vw - 2rem));
  max-height: min(38rem, calc(100vh - 6rem));
  display: grid;
  grid-template-rows: auto minmax(10rem, 1fr) auto auto;
  background: var(--plain);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.chat-panel[hidden] {
  display: none;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  background: #e8f4f1;
  border-bottom: 1px solid var(--line);
}

.chat-avatar {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid white;
  flex: 0 0 auto;
}

.chat-header span {
  display: block;
  color: var(--muted-ink);
  font-size: 0.92rem;
}

.chat-close,
.suggestions button,
.chat-form button {
  border: 1px solid var(--teal);
  border-radius: 6px;
  background: white;
  color: var(--teal-dark);
  font-weight: 800;
  cursor: pointer;
}

.chat-close {
  min-height: 2.5rem;
  padding: 0.4rem 0.7rem;
}

.chat-log {
  overflow-y: auto;
  padding: 1rem;
  background: #fbfdfc;
}

.bot-message,
.user-message {
  width: fit-content;
  max-width: 88%;
  margin: 0 0 0.7rem;
  padding: 0.65rem 0.8rem;
  border-radius: 8px;
}

.bot-message {
  background: #edf5f2;
}

.bot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.bot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  background: white;
  color: var(--teal-dark);
  border: 1px solid #b8d6d0;
  font-weight: 800;
  text-decoration: none;
}

.user-message {
  margin-left: auto;
  background: var(--teal);
  color: white;
}

.suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.75rem 1rem 0;
}

.suggestions button {
  min-height: 2.3rem;
  padding: 0.35rem 0.65rem;
}

.chat-form {
  padding: 0.9rem 1rem 1rem;
}

.chat-form label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 800;
}

.chat-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
}

.chat-input-row input {
  min-height: 2.8rem;
  min-width: 0;
  border: 1px solid #b8c9c4;
  border-radius: 6px;
  padding: 0.55rem 0.7rem;
}

.chat-form button {
  min-height: 2.8rem;
  padding: 0.55rem 0.8rem;
  background: var(--teal);
  color: white;
}

@media (max-width: 900px) {
  .site-header,
  .contact-section {
    display: block;
  }

  .brand {
    margin-bottom: 0.65rem;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: 74vh;
    background:
      linear-gradient(180deg, rgba(251, 248, 242, 0.98) 0%, rgba(251, 248, 242, 0.91) 58%, rgba(251, 248, 242, 0.18) 100%),
      url("./assets/yanira-working-v2.jpg") 68% center / cover no-repeat;
  }

  .hero-overlay {
    margin-inline: auto;
    padding-top: 4rem;
  }

  .quick-info,
  .service-grid,
  .profile-section,
  .steps {
    grid-template-columns: 1fr;
  }

  .contact-panel {
    margin-top: 1.5rem;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 17px;
  }

  .main-nav a {
    padding-inline: 0.55rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .chat-toggle {
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .chat-panel {
    right: 0.5rem;
    bottom: 4.6rem;
    width: calc(100vw - 1rem);
  }

  .chat-input-row {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}

@media (forced-colors: active) {
  .button,
  .chat-toggle,
  .chat-form button {
    border: 2px solid ButtonText;
  }
}
