/* =========================================================
   Projects page, laser CTA and shared home additions
   ========================================================= */

@property --laser-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.laser-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.78rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--gold-deep);
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  text-decoration: none;
  isolation: isolate;
  transition: color 0.25s ease, transform 0.25s ease;
}

.laser-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  border-radius: inherit;
  background: var(--ivory);
}

.laser-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from var(--laser-angle),
    #8a6508,
    #ffe7a3 16%,
    #c9a227 30%,
    #8a6508 48%,
    #f5d98a 66%,
    #b8860b 82%,
    #ffe7a3 100%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: laser-circulate 3.8s linear infinite;
}

.laser-btn:hover {
  color: var(--emerald-deep);
  transform: translateY(-1px);
}

.laser-btn:hover::after {
  background: #fffaf0;
}

.laser-btn:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 4px;
  box-shadow: 0 0 0 7px rgba(201, 162, 39, 0.28);
}

.laser-btn.on-dark:focus-visible {
  outline-color: var(--gold-soft);
  box-shadow: 0 0 0 7px rgba(255, 226, 150, 0.22);
}

.laser-btn.on-dark {
  color: var(--gold-soft);
}

.laser-btn.on-dark::after {
  background: #062f20;
}

.laser-btn.on-dark:hover {
  color: #fff4d6;
}

.laser-btn.on-dark:hover::after {
  background: #073a27;
}

@keyframes laser-circulate {
  to {
    --laser-angle: 360deg;
  }
}

@media (prefers-reduced-motion: reduce) {
  .laser-btn::before {
    animation: none;
    background: var(--gold);
  }

  .laser-btn:hover {
    transform: none;
  }
}

/* Navigation laser */
.nav .links {
  gap: 10px;
  font-size: 13px;
}

.nav-laser {
  padding: 0.45rem 0.75rem;
  font-size: 11.5px;
}

.hero .eyebrow {
  display: flex;
  width: fit-content;
  margin-top: 14px;
}

@media (max-width: 1180px) {
  .nav .links {
    display: none;
  }

  .burger {
    display: block;
  }
}

.mobile-menu a.laser-btn {
  display: inline-flex;
  align-self: flex-start;
  width: auto;
  min-height: 44px;
  margin: 8px 0;
  padding: 0.8rem 1.1rem;
  border-bottom: 0;
  font-size: 13px;
}

/* Home projects teaser */
.projects-teaser .teaser-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 5vw, 54px) clamp(24px, 5vw, 48px);
  border: 1px solid rgba(201, 162, 39, 0.32);
  border-radius: 22px;
  background:
    radial-gradient(90% 130% at 50% 0%, rgba(201, 162, 39, 0.12), transparent 58%),
    linear-gradient(145deg, #062f20 0%, #073a27 54%, #041f15 100%);
  text-align: center;
  box-shadow: 0 30px 70px -42px rgba(1, 30, 18, 0.85);
}

.projects-teaser .eyebrow {
  color: var(--gold-soft);
}

.projects-teaser h2 {
  margin: 0.25em 0 0.3em;
  color: #fff8e8;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(36px, 4.4vw, 56px);
  font-weight: 600;
  line-height: 1;
}

.projects-teaser p {
  max-width: 54ch;
  margin: 0 auto;
  color: rgba(248, 244, 232, 0.78);
  font-size: 15px;
  line-height: 1.8;
}

.projects-teaser .laser-btn {
  min-height: 52px;
  margin-top: 26px;
  padding: 1rem 1.8rem;
  font-size: 14.5px;
}

