:root {
  --bg: #faf9f6;
  --text: hsl(222 22% 14%);
  --muted: hsl(222 10% 40%);
  --primary: hsl(42 58% 52%);
  --primary-ink: hsl(222 22% 10%);
  --secondary: hsl(30 18% 96%);
  --border: rgba(0, 0, 0, 0.10);
  --card-border: rgba(0, 0, 0, 0.10);

  --shadow-xs: 0 1px 0 0 rgba(16, 24, 40, 0.04), 0 14px 30px -26px rgba(16, 24, 40, 0.22);
  --shadow-sm: 0 1px 0 0 rgba(16, 24, 40, 0.05), 0 26px 60px -44px rgba(16, 24, 40, 0.22);
  --shadow-elevated: 0 1px 0 0 rgba(16, 24, 40, 0.06), 0 40px 110px -70px rgba(16, 24, 40, 0.30);

  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji",
    "Segoe UI Emoji";
  --font-serif: Fraunces, ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;

  --max: 1120px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
}

a { color: inherit; text-decoration: none; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.page { background: var(--bg); }

/* Landing (first page) */
.lm-landing{ min-height: calc(100vh - 0px); background: var(--bg); }
.lm-landing-shell{ position: relative; min-height: 100vh; display:flex; flex-direction:column; align-items:center; justify-content:center; padding: 28px 20px 80px; gap: 24px; overflow-x: hidden; }
@media (max-width: 860px){
  .lm-landing-shell{ padding-bottom: 160px; }
}
.lm-landing-logo img{ height: 96px; width:auto; display:block; object-fit: contain; }
.lm-landing-title{ margin: 0; font-family: var(--font-serif); font-weight: 520; letter-spacing: -0.02em; text-align:center; font-size: clamp(30px, 5vw, 56px); line-height: 1.12; }
.lm-landing-title-accent{ font-style: italic; color: hsl(35 30% 46%); }

.lm-landing-grid{ width: 100%; max-width: 1120px; display:grid; gap: 28px; grid-template-columns: 1fr; margin-top: 8px; }
@media (min-width: 860px){
  .lm-landing-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
}

.lm-landing-card{ display:flex; flex-direction:column; align-items:center; text-decoration:none; color: inherit; }
.lm-landing-media{ position: relative; width: 256px; height: 256px; border-radius: 28px; overflow:hidden; border: 4px solid rgba(255,255,255,0.95); box-shadow: var(--shadow-sm); }
@media (min-width: 860px){
  .lm-landing-media{ width: 320px; height: 320px; border-radius: 34px; }
}
.lm-landing-media::after{ content:""; position:absolute; inset:0; background: rgba(0,0,0,0.10); transition: background 220ms ease; }
.lm-landing-card:hover .lm-landing-media::after{ background: rgba(0,0,0,0.0); }
.lm-landing-media img{ width:100%; height:100%; object-fit: cover; display:block; transition: transform 700ms cubic-bezier(.2,.8,.2,1); }
.lm-landing-card:hover .lm-landing-media img{ transform: scale(1.1); }

.lm-landing-card-body{ text-align:center; margin-top: 18px; }
.lm-landing-card-title{ margin: 0; font-family: var(--font-serif); font-weight: 560; font-size: 32px; }
.lm-landing-card-desc{ margin: 10px auto 0; max-width: 34ch; color: rgba(31,35,40,0.62); font-size: 16px; line-height: 1.55; }
.lm-landing-card-cta{ margin-top: 18px; display:inline-flex; align-items:center; justify-content:center; gap: 8px; font-size: 16px; text-transform: uppercase; letter-spacing: 0.18em; font-weight: 800; color: #ab8027; transition: gap 200ms ease; -webkit-font-smoothing: antialiased; }
.lm-landing-card:hover .lm-landing-card-cta{ gap: 14px; }

.lm-landing-foot{ margin: 14px 0 0; color: rgba(31,35,40,0.45); font-style: italic; font-weight: 420; }

/* Top nav shell like React sticky bar */
.nav-shell {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.70);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Hard clamp: make header genuinely compact */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0 !important;
  min-height: 0 !important;
}

.brand img {
  height: 7px !important;
  max-height: 7px !important;
  width: auto !important;
  display: block;
}

/* Prevent inherited line-height/spacing inflating header */
.nav-shell *{ line-height: 1.1; }
.brand{ line-height: 0; }

.nav-links { display: none; align-items: center; gap: 4px; }
.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  color: rgba(31,35,40,0.75);
}
.nav-links a:hover { background: rgba(0,0,0,0.04); color: rgba(31,35,40,1); }

