/* =========================
   RESET & GLOBAL
========================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f4f3f0;
  color: #1d2c3a;
  font-family: "DM Sans", sans-serif;
}


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

.header {
  height: 92px;
  background: #faf9f6;
  border-bottom: 1px solid #d7d8d5;

  display: flex;
  align-items: center;

  padding: 0 4.5%;
  gap: 35px;

  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-family: "Playfair Display", serif;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.5px;

  color: #1c2d3e;
  text-decoration: none;
  white-space: nowrap;
}

.logo span {
  font-family: "DM Sans", sans-serif;
  font-size: 10px;
  letter-spacing: 4px;
  margin-left: 7px;
  font-weight: 500;
}

.nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}

.nav a,
.footer-grid a {
  color: #263647;
  text-decoration: none;
  font-size: 14px;
}

.nav a:hover {
  opacity: 0.65;
}


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

.outline-btn,
.light-btn,
.dark-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;

  padding: 16px 24px;

  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.2px;

  border: 1px solid #273849;
}

.outline-btn {
  color: #263647;
  background: transparent;
}

.light-btn {
  background: #f8f7f3;
  color: #243548;
}

.dark-btn {
  background: #182b3d;
  color: white;
  border: 0;
}

.outline-btn:hover,
.light-btn:hover,
.dark-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.menu-btn {
  display: none;
  background: none;
  border: 0;
  font-size: 25px;
}


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

.hero-new {
  background: #223548;
  color: #f8f6f0;

  min-height: 720px;

  display: grid;
  grid-template-columns: 1fr 1fr;

  align-items: center;
  gap: 70px;

  padding: 85px 5%;
}

.hero-content {
  max-width: 720px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 4px;
  font-weight: 700;

  color: #708091;
  margin-bottom: 25px;
}

.hero-new .eyebrow {
  color: #b6c0ca;
}

.hero-new h1 {
  font-family: "Playfair Display", serif;
  font-weight: 400;

  font-size: clamp(55px, 6vw, 92px);
  line-height: 1.02;

  margin: 0;
}

.hero-new p {
  font-size: 20px;
  line-height: 1.55;

  color: #b8c1ca;

  max-width: 650px;
  margin: 28px 0 38px;
}

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

.hero-link {
  color: #f4f3f0;
  text-decoration: none;

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

  border-bottom: 1px solid rgba(255,255,255,0.5);
  padding-bottom: 7px;
}

.hero-link:hover {
  opacity: 0.7;
}


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

.hero-visual {
  position: relative;
  height: 545px;
}

.hero-visual img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  display: block;

  filter: brightness(0.85);
}

.hero-card {
  position: absolute;

  background: rgba(248,247,243,0.96);
  color: #243548;

  padding: 28px 34px;

  min-width: 190px;

  box-shadow: 0 10px 40px rgba(0,0,0,0.12);
}

.hero-card strong {
  display: block;

  font-family: "Playfair Display", serif;
  font-size: 34px;
  font-weight: 400;
}

.hero-card span {
  display: block;

  font-size: 10px;
  letter-spacing: 2px;

  margin-top: 7px;

  color: #64717c;
}

.hero-card-one {
  left: -38px;
  bottom: 55px;
}

.hero-card-two {
  right: -28px;
  top: 60px;
}


/* =========================
   GENERAL SECTIONS
========================= */

.section {
  padding: 100px 5%;
  border-bottom: 1px solid #d8d8d4;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", serif;
  font-weight: 400;
  margin: 0;
  color: inherit;
}

.section h2 {
  font-size: clamp(38px, 4.5vw, 65px);
  line-height: 1.12;
}


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

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.about-grid p,
.section > p {
  font-size: 18px;
  line-height: 1.6;
  color: #64717c;
  margin: 0;
}


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

.stats {
  margin-top: 70px;

  display: grid;
  grid-template-columns: repeat(3, 1fr);

  border: 1px solid #d3d5d3;
}

.stats div {
  min-height: 180px;

  padding: 35px;

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

  border-right: 1px solid #d3d5d3;
}

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

.stats strong {
  font-family: "Playfair Display", serif;
  font-size: 42px;
  font-weight: 400;
}

.stats span {
  font-size: 11px;
  letter-spacing: 3px;

  margin-top: 12px;
  color: #64717c;
}


/* =========================
   SOLUTIONS
========================= */

.solutions {
  background: #eeece7;
}

.cards,
.articles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);

  border: 1px solid #d2d3d0;

  margin-top: 60px;
}

.cards article,
.articles article {
  padding: 38px;

  border-right: 1px solid #d2d3d0;

  min-height: 310px;
}

.cards article:last-child,
.articles article:last-child {
  border-right: 0;
}

.num {
  font-family: "Playfair Display", serif;
  font-size: 32px;

  color: #94a0a9;
  margin-bottom: 28px;
}

.cards h3,
.articles h3 {
  font-size: 29px;
  line-height: 1.25;
}