/* Client privacy statement */
.privacy-panel {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 46px) clamp(24px, 5vw, 42px);
  border: 1px solid rgba(184, 134, 11, 0.26);
  border-radius: 20px;
  background: linear-gradient(180deg, #fffdf8 0%, #f7f1e4 100%);
  text-align: center;
  box-shadow:
    0 22px 54px -36px rgba(8, 51, 31, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.privacy-panel h2 {
  margin: 0.25em 0 0.4em;
  color: var(--emerald-deep);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 600;
  line-height: 1.05;
}

.privacy-panel p {
  max-width: 56ch;
  margin: 0 auto;
  color: #5a6159;
  font-size: 14.5px;
  line-height: 1.8;
}

/* Projects page */
.projects-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 8vw, 104px) 0 clamp(56px, 7vw, 88px);
  border-bottom: 1px solid rgba(201, 162, 39, 0.3);
  background:
    radial-gradient(70% 120% at 82% 18%, rgba(201, 162, 39, 0.16), transparent 56%),
    radial-gradient(60% 95% at 12% 86%, rgba(30, 111, 74, 0.28), transparent 62%),
    linear-gradient(145deg, #062f20 0%, #042519 62%, #031b12 100%);
  color: #f6f0e2;
}

.projects-hero .wrap {
  position: relative;
  z-index: 1;
}

.projects-hero .eyebrow {
  color: var(--gold-soft);
}

.projects-hero h1 {
  max-width: 760px;
  margin: 0.22em 0 0.28em;
  color: #fff9ea;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(46px, 7vw, 82px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.projects-hero p {
  max-width: 58ch;
  margin: 0;
  color: rgba(246, 240, 226, 0.8);
  font-size: 16px;
  line-height: 1.85;
}

.projects-hero .hero-actions {
  margin-top: 28px;
}

.projects-list-section {
  padding: clamp(54px, 6vw, 76px) 0 24px;
}

.projects-list-head {
  max-width: 700px;
  margin-bottom: 30px;
}

.projects-list-head h2 {
  margin: 0.2em 0 0.25em;
  color: var(--emerald-deep);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 600;
  line-height: 1;
}

.projects-list-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.8;
}

.project-list {
  display: grid;
  grid-auto-rows: 1fr;
  gap: 18px;
}

