/* ── BRAND VARIABLES ──────────────────────────────────────────────────────── */
:root {
  --esm-bg:           #FAF8F5;
  --esm-surface:      #F2EDE6;
  --esm-deep:         #EAE3D9;
  --esm-text:         #1C1A17;
  --esm-text-muted:   #8A857D;
  --esm-text-faint:   #C0BAB1;
  --esm-border:       #E2DDD6;
  --esm-accent:       #C4622D;
  --esm-accent-dark:  #A34F23;
  --esm-accent-light: #F5DDD1;

  /* Layout */
  --esm-nav-height: 68px;
  --esm-max-width:  1400px;
  --esm-gutter:     48px;

  /* Typography */
  --esm-font-display: 'Fraunces', serif;
  --esm-font-body:    'DM Sans', sans-serif;
}

/* ── BASE ─────────────────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  background: var(--esm-bg);
  color: var(--esm-text);
  font-family: var(--esm-font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Grain texture overlay */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 1;
}

/* Push body down when nav is fixed */
body:not(.esm-canvas) {
  padding-top: var(--esm-nav-height);
}

/* ── ANIMATIONS ───────────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes travelPulse {
  0%   { stroke-dashoffset: 100; opacity: 0; }
  6%   { opacity: 0.9; }
  94%  { opacity: 0.9; }
  100% { stroke-dashoffset: 0;   opacity: 0; }
}

/* Utility animation classes — apply to any Elementor element via CSS class field */
.esm-fade-up   { animation: fadeUp 0.9s cubic-bezier(0.16,1,0.3,1) 0.1s  both; }
.esm-fade-up-2 { animation: fadeUp 0.9s cubic-bezier(0.16,1,0.3,1) 0.25s both; }
.esm-fade-up-3 { animation: fadeUp 0.9s cubic-bezier(0.16,1,0.3,1) 0.4s  both; }
.esm-fade-up-4 { animation: fadeUp 0.9s cubic-bezier(0.16,1,0.3,1) 0.55s both; }
.esm-fade-in   { animation: fadeIn 1.2s ease 0.6s both; }