.nav-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  height: 26px !important;
  width: 26px !important;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.92);
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  padding: 0 !important;
}

/* Hero matches React: full-bleed image + overlays + bottom-left glass card */
.hero-media {
  position: relative;
  height: 520px;
  width: 100%;
  overflow: visible;
}

.hero-img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: 70% 50%;
  display: block;
}

/* Optional: allow Customizer to choose how hero image fits */
.hero-media{ --lm-hero-fit: cover; --lm-hero-pos: 70% 50%; }
.hero-media[data-lm-hero-fit="contain"]{ --lm-hero-fit: contain; }
.hero-media[data-lm-hero-fit="cover"]{ --lm-hero-fit: cover; }
.hero-media[data-lm-hero-fit="cover"] .hero-img,
.hero-media[data-lm-hero-fit="contain"] .hero-img{ object-fit: var(--lm-hero-fit); object-position: var(--lm-hero-pos); }
.hero-media[data-lm-hero-fit="contain"]{ background: #fff; }

.hero-overlay { display: none; }

.hero-noise { display: none; }

.hero-content { position: absolute; inset: 0; }
.hero-content-inner {
  height: 100%;
  display: flex;
  align-items: center;
  padding-bottom: 0;
}

@media (max-width: 860px){
  /* Standard Hero overrides */
  .hero { padding-bottom: 160px; }
  .hero-media{ margin-bottom: 100px; }
  .hero-card{ margin-top: auto; transform: translateY(50%); }

  /* FIX: Brochure Hero overrides to remove gap */
  .lm-brochure-hero { padding-bottom: 0 !important; margin-bottom: 0 !important; }
  .lm-brochure-hero .hero-media { margin-bottom: 0 !important; height: 300px !important; }
  .lm-brochure-hero .hero-card { margin-top: 0 !important; transform: none !important; }
}

.hero-card {
  max-width: 520px;
  border-radius: 22px;
  background: rgba(255,255,255,0.46);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-elevated);
  border: 1px solid rgba(0,0,0,0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.hero-kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(31,35,40,0.62);
}

.hero-title {
  margin: 12px 0 0;
  font-family: var(--font-serif);
  letter-spacing: -0.02em;
  font-weight: 600;
  font-size: clamp(28px, 3.8vw, 46px);
  line-height: 1.04;
}

.hero-subtitle {
  margin: 14px 0 0;
  max-width: 54ch;
  color: rgba(31,35,40,0.72);
  font-size: 14px;
  line-height: 1.55;
}

.hero-cta { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid rgba(0,0,0,0.10);
  cursor: pointer;
  transition: transform 160ms ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--primary);
  color: var(--primary-ink);
  border-color: rgba(0,0,0,0.10);
  box-shadow: var(--shadow-sm);
}

