/* Digital Development Real Estate — colours from the client's identity board:
   gold #DDC57A (primary), navy #1E3A5F (text), cream #F8F6F0 (background). Motifs from the logo: the shield with
   its M notch and double frame, the four-point sparkles, and the concentric hexagons of the staircase key visual. */
:root {
  --gold: #ddc57a;
  --gold-light: #ead9a2;
  --gold-deep: #ad9654;
  --gold-ink: #7a6630; /* gold dark enough for small text on cream (AA) */
  --gold-tint: #f1e8cf;
  --navy: #1e3a5f;
  --navy-deep: #152c48;
  --navy-900: #0f2137;
  --cream: #f8f6f0;
  --sand: #f2ede1;
  --paper: #fffdf8;
  --line: rgba(30, 58, 95, 0.14);
  --shadow: 0 30px 60px -32px rgba(15, 33, 55, 0.45);
  --shield: polygon(0 0, 35.5% 0, 50% 11.7%, 64.5% 0, 100% 0, 100% 72.5%, 50% 100%, 0 72.5%);

  --c-bg: var(--cream);
  --c-surface: var(--sand);
  --c-text: var(--navy);
  --c-muted: #4b5d75;
  --c-accent: var(--gold-deep);
  --c-accent-ink: var(--navy-900);
  --demo-bg: var(--navy-900);
  --demo-ink: var(--cream);
  --mobile-bar-bg: rgba(15, 33, 55, 0.96);
  --header-h: 86px;
  --container: 1200px;
  --font-body: 'Alexandria', 'Montserrat', system-ui, sans-serif;
  --font-head: var(--font-body);
  --font-num: 'Montserrat', 'Alexandria', system-ui, sans-serif;
}

:root[lang='en'] {
  --font-body: 'Montserrat', 'Alexandria', system-ui, sans-serif;
}

body {
  font-size: 1.0625rem;
  line-height: 1.85;
}

:root[lang='en'] body {
  line-height: 1.7;
}

h1,
h2,
h3 {
  color: var(--navy);
  font-weight: 700;
}

:root[lang='en'] h1,
:root[lang='en'] h2 {
  letter-spacing: -0.015em;
}

h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  line-height: 1.3;
}

.nowrap {
  white-space: nowrap;
}

::selection {
  background: var(--gold);
  color: var(--navy-900);
}

