@import url('home-contact.css');
@import url('contact-modal.css');
@import url('contact-form-ui.css');

/* Shared site chrome (header/footer) + layout vars */

:root {
  --purple-deep: #11096a;
  --purple-mid: #350d5f;
  --purple-heading: #370d5f;
  --purple-brand: #360d5f;
  --purple-muted: #571175;
  --purple-faq-alt: #580a72;
  --purple-newsletter: #31086c;
  --purple-chip-from: #500e71;
  --purple-chip-to: #1a0a68;
  --gray-bg: #f5f5f5;
  --gray-card: #e5e8ec;
  --text-muted: #545454;
  --text-body: #3f3e3e;
  --text-dark: #3a3838;
  --cta-navy: #07084c;
  --border-soft: rgba(17, 9, 106, 0.26);
  --font-inter: "Inter", system-ui, sans-serif;
  --font-lato: "Lato", "Inter", sans-serif;

  /* Layout (design spec 1440 frame — fixed; mobile uses layouts/mobile) */
  --page-max: 1440px;
  --page-gutter: 86px;
  --content-max: 1268px;
}

@media (max-width: 1180px) {
  :root {
    --page-gutter: clamp(22px, 5vw, 86px);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-lato);
  font-size: 16px;
  line-height: 1.5;
  color: #000;
  background: #fff;
}

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

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

a:hover {
  text-decoration: underline;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-shell {
  max-width: var(--page-max);
  margin: 0 auto;
  background: #fff;
}

/* ——— Header (partial) ——— */
.site-header {
  position: relative;
  z-index: 100;
  height: 103px;
  display: flex;
  align-items: center;
  padding: 0 var(--page-gutter);
  background: #e4e4e5;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-inter);
  color: #3a3838;
  text-decoration: none;
}

.site-header__mark {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(6, 33, 79, 0.95) 0 0) left / 6px 100% no-repeat,
    linear-gradient(90deg, rgba(6, 33, 79, 0.95) 0 0) left 10px top / 6px 100% no-repeat,
    linear-gradient(90deg, rgba(6, 33, 79, 0.95) 0 0) left 20px top / 6px 75% no-repeat,
    linear-gradient(90deg, rgba(6, 33, 79, 0.95) 0 0) left 30px top / 6px 55% no-repeat;
}

.site-header__brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  letter-spacing: 0.08em;
}

.site-header__brand-name {
  font-weight: 700;
  font-size: 16px;
  color: #3a3838;
}

.site-header__brand-sub {
  font-weight: 400;
  font-size: 12px;
  color: #6a6a6a;
}

.site-header__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  gap: 38px;
  font-family: var(--font-inter);
  font-size: 18px;
  font-weight: 400;
  color: #06214f;
}

.site-header__nav a,
.site-header__nav-link {
  color: inherit;
  text-decoration: none;
}

.site-header__nav a:hover,
.site-header__nav-link:hover {
  text-decoration: none;
  opacity: 0.9;
}

.site-header__dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  /* Invisible bridge so hover is not lost between the trigger and the panel */
  padding-bottom: 14px;
  margin-bottom: -14px;
}

.site-header__nav-link--has-menu {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 2px;
}

.site-header__nav-link--has-menu::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.7;
}

.site-header__submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 280px;
  max-width: min(360px, 80vw);
  max-height: min(70vh, 480px);
  overflow-y: auto;
  margin: 0;
  padding: 10px 0;
  list-style: none;
  background: #fff;
  border: 1px solid rgba(6, 33, 79, 0.12);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(6, 33, 79, 0.14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 140ms ease, visibility 140ms ease;
  z-index: 110;
}

.site-header__submenu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}

.site-header__dropdown:hover .site-header__submenu,
.site-header__dropdown:focus-within .site-header__submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.site-header__submenu a {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  line-height: 1.35;
  color: #06214f;
  text-decoration: none;
  white-space: normal;
}

.site-header__submenu a:hover,
.site-header__submenu a:focus-visible {
  background: rgba(6, 33, 79, 0.06);
  opacity: 1;
}

.site-header__submenu li:first-child a {
  font-weight: 600;
  border-bottom: 1px solid rgba(6, 33, 79, 0.08);
  margin-bottom: 4px;
  padding-bottom: 12px;
}

.site-header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 131px;
  height: 26px;
  padding: 0 16px;
  font-family: var(--font-inter);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #fff;
  background: #06214f;
  border-radius: 6px;
  text-decoration: none;
}

.site-header__cta:hover {
  filter: brightness(0.97);
  text-decoration: none;
}

