/* =========================================================
   XEE CONSULTING
   PORTUGAL TAX CONSULTANCY
   Primary: #9D7530
========================================================= */

.xee-tax-page {
  --xee-gold: #9d7530;
  --xee-gold-dark: #76531e;
  --xee-gold-light: #c7a464;

  --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-tax-page *,
.xee-tax-page *::before,
.xee-tax-page *::after {
  box-sizing: border-box;
}

.xee-tax-page h1,
.xee-tax-page h2,
.xee-tax-page h3,
.xee-tax-page h4,
.xee-tax-page p {
  margin-top: 0;
}

.xee-tax-page h1,
.xee-tax-page h2,
.xee-tax-page h3,
.xee-tax-page h4 {
  color: var(--xee-heading);
}

/* Classic Editor empty paragraphs */

.xee-tax-page > p:empty,
.xee-tax-page section > p:empty,
.xee-tax-page div > p:empty {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* =========================================================
   CONTAINER
========================================================= */

.xee-tax-container {
  width: 100%;
  max-width: 100%;

  margin: 0 auto;

  padding-left: 36px;
  padding-right: 36px;
}

.xee-tax-section {
  padding: 75px 0;
}

.xee-tax-soft {
  background: var(--xee-soft);
}

/* =========================================================
   EYEBROW
========================================================= */

.xee-tax-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-tax-eyebrow::before {
  content: "";

  width: 28px;
  height: 1px;

  background: var(--xee-gold);
}

.xee-tax-eyebrow-light {
  color: #ffffff !important;
}

.xee-tax-eyebrow-light::before {
  background: #ffffff;
}

/* =========================================================
   COMMON HEADING
========================================================= */

.xee-tax-heading {
  max-width: 735px;

  margin-bottom: 42px;
}

.xee-tax-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-tax-heading p {
  margin: 0;

  font-size: 15px;

  line-height: 1.85;
}

/* =========================================================
   HERO
========================================================= */

.xee-tax-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-tax-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-tax-hero-content {
  position: relative;
  z-index: 2;

  max-width: 750px;
}

.xee-tax-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-tax-hero-content h2 span {
  display: block;

  margin-top: 4px;

  color: var(--xee-gold);
}

.xee-tax-hero-content .xee-tax-lead {
  color: #4f4a42;

  font-size: 17px;

  line-height: 1.8;
}

.xee-tax-hero-content p {
  max-width: 710px;

  margin-bottom: 17px;

  font-size: 15px;

  line-height: 1.85;
}

.xee-tax-hero-actions {
  display: flex;
  flex-wrap: wrap;

  gap: 11px;

  margin-top: 28px;
}

/* =========================================================
   BUTTONS
========================================================= */

.xee-tax-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-tax-button:hover {
  transform: translateY(-2px);
}

.xee-tax-button-primary {
  color: #ffffff !important;

  background: var(--xee-gold);
}

.xee-tax-button-primary:hover {
  color: #ffffff !important;

  background: var(--xee-gold-dark);
}

.xee-tax-button-outline {
  color: var(--xee-gold) !important;

  border: 1px solid var(--xee-gold);

  background: transparent;
}

.xee-tax-button-outline:hover {
  color: #ffffff !important;

  background: var(--xee-gold);
}

/* =========================================================
   HERO POINTS
========================================================= */

.xee-tax-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-tax-hero-item {
  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-tax-hero-item:hover {
  transform: translateY(-3px);

  border-color: rgba(157, 117, 48, 0.38);

  box-shadow: 0 12px 30px rgba(71, 52, 22, 0.07);
}

.xee-tax-hero-number {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  flex: 0 0 42px;

  width: 42px;
  height: 42px;

  border-radius: 50%;

  background: var(--xee-gold);

  color: #ffffff;

  font-size: 10px;

  font-weight: 800;
}

.xee-tax-hero-item strong {
  display: block;

  margin-bottom: 3px;

  color: var(--xee-heading);

  font-size: 14px;
}

.xee-tax-hero-item small {
  display: block;

  color: #89837a;

  font-size: 12px;

  line-height: 1.45;
}

/* =========================================================
   TAX PLANNING RISKS
========================================================= */

.xee-tax-risk-grid {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 15px;
}

.xee-tax-risk {
  display: flex;

  align-items: flex-start;

  gap: 14px;

  padding: 21px;

  background: #ffffff;

  border: 1px solid var(--xee-border);

  border-radius: 5px;
}

.xee-tax-risk-icon {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  flex: 0 0 30px;

  width: 30px;
  height: 30px;

  border-radius: 50%;

  color: var(--xee-gold);

  background: rgba(157, 117, 48, 0.1);

  font-size: 11px;

  font-weight: 800;
}

.xee-tax-risk strong {
  display: block;

  margin-bottom: 5px;

  color: var(--xee-heading);

  font-size: 14px;
}

.xee-tax-risk p {
  margin: 0;

  font-size: 13px;

  line-height: 1.7;
}

.xee-tax-highlight {
  margin-top: 24px;

  padding: 22px 24px;

  background: var(--xee-dark);

  border-radius: 5px;
}

.xee-tax-highlight strong {
  display: block;

  margin-bottom: 6px;

  color: var(--xee-gold-light);

  font-size: 15px;
}

.xee-tax-highlight p {
  margin: 0;

  color: rgba(255, 255, 255, 0.76) !important;

  font-size: 14px;

  line-height: 1.8;
}

/* =========================================================
   NHR / IFICI
========================================================= */

.xee-tax-regime {
  padding: 75px 0;

  color: #ffffff;

  background: linear-gradient(135deg, #ad833a 0%, #9d7530 48%, #74511d 100%);
}

.xee-tax-regime-grid {
  display: grid;

  grid-template-columns: 0.8fr 1.2fr;

  gap: 48px;
}

.xee-tax-regime h2 {
  margin: 15px 0 18px;

  color: #ffffff !important;

  font-size: clamp(31px, 3.4vw, 43px);

  line-height: 1.1;
}

.xee-tax-regime p {
  color: rgba(255, 255, 255, 0.8) !important;
}

.xee-tax-regime-list {
  border-top: 1px solid rgba(255, 255, 255, 0.23);
}

.xee-tax-regime-item {
  display: grid;

  grid-template-columns: 45px 1fr;

  gap: 14px;

  padding: 18px 0;

  border-bottom: 1px solid rgba(255, 255, 255, 0.19);
}

.xee-tax-regime-item span {
  color: rgba(255, 255, 255, 0.55);

  font-size: 11px;

  font-weight: 800;
}

.xee-tax-regime-item strong {
  display: block;

  margin-bottom: 4px;

  color: #ffffff;

  font-size: 14px;
}

.xee-tax-regime-item p {
  margin: 0;

  font-size: 13px;

  line-height: 1.65;
}

.xee-tax-who {
  margin-top: 25px;

  padding: 20px 22px;

  background: rgba(255, 255, 255, 0.08);

  border: 1px solid rgba(255, 255, 255, 0.17);

  border-radius: 5px;
}

.xee-tax-who strong {
  display: block;

  margin-bottom: 6px;

  color: #ffffff;

  font-size: 14px;
}

.xee-tax-who p {
  margin: 0;

  font-size: 13px;
}

/* =========================================================
   CORPORATE TAX
========================================================= */

.xee-tax-service-grid {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 15px;
}

.xee-tax-service-card {
  padding: 28px;

  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-tax-service-card:hover {
  transform: translateY(-4px);

  border-color: rgba(157, 117, 48, 0.38);

  box-shadow: 0 16px 38px rgba(67, 49, 20, 0.07);
}

.xee-tax-service-number {
  display: block;

  margin-bottom: 22px;

  color: var(--xee-gold);

  font-size: 11px;

  font-weight: 800;
}

.xee-tax-service-card h3 {
  margin: 0 0 9px;

  font-size: 18px;

  line-height: 1.35;
}

.xee-tax-service-card p {
  margin: 0;

  font-size: 13px;

  line-height: 1.75;
}

.xee-tax-audience {
  margin-top: 23px;

  padding: 20px 22px;

  background: var(--xee-soft);

  border-left: 3px solid var(--xee-gold);

  font-size: 13px;

  line-height: 1.75;
}

.xee-tax-audience strong {
  color: var(--xee-heading);
}

/* =========================================================
   FINANCIAL ADVISORY
========================================================= */

.xee-tax-advisory-list {
  border-top: 1px solid var(--xee-border);
}

.xee-tax-advisory-item {
  display: grid;

  grid-template-columns: 48px 1fr;

  gap: 16px;

  padding: 22px 0;

  border-bottom: 1px solid var(--xee-border);
}

.xee-tax-advisory-number {
  color: var(--xee-gold);

  font-size: 11px;

  font-weight: 800;
}

.xee-tax-advisory-item strong {
  display: block;

  margin-bottom: 5px;

  color: var(--xee-heading);

  font-size: 15px;
}

.xee-tax-advisory-item p {
  margin: 0;

  font-size: 13px;

  line-height: 1.75;
}

/* =========================================================
   PROCESS
========================================================= */

.xee-tax-process {
  border-top: 1px solid var(--xee-border);
}

.xee-tax-process-item {
  display: grid;

  grid-template-columns: 58px 1fr;

  gap: 17px;

  padding: 27px 0;

  border-bottom: 1px solid var(--xee-border);

  transition: padding-left 0.25s ease;
}

.xee-tax-process-item:hover {
  padding-left: 7px;
}

.xee-tax-process-number {
  color: var(--xee-gold);

  font-size: 12px;

  font-weight: 800;
}

.xee-tax-process-item h3 {
  margin: 0 0 7px;

  font-size: 19px;

  line-height: 1.3;
}

.xee-tax-process-item p {
  margin: 0;

  font-size: 14px;

  line-height: 1.75;
}

/* =========================================================
   FAQ
========================================================= */

.xee-tax-faq {
  width: 100%;
  max-width: 900px;
}

.xee-tax-faq > p:empty,
.xee-tax-faq-item > p:empty,
.xee-tax-faq-answer > p:empty,
.xee-tax-faq-answer-inner > p:empty {
  display: none !important;

  height: 0 !important;

  margin: 0 !important;
  padding: 0 !important;
}

.xee-tax-faq-item {
  width: 100%;

  margin: 0 !important;
  padding: 0 !important;

  border-bottom: 1px solid var(--xee-border);
}

.xee-tax-faq-item:first-child {
  border-top: 1px solid var(--xee-border);
}

.xee-tax-page button.xee-tax-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-tax-page button.xee-tax-faq-question:hover,
.xee-tax-page button.xee-tax-faq-question:focus {
  color: var(--xee-gold) !important;

  -webkit-text-fill-color: var(--xee-gold) !important;

  background: transparent !important;

  box-shadow: none !important;
}

.xee-tax-faq-question-text {
  display: block !important;

  flex: 1 1 auto;

  color: inherit !important;

  -webkit-text-fill-color: inherit !important;
}

/* icon */

.xee-tax-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-tax-faq-icon::before,
.xee-tax-faq-icon::after {
  content: "";

  position: absolute;

  left: 50%;
  top: 50%;

  background: var(--xee-gold);

  border-radius: 4px;

  transform: translate(-50%, -50%) !important;
}

.xee-tax-faq-icon::before {
  width: 14px;
  height: 2px;
}

.xee-tax-faq-icon::after {
  width: 2px;
  height: 14px;

  transition: opacity 0.2s ease;
}

.xee-tax-faq-item.is-open .xee-tax-faq-icon {
  background: var(--xee-gold) !important;

  border-color: var(--xee-gold);
}

.xee-tax-faq-item.is-open .xee-tax-faq-icon::before {
  background: #ffffff;
}

.xee-tax-faq-item.is-open .xee-tax-faq-icon::after {
  opacity: 0;
}

/* answer */

.xee-tax-page .xee-tax-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-tax-page .xee-tax-faq-item.is-open .xee-tax-faq-answer {
  display: block !important;
}

.xee-tax-faq-answer-inner {
  padding: 0 55px 23px 0 !important;
}

.xee-tax-page .xee-tax-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;

  opacity: 1 !important;
  visibility: visible !important;

  background: transparent !important;

  font-family: inherit !important;

  font-size: 15px !important;

  line-height: 1.8 !important;

  font-weight: 400 !important;
}

/* =========================================================
   CTA
========================================================= */

.xee-tax-cta {
  padding: 72px 0;

  color: #ffffff;

  background: var(--xee-gold);
}

.xee-tax-cta-grid {
  display: grid;

  grid-template-columns: 1fr;

  gap: 28px;
}

.xee-tax-cta h2 {
  max-width: 720px;

  margin: 14px 0 17px;

  color: #ffffff !important;

  font-size: clamp(30px, 3.5vw, 43px);

  line-height: 1.12;
}

.xee-tax-cta p {
  max-width: 720px;

  margin: 0;

  color: rgba(255, 255, 255, 0.8) !important;

  font-size: 15px;

  line-height: 1.8;
}

/* =========================================================
   REVEAL
========================================================= */

.xee-tax-reveal {
  opacity: 0;

  transform: translateY(20px);

  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.xee-tax-reveal.xee-tax-visible {
  opacity: 1;

  transform: translateY(0);
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {
  .xee-tax-container {
    padding-left: 25px;
    padding-right: 25px;
  }

  .xee-tax-regime-grid {
    grid-template-columns: 1fr;
  }

  .xee-tax-hero-grid,
  .xee-tax-risk-grid,
  .xee-tax-service-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {
  .xee-tax-container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .xee-tax-section,
  .xee-tax-regime {
    padding: 58px 0;
  }

  .xee-tax-hero {
    padding: 52px 0 46px;
  }

  .xee-tax-hero-content h2 {
    font-size: 36px;

    letter-spacing: -1px;
  }

  .xee-tax-service-card {
    padding: 25px 22px;
  }

  .xee-tax-process-item {
    grid-template-columns: 43px 1fr;
  }

  .xee-tax-page button.xee-tax-faq-question {
    padding: 18px 0 !important;

    font-size: 15px !important;
  }

  .xee-tax-faq-icon {
    flex-basis: 36px;

    width: 36px;
    height: 36px;
  }

  .xee-tax-faq-answer-inner {
    padding: 0 0 20px 0 !important;
  }

  .xee-tax-button {
    width: 100%;
  }
}
