/*
Theme Name:   Blocksy Child - Handmade Leather Goods
Theme URI:    https://handmadeleathergoods.org
Description:  Custom header, footer, intro band layout, and page dock for Iranian handmade leather goods
Author:       Custom Development
Template:     blocksy
Version:      1.1.1
License:      GNU General Public License v2 or later
Text Domain:  blocksy-child

Gallery & motion: see /DESIGN-SPEC.md at site root.
Minified gallery (.hlmg-gallery-preview) styles will be added with Phase 2 HTML blocks.
*/

/* ==========================================================================
   Design tokens — light parchment + Persian-inspired accents
   ========================================================================== */
:root {
  --hlmg-bg: #faf6f0;
  --hlmg-bg-alt: #f3ebe0;
  --hlmg-surface: #ffffff;
  --hlmg-text: #2c2419;
  --hlmg-text-muted: #5c5348;
  --hlmg-leather: #8b4513;
  --hlmg-leather-dark: #6b3410;
  --hlmg-teal: #1f6f5c;
  --hlmg-teal-dark: #165a4a;
  --hlmg-gold: #b8860b;
  --hlmg-border: #e0d5c5;
  --hlmg-shadow: 0 12px 40px rgba(44, 36, 25, 0.08);
  --hlmg-radius: 14px;
  --hlmg-font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --hlmg-font-body: "Source Sans 3", system-ui, -apple-system, sans-serif;
  --hlmg-header-height: 88px;
  --hlmg-hero-height: clamp(320px, 42vw, 520px);
  --hlmg-dock-width: 320px;
  --hlmg-intro-min-height: 700px;
  --hlmg-content-max: 1280px;
  --hlmg-dock-top: calc(var(--hlmg-header-height) + 16px);
}

/* Hide default Blocksy chrome */
.ct-header,
#header.ct-header,
.ct-footer,
footer.ct-footer {
  display: none !important;
}

html,
body.hlmg-child-theme {
  background: var(--hlmg-bg) !important;
  color: var(--hlmg-text);
  font-family: var(--hlmg-font-body);
  overflow-x: hidden;
}

.hlmg-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Header top bar
   ========================================================================== */
.hlmg-master-header {
  position: relative;
  z-index: 100;
  background: var(--hlmg-surface);
  box-shadow: 0 1px 0 var(--hlmg-border);
}

.hlmg-header-top {
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--hlmg-teal), var(--hlmg-gold), var(--hlmg-leather)) 1;
}

.hlmg-header-top-inner {
  max-width: var(--hlmg-content-max);
  margin: 0 auto;
  padding: 0 20px;
  min-height: var(--hlmg-header-height);
  display: flex;
  align-items: center;
  gap: 16px;
}

.hlmg-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.hlmg-brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--hlmg-leather), var(--hlmg-leather-dark));
  color: #fff;
  font-family: var(--hlmg-font-display);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.05em;
  box-shadow: var(--hlmg-shadow);
}

.hlmg-brand-mark--footer {
  width: 56px;
  height: 56px;
  font-size: 1.25rem;
}

.hlmg-brand-name {
  display: block;
  font-family: var(--hlmg-font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--hlmg-leather-dark);
  line-height: 1.1;
}

.hlmg-brand-tagline {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--hlmg-teal);
  font-weight: 600;
}

.hlmg-header-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 8px;
  flex: 1;
}

.hlmg-nav-link {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--hlmg-text);
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  line-height: 1.25;
  text-align: center;
}

.hlmg-nav-link:hover,
.hlmg-nav-link.is-active {
  background: var(--hlmg-bg-alt);
  border-color: var(--hlmg-border);
  color: var(--hlmg-leather-dark);
}

.hlmg-nav-link.is-active {
  background: var(--hlmg-teal);
  color: #fff;
  border-color: var(--hlmg-teal);
}

.hlmg-nav-link--gallery,
.hlmg-mobile-nav-link--gallery {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.hlmg-nav-link--gallery .hlmg-nav-icon,
.hlmg-mobile-nav-link--gallery .hlmg-nav-icon {
  color: var(--hlmg-gold);
  flex-shrink: 0;
}

.hlmg-nav-link--gallery.is-active .hlmg-nav-icon,
.hlmg-mobile-nav-link--gallery.is-active .hlmg-nav-icon {
  color: #fff;
}

.hlmg-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.hlmg-header-phone {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--hlmg-teal-dark);
  text-decoration: none;
  white-space: nowrap;
}