/* ---------- Eyebrows and buttons ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--gold-ink);
  font-size: 0.95rem;
  font-weight: 600;
}

.eyebrow svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--gold-deep);
}

.eyebrow--light {
  color: var(--gold);
}

.eyebrow--light svg {
  color: var(--gold);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 26px;
  border: 1.5px solid transparent;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.btn svg {
  flex: none;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--gold {
  background: var(--gold);
  color: var(--navy-900);
  box-shadow: 0 14px 28px -16px rgba(173, 150, 84, 0.9);
}

.btn--gold:hover {
  background: var(--gold-light);
}

.btn--navy {
  background: var(--navy);
  color: var(--cream);
}

.btn--navy:hover {
  background: var(--navy-deep);
}

.btn--line {
  border-color: rgba(30, 58, 95, 0.32);
  color: var(--navy);
}

.btn--line:hover {
  border-color: var(--navy);
  background: rgba(30, 58, 95, 0.05);
}

.btn--sm {
  min-height: 44px;
  padding: 8px 18px;
  font-size: 0.95rem;
}

.btn--block {
  width: 100%;
}

.btn .ltr,
.phones .ltr,
.contact__list .ltr,
.footer__contact .ltr {
  font-family: var(--font-num);
  letter-spacing: 0.02em;
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 70;
  height: var(--header-h);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, height 0.3s ease;
}

.header.is-scrolled {
  --header-h: 74px;
  background: rgba(248, 246, 240, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px -22px rgba(15, 33, 55, 0.55);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 100%;
}

.brand {
  flex: none;
  display: block;
}

.brand img {
  width: auto;
  height: 64px;
  transition: height 0.3s ease;
}

.header.is-scrolled .brand img {
  height: 54px;
}

.nav {
  display: flex;
  gap: 26px;
  margin-inline-start: auto;
}

.nav a {
  position: relative;
  padding: 8px 0;
  font-weight: 500;
  font-size: 0.98rem;
  text-decoration: none;
}

.nav a::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 2px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-btn {
  min-width: 46px;
  min-height: 44px;
  padding: 0 10px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: transparent;
  font-family: var(--font-num);
  font-weight: 600;
  font-size: 0.9rem;
}

.lang-btn:hover {
  border-color: var(--navy);
}

.nav-toggle {
  display: none;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: transparent;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 64px) 0 clamp(72px, 8vw, 112px);
  background:
    radial-gradient(900px 520px at 18% 12%, rgba(221, 197, 122, 0.2), transparent 62%),
    var(--cream);
}

[dir='ltr'] .hero {
  background:
    radial-gradient(900px 520px at 82% 12%, rgba(221, 197, 122, 0.2), transparent 62%),
    var(--cream);
}

.hero__hex {
  position: absolute;
  top: 50%;
  inset-inline-end: -170px;
  width: min(900px, 95vw);
  height: auto;
  translate: 0 -46%;
  color: rgba(173, 150, 84, 0.32);
  stroke-width: 1.1;
  pointer-events: none;
  animation: spin 160s linear infinite;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.hero h1 {
  margin-bottom: 0.45em;
  font-size: clamp(2.45rem, 5.1vw, 4.5rem);
  line-height: 1.22;
}

:root[lang='en'] .hero h1 {
  font-size: clamp(2.3rem, 4.6vw, 4.1rem);
  line-height: 1.12;
}

.mark {
  padding-inline: 0.06em;
  background: linear-gradient(transparent 60%, rgba(221, 197, 122, 0.7) 60%, rgba(221, 197, 122, 0.7) 88%, transparent 88%);
}

.hero__lead {
  max-width: 34em;
  color: var(--c-muted);
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
}

.hero__lead strong {
  color: var(--navy);
  font-weight: 600;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 28px;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.96rem;
}

.hero__facts li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero__facts svg {
  width: 19px;
  height: 19px;
  flex: none;
  color: var(--gold-deep);
}

.hero__facts b {
  font-family: var(--font-num);
  font-weight: 700;
}

.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  padding-block: 10px;
}

.shield-wrap {
  width: min(100%, 420px);
  filter: drop-shadow(0 34px 36px rgba(15, 33, 55, 0.28));
  animation: float 8s ease-in-out infinite alternate;
}

/* The emblem rises into place on load, then a light sweeps across it every few seconds. */
.emblem {
  position: relative;
  perspective: 900px;
  cursor: pointer;
}

/* js/emblem.js sets --rx, --ry (tilt toward the pointer) and --sx (where the shine sits). */
.emblem__tilt {
  position: relative;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.3s ease-out;
  will-change: transform;
}

.emblem.is-active .emblem__tilt {
  transition-duration: 0.08s;
}

.emblem.is-active .emblem__shine {
  background-position: var(--sx, 150%) 0;
  animation: none;
}

.emblem.is-pulse .emblem__tilt {
  animation: pulse 0.6s ease;
}

@keyframes pulse {
  40% { scale: 1.08; }
}

.emblem img {
  width: 100%;
}

.emblem__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.8) 50%, transparent 58%) 0 0 / 250% 100% no-repeat;
  -webkit-mask: url('../images/emblem.png') center / 100% 100% no-repeat;
  mask: url('../images/emblem.png') center / 100% 100% no-repeat;
  animation: shine 5s ease-in-out 2.3s infinite;
  pointer-events: none;
}

@keyframes shine {
  0% { background-position: 150% 0; }
  45%, 100% { background-position: -50% 0; }
}

@keyframes spin {
  to { rotate: 360deg; }
}

.spark {
  position: absolute;
  color: var(--gold-deep);
  animation: twinkle 4.5s ease-in-out infinite;
}

.spark--a {
  top: 4%;
  inset-inline-start: 4%;
  width: 40px;
  height: 40px;
}

.spark--b {
  top: 15%;
  inset-inline-start: 13%;
  width: 22px;
  height: 22px;
  animation-delay: 1.6s;
}

.hero__badge {
  position: absolute;
  bottom: 12%;
  inset-inline-end: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 12px 18px;
  border: 1px solid rgba(221, 197, 122, 0.55);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: var(--shadow);
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.4;
}

.hero__badge svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--gold-deep);
}

@keyframes float {
  from { transform: translateY(0); }
  to { transform: translateY(-10px); }
}

@keyframes twinkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
  50% { transform: scale(0.72) rotate(18deg); opacity: 0.55; }
}