.btn-ghost {
  background: rgba(255,255,255,0.70);
  color: var(--text);
  box-shadow: var(--shadow-xs);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-full { width: 100%; }

/* Collections section background like React secondary */
.collections { background: var(--secondary); }
.collections-inner { padding: 48px 0 64px; }
.anchor { scroll-margin-top: 112px; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.section-head-split { margin-top: 56px; }

.section-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 32px;
}

.section-subtitle {
  margin: 12px 0 0;
  max-width: 52ch;
  color: var(--muted);
  font-size: 14px;
}

.love { display: none; align-items: center; gap: 10px; }
.love-dot { width: 10px; height: 10px; border-radius: 999px; background: var(--primary); }
.love-text { font-weight: 700; color: rgba(31,35,40,0.82); }

.tile-grid {
  margin-top: 28px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.tile {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #000;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
  transform: translateZ(0);
}

.tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease;
}
.tile:hover img { transform: scale(1.06); }

.tile-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.70), rgba(0,0,0,0.10), rgba(0,0,0,0.10));
}

.tile-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='.25'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity: .14;
}

.tile-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,0.10);
}

.tile:hover .tile-ring { border-color: rgba(255,255,255,0.20); }

.tile-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px;
}

.tile-label {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
}

.tile-bar { margin-top: 8px; height: 1px; width: 56px; background: var(--primary); opacity: 0.80; }

/* Contact section like React */
.contact { background: var(--bg); border-top: 1px solid rgba(0,0,0,0.10); }
.contact-inner { padding: 56px 20px 64px; display: grid; gap: 40px; }

.contact-kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-title {
  margin: 16px 0 0;
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 32px;
}

.contact-subtitle { margin: 12px 0 0; max-width: 56ch; color: var(--muted); }

.contact-notes {
  margin-top: 28px;
  padding: 18px;
  border-radius: 24px;
  background: var(--secondary);
  border: 1px solid rgba(0,0,0,0.05);
}

.note { display: flex; gap: 12px; align-items: flex-start; }
.note + .note { margin-top: 12px; }
.note-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--primary); margin-top: 6px; }
.note p { margin: 0; color: rgba(31,35,40,0.80); font-size: 14px; line-height: 1.5; }

.contact-form {
  border-radius: 24px;
  background: #fff;
  padding: 24px;
  box-shadow: var(--shadow-elevated);
  border: 1px solid rgba(0,0,0,0.05);
}

.form-grid { display: grid; gap: 14px; }

.field { display: grid; gap: 8px; }

label { font-weight: 700; font-size: 14px; }

input, textarea, select {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,0.14);
  padding: 12px 14px;
  font: 600 14px/1.2 var(--font-sans);
  outline: none;
  box-shadow: var(--shadow-xs);
}

textarea { min-height: 130px; resize: vertical; padding: 12px 14px; }

input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 5px rgba(214, 178, 73, 0.18);
}

.footer { padding: 22px 0 32px; color: rgba(31,35,40,0.62); font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.footer-links { display: flex; gap: 14px; }
.footer-links a { font-weight: 700; color: rgba(31,35,40,0.70); }
.footer-links a:hover { color: rgba(31,35,40,1); }

@media (min-width: 640px) {
  .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .hero-media { height: 620px; }
  .hero-content-inner { padding-bottom: 64px; }
  .hero-card { padding: 32px; border-radius: 28px; }
  .tile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contact-inner { grid-template-columns: 1fr 1fr; align-items: start; }
  .love { display: flex; }
}


/* Ensure tile overlays/labels stay inside tiles */
.tile{position:relative;display:block;overflow:hidden}
.tile-bottom{position:absolute;left:0;right:0;bottom:0}


/* Auto WooCommerce category sections: match homepage typography + avoid flex collisions */
.auto-section .section-head{
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0;
}


/* Global site header (non-front pages) */
.lm-site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(250,248,244,.75);
  border-bottom: 1px solid rgba(0,0,0,.06);
}

/* Hard clamp header height regardless of WP styles */
.lm-site-header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:6px;
  padding:2px 0 !important;
  min-height: 0 !important;
}