.hlmg-header-phone:hover {
  color: var(--hlmg-leather);
}

.hlmg-mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--hlmg-border);
  border-radius: 10px;
  background: var(--hlmg-bg-alt);
  cursor: pointer;
  padding: 0;
}

.hlmg-mobile-toggle-icon {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--hlmg-text);
  margin: 0 auto;
  box-shadow: 0 -6px 0 var(--hlmg-text), 0 6px 0 var(--hlmg-text);
}

/* ==========================================================================
   Hero banner
   ========================================================================== */
.hlmg-hero-banner {
  position: relative;
  height: var(--hlmg-hero-height);
  overflow: hidden;
  background: var(--hlmg-leather-dark);
}

.hlmg-hero-media {
  position: absolute;
  inset: 0;
}

.hlmg-hero-video,
.hlmg-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hlmg-hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(22, 90, 74, 0.75) 0%,
    rgba(44, 36, 25, 0.45) 45%,
    rgba(107, 52, 16, 0.35) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.hlmg-video-sound-btn {
  position: absolute;
  bottom: 16px;
  right: 16px;
  z-index: 3;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.hlmg-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
}

.hlmg-hero-overlay-inner {
  max-width: var(--hlmg-content-max);
  margin: 0 auto;
  padding: 28px 20px 36px;
  width: 100%;
}

.hlmg-hero-eyebrow {
  margin: 0 0 8px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

.hlmg-hero-title {
  margin: 0 0 12px;
  font-family: var(--hlmg-font-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  max-width: 16ch;
}

.hlmg-hero-subtitle {
  margin: 0 0 20px;
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.05rem;
  line-height: 1.55;
}

.hlmg-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.hlmg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.hlmg-btn-primary {
  background: var(--hlmg-gold);
  color: #1a1a1a;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.hlmg-btn-primary:hover {
  transform: translateY(-2px);
  background: #d4a017;
}

.hlmg-btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: #fff;
  background: transparent;
}

.hlmg-btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
}

.hlmg-hero-social {
  display: flex;
  gap: 10px;
}

.hlmg-social-link {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: background 0.2s, transform 0.2s;
}

.hlmg-social-link:hover {
  background: var(--hlmg-teal);
  transform: translateY(-2px);
}

/* ==========================================================================
   Mobile menu
   ========================================================================== */
.hlmg-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(44, 36, 25, 0.55);
  backdrop-filter: blur(4px);
}

.hlmg-mobile-menu[hidden]:not(.is-open) {
  display: none;
}

.hlmg-mobile-menu.is-open {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.hlmg-mobile-menu-panel {
  width: min(320px, 92vw);
  height: 100%;
  background: var(--hlmg-surface);
  padding: 24px 20px;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
}

.hlmg-mobile-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: none;
  background: var(--hlmg-bg-alt);
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.hlmg-mobile-phone,
.hlmg-mobile-email {
  display: block;
  margin: 8px 0;
  font-weight: 600;
  color: var(--hlmg-teal-dark);
  text-decoration: none;
}

.hlmg-mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 20px 0;
}

.hlmg-mobile-nav-link {
  padding: 12px 14px;
  border-radius: var(--hlmg-radius);
  text-decoration: none;
  color: var(--hlmg-text);
  font-weight: 600;
  background: var(--hlmg-bg);
}

.hlmg-mobile-nav-link.is-active {
  background: var(--hlmg-teal);
  color: #fff;
}

.hlmg-mobile-nav-link--gallery {
  justify-content: flex-start;
}

.hlmg-mobile-instagram {
  font-size: 0.9rem;
  color: var(--hlmg-leather);
  font-weight: 600;
}

body.hlmg-menu-open {
  overflow: hidden;
}

/* ==========================================================================
   Page shell: intro band + full-width body + page dock
   ========================================================================== */
.hlmg-main,
#primary.site-main,
main.site-main {
  background: var(--hlmg-bg);
}

.hlmg-page-shell {
  width: 100%;
}

