/* =========================================================
   XEE CONSULTING
   FAMILY REUNIFICATION PORTUGAL
   Primary: #9D7530
========================================================= */

.xee-family-page {
  --xee-gold: #9d7530;
  --xee-gold-dark: #76531e;
  --xee-gold-light: #c8a769;

  --xee-dark: #181713;
  --xee-heading: #211f1a;
  --xee-text: #68625a;

  --xee-white: #ffffff;
  --xee-soft: #f8f5ef;
  --xee-soft-2: #f1ece3;

  --xee-border: rgba(157, 117, 48, 0.18);

  width: 100%;
  color: var(--xee-text);

  font-family: inherit;
  line-height: 1.75;
}

.xee-family-page *,
.xee-family-page *::before,
.xee-family-page *::after {
  box-sizing: border-box;
}

.xee-family-page h1,
.xee-family-page h2,
.xee-family-page h3,
.xee-family-page h4,
.xee-family-page p {
  margin-top: 0;
}

.xee-family-page h1,
.xee-family-page h2,
.xee-family-page h3,
.xee-family-page h4 {
  color: var(--xee-heading);
}

/* =========================================================
   WORDPRESS CLASSIC EDITOR CLEANUP
========================================================= */

.xee-family-page > p:empty,
.xee-family-page section > p:empty,
.xee-family-page div > p:empty {
  display: none !important;

  height: 0 !important;

  margin: 0 !important;
  padding: 0 !important;
}

/* =========================================================
   CONTAINER
========================================================= */

.xee-family-container {
  width: 100%;
  max-width: 100%;

  margin: 0 auto;

  padding-left: 36px;
  padding-right: 36px;
}

.xee-family-section {
  padding: 75px 0;
}

.xee-family-soft {
  background: var(--xee-soft);
}

/* =========================================================
   EYEBROW
========================================================= */

.xee-family-eyebrow {
  display: inline-flex;
  align-items: center;

  gap: 11px;

  margin-bottom: 15px;

  color: var(--xee-gold);

  font-size: 12px;
  line-height: 1;
  font-weight: 700;

  letter-spacing: 1.7px;
  text-transform: uppercase;
}

.xee-family-eyebrow::before {
  content: "";

  width: 28px;
  height: 1px;

  background: var(--xee-gold);
}

.xee-family-eyebrow-light {
  color: #ffffff !important;
}

.xee-family-eyebrow-light::before {
  background: #ffffff;
}

/* =========================================================
   COMMON HEADING
========================================================= */

.xee-family-heading {
  max-width: 735px;

  margin-bottom: 42px;
}

.xee-family-heading h2 {
  margin: 0 0 17px;

  font-size: clamp(31px, 3.3vw, 43px);
  line-height: 1.1;

  letter-spacing: -1.2px;
  font-weight: 600;
}

.xee-family-heading p {
  margin: 0;

  font-size: 15px;
  line-height: 1.85;
}

/* =========================================================
   HERO
========================================================= */

