/* PTAH — Strong Pharaonic heritage layer */

:root {
  --color-sand: #EFE8D8;
  --color-sand-deep: #D9CDB3;
  --color-gold-deep: #B8964A;
  --color-gold-bright: #E8D392;
  --pharaoh-line: rgba(202, 175, 105, 0.7);
  --pharaoh-line-soft: rgba(202, 175, 105, 0.35);
  --radius-sm: 0;
  --radius-md: 2px;
  --radius-lg: 4px;
  --frieze: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='18' viewBox='0 0 96 18'%3E%3Cpath d='M0 9h10l5-7 5 7h10l5-7 5 7h10l5-7 5 7h10l5-7 5 7h6' fill='none' stroke='%23CAAF69' stroke-width='1.4'/%3E%3Cpath d='M0 15h96' stroke='%23CAAF69' stroke-width='0.8' opacity='0.55'/%3E%3Cpath d='M0 3h96' stroke='%23CAAF69' stroke-width='0.8' opacity='0.35'/%3E%3C/svg%3E");
  --pattern-geo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M30 4L46 20 30 36 14 20Z' fill='none' stroke='%23CAAF69' stroke-width='0.7' opacity='0.14'/%3E%3Ccircle cx='30' cy='20' r='2' fill='%23CAAF69' opacity='0.12'/%3E%3C/svg%3E");
}

/* ========== Global atmosphere ========== */
body {
  background-color: #F3EBDC;
  background-image:
    var(--pattern-geo),
    radial-gradient(ellipse 90% 45% at 50% -5%, rgba(202, 175, 105, 0.16), transparent 55%),
    linear-gradient(180deg, #F7F0E2 0%, #F3EBDC 40%, #EFE6D4 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  width: 28px;
  pointer-events: none;
  z-index: 50;
  opacity: 0.55;
  background:
    linear-gradient(180deg, rgba(22, 44, 70, 0.92), rgba(22, 44, 70, 0.88)),
    repeating-linear-gradient(
      180deg,
      transparent 0 18px,
      rgba(202, 175, 105, 0.35) 18px 19px,
      transparent 19px 36px,
      rgba(202, 175, 105, 0.2) 36px 37px
    );
  border-inline-color: var(--color-gold-primary);
}

body::before {
  inset-inline-start: 0;
  border-inline-end: 2px solid rgba(202, 175, 105, 0.55);
  box-shadow: inset -6px 0 0 rgba(202, 175, 105, 0.12);
}

body::after {
  inset-inline-end: 0;
  border-inline-start: 2px solid rgba(202, 175, 105, 0.55);
  box-shadow: inset 6px 0 0 rgba(202, 175, 105, 0.12);
}

@media (max-width: 1099px) {
  body::before,
  body::after {
    width: 10px;
    opacity: 0.4;
  }
}

@media (max-width: 767px) {
  body::before,
  body::after { display: none; }
}

/* ========== Sections ========== */
.section {
  position: relative;
}

.section--white,
.section--off {
  position: relative;
}

.section--white::before,
.section--off::before,
.section--white::after,
.section--off::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 18px;
  background-image: var(--frieze);
  background-repeat: repeat-x;
  background-position: center;
  pointer-events: none;
  z-index: 2;
  opacity: 0.85;
}

.section--white::before,
.section--off::before { top: 0; }

.section--white::after,
.section--off::after {
  bottom: 0;
  transform: scaleY(-1);
}

.section--white {
  background:
    linear-gradient(180deg, rgba(255, 252, 245, 0.97), rgba(255, 255, 255, 0.98)),
    var(--pattern-geo);
}

.section--off {
  background:
    linear-gradient(180deg, #EFE4CF 0%, #F5EDDC 45%, #F0E6D2 100%),
    var(--pattern-geo);
}

.section--navy {
  background:
    var(--pattern-geo),
    radial-gradient(ellipse at top, rgba(202, 175, 105, 0.22), transparent 50%),
    linear-gradient(165deg, #1e3a58 0%, var(--color-navy-primary) 42%, #0d1c2c 100%);
  position: relative;
  overflow: hidden;
}

.section--navy::before,
.section--navy::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 20px;
  background-image: var(--frieze);
  background-repeat: repeat-x;
  background-position: center;
  opacity: 1;
  pointer-events: none;
  z-index: 1;
}
.section--navy::before { top: 0; }
.section--navy::after { bottom: 0; transform: scaleY(-1); }

.section > .container,
.cta-band .container {
  position: relative;
  z-index: 2;
}

/* ========== Header temple lintel ========== */
.site-header {
  border-bottom: 2px solid rgba(202, 175, 105, 0.35);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 10px;
  background-image: var(--frieze);
  background-repeat: repeat-x;
  opacity: 0.55;
  pointer-events: none;
}

.site-header.is-over-hero:not(.is-scrolled)::after {
  opacity: 0.75;
  filter: brightness(1.2);
}

/* ========== Ornaments ========== */
.pharaoh-ornament {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-5);
  color: var(--color-gold-primary);
  filter: drop-shadow(0 2px 8px rgba(202, 175, 105, 0.25));
}