/* Intro band — two columns on desktop beside contact/news */
.hlmg-intro-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, var(--hlmg-dock-width));
  gap: 32px;
  align-items: start;
  max-width: var(--hlmg-content-max);
  margin: 0 auto;
  padding: 32px 20px 48px;
  box-sizing: border-box;
}

.hlmg-intro-band__main {
  min-width: 0;
}

.hlmg-page-body {
  max-width: var(--hlmg-content-max);
  margin: 0 auto;
  padding: 0 20px 48px;
  box-sizing: border-box;
}

.hlmg-page-dock-mobile-anchor {
  max-width: var(--hlmg-content-max);
  margin: 0 auto;
  padding: 0 20px 48px;
  box-sizing: border-box;
}

/* Page dock mount — persistent column in intro band grid */
.hlmg-dock-mount {
  align-self: start;
  min-width: 0;
}

.hlmg-intro-band .hlmg-dock-mount .hlmg-page-dock {
  position: relative;
  top: auto;
  right: auto;
  width: 100%;
  z-index: 1;
}

.hlmg-dock-chips {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0;
}

.hlmg-dock-chip {
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid var(--hlmg-border);
  border-radius: var(--hlmg-radius);
  background: var(--hlmg-surface);
  font-family: var(--hlmg-font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--hlmg-teal-dark);
  cursor: pointer;
  box-shadow: var(--hlmg-shadow);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.hlmg-dock-chip:hover,
.hlmg-dock-chip[aria-expanded="true"] {
  background: var(--hlmg-teal);
  border-color: var(--hlmg-teal);
  color: #fff;
}

.hlmg-dock-panels {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hlmg-dock-panel + .hlmg-dock-panel {
  margin-top: 0;
}

.hlmg-dock-card {
  background: var(--hlmg-surface);
  border: 1px solid var(--hlmg-border);
  border-radius: var(--hlmg-radius);
  padding: 20px;
  box-shadow: var(--hlmg-shadow);
}

.hlmg-dock-title {
  margin: 0 0 10px;
  font-family: var(--hlmg-font-display);
  font-size: 1.35rem;
  color: var(--hlmg-leather-dark);
}

.hlmg-dock-lead {
  margin: 0 0 14px;
  font-size: 0.9rem;
  color: var(--hlmg-text-muted);
  line-height: 1.5;
}

.hlmg-dock-placeholder {
  margin: 0;
  font-size: 0.85rem;
  color: var(--hlmg-text-muted);
  font-style: italic;
}

/* Contact Form 7 in page dock */
.hlmg-cf7-mount .wpcf7 {
  margin: 0;
}

.hlmg-cf7-mount .wpcf7-form p {
  margin: 0 0 0.75rem;
}

.hlmg-cf7-mount .wpcf7-form-control:not(.wpcf7-submit) {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--hlmg-border);
  border-radius: 6px;
  font-family: var(--hlmg-font-body);
  font-size: 0.9rem;
  background: var(--hlmg-bg);
  color: var(--hlmg-text);
}

.hlmg-cf7-mount .wpcf7-form-control:focus {
  outline: 2px solid var(--hlmg-teal);
  outline-offset: 1px;
  border-color: var(--hlmg-teal);
}

.hlmg-cf7-mount textarea.wpcf7-form-control {
  min-height: 5rem;
  resize: vertical;
}

.hlmg-cf7-mount .wpcf7-submit {
  width: 100%;
  padding: 0.65rem 1rem;
  border: none;
  border-radius: 999px;
  font-family: var(--hlmg-font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--hlmg-teal);
  color: #fff;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hlmg-cf7-mount .wpcf7-submit:hover {
  background: var(--hlmg-teal-dark);
  transform: translateY(-1px);
}

.hlmg-cf7-mount .wpcf7-response-output {
  margin: 0.75rem 0 0;
  padding: 0.65rem 0.75rem;
  font-size: 0.85rem;
  border-radius: 6px;
}

.hlmg-cf7-mount .wpcf7-not-valid-tip {
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

/* Desktop compact dock — fixed position via CSS only (dock stays in intro band mount) */
@media (min-width: 1024px) {
  body.hlmg-dock-is-compact .hlmg-dock-mount .hlmg-page-dock {
    position: fixed;
    top: var(--hlmg-dock-top);
    right: 20px;
    width: min(var(--hlmg-dock-width), calc(100vw - 40px));
    max-height: calc(100vh - var(--hlmg-dock-top) - 20px);
    z-index: 200;
    overflow: visible;
  }

  body.hlmg-dock-is-compact .hlmg-dock-chips {
    display: flex;
  }

  body.hlmg-dock-is-compact .hlmg-dock-panels {
    margin-top: 8px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.35s ease, opacity 0.25s ease, margin-top 0.25s ease;
  }

  body.hlmg-dock-is-compact .hlmg-dock-panel {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease;
  }

  body.hlmg-dock-is-compact .hlmg-dock-panel.is-open {
    max-height: min(70vh, 560px);
    overflow: auto;
    opacity: 1;
  }

  body.hlmg-dock-is-compact .hlmg-dock-panels:has(.hlmg-dock-panel.is-open) {
    max-height: min(72vh, 580px);
    opacity: 1;
    pointer-events: auto;
    overflow: visible;
  }

  body.hlmg-dock-is-compact .hlmg-dock-panel.is-open .hlmg-dock-card {
    box-shadow: 0 16px 48px rgba(44, 36, 25, 0.15);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.hlmg-dock-is-compact .hlmg-dock-panels,
  body.hlmg-dock-is-compact .hlmg-dock-panel {
    transition: none;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.hlmg-site-footer {
  background: var(--hlmg-surface);
  border-top: 1px solid var(--hlmg-border);
  margin-top: 0;
}

.hlmg-footer-inner {
  max-width: var(--hlmg-content-max);
  margin: 0 auto;
  padding: 0 20px;
}

.hlmg-footer-main {
  padding: 48px 0 32px;
  background: linear-gradient(180deg, var(--hlmg-bg-alt) 0%, var(--hlmg-surface) 100%);
}

.hlmg-footer-inner.hlmg-footer-content,
.hlmg-footer-main .hlmg-footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr;
  gap: 32px;
}

.hlmg-footer-main > .hlmg-footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr;
  gap: 32px;
}

.hlmg-footer-brand {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
}

.hlmg-footer-title {
  margin: 0;
  font-family: var(--hlmg-font-display);
  font-size: 1.5rem;
  color: var(--hlmg-leather-dark);
}

.hlmg-footer-tagline {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: var(--hlmg-teal);
  font-weight: 600;
}

.hlmg-footer-about {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--hlmg-text-muted);
  margin: 0 0 16px;
}

.hlmg-footer-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hlmg-footer-contact-list li {
  margin-bottom: 8px;
}

.hlmg-footer-contact-list a {
  color: var(--hlmg-text);
  text-decoration: none;
  font-weight: 500;
}

.hlmg-footer-contact-list a:hover {
  color: var(--hlmg-teal);
}

.hlmg-footer-heading {
  margin: 0 0 14px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--hlmg-teal);
  font-weight: 700;
}

.hlmg-footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hlmg-footer-nav a {
  display: block;
  padding: 6px 0;
  color: var(--hlmg-text);
  text-decoration: none;
  font-size: 0.92rem;
}

.hlmg-footer-nav a:hover {
  color: var(--hlmg-leather);
}

.hlmg-footer-social {
  display: flex;
  gap: 10px;
}

.hlmg-footer-social .hlmg-social-link {
  background: var(--hlmg-bg-alt);
  color: var(--hlmg-teal-dark);
  border-color: var(--hlmg-border);
}

.hlmg-footer-social .hlmg-social-link:hover {
  background: var(--hlmg-teal);
  color: #fff;
}

.hlmg-footer-maps {
  padding: 40px 0;
  background: var(--hlmg-bg);
  border-top: 1px solid var(--hlmg-border);
}

.hlmg-footer-maps-title {
  text-align: center;
  margin: 0 0 28px;
  font-family: var(--hlmg-font-display);
  font-size: 1.75rem;
  color: var(--hlmg-leather-dark);
}

.hlmg-maps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.hlmg-map-card {
  background: var(--hlmg-surface);
  border-radius: var(--hlmg-radius);
  border: 1px solid var(--hlmg-border);
  overflow: hidden;
  box-shadow: var(--hlmg-shadow);
}

.hlmg-map-card-title {
  margin: 0;
  padding: 14px 16px 4px;
  font-size: 1rem;
  color: var(--hlmg-teal-dark);
}

.hlmg-map-card-address {
  margin: 0;
  padding: 0 16px 12px;
  font-size: 0.85rem;
  color: var(--hlmg-text-muted);
}

.hlmg-map-embed {
  position: relative;
  height: 200px;
  background: var(--hlmg-bg-alt);
}

.hlmg-map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.hlmg-footer-bottom {
  padding: 18px 0;
  background: var(--hlmg-leather-dark);
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
  font-size: 0.85rem;
}

.hlmg-footer-bottom p {
  margin: 0;
}

/* Blocksy content tweaks */
.hlmg-child-theme .hero-section {
  display: none;
}

.hlmg-child-theme #main-container .ct-container,
.hlmg-child-theme .entry-content {
  padding-top: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .hlmg-header-nav {
    display: none;
  }

  .hlmg-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hlmg-header-phone {
    display: none;
  }
}

@media (max-width: 1023px) {
  .hlmg-intro-band {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-bottom: 24px;
  }

  .hlmg-intro-band .hlmg-dock-mount {
    display: none;
  }

  .hlmg-page-dock {
    position: static;
    top: auto;
  }

  .hlmg-dock-chips {
    display: none !important;
  }

  body.hlmg-dock-is-compact .hlmg-page-dock {
    position: static;
    width: auto;
    max-height: none;
  }

  body.hlmg-dock-mobile .hlmg-page-dock-mobile-anchor .hlmg-dock-mount {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  body.hlmg-dock-mobile .hlmg-page-dock-mobile-anchor .hlmg-page-dock {
    width: 100%;
  }

  body.hlmg-dock-mobile .hlmg-dock-panels {
    max-height: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    overflow: visible !important;
  }

  body.hlmg-dock-mobile .hlmg-dock-panel {
    max-height: none !important;
    opacity: 1 !important;
    overflow: visible !important;
  }
}

@media (max-width: 768px) {
  .hlmg-footer-main > .hlmg-footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hlmg-footer-brand {
    justify-content: center;
  }

  .hlmg-footer-social {
    justify-content: center;
  }

  .hlmg-maps-grid {
    grid-template-columns: 1fr;
  }

  .hlmg-hero-title {
    max-width: none;
  }
}

@media (max-width: 480px) {
  .hlmg-brand-tagline {
    display: none;
  }

  .hlmg-header-top-inner {
    padding: 0 12px;
  }
}

/* ==========================================================================
   Page blocks — shared (Custom HTML)
   ========================================================================== */
.hlmg-page {
  color: var(--hlmg-text);
  font-size: 1.05rem;
  line-height: 1.65;
}

.hlmg-section {
  margin-bottom: 3rem;
}

.hlmg-eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hlmg-teal);
}

