/* ==========================================================================
   AVRA Real Estate Developments
   Component styles for the custom Elementor widgets + shared design tokens.
   Values are taken from the Figma frames (desktop 1920, mobile 430).
   ========================================================================== */

:root {
  --avra-black:   #0F0E0D;
  --avra-umbra:   #201F1E;
  --avra-grey:    #5C5B5A;
  --avra-accent:  #A67C4E;
  --avra-sand:    #CFB395;
  --avra-ivory:   #FAF8F4;
  --avra-dust:    #EBE2D6;
  --avra-stone:   #F9F8F7;
  --avra-border:  #CAC9C8;

  --avra-rule:      rgba(92, 91, 90, .2);
  --avra-rule-sand: rgba(207, 179, 149, .3);

  --avra-gutter: 120px;
  --avra-content: 1680px;

  --avra-display: 'Basel Classic', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --avra-body:    'Basel Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

@media (max-width: 1024px) {
  :root { --avra-gutter: 24px; }
}

/* --------------------------------------------------------------------------
   Base / resets
   -------------------------------------------------------------------------- */

.avra-eyebrow {
  font-family: var(--avra-display);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 1.28px;
  text-transform: uppercase;
  color: var(--avra-grey);
  opacity: .8;
  margin: 0;
}
.avra-eyebrow--sand { color: var(--avra-sand); }

.avra-rule { height: 1px; width: 100%; background: var(--avra-rule); border: 0; }
.avra-rule--sand { background: var(--avra-rule-sand); }

/* Defensive reset: Hello Elementor styles bare buttons and they leak into
   custom widget markup. Scoped to our own classes only. */
.avra-btn,
.avra-btn:hover,
.avra-btn:focus,
.avra-btn:active,
button.avra-arrow,
button.avra-arrow:hover,
button.avra-arrow:focus,
button.avra-arrow:active {
  box-shadow: none !important;
  border: 0 !important;
  outline: 0;
}

.avra-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--avra-display);
  font-size: 14px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: .28px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 10px 32px;
  background: #fff;
  color: var(--avra-umbra);
  border-radius: 0;
  transition: background .25s ease, color .25s ease;
}
.avra-btn:hover { background: var(--avra-dust) !important; color: var(--avra-umbra) !important; }
.avra-btn--dark { background: var(--avra-black); color: #fff; font-weight: 500; letter-spacing: 1.12px; padding: 10px 22px; }
.avra-btn--dark:hover { background: var(--avra-umbra) !important; color: #fff !important; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

body .elementor-location-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.avra-header {
  position: relative;
  pointer-events: none;
}
.avra-header > * { pointer-events: auto; }

.avra-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 46px;
  margin-top: 36px;
  padding-inline: var(--avra-gutter);
  position: relative;
}

.avra-header__logo { display: block; flex: 0 0 auto; }
.avra-header__logo svg,
.avra-header__logo img { display: block; width: 129px; height: 46px; }

.avra-header__nav {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, calc(-50% - 1px));
  display: flex;
  align-items: center;
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
  white-space: nowrap;
}
.avra-header__nav a {
  font-family: var(--avra-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: .16px;
  color: #fff;
  text-decoration: none;
  opacity: 1;
  transition: opacity .2s ease;
}
.avra-header__nav a:hover { opacity: .7; color: #fff; }

.avra-header__right {
  display: flex;
  align-items: center;
  gap: 19px;
  margin-top: -1px;
  flex: 0 0 auto;
}
.avra-header__lang {
  display: inline-flex;
  width: 24px;
  height: 24px;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}
.avra-header__lang svg { width: 24px; height: 24px; display: block; }
.avra-header__cta {
  font-family: var(--avra-display);
  font-size: 14px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: .28px;
  text-transform: uppercase;
  color: var(--avra-grey);
  background: #fff;
  padding: 6px 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: background .25s ease;
}
.avra-header__cta:hover { background: var(--avra-dust); color: var(--avra-grey); }

/* Mobile header: logo 107x38 @ 32,32 - language 32px - burger 32px, 32px gutter */
.avra-header__burger { display: none; }

@media (max-width: 1024px) {
  .avra-header__bar { height: 38px; margin-top: 32px; padding-inline: 32px; }
  .avra-header__logo svg,
  .avra-header__logo img { width: 107px; height: 38px; }
  .avra-header__nav { display: none; }
  .avra-header__right { gap: 30px; margin-top: 0; }
  .avra-header__cta { display: none; }
  .avra-header__lang,
  .avra-header__lang svg { width: 32px; height: 32px; }
  .avra-header__burger {
    display: flex;
    flex-direction: column;
    gap: 9px;
    width: 32px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
  }
  .avra-header__burger span {
    display: block;
    height: 2px;
    width: 100%;
    background: #fff;
    transition: transform .3s ease, opacity .3s ease;
  }
  .avra-header.is-open .avra-header__burger span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
  .avra-header.is-open .avra-header__burger span:nth-child(2) { opacity: 0; }
  .avra-header.is-open .avra-header__burger span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }
}

/* Mobile drawer */
.avra-drawer {
  position: fixed;
  inset: 0;
  background: var(--avra-black);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding: 120px 32px 48px;
  transform: translateY(-100%);
  transition: transform .4s cubic-bezier(.4, 0, .2, 1);
  visibility: hidden;
}
.avra-header.is-open ~ .avra-drawer,
.avra-drawer.is-open { transform: translateY(0); visibility: visible; }
.avra-drawer a {
  font-family: var(--avra-display);
  font-size: 32px;
  line-height: 44px;
  color: #fff;
  text-decoration: none;
}
.avra-drawer .avra-btn { align-self: flex-start; margin-top: 24px; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.avra-hero { position: relative; overflow: hidden; }
.avra-hero__media { position: absolute; inset: 0; z-index: 0; }
.avra-hero__media img,
.avra-hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
/* Figma: linear gradient, transparent at y=412 -> #000 @ 60% at y=925 of 1080 */
.avra-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 38.15%, rgba(0, 0, 0, .6) 85.65%);
}
.avra-hero__inner { position: relative; z-index: 2; }