/* Force-compact WooCommerce header area (WP often injects extra heights) */
.lm-site-header{
  height: auto !important;
}
.lm-site-header__inner{
  height: auto !important;
}
.lm-site-header .lm-brand{
  display: inline-flex;
  align-items: center;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 0 !important;
}
.lm-site-header .custom-logo-link{
  display: inline-flex !important;
  align-items: center !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 0 !important;
}
.lm-site-header .custom-logo,
.lm-site-header .custom-logo-link img{
  height: 120px !important;
  max-height: 120px !important;
  width: auto !important;
  display: block !important;
}

@media (max-width: 860px){
  .lm-site-header .custom-logo,
  .lm-site-header .custom-logo-link img{
    height: 64px !important;
    max-height: 64px !important;
  }
}

/* Prevent inherited line-height/spacing inflating header */
.lm-site-header *{ line-height: 1.05 !important; }

.lm-brand{
  font-family: var(--font-serif);
  font-weight: 650;
  text-decoration:none;
  color: var(--text);
  font-size: 18px;
  letter-spacing:-0.01em;
  white-space:nowrap;
}
.lm-menu{
  display:flex;
  gap:18px;
  list-style:none;
  margin:0;
  padding:0;
  font-weight:600;
}
.lm-menu a{
  text-decoration:none;
  color: var(--text);
  opacity:.9;
}
.lm-menu a:hover{ opacity:1; }
.lm-actions{ display:flex; gap:8px; align-items:center; }
.lm-action{
  text-decoration:none;
  color: var(--text);
  font-weight:650;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.7);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
}
.lm-action:hover{ background: rgba(255,255,255,.9); }

.lm-action--cart{ padding: 7px 9px; }
.lm-carticon{ display:inline-flex; width: 18px; height: 18px; color: rgba(31,35,40,.8); }
.lm-carticon svg{ width: 18px; height: 18px; display:block; }
.lm-cartcount{
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.01em;
  background: rgba(16,18,22,.06);
  border: 1px solid rgba(0,0,0,.10);
}
@media (max-width: 860px){
  .lm-burger{ display:inline-flex; }
  .lm-actions{ display:none !important; }
  .lm-nav{ display:none; }
  .lm-nav.is-open{ display:block; }
}


/* Mobile burger */
.lm-burger{
  display:none;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow-xs);
  border-radius: 999px;
  padding: 6px 10px;
  gap: 10px;
  align-items: center;
  color: rgba(31,35,40,0.9);
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

@media (max-width: 860px){
  .lm-burger{ display:inline-flex !important; }
}
.lm-burger__icon{ display:inline-grid; gap:3px; }
.lm-burger__icon span{ width: 16px; height: 2px; background: currentColor; border-radius: 999px; display:block; }
.lm-burger__label{ font-size: 11px; }

.lm-mobile-actions{ display:none; }
.lm-mobile-action{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.72);
  box-shadow: var(--shadow-xs);
  font-weight: 750;
  color: rgba(31,35,40,0.88);
}
.lm-mobile-action:hover{ background: rgba(255,255,255,.85); }
.lm-mobile-badge{
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.01em;
  background: rgba(16,18,22,.06);
  border: 1px solid rgba(0,0,0,.10);
}

@media (max-width: 860px){
  .lm-nav.is-open .lm-mobile-actions{ display:grid; gap: 8px; margin-top: 10px; }
}

/* Logo in header */
.lm-brand .custom-logo-link{ display:inline-flex; align-items:center; }
.lm-brand .custom-logo,
.lm-brand .custom-logo-link img{
  height: 6px !important;
  max-height: 6px !important;
  width: auto !important;
  display: block;
}
@media (min-width: 980px){
  .lm-brand .custom-logo,
  .lm-brand .custom-logo-link img{
    height: 7px !important;
    max-height: 7px !important;
  }
}

.lm-brand .custom-logo-link{
  line-height: 0;
  padding: 0;
}

/* Constant category menu below logo */
.lm-site-header__inner{
  flex-wrap: wrap;
}

.lm-nav{
  width: 100%;
  order: 2;
}