/* ── NAV ──────────────────────────────────────────────────────────────────── */
#esm-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
}
#esm-nav.scrolled {
  background: rgba(250,248,245,0.92);
  border-color: var(--esm-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-inner {
  max-width: var(--esm-max-width); margin: 0 auto; padding: 0 var(--esm-gutter);
  height: var(--esm-nav-height); display: flex; align-items: center; justify-content: space-between;
}

/* Logo */
.nav-logo {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  flex-shrink: 0;
}
.nav-logo .custom-logo { height: 36px; width: auto; display: block; }
.nav-logo-mark {
  width: 28px; height: 28px; background: var(--esm-accent); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.nav-logo-name {
  font-family: var(--esm-font-display); font-weight: 700; font-size: 17px;
  color: var(--esm-text); letter-spacing: -0.3px;
}

/* Desktop links */
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-link {
  font-family: var(--esm-font-body); font-size: 13px; font-weight: 500;
  color: var(--esm-text-muted); text-decoration: none; transition: color 0.2s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--esm-text); }
.nav-cta {
  background: var(--esm-text); color: var(--esm-bg);
  font-family: var(--esm-font-body); font-weight: 600; font-size: 13px;
  padding: 9px 22px; border-radius: 100px; text-decoration: none;
  transition: background 0.2s; white-space: nowrap;
}
.nav-cta:hover { background: var(--esm-accent); color: #fff; }

/* Hamburger */
.nav-hamburger {
  display: none; flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 40px; height: 40px; padding: 6px;
  background: none; border: none; cursor: pointer;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--esm-text); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav-mobile {
  display: none;
  flex-direction: column; gap: 4px;
  padding: 16px var(--esm-gutter) 24px;
  background: rgba(250,248,245,0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--esm-border);
}
.nav-mobile.open { display: flex; }
.nav-mobile .nav-link {
  font-size: 15px; padding: 10px 0; border-bottom: 1px solid var(--esm-border);
}
.nav-mobile .nav-cta {
  margin-top: 12px; text-align: center; display: block; padding: 12px 22px;
}

/* ── FOOTER ───────────────────────────────────────────────────────────────── */
#esm-footer {
  background: var(--esm-text); border-top: 1px solid rgba(250,248,245,0.07);
  padding: 36px var(--esm-gutter);
}
.footer-inner {
  max-width: var(--esm-max-width); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
}
.footer-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.footer-logo .custom-logo { height: 28px; width: auto; filter: brightness(0) invert(1); }
.footer-logo-name {
  font-family: var(--esm-font-display); font-weight: 700;
  font-size: 15px; color: var(--esm-bg);
}
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-link {
  font-family: var(--esm-font-body); font-size: 13px;
  color: rgba(250,248,245,0.35); text-decoration: none; transition: color 0.2s;
}
.footer-link:hover { color: var(--esm-bg); }
.footer-copy {
  font-family: var(--esm-font-body); font-size: 12px;
  color: rgba(250,248,245,0.2);
}

/* ── SHARED BUTTONS ───────────────────────────────────────────────────────── */
.btn-primary {
  background: var(--esm-accent); color: #fff;
  font-family: var(--esm-font-body); font-weight: 600; font-size: 14px;
  padding: 15px 34px; border-radius: 100px; text-decoration: none;
  transition: background 0.2s, transform 0.2s cubic-bezier(0.16,1,0.3,1);
  display: inline-block;
}
.btn-primary:hover { background: var(--esm-accent-dark); transform: translateY(-2px); }
.btn-primary:active { transform: scale(0.98); }

.btn-ghost {
  font-family: var(--esm-font-body); font-weight: 500; font-size: 14px;
  color: var(--esm-text-muted); text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px; transition: color 0.2s;
}
.btn-ghost:hover { color: var(--esm-text); }

/* ── SHARED SECTION LABELS & HEADINGS ────────────────────────────────────── */
/* Use these class names in Elementor's "CSS Class" field for consistent styling */
.esm-section-label {
  display: flex; align-items: center; gap: 12px; margin-bottom: 56px;
}
.esm-section-label-line { width: 28px; height: 1px; background: var(--esm-accent); flex-shrink: 0; }
.esm-section-label-text {
  font-family: var(--esm-font-body); font-size: 11px; font-weight: 600;
  color: var(--esm-accent); letter-spacing: 0.14em; text-transform: uppercase;
}

.esm-h2 {
  font-family: var(--esm-font-display); font-weight: 700;
  font-size: clamp(36px, 4vw, 56px); color: var(--esm-text);
  letter-spacing: -1px; line-height: 1.05;
}
.esm-h2 em, .esm-h2 .esm-italic {
  font-style: italic; color: var(--esm-accent);
}

.esm-body-text {
  font-family: var(--esm-font-body); font-size: 16px;
  color: var(--esm-text-muted); line-height: 1.8;
}

/* Marquee (reusable) */
.esm-marquee-strip {
  background: var(--esm-accent); overflow: hidden; padding: 13px 0;
}
.esm-marquee-track {
  display: flex; gap: 48px; white-space: nowrap;
  animation: marqueeScroll 22s linear infinite;
  will-change: transform;
}
.esm-marquee-item {
  font-family: var(--esm-font-body); font-weight: 600; font-size: 12px;
  color: rgba(255,255,255,0.9); letter-spacing: 0.1em; text-transform: uppercase;
  display: flex; align-items: center; gap: 48px; flex-shrink: 0;
}

/* ── CONTAINER HELPERS ────────────────────────────────────────────────────── */
.esm-container {
  max-width: var(--esm-max-width); margin: 0 auto; padding: 0 var(--esm-gutter);
}
.esm-container--narrow {
  max-width: 800px;
}

/* ── BLOG / POST STYLES (for non-Elementor pages) ────────────────────────── */
.esm-blog-archive { padding: 72px 0; }

.esm-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 40px; margin-bottom: 60px;
}

.esm-post-card {
  background: var(--esm-surface); border: 1px solid var(--esm-border);
  border-radius: 20px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow 0.3s;
}
.esm-post-card:hover { box-shadow: 0 12px 40px -8px rgba(28,26,23,0.1); }

.esm-post-thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

.esm-post-body { padding: 28px 32px 32px; flex: 1; display: flex; flex-direction: column; }

