/* =========================
   Global / Base
   ========================= */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { overflow-x: hidden; }

/* default background for all pages */
body {
  margin: 0;
  font-family: 'Georgia', serif;
  background-color: var(--beige);
  background-image: url("images/quatrefoil-clover.svg");
  background-repeat: repeat;
  background-size: 150px 150px;
  color: #001122;
  font-size: 18px;
  line-height: 1.5;
}

/* override backgrounds when body has extra classes */
body.clover {
  background-image: url("images/quatrefoil-clover.svg");
}

body.waves {
  background-image: url("images/guilloche-waves.svg");
}

body.artdeco {
  background-image: url("images/artdeco-scallop.svg");
}

body.embroid {
  background-image: url("images/embroidered-lattice.svg");
}

/* Global background */
:root{
  --beige: #f8f3ea;
}

a { color: #997700; text-decoration: none; }
a:hover { color: #BB9922; }

/* Prevent giant images by default */
img {
  max-width: 100%;
  height: auto;
  display: inline-block;
  vertical-align: middle;
}

/* =========================
   Header
   ========================= */
.site-header {
  background-color: #001122;
  color: #997700;
  padding: 20px 10px;
  text-align: center;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: center;
}

.logo { height: 230px; width: auto; }
.logo-small { height: 120px; width: auto; }

.title-block { text-align: center; }

.site-header h1 {
  margin: 5px 0;
  font-size: 36px;
  color: #F4F6F8;
}
.site-header h2 {
  margin: 0 0 8px;
  font-size: 20px;
  color: #D9E1E7;
}

.language-block {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.lang-icon { width: 36px; height: 36px; }

/* Locations scrolling text box (325px desktop, full width mobile, gold border) */
.locations-scroll-box {
  width: 325px;
  max-width: 100%;
  margin: 6px auto;
  padding: 6px 0;
  border: 1px solid #997700;
  border-radius: 4px;
  overflow: hidden;
  display: inline-block;
  vertical-align: middle;
}
@media (max-width: 768px) {
  .locations-scroll-box { width: 100%; }
}
.locations-scroll-inner {
  display: inline-flex;
  white-space: nowrap;
  animation: locations-scroll 25s linear infinite;
}
.locations-scroll-inner .locations-text {
  padding: 0 12px;
  flex-shrink: 0;
}
@keyframes locations-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .locations-scroll-inner { animation: none; }
}

/* =========================
   Full-bleed bars (Hero & CTA)
   ========================= */
/* Generic full-bleed strip (used for hero and any other banner/CTA bars) */
.fullstrip {
  position: relative;
  left: 50%;
  transform: translateX(-50%);   /* break out of any parent padding/width */
  width: 100vw;                   /* span full viewport width */
  background-color: #001122;
  color: #ffffff;
  text-align: center;
  padding: 80px 20px;             /* desktop spacing */
  margin: 0;
  border-top: 4px solid #ffffff;
  border-bottom: 4px solid #ffffff;
}
.fullstrip h1, .fullstrip h2, .fullstrip p { margin: 0.5em 0; }

/* Inner constraint box for text inside fullstrip (CTA, etc.) */
.cta-box {
  max-width: 700px;  /* desktop cap */
  width: 100%;       /* fluid on small screens */
  margin: 0 auto;
  padding: 0 16px;   /* edge protection on tiny phones */
}

/* HERO variant: includes the mountain background */
.fullstrip.hero {
  background-image: url('images/mountain.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Desktop hero text layout: side-by-side words */
.hero-text {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
  justify-content: center;
}
.hero-word {
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.1;
  font-weight: 700;
  white-space: nowrap;
  text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

/* Mobile hero: fixed height 300px; center content; stack words */
@media (max-width: 900px) {
  .fullstrip.hero {
    height: 300px;               /* fixed mobile height */
    padding: 0 20px;             /* remove big vertical padding */
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .hero-text {
    flex-direction: column;      /* stacked words */
    gap: 8px;
  }
  .hero-word {
    white-space: normal;
    text-align: center;
  }
}

/* =========================
   Alternating Sections
   ========================= */
.maincontainer {
  display: flex;
  flex-wrap: wrap;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0px;
  gap: 0;
  border: 1px solid #d4af37;
}
.xcell1, .xcell2 {
  flex: 1 1 0;
  padding: 30px;
  box-sizing: border-box;
}

/* Width balance for desktop */
.widecell  { width: 65%; max-width: 65%; }
.narrowcell{ width: 35%; max-width: 35%; }
/* 50/50 row (e.g. About Maha Vajra) */
.maincontainer.half-half .xcell1,
.maincontainer.half-half .xcell2 { width: 50%; max-width: 50%; }

/* Image-only cells → white background.
   LEFT image cells align right so the image sits closer to the text.
   RIGHT image cells align left (default). */
.image-cell       { background: #ffffff; text-align: right; }
.image-cell-right { background: #ffffff; text-align: right; }
.image-cell-left  { background: #ffffff; text-align: left; }

/* Text cells use a paler grey for readability */
.xcell2 { background-color: #f7f3eb; }

/* =========================
   Image helpers
   ========================= */
.h400 { max-height: 400px; width: auto; }
.h300 { max-height: 300px; width: auto; }

/* =========================
   Footer
   ========================= */
.site-footer {
  background-color: #001122;
  color: #997700;
  text-align: center;
  padding: 20px;
}
.social-links { margin-top: 10px; }
.social-links a { margin: 0 8px; }
.social-icon {
  width: 28px; height: 28px;
  opacity: 0.85;
  transition: opacity 0.3s, transform 0.3s;
}
.social-icon:hover { opacity: 1; transform: scale(1.08); }

/* =========================
   Responsive
   ========================= */
@media (max-width: 900px) {
  .maincontainer { flex-direction: column; padding: 14px; }
  .widecell, .narrowcell { width: 100%; max-width: 100%; }
  .maincontainer.half-half .xcell1,
  .maincontainer.half-half .xcell2 { width: 100%; max-width: 100%; }

  .image-cell, .image-cell-right, .image-cell-left { text-align: center; }

  .h400, .h300 {
    max-height: none;
    width: 100%;
    height: auto;
  }
}

/* =========================
   Animation (fade-in + slide-in, retriggered)
   ========================= */
.img-reveal {
  opacity: 0;
  transform: translateX(100px);
  transition: opacity 1.5s ease, transform 1.5s ease;
  will-change: opacity, transform;
}
.img-reveal.in-view {
  opacity: 1;
  transform: translateX(0);
}
@media (prefers-reduced-motion: reduce) {
  .img-reveal { transition: none; transform: none; opacity: 1; }
}
/* Touch devices: don't hide before reveal */
@media (hover: none) and (pointer: coarse) {
  .img-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Crossfade slider (used only for the Retreats block) */
.crossfade-wrap {
  position: relative;
  width: 100%;
  background: #ffffff;         /* keep white bg for image-only cells */
  overflow: hidden;
}

/* Match your .h300 look: 300px tall on desktop, fluid on mobile */
.crossfade-wrap.h300 {
  height: 300px;
}
@media (max-width: 900px) {
  .crossfade-wrap.h300 {
    height: 200px;              /* allow natural height on small screens */
  }
}

/* Match your .h300 look: 300px tall on desktop, fluid on mobile */
/* Crossfade wrapper: fixed height, no overflow */
.crossfade-wrap.h400 {
  position: relative;
  height: 400px;
  overflow: hidden;
}

/* Images: fit by height, auto width, centered */
.crossfade-wrap.h400 > img.cf-img {
  position: absolute;
  inset: 0;           /* top/right/bottom/left: 0 */
  margin: auto;
  height: 100%;
  width: auto;        /* keep aspect ratio */
  max-width: none;    /* override global img { max-width:100% } */
  object-fit: contain;
  display: block;
  opacity: 0;
  transition: opacity 1s ease;
}

.crossfade-wrap.h400 > img.cf-img.active {
  opacity: 1;
}

/* Mobile: 300px tall */
@media (max-width: 900px) {
  .crossfade-wrap.h400 {
    height: 300px;
  }
}

.cf-img.active {
  opacity: 1;
}

/* If you keep this inside an .image-cell-right/.image-cell container */
.image-cell-right .crossfade-wrap,
.image-cell .crossfade-wrap {
  /* inherit alignment/white bg from the cell */
}

/* DESKTOP MENU (visible only on desktop) */
.desktop-menu {
  display: block;
  background-color: #001122;
  color: #ffffff;
  text-align: center;
  font-weight: bold;
  padding: 12px 0;
}
.desktop-menu a {
  color: #ffffff;
  margin: 0 6px;
}
.desktop-menu a:hover {
  color: #BB9922;
}

/* MOBILE HAMBURGER (hidden on desktop) */
.hamburger-container {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 9999;
}
.hamburger {
  width: 40px;
  height: 36px;
  background: #ffffff;
  border-radius: 8px;
  padding: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  cursor: pointer;
}
.hamburger span {
  display: block;
  height: 4px;
  background: #001122;
  border-radius: 2px;
}

/* MOBILE MENU PANEL */
.mobile-menu {
  display: none;
  position: absolute;
  top: 50px;
  right: 0;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  flex-direction: column;
  min-width: 160px;
}
.mobile-menu a {
  display: block;
  padding: 10px 14px;
  color: #001122;
  text-decoration: none;
  border-bottom: 1px solid #eee;
}
.mobile-menu a:hover {
  background-color: #f8f5ef;
}
.mobile-menu hr {
  margin: 4px 0;
  border: none;
  border-top: 1px solid #ccc;
}

/* RESPONSIVE BEHAVIOR */
@media (max-width: 900px) {
  .desktop-menu { display: none; }
  .hamburger-container { display: block; }
}
@media (min-width: 901px) {
  .hamburger-container { display: none; }
}

.medallions-container {
  max-width: 1400px;
  width: 100%;
  margin: 20px auto;
  border: 1px solid #ffffff;
  overflow: hidden;
  background-color: rgba(245, 245, 220, 0.35)
}

.medallions-strip {
  display: flex;
  gap: 10px;
  padding: 10px;
  width: max-content; /* let strip grow to fit duplicated images */
  animation: scroll-medals 60s linear infinite;
}

.medallions-strip img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  flex-shrink: 0;
}

@keyframes scroll-medals {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 900px) {
  .medallions-container { max-width: 100%; }
}

.medallions-link { display: block; text-decoration: none; }
.medallions-link:focus { outline: 2px solid #BB9922; outline-offset: 2px; }

.video-embed {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;   /* keeps it cropped nicely if container ratio differs */
}

/* "Copied" mini-popup when copying email to clipboard */
.copy-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  padding: 10px 20px;
  background: #001122;
  color: #fff;
  font-size: 15px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.copy-toast.copy-toast-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