/* Cut header/menu sizing by ~50% */
.lm-actions{ gap: 4px; }
.lm-action{ padding: 3px 6px; font-size: 12px; }
.lm-action--cart{ padding: 3px 6px; }
.lm-carticon{ width: 14px; height: 14px; }
.lm-carticon svg{ width: 14px; height: 14px; }
.lm-cartcount{ min-width: 16px; height: 16px; padding: 0 5px; font-size: 10px; }

.lm-nav .lm-menu{ gap: 4px; padding-bottom: 3px; }
.lm-nav .lm-menu a{ padding: 2px 6px !important; font-size: 10px !important; letter-spacing: 0.04em; }

@media (max-width: 860px){
  .lm-burger{ padding: 4px 8px; gap: 8px; }
  .lm-burger__icon span{ width: 14px; height: 2px; }
  .lm-burger__label{ font-size: 10px; }
}

@media (max-width: 860px){
  .lm-nav{
    width: 100%;
    order: 3;
    margin-top: 8px;
    padding: 10px 10px;
    border-radius: 18px;
    border: 1px solid rgba(0,0,0,.10);
    background: rgba(255,255,255,.78);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  .lm-nav .lm-menu{
    display:flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding-bottom: 0;
  }
  .lm-nav .lm-menu a{
    justify-content: space-between;
    width: 100%;
    padding: 10px 12px !important;
    font-size: 12px !important;
  }
}

.lm-nav .lm-menu{
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 6px;
}

.lm-nav .lm-menu a{
  display: inline-flex;
  align-items: center;
  padding: 4px 8px !important;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  background: #ab8027;
  color: #000 !important;
  box-shadow: var(--shadow-xs);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-weight: 750;
  font-size: 11px !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform .16s ease, background .16s ease, filter .16s ease;
}

.lm-nav .lm-menu a:hover{
  transform: translateY(-1px);
  background: #c3922c;
}

/* Contact Form 7 Styling Override */
.wpcf7-form {
  border-radius: 24px;
  background: #fff;
  padding: 24px;
  box-shadow: var(--shadow-elevated);
  border: 1px solid rgba(0,0,0,0.05);
  display: grid;
  gap: 14px;
}

.wpcf7 p {
  margin: 0;
  margin-bottom: 0;
}

.wpcf7 label {
  font-weight: 700;
  font-size: 14px;
  display: block;
  margin-bottom: 8px;
  width: 100%;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea,
.wpcf7 select {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,0.14);
  padding: 12px 14px;
  font: 600 14px/1.2 var(--font-sans);
  outline: none;
  box-shadow: var(--shadow-xs);
  background: #fff;
  box-sizing: border-box;
}

.wpcf7 textarea {
  min-height: 130px;
  resize: vertical;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 5px rgba(214, 178, 73, 0.18);
}

.wpcf7 input[type="submit"],
.wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid rgba(0,0,0,0.10);
  cursor: pointer;
  transition: transform 160ms ease;
  width: 100%;
  background: var(--primary); /* Gold color */
  color: var(--primary-ink);
  box-shadow: var(--shadow-sm);
  margin-top: 10px;
  text-transform: none; /* Reset if theme enforces uppercase elsewhere */
}

.wpcf7 input[type="submit"]:hover,
.wpcf7-submit:hover {
  transform: translateY(-2px);
  background: hsl(42 58% 48%); /* Slightly darker gold on hover */
}

/* Modal styles for brochure mode */
.lm-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lm-modal.is-open {
  opacity: 1;
}

.lm-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}

.lm-modal-content {
  position: relative;
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
  background: #fff;
  border-radius: 12px;
  overflow: hidden; /* Changed from overflow-y: auto to hidden to prevent body scroll confusion */
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: modalUp 0.3s ease-out;
}

/* Make the content scrollable inside the modal */
.lm-modal-body-scroll {
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    /* On desktop, row */
}