/* --------------------------------------------------------------------------
   Press marquee
   -------------------------------------------------------------------------- */

.avra-marquee {
  width: 100%;
  overflow: hidden;
  --avra-marquee-gap: 120px;
  --avra-marquee-duration: 45s;
  --avra-marquee-sets: 3;
}
.avra-marquee__vp { overflow: hidden; }

/* Driven by a CSS animation rather than JS scrollLeft: the track holds N
   identical sets and translates by exactly one set, so the loop is seamless
   and there is no measurement step that can run before webfonts settle.
   Spacing is margin-right per item, NOT gap - with gap there are N-1 gaps
   across N items and a one-set translate drifts by a gap each cycle. */
.avra-marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  height: 30px;
  will-change: transform;
  animation: avra-marquee-scroll var(--avra-marquee-duration) linear infinite;
}
.avra-marquee__item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  height: 30px;
  margin-right: var(--avra-marquee-gap);
}
.avra-marquee__item svg,
.avra-marquee__item img {
  display: block;
  height: auto;
  max-height: 30px;
  width: auto;
}
.avra-marquee__item svg path { fill: var(--avra-grey); }

@keyframes avra-marquee-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(calc(-100% / var(--avra-marquee-sets)), 0, 0); }
}

.avra-marquee:hover .avra-marquee__track { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .avra-marquee__track { animation: none; }
  .avra-marquee__vp { overflow-x: auto; scrollbar-width: none; }
  .avra-marquee__vp::-webkit-scrollbar { display: none; }
}

@media (max-width: 1024px) {
  .avra-marquee { --avra-marquee-gap: 80px; --avra-marquee-duration: 32s; }
}
/* --------------------------------------------------------------------------
   Shared: carousel arrows
   -------------------------------------------------------------------------- */