/* ---------- Facts strip ---------- */
.strip {
  padding: 34px 0;
  background: var(--navy);
  color: var(--cream);
}

.strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.strip__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 12px;
  text-align: center;
}

.strip__item + .strip__item {
  border-inline-start: 1px solid rgba(221, 197, 122, 0.28);
}

.strip__item strong {
  color: var(--gold);
  font-family: var(--font-num);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
}

.strip__item span {
  color: rgba(248, 246, 240, 0.85);
  font-size: 0.95rem;
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding: clamp(72px, 9vw, 120px) 0;
}

.section__head {
  max-width: 720px;
  margin: 0 auto clamp(36px, 5vw, 56px);
  text-align: center;
}

.section__head--start {
  margin-inline: 0;
  text-align: start;
}

.section__lead {
  margin: 0;
  color: var(--c-muted);
  font-size: 1.08rem;
}

/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  align-items: center;
  gap: clamp(40px, 7vw, 96px);
}

.about__media {
  position: relative;
  max-width: 440px;
  margin-inline: auto;
}

.frame {
  position: relative;
  margin: 0;
  padding: 14px;
  border: 1.5px solid var(--gold);
}

.frame::before {
  content: '';
  position: absolute;
  inset: -12px;
  border: 1px solid rgba(173, 150, 84, 0.45);
  pointer-events: none;
}

.frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.about__text p {
  color: var(--c-muted);
  font-size: 1.06rem;
}

.about__text strong {
  color: var(--navy);
  font-weight: 600;
}

.pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.pillars li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  font-weight: 600;
  font-size: 0.98rem;
}

.pillars svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--gold-deep);
}

/* ---------- Services ---------- */
.services {
  background: var(--sand);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 38px 30px 32px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.card::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
  transform: scaleX(0.22);
  transform-origin: right;
  transition: transform 0.45s ease;
}

[dir='ltr'] .card::after {
  transform-origin: left;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(221, 197, 122, 0.7);
  box-shadow: var(--shadow);
}

.card:hover::after {
  transform: scaleX(1);
}

.card__badge {
  display: grid;
  place-items: center;
  width: 60px;
  height: 76px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  clip-path: var(--shield);
  background: linear-gradient(160deg, var(--gold-light), var(--gold) 55%, var(--gold-deep));
  color: var(--navy-900);
}

.card__badge svg {
  width: 26px;
  height: 26px;
}

.card__num {
  position: absolute;
  top: 28px;
  inset-inline-end: 28px;
  color: rgba(30, 58, 95, 0.09);
  font-family: var(--font-num);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
}

.card h3 {
  font-size: 1.35rem;
}

.card p {
  flex: 1;
  color: var(--c-muted);
}

.card__link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
}

.card__link span {
  border-bottom: 1.5px solid var(--gold);
}

.card__link svg {
  width: 18px;
  height: 18px;
  color: var(--gold-deep);
  transition: transform 0.25s ease;
}

.card__link:hover svg {
  transform: translateX(-4px);
}

[dir='ltr'] .card__link svg {
  scale: -1 1;
}

[dir='ltr'] .card__link:hover svg {
  transform: translateX(-4px);
}

/* ---------- Townhouse feature ---------- */
.feature {
  position: relative;
  padding: clamp(80px, 10vw, 128px) 0;
  overflow: hidden;
  background:
    linear-gradient(to left, rgba(15, 33, 55, 0.96) 0%, rgba(21, 44, 72, 0.88) 48%, rgba(21, 44, 72, 0.52) 100%),
    url('../images/facade-band.jpg') center / cover no-repeat;
  color: var(--cream);
}

[dir='ltr'] .feature {
  background:
    linear-gradient(to right, rgba(15, 33, 55, 0.96) 0%, rgba(21, 44, 72, 0.88) 48%, rgba(21, 44, 72, 0.52) 100%),
    url('../images/facade-band.jpg') center / cover no-repeat;
}

.feature__inner {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 40px;
}

.feature h2 {
  max-width: 15em;
  color: var(--cream);
  font-size: clamp(2rem, 3.6vw, 3rem);
}

.feature p {
  max-width: 34em;
  margin-bottom: 30px;
  color: rgba(248, 246, 240, 0.86);
  font-size: 1.1rem;
}

.feature__mark {
  justify-self: center;
  width: min(250px, 70%);
  height: auto;
  fill: none;
  stroke: var(--gold);
  stroke-width: 0.8;
  opacity: 0.9;
}