@media (min-width: 768px) {
    .lm-modal-body-scroll {
        flex-direction: row;
        height: 100%; /* Fill the modal content height */
        max-height: 80vh; /* Explicit max height for inner scroll */
    }
}

@keyframes modalUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.lm-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  background: #fff;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 10;
  transition: transform 0.2s;
}

.lm-modal-close:hover {
  transform: scale(1.1);
}

.lm-modal-grid {
  display: contents; /* Allows flex children to behave properly */
}

/* Modal Gallery */
.lm-modal-left {
  background: #f8f8f8;
  padding: 20px;
}

@media (min-width: 768px) {
  .lm-modal-left {
    width: 55%;
    display: flex;
    flex-direction: column;
    /* Sticky implementation requires parent to have align-items: start or block */
    position: sticky; 
    top: 0;
    height: fit-content;
  }
}

.lm-modal-slider {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.lm-modal-slider img {
  display: none;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.lm-modal-slider img.active {
  display: block;
}

.lm-modal-thumbnails {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.lm-modal-thumbnails img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
  border: 2px solid transparent;
}

.lm-modal-thumbnails img.active,
.lm-modal-thumbnails img:hover {
  opacity: 1;
  border-color: #ab8027;
}

/* Modal Info */
.lm-modal-right {
  padding: 30px;
  background: #fff;
}

@media (min-width: 768px) {
  .lm-modal-right {
    width: 45%;
  }
}

.lm-modal-title {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  margin-top: 0;
  margin-bottom: 20px;
  color: #1a1a1a;
  line-height: 1.2;
}

.lm-modal-description {
  color: #555;
  line-height: 1.6;
  margin-bottom: 30px;
}

.lm-button {
  display: inline-block;
  padding: 12px 24px;
  background-color: #ab8027;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: background 0.3s;
  border: none;
  cursor: pointer;
  text-align: center;
}

.lm-button:hover {
  background-color: #ab8027;
}

.lm-button--outline {
  background: transparent;
  border: 1px solid #ab8027;
  color: #ab8027;
}

.lm-button--outline:hover {
  background: #ab8027;
  color: #fff;
}

.lm-book-consultation-btn {
    width: 100%;
    margin-top: 20px;
    font-size: 1.1rem;
    padding: 15px;
}

/* Contact Modal Specific Overrides */
#lm-contact-modal .lm-modal-title {
    order: 0 !important; /* Reset order to appear at top */
    width: 100%;
}

#lm-contact-modal .lm-contact-form-wrapper {
    /* ... */
}

/* Compact Contact Modal Styles - Prevent Scrolling */
#lm-contact-modal .lm-modal-container {
    max-width: 500px;
    height: auto;
    max-height: 98vh; /* Maximize available height */
}

#lm-contact-modal .lm-contact-form-wrapper {
    padding: 15px 20px !important; /* Even smaller padding */
    width: 100%;
    /* Ensure wrapper doesn't force extra height */
    display: flex;
    flex-direction: column;
}

#lm-contact-modal .lm-modal-title {
    font-size: 1.3rem;
    margin-bottom: 5px !important;
    padding-bottom: 5px;
    border-bottom-width: 1px;
    order: -1 !important; /* Force to top */
}

#lm-contact-modal p {
    margin-bottom: 5px !important;
    font-size: 0.8rem;
    line-height: 1.2;
    order: 0 !important;
}

#lm-contact-modal .wpcf7 {
    order: 1 !important;
}

/* Compress CF7 form fields specifically inside the modal */
#lm-contact-modal .wpcf7-form {
    gap: 4px; /* Ultra tight gap */
    padding: 0;
    margin: 0;
    box-shadow: none;
    border: none;
    background: transparent;
}

#lm-contact-modal .wpcf7-form label {
    margin-bottom: 0px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.1;
}