.hlmg-section-title {
  margin: 0 0 1rem;
  font-family: var(--hlmg-font-display);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 700;
  color: var(--hlmg-leather-dark);
  line-height: 1.15;
}

.hlmg-section-title--center {
  text-align: center;
}

.hlmg-lead {
  margin: 0 0 1.25rem;
  font-size: 1.15rem;
  color: var(--hlmg-text-muted);
  max-width: 52ch;
}

.hlmg-mission-quote {
  margin: 1.5rem 0 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--hlmg-gold);
  background: var(--hlmg-bg-alt);
  border-radius: 0 var(--hlmg-radius) var(--hlmg-radius) 0;
}

.hlmg-mission-quote p {
  margin: 0;
  font-family: var(--hlmg-font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--hlmg-leather-dark);
}

.hlmg-emphasis {
  font-weight: 600;
  color: var(--hlmg-leather-dark);
}

.hlmg-text-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 600;
  color: var(--hlmg-teal-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--hlmg-gold);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.hlmg-text-link:hover {
  color: var(--hlmg-leather);
  border-color: var(--hlmg-leather);
}

/* Split section */
.hlmg-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hlmg-split-img {
  width: 100%;
  height: auto;
  border-radius: var(--hlmg-radius);
  box-shadow: var(--hlmg-shadow);
  object-fit: cover;
}