.pharaoh-ornament svg {
  width: min(280px, 78vw);
  height: auto;
  opacity: 0.95;
}

.pharaoh-ornament--light {
  color: var(--color-gold-light);
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.25));
}

.pharaoh-ornament--sm svg {
  width: min(200px, 68vw);
}

.pharaoh-ornament--ankh svg {
  width: 42px;
  height: auto;
}

.pharaoh-ornament--lotus svg {
  width: min(110px, 40vw);
}

.home-hero__content .pharaoh-ornament {
  justify-content: flex-start;
  margin-bottom: var(--space-4);
}

.home-hero__content .pharaoh-ornament svg {
  width: min(210px, 70vw);
}

.page-hero__content .pharaoh-ornament {
  justify-content: flex-start;
  margin-bottom: var(--space-3);
}

.site-footer .pharaoh-ornament {
  padding-top: var(--space-6);
  margin-bottom: var(--space-5);
}

.site-footer .pharaoh-ornament svg {
  width: min(240px, 70vw);
}

/* ========== Cartouche eyebrow ========== */
.eyebrow {
  letter-spacing: 0.18em;
  padding: 0.35rem 0.9rem;
  border: 1px solid rgba(202, 175, 105, 0.55);
  border-radius: 999px 999px 999px 999px;
  border-radius: 2rem;
  background: rgba(202, 175, 105, 0.08);
  gap: var(--space-2);
}

.eyebrow::before {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--color-gold-light), var(--color-gold-primary));
  box-shadow: none;
}

.section-header--center .eyebrow {
  justify-content: center;
}

.section-header--center .eyebrow::before {
  display: block;
}

.section-header--center .eyebrow::after {
  content: "";
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--color-gold-light), var(--color-gold-primary));
  box-shadow: none;
}

.page-hero .eyebrow {
  background: rgba(16, 34, 53, 0.35);
  border-color: rgba(228, 212, 157, 0.55);
}

.home-hero .eyebrow {
  background: rgba(202, 175, 105, 0.1);
  border-color: rgba(202, 175, 105, 0.55);
  color: var(--color-gold-primary);
}

/* ========== Monumental dividers ========== */
.gold-line {
  width: 5.5rem;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-gold-primary) 12%, var(--color-gold-light) 50%, var(--color-gold-primary) 88%, transparent);
  position: relative;
  opacity: 1;
}

.gold-line::before,
.gold-line::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--color-gold-primary);
  transform: translateY(-50%) rotate(45deg);
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold-primary));
}

.gold-line::before { inset-inline-start: -6px; }
.gold-line::after { inset-inline-end: -6px; }

.editorial-rule {
  height: 18px;
  background-image: var(--frieze);
  background-repeat: repeat-x;
  background-position: center;
  border: 0;
  opacity: 1;
  margin-block: 0.25rem;
}

/* ========== Hero temple frame ========== */
.home-hero__frame {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(202, 175, 105, 0.55);
  box-shadow:
    inset 0 0 0 6px rgba(16, 34, 53, 0.12),
    inset 0 0 0 7px rgba(202, 175, 105, 0.28),
    0 0 0 1px rgba(202, 175, 105, 0.2);
  pointer-events: none;
  z-index: 2;
}

.home-hero__frame::before,
.home-hero__frame::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: var(--color-gold-light);
  border-style: solid;
  opacity: 0.9;
}

.home-hero__frame::before {
  top: -2px;
  inset-inline-start: -2px;
  border-width: 3px 0 0 3px;
}

.home-hero__frame::after {
  bottom: -2px;
  inset-inline-end: -2px;
  border-width: 0 3px 3px 0;
}