/* ---------- Steps ---------- */
.steps__list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps__list::before {
  content: '';
  position: absolute;
  top: 38px;
  inset-inline: 17%;
  border-top: 2px dashed rgba(173, 150, 84, 0.55);
}

.step {
  position: relative;
  padding-inline: 14px;
  text-align: center;
}

.step__num {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 80px;
  margin: 0 auto 20px;
  padding-bottom: 14px;
  clip-path: var(--shield);
  background: var(--navy);
  color: var(--gold);
  font-family: var(--font-num);
  font-size: 1.5rem;
  font-weight: 700;
}

.step h3 {
  font-size: 1.25rem;
}

.step p {
  max-width: 22em;
  margin-inline: auto;
  color: var(--c-muted);
}

/* ---------- Location ---------- */
.location {
  background: var(--sand);
}

.location__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: stretch;
  gap: 26px;
}

.location__card {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 46px);
  border-radius: 22px;
  background: var(--navy);
  color: var(--cream);
}

.location__card::after {
  content: '';
  position: absolute;
  bottom: -150px;
  inset-inline-end: -90px;
  width: 300px;
  height: 380px;
  clip-path: var(--shield);
  background: rgba(221, 197, 122, 0.07);
  pointer-events: none;
}

.location__card > * {
  position: relative;
  z-index: 1;
}

.location__card .eyebrow {
  color: var(--gold);
}

.location__card .eyebrow svg {
  color: var(--gold);
}

.location__card h2 {
  color: var(--cream);
}

.info {
  display: grid;
  gap: 18px;
  margin: 26px 0 30px;
}

.info > div {
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(248, 246, 240, 0.14);
}

.info dt {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.94rem;
}

.info dt svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.info dd {
  margin: 0;
  font-size: 1.06rem;
}

.info small {
  display: block;
  color: rgba(248, 246, 240, 0.72);
  font-size: 0.9rem;
}

.phones {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
}

.phones a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--cream);
  font-weight: 600;
  text-decoration: none;
}

.phones a:hover {
  color: var(--gold);
}

.map {
  min-height: 440px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #e8e2d2;
}

.map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 440px;
  border: 0;
}

/* ---------- FAQ ---------- */
.faq__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: start;
  gap: clamp(32px, 6vw, 80px);
}

.faq__list details {
  border-bottom: 1px solid var(--line);
}

.faq__list details:first-child {
  border-top: 1px solid var(--line);
}

.faq__list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding: 22px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.12rem;
  list-style: none;
}

.faq__list summary::-webkit-details-marker {
  display: none;
}

.faq__list summary::after {
  content: '+';
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold-tint);
  color: var(--navy);
  font-family: var(--font-num);
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1;
  transition: background-color 0.25s ease, transform 0.3s ease;
}

.faq__list details[open] summary::after {
  content: '−';
  background: var(--gold);
}

.faq__list details p {
  max-width: 46em;
  margin: -6px 0 22px;
  color: var(--c-muted);
}

/* ---------- Contact ---------- */
.contact {
  overflow: hidden;
  background: var(--navy-deep);
  color: var(--cream);
}

.contact__hex {
  position: absolute;
  bottom: -300px;
  inset-inline-start: -260px;
  width: 760px;
  height: auto;
  color: rgba(221, 197, 122, 0.17);
  stroke-width: 1.2;
  pointer-events: none;
}

.contact__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: clamp(32px, 6vw, 80px);
}

.contact h2 {
  color: var(--cream);
}

.contact__intro > p {
  color: rgba(248, 246, 240, 0.84);
  font-size: 1.08rem;
}

.contact__list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.contact__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}

.contact__list svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--gold);
}

.contact__list a {
  color: var(--cream);
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
}

.contact__list a:hover {
  color: var(--gold);
}

.form {
  padding: clamp(24px, 4vw, 40px);
  border-radius: 22px;
  background: var(--paper);
  color: var(--navy);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.55);
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

.field label {
  font-weight: 600;
  font-size: 0.95rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1.5px solid rgba(30, 58, 95, 0.22);
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold-deep);
  outline: none;
  box-shadow: 0 0 0 4px rgba(221, 197, 122, 0.4);
}

.field ::placeholder {
  color: #7b8798;
}

.form__error {
  margin: 0 0 12px;
  color: #b3261e;
  font-weight: 500;
}