/* Callouts */
.hlmg-callout-grid {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.hlmg-callout-card {
  background: var(--hlmg-surface);
  border: 1px solid var(--hlmg-border);
  border-radius: var(--hlmg-radius);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--hlmg-shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.hlmg-callout-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(44, 36, 25, 0.12);
}

.hlmg-callout-icon {
  display: block;
  color: var(--hlmg-gold);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.hlmg-callout-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--hlmg-font-display);
  font-size: 1.25rem;
  color: var(--hlmg-teal-dark);
}

.hlmg-callout-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--hlmg-text-muted);
}

/* Process steps list (tanning page) */
.hlmg-process-steps__lead {
  max-width: 36rem;
  margin: 0.75rem auto 0;
  text-align: center;
}

.hlmg-process-steps__list {
  max-width: 44rem;
  margin: 1.25rem auto 0;
  padding-left: 1.35rem;
}

.hlmg-process-steps__list li {
  margin-bottom: 0.85rem;
  color: var(--hlmg-text-muted);
  line-height: 1.55;
}

.hlmg-process-steps__list li strong {
  color: var(--hlmg-leather-dark);
  font-weight: 600;
}

/* Parallax band */
.hlmg-parallax-band {
  position: relative;
  margin: 3rem calc(50% - 50vw);
  width: 100vw;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hlmg-parallax-band__bg {
  position: absolute;
  inset: -20% 0;
  background-image: var(--hlmg-parallax-img);
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.hlmg-parallax-band__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(31, 111, 92, 0.88) 0%,
    rgba(44, 36, 25, 0.75) 100%
  );
}