.home-hero__corners {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.home-hero__corners span {
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: var(--color-gold-primary);
  border-style: solid;
  opacity: 0.75;
}

.home-hero__corners span:nth-child(1) {
  top: -2px;
  inset-inline-end: -2px;
  border-width: 3px 3px 0 0;
}

.home-hero__corners span:nth-child(2) {
  bottom: -2px;
  inset-inline-start: -2px;
  border-width: 0 0 3px 3px;
}

.page-hero__overlay {
  background:
    linear-gradient(to top, rgba(12, 28, 44, 0.92) 0%, rgba(22, 44, 70, 0.45) 55%, rgba(22, 44, 70, 0.3) 100%);
}

.page-hero__content {
  position: relative;
  padding-inline-start: 1.25rem;
  border-inline-start: 3px solid var(--color-gold-primary);
  box-shadow: inset 6px 0 0 rgba(202, 175, 105, 0.15);
}

/* ========== Media temple frames ========== */
.media-frame {
  border-radius: 0;
  box-shadow:
    0 0 0 2px rgba(202, 175, 105, 0.45),
    0 0 0 8px rgba(255, 252, 245, 0.9),
    0 0 0 10px rgba(202, 175, 105, 0.28),
    var(--shadow-md);
}

.media-frame::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 10px;
  background-image: var(--frieze);
  background-repeat: repeat-x;
  z-index: 2;
  opacity: 0.8;
  pointer-events: none;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(202, 175, 105, 0.35);
  pointer-events: none;
  z-index: 1;
}

/* ========== Cards ========== */
.property-card,
.service-card,
.form-card,
.value-item,
.category-card,
.category-hub-card,
.finishing-promo,
.detail-aside {
  border-radius: 0;
}

.property-card {
  border: 1px solid rgba(202, 175, 105, 0.4);
  background:
    linear-gradient(#FFFEFA, #FBF7EE) padding-box;
  position: relative;
}

.property-card::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 15%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-gold-primary), transparent);
  z-index: 2;
}

.property-card__type {
  letter-spacing: 0.16em;
}

.service-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(202, 175, 105, 0.32);
  background: linear-gradient(180deg, #FFFEFA, #F7F1E4);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-gold-primary), transparent);
}

.service-card::after {
  content: "";
  position: absolute;
  bottom: 10px;
  inset-inline-end: 12px;
  width: 14px;
  height: 22px;
  border: 1.5px solid rgba(202, 175, 105, 0.45);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  opacity: 0.7;
  /* mini ankh loop */
  box-shadow: 0 -10px 0 -5px rgba(202, 175, 105, 0.45), inset 0 8px 0 -7px rgba(202, 175, 105, 0.35);
}

.value-item {
  background: linear-gradient(180deg, #FFFEFA, #F3EBDC);
  border: 1px solid rgba(202, 175, 105, 0.4);
  position: relative;
}

.value-item::before {
  content: "◆";
  display: block;
  color: var(--color-gold-primary);
  font-size: 0.7rem;
  margin-bottom: 0.35rem;
}

.value-item__num {
  letter-spacing: 0.2em;
}

/* ========== Buttons metal ========== */
.btn {
  border-radius: 0;
  letter-spacing: 0.04em;
}

.btn--primary {
  background: linear-gradient(180deg, #F0E2A8 0%, #CAAF69 45%, #A8873F 100%);
  color: var(--color-navy-primary);
  border: 1px solid #9A7A38;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 2px 0 rgba(22, 44, 70, 0.15);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn--primary:hover {
  background: linear-gradient(180deg, #F7ECC0 0%, #E4D49D 42%, #CAAF69 100%);
}

.btn--outline {
  border: 1px solid rgba(228, 212, 157, 0.75);
}

.btn--outline-dark {
  border: 1px solid rgba(22, 44, 70, 0.75);
}

/* ========== Stats as stelae ========== */
.split-stats,
.stats {
  border-radius: 0;
  border: 2px solid rgba(202, 175, 105, 0.45);
  background:
    linear-gradient(180deg, rgba(255, 252, 245, 0.95), rgba(243, 235, 220, 0.98));
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.5);
  position: relative;
}

.split-stats {
  border-inline-start: 4px solid var(--color-gold-primary);
}

.split-stats::before,
.stats::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 10%;
  height: 8px;
  background-image: var(--frieze);
  background-repeat: repeat-x;
  opacity: 0.7;
}

.stat__num span:first-child {
  color: var(--color-gold-deep);
}

/* ========== Features as pillars ========== */
.feature-item {
  border-top: 3px solid rgba(202, 175, 105, 0.5);
  position: relative;
  padding-top: var(--space-6);
  background: linear-gradient(180deg, rgba(202, 175, 105, 0.06), transparent 40%);
}

.feature-item::before {
  content: "";
  position: absolute;
  top: -4px;
  inset-inline-start: 0;
  width: 2.5rem;
  height: 5px;
  background: var(--color-gold-primary);
}

.feature-item::after {
  content: "";
  position: absolute;
  top: -10px;
  inset-inline-start: 0.85rem;
  width: 10px;
  height: 10px;
  background: var(--color-gold-light);
  transform: rotate(45deg);
  border: 1px solid var(--color-gold-deep);
}

/* ========== Category overlays ========== */
.category-card__overlay,
.category-hub-card::after {
  background: linear-gradient(
    to top,
    rgba(12, 28, 44, 0.94) 0%,
    rgba(22, 44, 70, 0.4) 55%,
    rgba(22, 44, 70, 0.15) 100%
  );
}

.category-card,
.category-hub-card {
  outline: 1px solid rgba(202, 175, 105, 0.35);
  outline-offset: -8px;
}

/* ========== Process ========== */
.process-step__num {
  letter-spacing: 0.22em;
  font-size: 0.8rem;
}

.process-step {
  border-top: 2px solid rgba(202, 175, 105, 0.35);
  padding-top: var(--space-4);
}

/* ========== Forms ========== */
.form-card {
  border: 2px solid rgba(202, 175, 105, 0.4);
  background: linear-gradient(180deg, #FFFEFA, #F7F0E2);
  position: relative;
}

.form-card::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 8%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--color-gold-primary), transparent);
}