.form__note {
  margin: 12px 0 0;
  color: var(--c-muted);
  font-size: 0.88rem;
  text-align: center;
}

.callbox {
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid rgba(221, 197, 122, 0.35);
  border-radius: 22px;
}

/* ---------- Footer ---------- */
.footer {
  padding-top: 72px;
  background: var(--navy-900);
  color: rgba(248, 246, 240, 0.8);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer__brand img {
  width: 140px;
  height: auto;
}

.footer__brand p {
  margin: 18px 0 0;
  color: var(--gold);
  font-weight: 600;
}

.footer h3 {
  margin-bottom: 14px;
  color: var(--cream);
  font-size: 1.05rem;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.footer__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: rgba(248, 246, 240, 0.8);
  text-decoration: none;
}

.footer__nav a:hover,
.footer__contact a:hover {
  color: var(--gold);
}

.footer__contact a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--cream);
  font-weight: 600;
  text-decoration: none;
}

.footer__contact p {
  margin-bottom: 0.6em;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 22px 0 28px;
  border-top: 1px solid rgba(248, 246, 240, 0.12);
  font-size: 0.88rem;
}

.footer__bottom p {
  margin: 0;
}

/* Back-to-top keeps a gold ring so it stays visible over the navy sections. */
.to-top {
  background: var(--navy);
  color: var(--cream);
  box-shadow: 0 0 0 2px rgba(221, 197, 122, 0.75), 0 10px 24px -10px rgba(15, 33, 55, 0.6);
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav {
    gap: 18px;
  }

  .nav a {
    font-size: 0.94rem;
  }
}

@media (max-width: 1024px) {
  .nav-toggle {
    display: grid;
  }

  .header__actions {
    margin-inline-start: auto;
  }

  .nav {
    position: absolute;
    top: 100%;
    inset-inline: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 6px 20px 18px;
    border-top: 1px solid var(--line);
    background: var(--cream);
    box-shadow: 0 24px 40px -24px rgba(15, 33, 55, 0.4);
  }

  .header.nav-open {
    background: var(--cream);
  }

  .header.nav-open .nav {
    display: flex;
  }

  .nav a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 1.02rem;
  }

  .nav a::after {
    display: none;
  }
}

@media (max-width: 980px) {
  .hero__grid,
  .about__grid,
  .feature__inner,
  .location__grid,
  .faq__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    order: 2;
  }

  .shield-wrap {
    width: min(78%, 380px);
  }

  .about__media {
    order: 2;
    width: min(86%, 400px);
  }

  .cards {
    grid-template-columns: 1fr;
    max-width: 620px;
    margin-inline: auto;
  }

  .feature__mark {
    display: none;
  }

  .faq__grid .section__head--start {
    margin-bottom: 8px;
  }
}