/* ——— Footer (partial) ——— */
.site-footer {
  position: relative;
  min-height: 537px;
}

.site-footer__bg {
  position: absolute;
  inset: 0;
}

.site-footer__bg img {
  width: 100%;
  height: 537px;
  object-fit: cover;
}

.site-footer__overlay {
  position: relative;
  z-index: 1;
  min-height: 537px;
  padding: 94px var(--page-gutter) 48px;
  background: rgba(241, 241, 241, 0.91);
}

.site-footer__grid {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0;
  max-width: var(--content-max);
  margin: 0 auto;
}

.site-footer__col--brand {
  flex: 0 0 321px;
  min-width: 0;
}

.site-footer__col--sitemap {
  flex: 0 0 361px;
  min-width: 0;
}

.site-footer__col--tips {
  flex: 1 1 280px;
  min-width: 0;
}

.site-footer__brand-title,
.site-footer__col-title {
  margin: 0 0 24px;
  font-family: var(--font-inter);
  font-weight: 500;
  font-size: 24px;
  line-height: normal;
  letter-spacing: 1.92px;
  color: #1c0d6c;
}

.site-footer__contact {
  font-size: 18px;
  line-height: normal;
  color: var(--purple-muted);
}

.site-footer__contact p {
  margin: 0;
  line-height: normal;
}

.site-footer__phone-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.site-footer__inline-icon {
  display: inline-block;
}

.site-footer__social {
  display: flex;
  gap: 16px;
  margin-top: 22px;
}

.site-footer__divider {
  flex: 0 0 80px;
  display: flex;
  justify-content: center;
  padding-top: 12px;
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 18px;
  color: var(--purple-muted);
}

.site-footer__tips-text {
  margin: 0 0 18px;
  font-size: 18px;
  color: var(--purple-muted);
  max-width: 360px;
}

.site-footer__tips-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  align-items: stretch;
  margin-top: 18px;
  max-width: 460px;
}

.site-footer__tips-form input[type="email"] {
  flex: 1 1 min(340px, 100%);
  min-width: 0;
  min-height: 48px;
  height: auto;
  padding: 0 18px;
  border-radius: 10px;
  border: 2px solid rgba(17, 9, 106, 0.38);
  background: #fff;
  box-shadow:
    inset 0 2px 3px rgb(255 255 255 / 0.9),
    0 4px 16px rgb(17 9 106 / 0.12);
  font-family: var(--font-inter);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  color: #11096a;
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.site-footer__tips-form input[type="email"]::placeholder {
  color: rgba(17, 9, 106, 0.45);
  font-weight: 500;
}

.site-footer__tips-form input[type="email"]:hover {
  border-color: rgba(17, 9, 106, 0.55);
}

.site-footer__tips-form input[type="email"]:focus-visible {
  border-color: #11096a;
  box-shadow:
    inset 0 2px 3px rgb(255 255 255 / 0.95),
    0 0 0 3px rgb(17 9 106 / 0.2);
}

.site-footer__tips-form button {
  min-height: 48px;
  height: auto;
  padding: 0 26px;
  border-radius: 10px;
  background: linear-gradient(180deg, #5f187d 0%, #480d70 52%, #3d0c5f 100%);
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: var(--font-inter);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  box-shadow:
    0 4px 16px rgb(17 9 106 / 0.28),
    inset 0 1px 0 rgb(255 255 255 / 0.12);
  flex-shrink: 0;
}

.site-footer__tips-form button:hover {
  filter: brightness(1.08);
}

.site-footer__tips-form button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* ——— Bottom footer (partial) ——— */
.bottom-footer {
  position: relative;
  margin-top: 0;
}

.bottom-footer__ribbon {
  position: relative;
  height: 172px;
}

.bottom-footer__ribbon-bg {
  position: absolute;
  inset: 0;
}

.bottom-footer__ribbon-bg img {
  width: 100%;
  height: 172px;
  object-fit: cover;
}

.bottom-footer__ribbon-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(88, 10, 114, 0.96) 0%,
    rgba(17, 9, 106, 0.96) 100%
  );
}

.bottom-footer__logo-chip {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 3;
  transform: translate(-50%, -56px);
  width: 274px;
  height: 111px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-inter);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: 1.92px;
  color: #fff;
  background: linear-gradient(180deg, var(--purple-chip-from) 0%, var(--purple-chip-to) 100%);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.bottom-footer__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--page-gutter) 24px;
}

.bottom-footer__copy {
  margin: 0;
  font-family: var(--font-inter);
  font-size: 16px;
  color: #fff;
}