.hlmg-parallax-band__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 3rem 1.5rem;
  color: #fff;
}

.hlmg-parallax-band__quote {
  margin: 0 0 0.5rem;
  font-family: var(--hlmg-font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  line-height: 1.2;
}

.hlmg-parallax-band__sub {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.9;
  letter-spacing: 0.06em;
}

/* Explore cards */
.hlmg-explore-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.hlmg-explore-card {
  position: relative;
  display: block;
  border-radius: var(--hlmg-radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--hlmg-shadow);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hlmg-explore-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hlmg-explore-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(44, 36, 25, 0.15);
}

.hlmg-explore-card:hover img {
  transform: scale(1.06);
}

.hlmg-explore-card--static {
  cursor: default;
}

.hlmg-explore-card__body {
  display: block;
  padding: 1.1rem 1.2rem;
  background: var(--hlmg-surface);
  border-top: 3px solid var(--hlmg-gold);
}

.hlmg-explore-card__label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--hlmg-teal);
  margin-bottom: 0.25rem;
}

.hlmg-explore-card__title {
  display: block;
  font-family: var(--hlmg-font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--hlmg-leather-dark);
}

.hlmg-explore-card__desc {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.88rem;
  color: var(--hlmg-text-muted);
}

/* Gallery preview */
.hlmg-gallery-preview {
  padding: 2.5rem;
  background: var(--hlmg-surface);
  border: 1px solid var(--hlmg-border);
  border-radius: calc(var(--hlmg-radius) + 4px);
  box-shadow: var(--hlmg-shadow);
}

.hlmg-gallery-preview__head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 1.75rem;
}

.hlmg-gallery-preview-lead {
  margin: 0;
  color: var(--hlmg-text-muted);
  font-size: 1rem;
}

.hlmg-gallery-preview-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.hlmg-gallery-thumb {
  position: relative;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 4px 16px rgba(44, 36, 25, 0.1);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.hlmg-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.hlmg-gallery-thumb__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 0.75rem;
  background: linear-gradient(transparent 40%, rgba(44, 36, 25, 0.75));
  opacity: 0;
  transition: opacity 0.35s ease;
}

.hlmg-gallery-thumb__overlay span {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}

.hlmg-gallery-thumb:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(44, 36, 25, 0.18);
}

.hlmg-gallery-thumb:hover img {
  transform: scale(1.05);
}

.hlmg-gallery-thumb:hover .hlmg-gallery-thumb__overlay {
  opacity: 1;
}

.hlmg-gallery-preview-cta {
  text-align: center;
  margin: 1.75rem 0 0;
}

/* Full gallery page */
.hlmg-page--gallery {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem 2.5rem;
}

.hlmg-gallery-page__head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2rem;
  padding-top: 0.5rem;
}