@media (max-width: 760px) {
  .strip__grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 22px;
  }

  .strip__item:nth-child(3) {
    border-inline-start: 0;
  }

  .steps__list {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .steps__list::before {
    display: none;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  :root {
    --header-h: 72px;
  }

  .header.is-scrolled {
    --header-h: 66px;
  }

  .brand img,
  .header.is-scrolled .brand img {
    height: 46px;
  }

  .header__actions .btn {
    display: none;
  }

  .nowrap {
    white-space: normal;
  }

  .hero__ctas .btn {
    flex: 1 1 100%;
  }

  .hero__badge {
    bottom: 6%;
    font-size: 0.88rem;
  }

  .card {
    padding: 32px 24px 26px;
  }

  .map,
  .map iframe {
    min-height: 340px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }
}


/* ---------- Hero intro (plays once on load) ----------
   1. the text rises in line by line, and the gold marker sweeps under the last word
   2. the hexagons draw themselves
   3. a gold line traces the shield, then the emblem rises inside it
   4. the sparkles pop and the address badge slides in
   With reduced motion nothing animates and everything is simply shown. */
.hero__text > * {
  animation: riseIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero__text > :nth-child(2) { animation-delay: 0.12s; }
.hero__text > :nth-child(3) { animation-delay: 0.26s; }
.hero__text > :nth-child(4) { animation-delay: 0.4s; }
.hero__text > :nth-child(5) { animation-delay: 0.54s; }

.mark {
  background-repeat: no-repeat;
  background-position: right;
  background-size: 100% 100%;
  animation: markIn 0.7s 0.95s ease-out both;
}

[dir='ltr'] .mark {
  background-position: left;
}

.hero__hex polygon {
  stroke-dasharray: 1;
  animation: draw 2.4s ease-out both;
}

.hero__hex polygon:nth-child(2) { animation-delay: 0.15s; }
.hero__hex polygon:nth-child(3) { animation-delay: 0.3s; }
.hero__hex polygon:nth-child(4) { animation-delay: 0.45s; }
.hero__hex polygon:nth-child(5) { animation-delay: 0.6s; }

.emblem__outline {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: var(--gold-deep);
  stroke-width: 14;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  opacity: 0;
  pointer-events: none;
  animation: outline 2s 0.2s ease-in-out both;
}

.emblem img {
  animation: emblemRise 1.2s 1.05s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.spark {
  animation: sparkIn 0.6s cubic-bezier(0.3, 1.6, 0.5, 1) both, twinkle 4.5s ease-in-out infinite;
}

.spark--a { animation-delay: 2s, 2.7s; }
.spark--b { animation-delay: 2.2s, 4.3s; }

.hero__badge {
  animation: riseIn 0.7s 2.3s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(26px); }
}

@keyframes markIn {
  from { background-size: 0% 100%; }
}

@keyframes draw {
  from { stroke-dashoffset: 1; }
}

@keyframes outline {
  0% { stroke-dashoffset: 1; opacity: 1; }
  55% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

@keyframes emblemRise {
  from { clip-path: inset(100% 0 0 0); transform: translateY(20px); }
  to { clip-path: inset(0); transform: none; }
}

@keyframes sparkIn {
  from { opacity: 0; transform: scale(0) rotate(-90deg); }
}

/* ---------- Emblem at rest: a clear, steady sway ----------
   It bobs and turns from side to side every few seconds and the shine passes more often.
   The sway pauses while the pointer is tilting the emblem. */
.shield-wrap {
  animation: idleSway 3.4s ease-in-out infinite alternate;
}

.shield-wrap:has(.emblem.is-active) {
  animation-play-state: paused;
}

.emblem__shine {
  animation-duration: 3.2s;
}

@keyframes idleSway {
  from { transform: perspective(900px) translateY(6px) rotateY(-11deg) rotate(-1.5deg); }
  to { transform: perspective(900px) translateY(-16px) rotateY(11deg) rotate(1.5deg); }
}

/* ---------- Footer: commercial registration ---------- */
.footer__grid {
  grid-template-columns: 0.9fr 0.6fr 0.9fr 1.4fr;
}

.cr {
  display: grid;
  gap: 12px;
}

.cr__card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(221, 197, 122, 0.55);
  border-radius: 16px;
  background: var(--paper);
  color: var(--navy);
  line-height: 1.5;
}

.cr__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 50px;
  height: 63px;
  padding-bottom: 10px;
  clip-path: var(--shield);
  background: linear-gradient(160deg, var(--gold-light), var(--gold) 55%, var(--gold-deep));
  color: var(--navy-900);
}

.cr__icon svg {
  width: 22px;
  height: 22px;
}

.cr__label,
.cr__sub {
  display: block;
  color: var(--c-muted);
  font-size: 0.85rem;
}

.cr__value {
  display: block;
  font-family: var(--font-num);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.cr__name {
  display: block;
  font-size: 1.02rem;
  font-weight: 700;
}

.cr__sub .ltr,
.cr__sub.ltr {
  font-family: var(--font-num);
}

.cr__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-bottom: -10px;
  color: var(--gold-ink);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.cr__link:hover span {
  text-decoration: underline;
}

.cr__link svg {
  width: 15px;
  height: 15px;
}

@media (max-width: 1100px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .footer__verify {
    grid-column: 1 / -1;
  }

  .cr {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .cr {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

.cr__name + .cr__sub {
  margin-top: 2px;
}

/* Registration cards: navy tiles with gold marks (the palm and swords on the first, a building on the second). */
.cr__icon--tile {
  width: 60px;
  height: 60px;
  padding: 0;
  border-radius: 14px;
  clip-path: none;
  background: linear-gradient(160deg, var(--navy), var(--navy-900));
  box-shadow: inset 0 0 0 1px rgba(221, 197, 122, 0.45);
  color: var(--gold);
}

.cr__icon--tile img {
  width: auto;
  height: 42px;
}

.cr__icon--tile svg {
  width: 28px;
  height: 28px;
}