.xee-family-hero {
  position: relative;
  overflow: hidden;

  padding: 72px 0 62px;

  background:
    radial-gradient(
      circle at 88% 12%,
      rgba(157, 117, 48, 0.12),
      transparent 31%
    ),
    linear-gradient(135deg, #ffffff 0%, #fbf9f5 100%);
}

.xee-family-hero::after {
  content: "";

  position: absolute;

  right: -250px;
  bottom: -350px;

  width: 600px;
  height: 600px;

  border: 1px solid rgba(157, 117, 48, 0.11);
  border-radius: 50%;

  pointer-events: none;
}

.xee-family-hero-content {
  position: relative;
  z-index: 2;

  max-width: 750px;
}

.xee-family-hero-content h2 {
  max-width: 700px;

  margin: 17px 0 25px;

  font-size: clamp(38px, 4vw, 54px);
  line-height: 1.05;

  letter-spacing: -1.8px;
  font-weight: 500;
}

.xee-family-hero-content h2 span {
  display: block;

  margin-top: 4px;

  color: var(--xee-gold);
}

.xee-family-lead {
  color: #4f4a42;

  font-size: 17px !important;
  line-height: 1.8 !important;
}

.xee-family-hero-content p {
  max-width: 710px;

  margin-bottom: 17px;

  font-size: 15px;
  line-height: 1.85;
}

.xee-family-actions {
  display: flex;
  flex-wrap: wrap;

  gap: 11px;

  margin-top: 28px;
}

/* =========================================================
   BUTTONS
========================================================= */

.xee-family-button {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-height: 52px;

  padding: 0 22px;

  border-radius: 4px;

  text-decoration: none !important;

  font-size: 13px;
  font-weight: 700;

  transition:
    transform 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}

.xee-family-button:hover {
  transform: translateY(-2px);
}

.xee-family-button-primary {
  color: #ffffff !important;

  background: var(--xee-gold);
}

.xee-family-button-primary:hover {
  color: #ffffff !important;

  background: var(--xee-gold-dark);
}

.xee-family-button-outline {
  color: var(--xee-gold) !important;

  background: transparent;

  border: 1px solid var(--xee-gold);
}

.xee-family-button-outline:hover {
  color: #ffffff !important;

  background: var(--xee-gold);
}

/* =========================================================
   HERO POINTS
========================================================= */

.xee-family-hero-grid {
  position: relative;
  z-index: 2;

  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 12px;

  max-width: 760px;

  margin-top: 38px;
}

.xee-family-hero-card {
  display: flex;

  align-items: center;

  gap: 15px;

  min-height: 88px;

  padding: 17px 18px;

  background: #ffffff;

  border: 1px solid var(--xee-border);

  border-radius: 5px;

  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.xee-family-hero-card:hover {
  transform: translateY(-3px);

  border-color: rgba(157, 117, 48, 0.38);

  box-shadow: 0 12px 30px rgba(71, 52, 22, 0.07);
}

.xee-family-hero-number {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  flex: 0 0 42px;

  width: 42px;
  height: 42px;

  border-radius: 50%;

  color: #ffffff;

  background: var(--xee-gold);

  font-size: 10px;
  font-weight: 800;
}

.xee-family-hero-card strong {
  display: block;

  margin-bottom: 3px;

  color: var(--xee-heading);

  font-size: 14px;
}

.xee-family-hero-card small {
  display: block;

  color: #89837a;

  font-size: 12px;
  line-height: 1.45;
}

/* =========================================================
   INTRO CARD
========================================================= */

.xee-family-intro-card {
  padding: 38px;

  background: #ffffff;

  border: 1px solid var(--xee-border);

  border-left: 4px solid var(--xee-gold);

  border-radius: 5px;
}

.xee-family-intro-card p {
  margin-bottom: 17px;

  font-size: 15px;
  line-height: 1.9;
}

.xee-family-intro-card p:last-child {
  margin-bottom: 0;
}

/* =========================================================
   ELIGIBLE FAMILY
========================================================= */

.xee-family-eligible {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 13px;
}

.xee-family-eligible-item {
  display: flex;

  align-items: flex-start;

  gap: 13px;

  padding: 19px;

  background: #ffffff;

  border: 1px solid var(--xee-border);

  border-radius: 5px;

  color: var(--xee-heading);

  font-size: 14px;
  font-weight: 600;

  line-height: 1.55;
}

.xee-family-check {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  flex: 0 0 26px;

  width: 26px;
  height: 26px;

  border-radius: 50%;

  color: var(--xee-gold);

  background: rgba(157, 117, 48, 0.1);

  font-size: 11px;
  font-weight: 800;
}

/* =========================================================
   NOTE
========================================================= */

.xee-family-note {
  margin-top: 22px;

  padding: 18px 20px;

  background: var(--xee-soft);

  border-left: 3px solid var(--xee-gold);

  color: var(--xee-text);

  font-size: 13px;
  line-height: 1.75;
}

.xee-family-note strong {
  color: var(--xee-heading);
}

/* =========================================================
   SERVICE CARDS
========================================================= */

.xee-family-services {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 17px;
}

.xee-family-service {
  padding: 30px;

  background: #ffffff;

  border: 1px solid var(--xee-border);

  border-radius: 5px;

  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.xee-family-service:hover {
  transform: translateY(-4px);

  border-color: rgba(157, 117, 48, 0.38);

  box-shadow: 0 17px 40px rgba(67, 49, 20, 0.07);
}

.xee-family-service-number {
  display: block;

  margin-bottom: 24px;

  color: var(--xee-gold);

  font-size: 11px;
  font-weight: 800;
}

.xee-family-service h3 {
  margin: 0 0 10px;

  font-size: 19px;
  line-height: 1.3;
}

.xee-family-service p {
  margin: 0;

  font-size: 14px;
  line-height: 1.8;
}

/* =========================================================
   DOCUMENTS
========================================================= */

.xee-family-documents {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 13px;
}

.xee-family-document {
  display: flex;

  align-items: flex-start;

  gap: 13px;

  padding: 19px;

  background: #ffffff;

  border: 1px solid var(--xee-border);

  border-radius: 5px;

  color: var(--xee-heading);

  font-size: 14px;
  font-weight: 600;

  line-height: 1.55;
}

.xee-family-doc-icon {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  flex: 0 0 26px;

  width: 26px;
  height: 26px;

  border-radius: 50%;

  color: var(--xee-gold);

  background: rgba(157, 117, 48, 0.1);

  font-size: 11px;
  font-weight: 800;
}

/* =========================================================
   FAMILY MEMBER SECTIONS
========================================================= */

.xee-family-member-grid {
  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 17px;
}

.xee-family-member-card {
  position: relative;

  padding: 31px;

  background: #ffffff;

  border: 1px solid var(--xee-border);

  border-radius: 5px;

  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.xee-family-member-card:hover {
  transform: translateY(-4px);

  border-color: rgba(157, 117, 48, 0.38);

  box-shadow: 0 17px 40px rgba(67, 49, 20, 0.07);
}

.xee-family-member-label {
  display: block;

  margin-bottom: 22px;

  color: var(--xee-gold);

  font-size: 10px;
  font-weight: 800;

  letter-spacing: 1px;
  text-transform: uppercase;
}

.xee-family-member-card h3 {
  margin: 0 0 12px;

  font-size: 20px;
  line-height: 1.3;
}

.xee-family-member-card p {
  margin-bottom: 14px;

  font-size: 14px;
  line-height: 1.8;
}

.xee-family-member-card p:last-child {
  margin-bottom: 0;
}

/* =========================================================
   SPOUSE GOLD FEATURE
========================================================= */

.xee-family-spouse {
  padding: 75px 0;

  color: #ffffff;

  background: linear-gradient(135deg, #ad833a 0%, #9d7530 48%, #74511d 100%);
}

.xee-family-spouse-grid {
  display: grid;

  grid-template-columns: 0.82fr 1.18fr;

  gap: 48px;
}

.xee-family-spouse h2 {
  margin: 15px 0 18px;

  color: #ffffff !important;

  font-size: clamp(31px, 3.4vw, 43px);

  line-height: 1.1;
}

.xee-family-spouse p {
  color: rgba(255, 255, 255, 0.8) !important;
}

.xee-family-spouse-list {
  border-top: 1px solid rgba(255, 255, 255, 0.23);
}

.xee-family-spouse-item {
  display: grid;

  grid-template-columns: 45px 1fr;

  gap: 14px;

  padding: 18px 0;

  border-bottom: 1px solid rgba(255, 255, 255, 0.19);
}

.xee-family-spouse-item span {
  color: rgba(255, 255, 255, 0.55);

  font-size: 11px;
  font-weight: 800;
}

.xee-family-spouse-item strong {
  display: block;

  margin-bottom: 4px;

  color: #ffffff;

  font-size: 14px;
}

.xee-family-spouse-item p {
  margin: 0;

  font-size: 13px;
  line-height: 1.65;
}

/* =========================================================
   PROCESS
========================================================= */

.xee-family-process {
  border-top: 1px solid var(--xee-border);
}

.xee-family-process-item {
  display: grid;

  grid-template-columns: 58px 1fr;

  gap: 17px;

  padding: 28px 0;

  border-bottom: 1px solid var(--xee-border);

  transition: padding-left 0.25s ease;
}

.xee-family-process-item:hover {
  padding-left: 7px;
}

.xee-family-process-number {
  color: var(--xee-gold);

  font-size: 12px;
  font-weight: 800;
}

.xee-family-process-item h3 {
  margin: 0 0 7px;

  font-size: 19px;
  line-height: 1.3;
}

.xee-family-process-item p {
  margin: 0;

  font-size: 14px;
  line-height: 1.8;
}

/* =========================================================
   FINANCIAL / ACCOMMODATION
========================================================= */

.xee-family-finance {
  padding: 42px;

  color: #ffffff;

  background: var(--xee-dark);

  border-radius: 6px;
}

.xee-family-finance h2 {
  max-width: 760px;

  margin: 14px 0 18px;

  color: #ffffff !important;

  font-size: clamp(30px, 3.4vw, 41px);

  line-height: 1.12;
}

.xee-family-finance p {
  max-width: 900px;

  color: rgba(255, 255, 255, 0.76) !important;

  font-size: 15px;
  line-height: 1.85;
}

.xee-family-finance p:last-child {
  margin-bottom: 0;
}

/* =========================================================
   ALREADY IN PORTUGAL
========================================================= */

.xee-family-present {
  padding: 34px;

  background: #ffffff;

  border: 1px solid var(--xee-border);

  border-radius: 5px;
}

.xee-family-present h2 {
  margin: 13px 0 17px;

  font-size: 29px;
  line-height: 1.18;
}

.xee-family-present p {
  font-size: 14px;
  line-height: 1.85;
}

.xee-family-present p:last-child {
  margin-bottom: 0;
}

/* =========================================================
   RELOCATION SERVICES
========================================================= */

.xee-family-related-list {
  border-top: 1px solid var(--xee-border);
}

.xee-family-related-item {
  display: grid;

  grid-template-columns: 48px 1fr;

  gap: 16px;

  padding: 21px 0;

  border-bottom: 1px solid var(--xee-border);
}

.xee-family-related-number {
  color: var(--xee-gold);

  font-size: 11px;
  font-weight: 800;
}

.xee-family-related-item strong {
  display: block;

  margin-bottom: 4px;

  color: var(--xee-heading);

  font-size: 15px;
}

.xee-family-related-item p {
  margin: 0;

  font-size: 13px;
  line-height: 1.7;
}

/* =========================================================
   FAQ - CLASSIC EDITOR SAFE
========================================================= */

.xee-family-faq {
  width: 100%;
  max-width: 900px;
}

.xee-family-faq > p:empty,
.xee-family-faq-item > p:empty,
.xee-family-faq-answer > p:empty,
.xee-family-faq-answer-inner > p:empty {
  display: none !important;

  height: 0 !important;

  margin: 0 !important;
  padding: 0 !important;
}

.xee-family-faq-item {
  width: 100%;

  margin: 0 !important;
  padding: 0 !important;

  border-bottom: 1px solid var(--xee-border);
}

.xee-family-faq-item:first-child {
  border-top: 1px solid var(--xee-border);
}

/* QUESTION */

.xee-family-page button.xee-family-faq-question {
  width: 100% !important;

  display: flex !important;

  align-items: center !important;
  justify-content: space-between !important;

  gap: 20px !important;

  min-height: 0 !important;

  margin: 0 !important;
  padding: 21px 0 !important;

  background: transparent !important;

  background-image: none !important;

  border: 0 !important;

  border-radius: 0 !important;

  outline: none !important;

  box-shadow: none !important;

  color: var(--xee-heading) !important;

  -webkit-text-fill-color: var(--xee-heading) !important;

  font-family: inherit !important;

  font-size: 17px !important;

  line-height: 1.45 !important;

  font-weight: 700 !important;

  text-align: left !important;

  text-transform: none !important;

  text-decoration: none !important;

  letter-spacing: normal !important;

  cursor: pointer !important;

  appearance: none !important;

  -webkit-appearance: none !important;
}

.xee-family-page button.xee-family-faq-question:hover,
.xee-family-page button.xee-family-faq-question:focus {
  color: var(--xee-gold) !important;

  -webkit-text-fill-color: var(--xee-gold) !important;

  background: transparent !important;

  box-shadow: none !important;
}

.xee-family-faq-question-text {
  display: block !important;

  flex: 1 1 auto;

  color: inherit !important;

  -webkit-text-fill-color: inherit !important;
}

/* ICON */

.xee-family-faq-icon {
  position: relative;

  display: block !important;

  flex: 0 0 40px;

  width: 40px;

  height: 40px;

  border: 1px solid rgba(157, 117, 48, 0.28);

  border-radius: 50%;

  background: #ffffff !important;

  transform: none !important;
}

.xee-family-faq-icon::before,
.xee-family-faq-icon::after {
  content: "";

  position: absolute;

  left: 50%;
  top: 50%;

  background: var(--xee-gold);

  border-radius: 4px;

  transform: translate(-50%, -50%) !important;
}

.xee-family-faq-icon::before {
  width: 14px;

  height: 2px;
}

.xee-family-faq-icon::after {
  width: 2px;

  height: 14px;

  transition: opacity 0.2s ease;
}

.xee-family-faq-item.is-open .xee-family-faq-icon {
  background: var(--xee-gold) !important;

  border-color: var(--xee-gold);
}

.xee-family-faq-item.is-open .xee-family-faq-icon::before {
  background: #ffffff;
}

.xee-family-faq-item.is-open .xee-family-faq-icon::after {
  opacity: 0;
}

/* ANSWER */

.xee-family-page .xee-family-faq-answer {
  display: none !important;

  width: 100% !important;

  height: auto !important;

  max-height: none !important;

  margin: 0 !important;

  padding: 0 !important;

  overflow: visible !important;

  opacity: 1 !important;

  visibility: visible !important;
}

.xee-family-page .xee-family-faq-item.is-open .xee-family-faq-answer {
  display: block !important;
}

.xee-family-faq-answer-inner {
  padding: 0 55px 23px 0 !important;
}

.xee-family-page .xee-family-faq-answer-inner p {
  display: block !important;

  margin: 0 !important;

  padding: 0 !important;

  color: var(--xee-text) !important;

  -webkit-text-fill-color: var(--xee-text) !important;

  background: transparent !important;

  opacity: 1 !important;

  visibility: visible !important;

  font-family: inherit !important;

  font-size: 15px !important;

  line-height: 1.8 !important;

  font-weight: 400 !important;
}

/* =========================================================
   FINAL CTA
========================================================= */

.xee-family-cta {
  padding: 72px 0;

  color: #ffffff;

  background: var(--xee-gold);
}

.xee-family-cta-grid {
  display: grid;

  grid-template-columns: 1fr;

  gap: 28px;
}

.xee-family-cta h2 {
  max-width: 720px;

  margin: 14px 0 17px;

  color: #ffffff !important;

  font-size: clamp(30px, 3.5vw, 43px);

  line-height: 1.12;
}

.xee-family-cta p {
  max-width: 720px;

  margin: 0;

  color: rgba(255, 255, 255, 0.8) !important;

  font-size: 15px;
  line-height: 1.8;
}

.xee-family-cta-actions {
  display: flex;

  flex-wrap: wrap;

  gap: 11px;
}

/* =========================================================
   SCROLL REVEAL
========================================================= */

.xee-family-reveal {
  opacity: 0;

  transform: translateY(20px);

  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.xee-family-reveal.xee-family-visible {
  opacity: 1;

  transform: translateY(0);
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {
  .xee-family-container {
    padding-left: 25px;
    padding-right: 25px;
  }

  .xee-family-spouse-grid {
    grid-template-columns: 1fr;
  }

  .xee-family-hero-grid,
  .xee-family-eligible,
  .xee-family-services,
  .xee-family-documents,
  .xee-family-member-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {
  .xee-family-container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .xee-family-section,
  .xee-family-spouse {
    padding: 58px 0;
  }

  .xee-family-hero {
    padding: 52px 0 46px;
  }

  .xee-family-hero-content h2 {
    font-size: 36px;

    letter-spacing: -1px;
  }

  .xee-family-intro-card,
  .xee-family-service,
  .xee-family-member-card,
  .xee-family-finance,
  .xee-family-present {
    padding: 26px 23px;
  }

  .xee-family-process-item {
    grid-template-columns: 43px 1fr;
  }

  .xee-family-page button.xee-family-faq-question {
    padding: 18px 0 !important;

    font-size: 15px !important;
  }

  .xee-family-faq-icon {
    flex-basis: 36px;

    width: 36px;

    height: 36px;
  }

  .xee-family-faq-answer-inner {
    padding: 0 0 20px 0 !important;
  }

  .xee-family-actions,
  .xee-family-cta-actions,
  .xee-family-button {
    width: 100%;
  }
}