.avra-arrows { display: flex; align-items: center; gap: 8px; }
.avra-arrow {
  width: 48px;
  height: 48px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity .2s ease;
}
.avra-arrow svg { display: block; width: 48px; height: 48px; overflow: visible; }
.avra-arrow[disabled] { opacity: .35; cursor: default; }
.avra-arrow:not([disabled]):hover { opacity: .8; }

@media (max-width: 1024px) {
  .avra-arrows { gap: 16px; justify-content: center; width: 100%; }
  .avra-arrow, .avra-arrow svg { width: 44px; height: 44px; }
}

/* Elementor nav-menu inside the AVRA header */
.avra-header__navwrap {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, calc(-50% - 1px));
  width: auto !important;
  max-width: none;
}
.avra-header__navwrap .elementor-nav-menu--main .elementor-item {
  padding: 0;
}
.avra-header__navwrap .elementor-nav-menu--main > ul { flex-wrap: nowrap; }

/* Burger: Figma draws three 32x2 bars with 9px gaps. Repaint Elementor's glyph. */
.avra-header__navwrap .elementor-menu-toggle {
  background: none !important;
  border: 0 !important;
  padding: 0;
  width: 32px;
  height: 24px;
  position: relative;
}
.avra-header__navwrap .elementor-menu-toggle i,
.avra-header__navwrap .elementor-menu-toggle svg { display: none !important; }
.avra-header__navwrap .elementor-menu-toggle::before,
.avra-header__navwrap .elementor-menu-toggle::after,
.avra-header__navwrap .elementor-menu-toggle span.avra-bar {
  content: '';
  position: absolute;
  left: 0;
  width: 32px;
  height: 2px;
  background: #fff;
  transition: transform .3s ease, opacity .3s ease;
}
.avra-header__navwrap .elementor-menu-toggle::before { top: 0; }
.avra-header__navwrap .elementor-menu-toggle::after { bottom: 0; }
.avra-header__navwrap .elementor-menu-toggle .elementor-screen-only { display: none; }
.avra-header__navwrap .elementor-menu-toggle .e-font-icon-svg { display: none !important; }

/* middle bar */
.avra-header__navwrap .elementor-menu-toggle::first-line { line-height: 0; }
.avra-header__navwrap .elementor-menu-toggle {
  background-image: linear-gradient(#fff, #fff) !important;
  background-size: 32px 2px !important;
  background-position: 0 11px !important;
  background-repeat: no-repeat !important;
}
.avra-header__navwrap .elementor-menu-toggle.elementor-active { background-image: none !important; }
.avra-header__navwrap .elementor-menu-toggle.elementor-active::before { top: 11px; transform: rotate(45deg); }
.avra-header__navwrap .elementor-menu-toggle.elementor-active::after { bottom: 11px; transform: rotate(-45deg); }

/* Dropdown panel */
.avra-header__navwrap .elementor-nav-menu--dropdown {
  background-color: var(--avra-black) !important;
}
.avra-header__navwrap .elementor-nav-menu--dropdown a {
  font-family: var(--avra-display);
  font-size: 20px;
  line-height: 32px;
  color: #fff !important;
  padding: 14px 32px;
}

@media (max-width: 1024px) {
  .avra-header__navwrap { position: static; transform: none; order: 3; }
}
/* baseline reset */
.avra-header__logo,
.avra-header__logo .elementor-widget-container,
.avra-header__lang,
.avra-header__lang .elementor-widget-container { line-height: 0; font-size: 0; }
.avra-header__logo img,
.avra-header__lang img,
.avra-header__lang svg { display: block; }
.avra-header__right { align-items: center; }

/* ultrawide */
/* The design is drawn at 1920 with a 1680 content band. Past that the gutter
   grows so the band stays centred - fixed-width columns would otherwise sit
   left with a large gap on the right. Backgrounds stay full-bleed. */
@media (min-width: 1921px) {
  :root { --avra-gutter: calc((100vw - 1680px) / 2); }
  body .avra-wrap { --padding-left: var(--avra-gutter) !important; --padding-right: var(--avra-gutter) !important; }
  .avra-pgallery__track { padding-inline: calc((100vw - 816px) / 2); }
}