.bottom-footer__legal {
  display: flex;
  gap: 42px;
  margin: 0;
  padding: 0;
  list-style: disc;
  color: #fff;
  font-family: var(--font-inter);
}

/* Tablet / compact desktop — equal-width footer columns, no clipped tips column */
@media (max-width: 1180px) {
  .site-footer__overlay {
    padding-top: clamp(48px, 9vw, 94px);
    padding-bottom: 40px;
  }

  .site-footer__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: clamp(14px, 2.8vw, 26px);
    row-gap: 28px;
    align-items: start;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .site-footer__divider {
    display: none;
  }

  .site-footer__col--brand,
  .site-footer__col--sitemap,
  .site-footer__col--tips {
    flex: unset;
    min-width: 0;
    width: auto;
    max-width: none;
  }

  .site-footer__brand-title,
  .site-footer__col-title {
    font-size: clamp(17px, 1.85vw, 24px);
    letter-spacing: 0.06em;
    hyphens: auto;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .site-footer__contact,
  .site-footer__tips-text {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .site-footer__tips-text {
    max-width: none;
  }

  .site-footer__email a {
    word-break: break-all;
  }

  .site-footer__tips-form {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .site-footer__tips-form input[type="email"] {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    min-width: 0;
    flex-basis: auto;
  }

  .site-footer__tips-form button {
    width: fit-content;
    max-width: 100%;
    align-self: flex-start;
  }

  .site-footer__links a {
    overflow-wrap: anywhere;
  }

  .bottom-footer__bar {
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 14px 24px;
    padding-bottom: clamp(16px, 4vw, 24px);
  }

  .bottom-footer__copy {
    flex: 1 1 220px;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .bottom-footer__legal {
    flex-wrap: wrap;
    align-items: center;
    gap: 12px clamp(18px, 3vw, 32px);
    row-gap: 8px;
  }

  .bottom-footer__logo-chip {
    width: min(274px, calc(100vw - 48px));
    font-size: clamp(18px, 2vw, 24px);
    padding-inline: 12px;
    box-sizing: border-box;
  }
}

@media (max-width: 720px) {
  .site-footer__grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 36px;
  }

  .site-footer__divider {
    display: none;
  }
}


/* ——— Shared FAQ block (used on homepage + service templates) ——— */
.faq {
  position: relative;
  padding: 48px var(--page-gutter) 80px;
  background: #fff;
}

.faq__badge {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80px;
  height: 80px;
  margin: 0 auto 32px;
}

.faq__badge-icon {
  flex-shrink: 0;
  display: block;
  width: 80px;
  height: 80px;
  max-width: none;
  object-fit: contain;
  pointer-events: none;
}

.faq__kicker {
  margin: 0 auto 16px;
  max-width: 900px;
  text-align: center;
  font-size: 18px;
  line-height: 1.5;
}

.faq__title {
  margin: 0 0 48px;
  text-align: center;
  font-family: var(--font-lato);
  font-weight: 700;
  font-size: 48px;
}

.faq__layout {
  display: grid;
  grid-template-columns: minmax(0, 593px) minmax(0, 441px);
  gap: 40px 48px;
  justify-content: space-between;
  align-items: start;
  padding: 32px 48px 48px;
  background: var(--gray-bg);
  border: 1px solid var(--border-soft);
  border-radius: 4px;
}

.faq__questions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq__q {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 68px;
  padding: 12px 28px 12px 30px;
  margin: 0;
  border: none;
  text-align: left;
  font-family: var(--font-lato);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.35;
  color: #f5f5f5;
  background: var(--purple-deep);
  cursor: pointer;
  box-sizing: border-box;
}

.faq__q.is-active {
  font-size: 18px;
  line-height: 1.3;
}

.faq__q--alt {
  background: var(--purple-faq-alt);
}

.faq__q:hover {
  filter: brightness(1.08);
}

.faq__detail {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: flex-start;
  max-width: 441px;
}

.faq__detail-icon {
  display: block;
  margin: 0;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  max-width: none;
  object-fit: contain;
}

.faq__detail-title {
  margin: 0;
  font-family: var(--font-lato);
  font-weight: 700;
  font-size: 28px;
  line-height: normal;
  color: var(--purple-deep);
}

.faq__detail p {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
}

@media (max-width: 1180px) {
  .faq__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px 32px;
    padding: 24px clamp(16px, 4vw, 36px) 36px;
  }

  .faq__detail {
    max-width: none;
    width: 100%;
  }

  .faq__q {
    padding: 12px clamp(14px, 3vw, 28px);
  }

  .faq__title {
    font-size: clamp(28px, 5vw, 48px);
  }
}
