/**
 * Also declared in theme.json's settings.typography.fontFamilies (which
 * covers the block editor and WordPress's own global-styles stylesheet) —
 * repeated here so the front end never depends on that mechanism alone.
 * Harmless duplication: browsers just use whichever rule resolves first.
 */
@font-face {
  font-family: "Setir Paghoni";
  src: url("../fonts/SetirPaghoni.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   Base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ama-color-bg);
  color: var(--ama-color-graphite-1);
  font-family: var(--ama-font-body);
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: var(--ama-color-ink);
  text-decoration: none;
}

a:hover {
  color: var(--ama-color-gold);
}

input,
textarea,
button {
  font-family: inherit;
}

::placeholder {
  color: #9a9282;
}

:focus-visible {
  outline: 2px solid var(--ama-color-gold);
  outline-offset: 2px;
}

.ama-skip-link {
  position: absolute;
  top: 0;
  left: -9999px;
  z-index: 1000;
  padding: 12px 20px;
  background: var(--ama-color-ink);
  color: var(--ama-color-bg);
}

.ama-skip-link:focus {
  top: 12px;
  left: 12px;
}

.no-wrap {
  white-space: nowrap;
}

/* ==========================================================================
   Shared text-link style — phone/email links, in-copy links.
   Not used for CTA buttons, submit buttons, logos, decorative SVG, or the
   arrow-style "Vaata kaardil" map link, which keep their own treatments.
   ========================================================================== */

.text-link {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: currentColor;
  transition:
    color 220ms ease,
    text-decoration-color 220ms ease;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--ama-color-gold);
  text-decoration-color: var(--ama-color-gold);
}

/* ==========================================================================
   Shared button — hero CTA, enquiry submit, header CTA all share this base;
   only the light/dark colorway differs (matches the approved design, where
   both buttons use identical padding/radius/hover motion).
   ========================================================================== */

.ama-btn {
  display: inline-block;
  padding: 16px 28px;
  border: 2px solid transparent;
  border-radius: 2px;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color 250ms ease,
    border-color 250ms ease,
    color 250ms ease,
    transform 250ms ease;
  text-decoration: none;
}

.ama-btn:hover,
.ama-btn:focus-visible {
  background-color: var(--ama-color-gold);
  border-color: var(--ama-color-gold);
  color: var(--ama-color-ink);
  transform: translateY(-1px);
}

.ama-btn--light {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--ama-color-ink);
}

.ama-btn--dark {
  background: var(--ama-color-ink);
  border-color: var(--ama-color-ink);
  color: var(--ama-color-bg);
}

.ama-btn--gold {
  background: var(--ama-color-gold);
  border-color: var(--ama-color-gold);
  color: var(--ama-color-ink);
}

/* ==========================================================================
   Shared section kicker/label — no vertical rule, identical everywhere.
   ========================================================================== */

.kicker {
  margin: 0 0 20px;
  color: var(--ama-color-gold);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.kicker--on-dark {
  margin-bottom: 24px;
}

.kicker--center {
  margin-bottom: 16px;
  text-align: center;
}

/* ==========================================================================
   Shared section-title — used by ama/text, ama/text-media, ama/location's
   lede paragraph, and ama/enquiry's heading, so they read as equally weighted.
   ========================================================================== */

.section-title {
  margin: 0 0 32px;
  color: var(--ama-color-ink);
  font-family: var(--ama-font-heading);
  font-size: var(--ama-section-title-size);
  font-weight: 400;
  line-height: var(--ama-section-title-line-height);
}

.section-title--on-dark {
  color: var(--ama-color-on-dark);
}

/* ==========================================================================
   Scroll reveal (text) + directional photo reveal — shared by every block
   that fades/slides in on scroll. See theme/js/theme.js for the observer.
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 650ms cubic-bezier(0.2, 0.7, 0.3, 1),
    transform 650ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

.reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.image-reveal {
  overflow: hidden;
}

.image-reveal img,
.image-reveal video {
  opacity: 0;
  transition:
    opacity 650ms cubic-bezier(0.2, 0.7, 0.3, 1),
    transform 650ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

.image-reveal--left img,
.image-reveal--left video {
  transform: translateX(-48px);
}

.image-reveal--right img,
.image-reveal--right video {
  transform: translateX(48px);
}

.image-reveal.is-revealed img,
.image-reveal.is-revealed video {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 767px) {
  .image-reveal--left img,
  .image-reveal--left video {
    transform: translateX(-24px);
  }

  .image-reveal--right img,
  .image-reveal--right video {
    transform: translateX(24px);
  }
}

@keyframes ama-img-zoom {
  from {
    transform: scale(1.025);
  }

  to {
    transform: scale(1);
  }
}

@keyframes ama-fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .image-reveal img,
  .image-reveal video {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Header — transparent overlay, no reserved height, matching the approved
   design's hero-first composition. Only a hamburger + language switcher
   float over the first block; the primary menu lives in an offcanvas panel.
   ========================================================================== */

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding:
    clamp(16px, 3vh, 28px)
    clamp(20px, 4vw, 40px);
  pointer-events: none;
}

.site-header__logo {
  display: none;
  width: auto;
  height: clamp(28px, 5vh, 40px);
  pointer-events: auto;
}

body.has-header-logo .site-header__logo {
  display: block;
}

.site-header__controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
  pointer-events: auto;
}

.site-header__lang {
  display: flex;
  gap: 10px;
  color: #ffffff;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-header__lang a {
  color: rgba(255, 255, 255, 0.7);
}