.esm-post-meta {
  font-family: var(--esm-font-body); font-size: 11px; font-weight: 600;
  color: var(--esm-text-faint); letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 12px;
}

.esm-post-title { margin-bottom: 12px; }
.esm-post-title a {
  font-family: var(--esm-font-display); font-weight: 700;
  font-size: 22px; color: var(--esm-text); letter-spacing: -0.3px; line-height: 1.2;
  text-decoration: none; transition: color 0.2s;
}
.esm-post-title a:hover { color: var(--esm-accent); }

.esm-post-excerpt {
  font-family: var(--esm-font-body); font-size: 14px;
  color: var(--esm-text-muted); line-height: 1.75;
  flex: 1; margin-bottom: 24px;
}

.esm-post-read-more {
  font-family: var(--esm-font-body); font-size: 13px; font-weight: 600;
  color: var(--esm-accent); text-decoration: none;
  transition: gap 0.2s; display: inline-flex; align-items: center; gap: 4px;
  margin-top: auto;
}
.esm-post-read-more:hover { gap: 8px; }

/* Pagination */
.nav-links { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.page-numbers {
  font-family: var(--esm-font-body); font-size: 14px; font-weight: 500;
  color: var(--esm-text-muted); padding: 8px 14px; border-radius: 8px;
  text-decoration: none; transition: background 0.2s, color 0.2s;
}
.page-numbers:hover, .page-numbers.current {
  background: var(--esm-accent); color: #fff;
}

/* Single post */
.esm-single { padding: 60px 0; }
.esm-single-header { margin-bottom: 48px; }
.esm-single-title {
  font-family: var(--esm-font-display); font-weight: 900;
  font-size: clamp(32px, 5vw, 60px); color: var(--esm-text);
  letter-spacing: -1.5px; line-height: 1.05; margin: 16px 0 28px;
}
.esm-single-thumb { border-radius: 20px; overflow: hidden; margin-top: 32px; }
.esm-single-content {
  font-family: var(--esm-font-body); font-size: 17px; color: var(--esm-text);
  line-height: 1.85;
}
.esm-single-content h2,
.esm-single-content h3,
.esm-single-content h4 {
  font-family: var(--esm-font-display); font-weight: 700;
  color: var(--esm-text); margin: 2em 0 0.75em; letter-spacing: -0.3px;
}
.esm-single-content h2 { font-size: 32px; }
.esm-single-content h3 { font-size: 24px; }
.esm-single-content p  { margin-bottom: 1.5em; }
.esm-single-content a  { color: var(--esm-accent); text-decoration: underline; }
.esm-single-content blockquote {
  border-left: 3px solid var(--esm-accent); margin: 2em 0;
  padding: 20px 28px; background: var(--esm-surface);
  font-style: italic; color: var(--esm-text-muted);
}
.esm-single-footer { margin-top: 60px; padding-top: 40px; border-top: 1px solid var(--esm-border); }
.esm-post-tags { font-size: 13px; color: var(--esm-text-muted); margin-bottom: 24px; }
.esm-post-tags a { color: var(--esm-accent); }
.esm-post-nav {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.esm-post-nav a {
  font-family: var(--esm-font-body); font-size: 14px; font-weight: 600;
  color: var(--esm-text-muted); text-decoration: none; transition: color 0.2s;
}
.esm-post-nav a:hover { color: var(--esm-accent); }

/* No-posts placeholder */
.esm-no-posts { padding: 80px 0; text-align: center; }
.esm-no-posts h1 {
  font-family: var(--esm-font-display); font-size: 36px;
  font-weight: 700; color: var(--esm-text); margin-bottom: 16px;
}
.esm-no-posts p { color: var(--esm-text-muted); }

/* ── RESPONSIVE ───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --esm-gutter: 32px; }
}

@media (max-width: 768px) {
  :root { --esm-gutter: 24px; }

  .nav-links      { display: none; }
  .nav-hamburger  { display: flex; }

  #esm-footer { padding: 36px var(--esm-gutter); }
  .footer-inner { flex-direction: column; align-items: flex-start; }

  .esm-posts-grid { grid-template-columns: 1fr; }
}