.cards p,
.articles p {
  line-height: 1.55;
  color: #68737c;
}

.cards a,
.articles a,
.insights a,
.offices a {
  color: #243548;
  text-decoration: none;

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


/* =========================
   CLAIMS
========================= */

.claims {
  background: #f7f6f2;
}

.claims > p {
  max-width: 720px;
  margin: 22px 0 30px;
}

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

  border: 1px solid #d2d3d0;
  margin-top: 50px;
}

.steps div {
  padding: 38px;
  border-right: 1px solid #d2d3d0;

  min-height: 150px;
}

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

.steps span {
  font-family: "Playfair Display", serif;

  display: block;

  font-size: 30px;
  color: #98a2aa;

  margin-bottom: 20px;
}


/* =========================
   INSIGHTS
========================= */

.section-row {
  max-width: 780px;
}

.section-row p {
  font-size: 18px;
  color: #64717c;
  line-height: 1.5;
}

.section-row a {
  display: block;
  margin-top: 30px;
}

.articles article {
  min-height: 390px;
}

.articles .eyebrow {
  font-size: 10px;
  letter-spacing: 3px;
}

.articles small {
  color: #7b858d;
}


/* =========================
   CONTACT BANNER
========================= */

.contact-banner {
  background: #182b3d;
  color: #f8f6f0;

  padding: 115px 5%;
}

.contact-banner .eyebrow {
  color: #b6c0ca;
}

.contact-banner h2 {
  font-family: "Playfair Display", serif;

  font-size: clamp(48px, 6vw, 80px);
  font-weight: 400;
}

.contact-banner p {
  font-size: 20px;
  line-height: 1.55;

  color: #b8c1ca;

  max-width: 800px;
  margin: 28px 0 0;
}


/* =========================
   FORM
========================= */

.form-section {
  background: #faf9f6;
}

.choice-row {
  display: flex;
  flex-wrap: wrap;

  gap: 8px;
  margin: 45px 0;
}

.choice {
  padding: 13px 18px;

  background: #f8f7f4;
  border: 1px solid #cfd2d1;

  color: #40505f;

  font: 600 14px "DM Sans", sans-serif;

  cursor: pointer;
}

.choice.active {
  background: #1d3042;
  color: white;
}

.form-grid {
  border: 1px solid #d3d5d3;

  padding: 32px;

  display: grid;
  grid-template-columns: 1fr 1fr;

  gap: 25px;
  margin-bottom: 25px;
}

label {
  font-size: 11px;
  letter-spacing: 3px;
  font-weight: 700;

  color: #697785;

  display: flex;
  flex-direction: column;
  gap: 10px;
}

input,
textarea {
  font: 15px "DM Sans", sans-serif;

  padding: 16px;

  border: 1px solid #cfd3d2;
  background: white;

  outline: none;
}

input:focus,
textarea:focus {
  border-color: #182b3d;
}

textarea {
  height: 100px;
  resize: vertical;
}

.full {
  grid-column: 1 / -1;
}

.form-section form {
  max-width: 1100px;
}

.form-section .dark-btn {
  padding: 17px 28px;
}

#formMessage {
  margin-top: 15px;
  font-weight: 600;
}


/* =========================
   OFFICES
========================= */

.offices {
  background: #f1f0ec;
}

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

  border: 1px solid #d1d3d1;

  margin-top: 50px;
}

.office-grid > div {
  padding: 40px;
  border-right: 1px solid #d1d3d1;
}

.office-grid > div:last-child {
  border-right: 0;
}

.office-grid p {
  font-size: 18px;
  line-height: 1.55;

  color: #64717c;

  min-height: 110px;
}


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

footer {
  background: #182b3d;
  color: #dce1e5;

  padding: 70px 5% 25px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;

  gap: 60px;
}

.footer-grid .logo {
  color: #f1f0ec;
}

.footer-grid p {
  color: #aeb9c2;
  line-height: 1.6;
}

.footer-grid > div:not(:first-child) {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-grid a {
  color: #c0c8cf;
}

.footer-grid a:hover {
  color: white;
}

.footer-grid .eyebrow {
  color: #8d9aa5;
  margin-bottom: 10px;
}

.copyright {
  border-top: 1px solid #334657;

  margin-top: 50px;
  padding-top: 25px;

  color: #94a0aa;
  font-size: 13px;
}


/* =========================
   JOEY AI CHATBOT
========================= */

.joey-widget {
  position: fixed;

  right: 30px;
  bottom: 30px;

  z-index: 99999;
}

.joey-button {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 10px;

  background: #182b3d;
  color: white;

  border: none;

  padding: 16px 22px;

  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;

  cursor: pointer;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);

  transition: 0.2s ease;
}

.joey-button:hover {
  transform: translateY(-2px);
  background: #263e54;
}

.joey-icon {
  font-size: 18px;
}


/* CHAT WINDOW */