#lm-contact-modal .wpcf7-form input[type="text"],
#lm-contact-modal .wpcf7-form input[type="email"],
#lm-contact-modal .wpcf7-form input[type="tel"],
#lm-contact-modal .wpcf7-form select {
    padding: 4px 8px;
    font-size: 0.85rem;
    height: 32px; /* Even smaller height */
    margin-bottom: 0;
}

#lm-contact-modal .wpcf7-form textarea {
    padding: 6px 8px;
    font-size: 0.85rem;
    min-height: 50px; /* Minimal text area */
    height: 60px;
    margin-bottom: 0;
}

#lm-contact-modal .wpcf7-form input[type="submit"] {
    margin-top: 5px;
    padding: 8px;
    font-size: 0.85rem;
    height: auto;
}

/* Hide all potential spacers and extras */
#lm-contact-modal br,
#lm-contact-modal .wpcf7-response-output, 
#lm-contact-modal .screen-reader-response {
    display: none !important;
}

#lm-contact-modal .wpcf7 p {
    margin: 0;
    padding: 0;
}

/* Ensure close button is positioned well */
#lm-contact-modal .lm-modal-close {
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    font-size: 18px;
    background: #f0f0f0; /* Visible background to stand out */
}

/* Mobile specific tweaks for ultra-compactness */
@media (max-width: 767px) {
    #lm-contact-modal .lm-modal-container {
        width: 95%;
        max-height: 95vh;
        margin: 0 auto;
        border-radius: 8px !important; /* Force rounded corners */
        height: auto !important; /* Let content dictate height up to max */
    }
    
    #lm-contact-modal .lm-contact-form-wrapper {
        padding: 10px 15px !important;
    }
    
    #lm-contact-modal .lm-modal-title {
        font-size: 1.1rem !important;
    }
}

/* General Modal responsive adjustments */
@media (max-width: 767px) {
    /* Only apply full screen to brochure modal, NOT contact modal */
    #lm-brochure-modal .lm-modal-content {
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }
    
    #lm-brochure-modal .lm-modal-body-scroll {
        flex-direction: column;
    }
    
    .lm-modal-left, .lm-modal-right {
        width: 100%;
        padding: 20px;
    }
    
    .lm-modal-slider {
        max-height: 300px;
    }
    
    /* Ensure contact modal doesn't get hit by the general rule above if selectors were loose */
    /* The selector above was .lm-modal-content which affects both. 
       We need to be specific for the contact modal to Override the full-screen behavior */
    #lm-contact-modal .lm-modal-container {
        /* Re-asserting this to be safe against cascade */
        width: 95% !important; 
        height: auto !important;
        max-height: 95vh !important;
        border-radius: 8px !important;
        position: relative; /* Ensure it respects flex centering */
    }
}
/* Floating Contact Button */
.lm-floating-contact {
  position: fixed;
  right: 20px;
  bottom: 30px;
  background-color: #ab8027; /* Fallback */
  background-color: var(--primary, #ab8027);
  color: #fff;
  padding: 12px 20px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(171, 128, 39, 0.4);
  z-index: 999;
  transition: all 0.3s ease;
  animation: float-btn 3s ease-in-out infinite;
}

.lm-floating-contact svg,
.lm-floating-contact span {
  color: #fff !important;
}

.lm-floating-contact:hover {
  transform: translateY(-5px) !important;
  background-color: #966e1e;
  box-shadow: 0 6px 20px rgba(171, 128, 39, 0.6);
  color: #fff !important;
  animation: none !important; /* Stop floating on hover */
}

@keyframes float-btn {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .lm-floating-contact {
    bottom: 20px;
    right: 15px;
    padding: 10px 15px;
    font-size: 0.9em;
  }
}

/* Global Marquee Scroller Styles */
.lm-marquee-content {
  animation: global-marquee 20s linear infinite;
  display: inline-block;
  padding-left: 100%; /* Start off-screen right */
}

@keyframes global-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.lm-scroller-topbar:hover .lm-marquee-content {
  animation-play-state: paused;
}