.form-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 10px;
  background-image: var(--frieze);
  background-repeat: repeat-x;
  opacity: 0.55;
  transform: scaleY(-1);
}

.form-control {
  border-radius: 0;
  border-color: rgba(202, 175, 105, 0.35);
  background: #FFFEFA;
}

.form-control:focus {
  border-color: var(--color-gold-primary);
  box-shadow: 0 0 0 3px rgba(202, 175, 105, 0.2);
}

/* ========== Footer ========== */
.site-footer {
  background:
    var(--pattern-geo),
    radial-gradient(ellipse at top, rgba(202, 175, 105, 0.16), transparent 48%),
    var(--color-navy-primary);
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 20px;
  background-image: var(--frieze);
  background-repeat: repeat-x;
  opacity: 1;
}

.site-footer::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 12px;
  background-image: var(--frieze);
  background-repeat: repeat-x;
  opacity: 0.7;
  transform: scaleY(-1);
}

.footer-top {
  border-bottom-color: rgba(202, 175, 105, 0.4);
  padding-top: var(--space-5);
}

.footer-col h4::after {
  width: 2.25rem;
  height: 2px;
  box-shadow: 0 3px 0 -1px rgba(202, 175, 105, 0.8);
}

/* ========== Heritage strip ========== */
.heritage-strip {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5);
  margin-top: var(--space-6);
  border: 1px solid rgba(202, 175, 105, 0.4);
  background:
    linear-gradient(135deg, rgba(202, 175, 105, 0.12), transparent 55%),
    #FFFEFA;
  position: relative;
}

.heritage-strip .pharaoh-ornament {
  margin: 0;
  color: var(--color-gold-primary);
}

.heritage-strip .pharaoh-ornament svg {
  width: 36px;
}

.heritage-strip::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--color-gold-light), var(--color-gold-primary), var(--color-gold-deep));
}

.heritage-strip strong {
  display: block;
  color: var(--color-gold-deep);
  letter-spacing: 0.12em;
  font-size: var(--fs-small);
  margin-bottom: 0.35rem;
}

.heritage-strip p {
  margin: 0;
  font-size: 0.95rem;
}

/* ========== Finishing / CTA ========== */
.finishing-promo__content {
  background:
    var(--pattern-geo),
    radial-gradient(ellipse at top right, rgba(202, 175, 105, 0.2), transparent 50%),
    var(--color-navy-primary);
}

.detail-aside {
  border: 2px solid rgba(202, 175, 105, 0.4);
  background: linear-gradient(180deg, #FFFEFA, #F5EDDC);
}

.site-header.is-scrolled {
  border-bottom-color: rgba(202, 175, 105, 0.45);
}

h1, h2 {
  letter-spacing: -0.01em;
}

.theme-pharaoh .btn--lg {
  min-height: 3.35rem;
}

/* Float buttons angular */
.float-btn {
  border-radius: 0 !important;
}

@media (max-width: 767px) {
  .float-btn {
    border-radius: 0 !important;
  }

  .media-frame {
    box-shadow:
      0 0 0 2px rgba(202, 175, 105, 0.35),
      var(--shadow-sm);
  }

  .media-frame::after {
    inset: 8px;
  }

  .eyebrow {
    padding: 0.3rem 0.7rem;
  }
}