.site-header__lang a:hover,
.site-header__lang a[aria-current="true"] {
  color: #ffffff;
}

.site-header__menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  padding: 8px 0;
  border: 0;
  background: none;
  cursor: pointer;
  pointer-events: auto;
}

.site-header__menu-toggle span {
  display: block;
  height: 2px;
  background: #ffffff;
  transition:
    transform 220ms ease,
    opacity 220ms ease;
}

.site-header__menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header__menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.site-header__menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-offcanvas {
  position: fixed;
  inset: 0;
  z-index: 100;
  visibility: hidden;
}

.site-offcanvas[data-open="true"] {
  visibility: visible;
}

.site-offcanvas__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 16, 12, 0.5);
  opacity: 0;
  transition: opacity 250ms ease;
}

.site-offcanvas[data-open="true"] .site-offcanvas__backdrop {
  opacity: 1;
}

.site-offcanvas__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: min(360px, 86vw);
  padding: clamp(24px, 5vh, 48px) 32px;
  overflow-y: auto;
  background: var(--ama-color-ink);
  color: var(--ama-color-on-dark);
  transform: translateX(100%);
  transition: transform 300ms ease;
}

.site-offcanvas[data-open="true"] .site-offcanvas__panel {
  transform: translateX(0);
}

.site-offcanvas__close {
  align-self: flex-end;
  border: 0;
  background: none;
  color: var(--ama-color-on-dark);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.site-offcanvas__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-offcanvas__nav a {
  display: block;
  padding: 10px 0;
  color: var(--ama-color-on-dark);
  font-family: var(--ama-font-heading);
  font-size: 22px;
}

.site-offcanvas__nav a:hover,
.site-offcanvas__nav a:focus-visible {
  color: var(--ama-color-gold);
}

.site-offcanvas__cta {
  align-self: flex-start;
}

@media (prefers-reduced-motion: reduce) {
  .site-offcanvas__panel {
    transition: none;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--ama-color-rule);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 48px;
}

.site-footer__logo {
  width: clamp(170px, 16vw, 220px);
  height: auto;
}

.site-footer__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.site-footer__address {
  margin: 0;
  color: #6b6455;
  font-size: 14px;
  line-height: 1.55;
  text-align: right;
}

.site-footer__privacy {
  font-size: 14px;
  line-height: 1.55;
  text-align: right;
}

.site-footer__privacy a {
  color: #6b6455;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: currentColor;
  transition:
    color 180ms ease,
    text-decoration-color 180ms ease;
}

.site-footer__privacy a:hover,
.site-footer__privacy a:focus-visible {
  color: var(--ama-color-gold);
  text-decoration-color: var(--ama-color-gold);
}

.site-footer__legal ul {
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.55;
}

.site-footer__legal a {
  color: #6b6455;
  text-decoration: none;
  transition: color 180ms ease;
}

.site-footer__legal a:hover,
.site-footer__legal a:focus-visible {
  color: var(--ama-color-gold);
}

@media (max-width: 767px) {
  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 36px 24px;
  }

  .site-footer__meta {
    align-items: flex-start;
    gap: 8px;
  }

  .site-footer__address,
  .site-footer__privacy,
  .site-footer__legal {
    font-size: 16px;
    line-height: 1.55;
    text-align: left;
  }
}

/* ==========================================================================
   Privacy modal — global because it can be opened from the form and footer.
   ========================================================================== */

.ama-privacy-modal {
  display: none;
}

.ama-privacy-modal__inner {
  width: 760px;
  max-width: 100%;
  max-height: calc(100vh - 96px);
  max-height: calc(100dvh - 96px);
  padding: 48px 52px 50px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #ffffff;
  color: var(--ama-color-graphite-1);
  -webkit-overflow-scrolling: touch;
}

.ama-privacy-modal__title {
  margin: 0 0 30px;
  color: var(--ama-color-green);
  font-family: var(--ama-font-heading);
  font-size: clamp(42px, 4vw, 56px);
  font-weight: 400;
  line-height: 1.05;
}

.ama-privacy-modal__content {
  font-size: 15px;
  line-height: 1.7;
}

.ama-privacy-modal__content > :first-child {
  margin-top: 0;
}

.ama-privacy-modal__content > :last-child {
  margin-bottom: 0;
}

.ama-privacy-modal__content p {
  margin: 0 0 16px;
}

.ama-privacy-modal__content ul,
.ama-privacy-modal__content ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

.ama-privacy-modal__content li + li {
  margin-top: 4px;
}

.ama-privacy-modal__content a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: currentColor;
}

.ama-privacy-modal__content a:hover,
.ama-privacy-modal__content a:focus-visible {
  color: var(--ama-color-gold);
  text-decoration-color: var(--ama-color-gold);
}

/* ARI Fancy Lightbox container for inline HTML content. */
.fancybox-slide--html {
  padding: 48px;
}

.fancybox-slide--html .fancybox-content {
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
}

/* Keep only the default ARI Fancy Lightbox close control. */
.fancybox-slide--html .fancybox-close-small {
  display: none;
}

@media (max-width: 767px) {
  .fancybox-slide--html {
    padding: 12px !important;
  }

  .fancybox-slide--html .fancybox-content {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }

  .ama-privacy-modal__inner {
    width: 100%;
    max-width: none;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    padding: 34px 24px 36px;
  }

  .ama-privacy-modal__title {
    margin-bottom: 22px;
    font-size: 32px;
  }

  .ama-privacy-modal__content {
    font-size: 14px;
  }
}

/* Temporary burger menu hiding */
.site-header__menu-toggle {
  display: none !important;
}