.project-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  grid-template-areas:
    "logo info visit"
    "logo copy visit";
  grid-template-rows: auto 1fr;
  align-items: center;
  gap: 0 24px;
  min-height: 188px;
  height: 100%;
  padding: 28px 30px;
  border: 1px solid rgba(184, 134, 11, 0.24);
  border-radius: 18px;
  background: linear-gradient(180deg, #fffdf8 0%, #f8f1e4 100%);
  box-shadow:
    0 18px 44px -32px rgba(8, 51, 31, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.project-logo {
  grid-area: logo;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(184, 134, 11, 0.28);
  background: radial-gradient(circle at 50% 30%, #fffdf8, #efe5d0);
}

.project-logo img {
  width: 82px;
  height: 82px;
  object-fit: contain;
}

.project-info {
  grid-area: info;
  align-self: end;
  min-width: 0;
}

.project-name {
  margin: 0;
  color: var(--emerald-deep);
  font-family: "Cormorant Garamond", serif;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.05;
}

.project-domain {
  margin-top: 4px;
  color: var(--gold-deep);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.project-copy {
  grid-area: copy;
  align-self: start;
  max-width: 68ch;
  margin: 8px 0 0;
  color: #5a6159;
  font-size: 13.5px;
  line-height: 1.75;
}

.project-visit {
  grid-area: visit;
  align-self: center;
  white-space: nowrap;
}

.project-disclaimer {
  max-width: 72ch;
  margin: 30px auto 0;
  padding-top: 8px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.75;
  text-align: center;
}

.projects-footer-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
  text-align: center;
}

[dir="rtl"] .project-domain {
  letter-spacing: 0.01em;
}

[dir="rtl"] .project-name {
  font-family: "Tajawal", sans-serif;
  font-size: 25px;
  font-weight: 700;
}

[dir="rtl"] .project-copy {
  font-size: 14px;
}

@media (max-width: 820px) {
  .project-row {
    grid-template-columns: 80px minmax(0, 1fr);
    grid-template-areas:
      "logo info"
      "copy copy"
      "visit visit";
    grid-template-rows: auto;
    min-height: 0;
    gap: 12px 18px;
    padding: 24px 22px;
  }

  .project-logo {
    width: 80px;
    height: 80px;
  }

  .project-logo img {
    width: 66px;
    height: 66px;
  }

  .project-info {
    align-self: center;
  }

  .project-copy {
    margin-top: 2px;
  }

  .project-visit {
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .project-row {
    grid-template-columns: 1fr;
    grid-template-areas:
      "logo"
      "info"
      "copy"
      "visit";
  }

  .project-logo {
    width: 76px;
    height: 76px;
  }

  .project-logo img {
    width: 62px;
    height: 62px;
  }

  .project-visit {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .laser-btn:hover {
    transform: none;
  }
}


/* Private advisory page */
.advisory-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 8vw, 104px) 0;
  background:
    radial-gradient(70% 120% at 84% 12%, rgba(201, 162, 39, 0.16), transparent 55%),
    linear-gradient(145deg, #062f20 0%, #042519 65%, #031b12 100%);
  color: #f6f0e2;
}

.advisory-hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(32px, 6vw, 78px);
  align-items: center;
}

.advisory-hero .eyebrow {
  color: var(--gold-soft);
}

.advisory-hero h1 {
  margin: 0.2em 0 0.24em;
  color: #fff9ea;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}

.advisory-hero p {
  max-width: 58ch;
  margin: 0;
  color: rgba(246, 240, 226, 0.8);
  font-size: 16px;
  line-height: 1.85;
}

.advisory-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.advisory-portrait {
  justify-self: center;
  width: min(100%, 340px);
  padding: 6px;
  border-radius: 50%;
  background: conic-gradient(from 210deg, #c9a227, #f0de9e, #886409, #c9a227);
  box-shadow: 0 30px 70px -36px rgba(0, 0, 0, 0.8);
}

.advisory-portrait img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 50%;
  border: 8px solid #062f20;
}

.advisory-content {
  padding: clamp(54px, 6vw, 78px) 0;
}

.advisory-content .wrap {
  max-width: 900px;
}

.advisory-content h2 {
  margin: 0.8em 0 0.35em;
  color: var(--emerald-deep);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 600;
  line-height: 1.1;
}

.advisory-content p {
  color: #4a5148;
  font-size: 15.5px;
  line-height: 1.9;
}

.advisory-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 28px 0 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--line);
  gap: 1px;
}

.advisory-fact {
  padding: 22px 18px;
  background: linear-gradient(180deg, #fffdf8, #f8f1e4);
}

.advisory-fact .lab {
  color: var(--gold-deep);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.advisory-fact .val {
  margin-top: 8px;
  color: var(--emerald-deep);
  font-family: "Cormorant Garamond", serif;
  font-size: 23px;
  font-weight: 600;
  line-height: 1.2;
}

.advisory-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.advisory-list li {
  position: relative;
  padding-inline-start: 22px;
  margin: 0 0 10px;
  color: #4a5148;
  font-size: 15px;
  line-height: 1.8;
}

.advisory-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.72em;
  width: 5px;
  height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
}

.advisory-steps {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: advisory-step;
}

.advisory-steps li {
  counter-increment: advisory-step;
  position: relative;
  padding-inline-start: 46px;
  margin: 0 0 16px;
  color: #4a5148;
  font-size: 15px;
  line-height: 1.8;
}

.advisory-steps li::before {
  content: counter(advisory-step);
  position: absolute;
  inset-inline-start: 0;
  top: 0.1em;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--emerald-soft);
  color: var(--emerald-deep);
  font-weight: 700;
  font-size: 12px;
}

.advisory-contact {
  margin-top: 34px;
  padding: 28px 30px;
  border: 1px solid rgba(184, 134, 11, 0.28);
  border-radius: 18px;
  background: linear-gradient(180deg, #fffdf8, #f7f1e4);
}

.advisory-contact p {
  margin: 0 0 14px;
}

/* Applications panel, gold laser edge and WhatsApp action */
.laser-frame {
  position: relative;
  isolation: isolate;
  border-radius: 20px;
}

.laser-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(
    from var(--laser-angle),
    #8a6508,
    #ffe7a3 16%,
    #c9a227 30%,
    #8a6508 48%,
    #f5d98a 66%,
    #b8860b 82%,
    #ffe7a3 100%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: laser-circulate 3.8s linear infinite;
  filter: drop-shadow(0 0 6px rgba(255, 226, 150, 0.55));
  pointer-events: none;
}

.advisory-contact.laser-frame {
  border-radius: 20px;
  box-shadow:
    0 24px 58px -42px rgba(8, 51, 31, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.advisory-contact .advisory-wa-lead {
  max-width: 58ch;
  margin: 0 0 18px;
  font-size: 14.5px;
  line-height: 1.8;
}

.wa-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 420px;
  min-height: 58px;
  padding: 15px 24px;
  border: 1px solid #d9b64a;
  border-radius: 14px;
  background: linear-gradient(135deg, #e0bd58 0%, #c9a227 48%, #b8860b 100%);
  color: #14210f;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  box-shadow:
    0 18px 38px -20px rgba(138, 101, 8, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.wa-cta svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.wa-cta:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #eccb6a 0%, #d5ae35 48%, #c08f12 100%);
  box-shadow:
    0 24px 46px -22px rgba(138, 101, 8, 0.66),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.wa-cta:active {
  transform: translateY(0) scale(0.99);
}

.wa-cta:focus-visible {
  outline: 2px solid var(--emerald-deep);
  outline-offset: 4px;
  box-shadow: 0 0 0 7px rgba(184, 134, 11, 0.24);
}

[dir="rtl"] .wa-cta {
  font-family: "Tajawal", sans-serif;
  font-size: 16.5px;
}

.advisory-contact .advisory-safety {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

[dir="rtl"] .advisory-contact .advisory-safety {
  font-size: 13.5px;
}

[dir="rtl"] .advisory-hero h1,
[dir="rtl"] .advisory-content h2,
[dir="rtl"] .advisory-fact .val {
  font-family: "Tajawal", sans-serif;
  font-weight: 700;
  letter-spacing: 0;
}

[dir="rtl"] .advisory-content p,
[dir="rtl"] .advisory-list li,
[dir="rtl"] .advisory-steps li {
  font-size: 15.5px;
}

@media (max-width: 900px) {
  .advisory-hero .wrap {
    grid-template-columns: 1fr;
  }

  .advisory-portrait {
    grid-row: 1;
    width: min(100%, 240px);
  }

  .advisory-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .advisory-facts {
    grid-template-columns: 1fr;
  }

  .advisory-contact {
    padding: 24px 22px;
  }

  .wa-cta {
    gap: 10px;
    padding: 14px 18px;
    font-size: 15.5px;
  }

  .advisory-actions .btn,
  .advisory-actions .laser-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .laser-btn::before {
    animation: none;
    background: var(--gold);
  }
}


/* Local scrollbar for pages that do not load partners.css */
html {
  scrollbar-width: thin;
  scrollbar-color: #b8860b rgba(8, 51, 31, 0.1);
}

::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}

::-webkit-scrollbar-track {
  background: rgba(8, 51, 31, 0.06);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #c9a227, #8a6508);
  border: 2px solid #faf7f0;
  border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #d8b45a, #8a6508);
}

::-webkit-scrollbar-corner {
  background: transparent;
}

/* Table no cells */
.ptable .n {
  color: #c3bdb0;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}

/* Project logo clipping */
.project-logo {
  overflow: hidden;
}

.project-logo img {
  border-radius: 50%;
}

/* Stronger laser edge */
.laser-btn::before {
  padding: 2px;
  filter: drop-shadow(0 0 4px rgba(255, 226, 150, 0.55));
}

@media (prefers-reduced-motion: reduce) {
  .laser-btn::before,
  .laser-frame::before {
    animation: none;
    background: var(--gold);
    filter: none;
  }

  .wa-cta {
    transition: none;
  }

  .wa-cta:hover,
  .wa-cta:active {
    transform: none;
  }
}

.advisory-hero .btn-ghost {
  color: var(--gold-soft);
  border-color: rgba(201, 162, 39, 0.55);
  background: rgba(255, 255, 255, 0.02);
}

.advisory-hero .btn-ghost:hover {
  color: #fff4d6;
  background: rgba(201, 162, 39, 0.12);
}

.ptable th.f {
  color: var(--emerald-deep);
}