.joey-chat {
  position: absolute;

  right: 0;
  bottom: 72px;

  width: 380px;
  max-width: calc(100vw - 40px);
  height: 520px;

  background: #faf9f6;

  border: 1px solid #d7d8d5;

  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);

  display: flex;
  flex-direction: column;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform: translateY(20px);

  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s ease;
}

.joey-chat.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;

  transform: translateY(0);
}


/* JOEY HEADER */

.joey-header {
  background: #182b3d;
  color: white;

  padding: 20px;

  display: flex;
  align-items: center;
  gap: 12px;
}

.joey-avatar {
  width: 42px;
  height: 42px;

  border-radius: 50%;

  background: #f4f3f0;
  color: #182b3d;

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

  font-family: "Playfair Display", serif;
  font-size: 22px;
}

.joey-header strong {
  display: block;
  font-size: 16px;
}

.joey-header span {
  display: block;

  font-size: 11px;

  color: #b8c1ca;
  margin-top: 3px;
}

#closeJoey {
  margin-left: auto;

  background: transparent;
  border: 0;

  color: white;

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

  cursor: pointer;
}


/* JOEY MESSAGES */

.joey-messages {
  flex: 1;

  overflow-y: auto;

  padding: 20px;

  display: flex;
  flex-direction: column;
  gap: 12px;

  background: #f4f3f0;
}

.joey-message {
  max-width: 85%;

  padding: 13px 16px;

  line-height: 1.5;
  font-size: 14px;
}

.joey-message.bot {
  background: white;
  color: #243548;

  align-self: flex-start;

  border: 1px solid #e0e1de;
}

.joey-message.user {
  background: #182b3d;
  color: white;

  align-self: flex-end;
}


/* JOEY SUGGESTIONS */

.joey-suggestions {
  padding: 12px 15px;

  display: flex;
  gap: 7px;
  flex-wrap: wrap;

  border-top: 1px solid #dedfdb;

  background: #faf9f6;
}

.joey-suggestions button {
  background: white;

  border: 1px solid #ccd0d0;

  padding: 8px 10px;

  font-family: "DM Sans", sans-serif;
  font-size: 11px;

  color: #263647;

  cursor: pointer;

  transition: 0.2s ease;
}

.joey-suggestions button:hover {
  background: #182b3d;
  color: white;
}


/* JOEY INPUT */

.joey-input {
  display: flex;

  padding: 15px;

  border-top: 1px solid #dedfdb;

  background: white;
}

.joey-input input {
  flex: 1;

  border: 1px solid #ccd0d0;

  padding: 12px;

  font-family: "DM Sans", sans-serif;
}

.joey-input button {
  width: 48px;

  border: none;

  margin-left: 8px;

  background: #182b3d;
  color: white;

  font-size: 18px;

  cursor: pointer;
}


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

@media (max-width: 900px) {

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

    gap: 45px;

    padding: 70px 7%;
  }

  .hero-content {
    padding: 0;
  }

  .hero-visual {
    height: 460px;
  }

  .hero-card-one {
    left: 15px;
    bottom: 20px;
  }

  .hero-card-two {
    right: 15px;
    top: 20px;
  }

}


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

@media (max-width: 800px) {

  .header {
    height: 72px;
    padding: 0 20px;
  }

  .nav,
  .header .outline-btn {
    display: none;
  }

  .menu-btn {
    display: block;
    margin-left: auto;
  }

  .section,
  .contact-banner {
    padding: 75px 7%;
  }

  .about-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .stats,
  .cards,
  .articles,
  .steps,
  .office-grid {
    grid-template-columns: 1fr;
  }

  .stats div,
  .cards article,
  .articles article,
  .steps div,
  .office-grid > div {
    border-right: 0;
    border-bottom: 1px solid #d2d3d0;
  }

  .stats div:last-child,
  .cards article:last-child,
  .articles article:last-child,
  .steps div:last-child,
  .office-grid > div:last-child {
    border-bottom: 0;
  }

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

  .full {
    grid-column: auto;
  }

  .footer-grid {
    gap: 38px;
  }

  .hero-new h1 {
    font-size: clamp(52px, 12vw, 76px);
  }

  .hero-new p,
  .contact-banner p {
    font-size: 17px;
  }

}


/* =========================
   SMALL MOBILE + JOEY
========================= */

@media (max-width: 600px) {

  .hero-new {
    padding: 65px 7%;
  }

  .hero-visual {
    height: 380px;
  }

  .hero-card {
    padding: 18px 20px;
    min-width: 150px;
  }

  .hero-card strong {
    font-size: 26px;
  }

  .hero-card-one {
    left: 10px;
    bottom: 15px;
  }

  .hero-card-two {
    right: 10px;
    top: 15px;
  }

  .joey-widget {
    right: 15px;
    bottom: 15px;
  }

  .joey-chat {
    width: calc(100vw - 30px);

    height: 70vh;

    right: 0;
    bottom: 68px;
  }

  .joey-button {
    width: 56px;
    height: 56px;

    border-radius: 50%;

    padding: 0;
  }

  .joey-button span:last-child {
    display: none;
  }

}