.hlmg-gallery-page__meta {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  color: var(--hlmg-text-muted);
}

.hlmg-gallery-full__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.hlmg-gallery-full__link {
  position: relative;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 4px 16px rgba(44, 36, 25, 0.1);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.hlmg-gallery-full__link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.hlmg-gallery-full__zoom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(44, 36, 25, 0.45);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hlmg-gallery-full__link:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(44, 36, 25, 0.14);
}

.hlmg-gallery-full__link:hover img {
  transform: scale(1.05);
}

.hlmg-gallery-full__link:hover .hlmg-gallery-full__zoom {
  opacity: 1;
}

/* Lightbox */
.hlmg-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(24, 20, 14, 0.92);
}

.hlmg-lightbox[hidden] {
  display: none !important;
}

body.hlmg-lightbox-open {
  overflow: hidden;
}

.hlmg-lightbox__stage {
  max-width: min(92vw, 1100px);
  max-height: 85vh;
  text-align: center;
}

.hlmg-lightbox__img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.hlmg-lightbox__caption {
  margin: 0.75rem 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
}

.hlmg-lightbox__close,
.hlmg-lightbox__prev,
.hlmg-lightbox__next {
  position: absolute;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  line-height: 1;
  transition: background 0.2s ease;
}

.hlmg-lightbox__close:hover,
.hlmg-lightbox__prev:hover,
.hlmg-lightbox__next:hover {
  background: rgba(255, 255, 255, 0.22);
}

.hlmg-lightbox__close {
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  font-size: 1.5rem;
}

.hlmg-lightbox__prev,
.hlmg-lightbox__next {
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  font-size: 2rem;
}

.hlmg-lightbox__prev {
  left: 1rem;
}

.hlmg-lightbox__next {
  right: 1rem;
}

/* CTA band */
.hlmg-cta-band {
  margin-bottom: 1rem;
}

.hlmg-cta-band__inner {
  text-align: center;
  padding: 2.5rem 2rem;
  background: linear-gradient(145deg, var(--hlmg-bg-alt), var(--hlmg-surface));
  border: 1px solid var(--hlmg-border);
  border-radius: var(--hlmg-radius);
}

.hlmg-cta-band__title {
  margin: 0 0 0.75rem;
  font-family: var(--hlmg-font-display);
  font-size: 1.75rem;
  color: var(--hlmg-leather-dark);
}

.hlmg-cta-band__text {
  margin: 0 0 1.25rem;
  color: var(--hlmg-text-muted);
  max-width: 42ch;
  margin-left: auto;
  margin-right: auto;
}

.hlmg-cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.hlmg-cta-band__phones {
  margin: 0;
  font-size: 0.95rem;
}

.hlmg-cta-band__phones a {
  color: var(--hlmg-teal-dark);
  font-weight: 600;
  text-decoration: none;
}

.hlmg-cta-band__phones a:hover {
  color: var(--hlmg-leather);
}

.hlmg-btn-outline-dark {
  border: 2px solid var(--hlmg-leather);
  color: var(--hlmg-leather-dark);
  background: transparent;
}

.hlmg-btn-outline-dark:hover {
  background: var(--hlmg-leather-dark);
  color: #fff;
  transform: translateY(-2px);
}

/* Scroll animations */
.hlmg-animate {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.hlmg-animate.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .hlmg-animate {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hlmg-parallax-band__bg {
    transform: none !important;
  }

  .hlmg-callout-card:hover,
  .hlmg-explore-card:hover,
  .hlmg-gallery-thumb:hover,
  .hlmg-gallery-full__link:hover {
    transform: none;
  }
}

@media (max-width: 900px) {
  .hlmg-split {
    grid-template-columns: 1fr;
  }

  .hlmg-callout-grid {
    grid-template-columns: 1fr;
  }

  .hlmg-explore-grid {
    grid-template-columns: 1fr;
  }

  .hlmg-gallery-preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hlmg-gallery-full__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .hlmg-gallery-preview {
    padding: 1.5rem 1rem;
  }

  .hlmg-gallery-preview-grid {
    grid-template-columns: 1fr;
  }

  .hlmg-gallery-full__grid {
    grid-template-columns: 1fr;
  }

  .hlmg-parallax-band {
    min-height: 180px;
  }
}
