/* ------------------------------------------------------
   THE CANDLER OFF CANDLER — STYLE C2: Warm Creative Studio
   A modern, soft, creative, gallery-friendly theme
-------------------------------------------------------*/

/* ---------- COLOR PALETTE ---------- */
:root {
  --bg: #F7F3EC;             /* warm parchment */
  --bg-panel: #FFFFFF;       /* clean white panels */
  --bg-alt: #EFE6DA;         /* warm tan secondary */
  
  --header-bg: #5C4635;      /* deep warm brown */
  --footer-bg: #5C4635;

  --text-main: #2E2B28;      /* charcoal ink */
  --text-muted: #7A7065;

  --accent: #C5913F;         /* warm gold */
  --accent-light: #E8C98A;   /* light gold */
  --accent-dark: #8C3C3F;    /* wine/burgundy */

  --border-soft: #D9CFC2;
  --radius-card: 18px;
  --radius-pill: 999px;

  --shadow-soft: 0 8px 22px rgba(0,0,0,0.09);
  --shadow-deep: 0 12px 32px rgba(0,0,0,0.14);
}

/* ---------- BASE ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 16px 60px;
}

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

/* ---------- HEADER ---------- */
header {
  background: var(--header-bg);
  color: white;
  padding: 16px 22px;
  margin: -22px -16px 42px;
  border-radius: 0 0 22px 22px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.16);

  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.header-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-text-main {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.12em;
}

.logo-text-sub {
  font-size: 0.8rem;
  opacity: 0.85;
}

/* ---------- NAVIGATION ---------- */
.main-nav {
  display: flex;
  gap: 18px;
  font-size: 0.9rem;
}

.main-nav a {
  color: white;
  text-decoration: none;
  padding-bottom: 3px;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  left: 0;
  bottom: -4px;
  background: var(--accent-light);
  transition: 0.22s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

/* Mobile nav toggle button */
.nav-toggle {
  display: none; /* hidden on desktop */
  background: transparent;
  border: 1px solid rgba(255,255,255,0.6);
  color: white;
  border-radius: var(--radius-pill);
  padding: 6px 10px;
  font-size: 1rem;
  cursor: pointer;
}

/* ---------- BUTTONS ---------- */
.btn {
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  border: 1px solid transparent;
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
}
/* Movement listen button custom color (aqua-blue that fits Movement design) */
.movement-btn {
  background: #2fd4ff;
  color: #111;
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: 0.2s ease;
}

.movement-btn:hover {
  background: #00b8e6;
  color: white;
}
.btn-primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.btn-primary:hover {
  background: var(--accent-light);
}

.btn-ghost {
  color: white;
  border: 1px solid rgba(255,255,255,0.4);
}

.btn-ghost:hover {
  border-color: white;
}

/* ---------- HERO SECTION ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  margin-bottom: 48px;
}

.hero-kicker {
  text-transform: uppercase;
  color: var(--accent-dark);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  margin-bottom: 10px;
}

.hero-title {
  font-size: clamp(2.1rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 6px;
}

/* Centered hero logo */
.hero-logo {
  width: 260px;      /* adjust to taste */
  max-width: 100%;
  margin: 10px auto 12px;
}

/* leave gradient text as color accent */
.hero-gradient {
  color: var(--accent-dark);
}

.hero-subtitle {
  max-width: 480px;
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
}

.hero-note {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.hero-note span {
  color: var(--accent-dark);
  font-weight: 700;
}

/* ---------- HERO RIGHT TILES ---------- */
.hero-right {
  background: var(--bg-alt);
  border-radius: var(--radius-card);
  padding: 18px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

.hero-right-inner {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.hero-tile {
  display: block;
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  padding: 16px;
  border-radius: var(--radius-card);
  text-decoration: none;
  color: var(--text-main);
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hero-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-deep);
}

.hero-tile-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-tile-icon {
  background: var(--accent-light);
  padding: 10px;
  border-radius: 12px;
  font-size: 1.2rem;
  color: white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.14);
}

.hero-tile-title {
  font-size: 1.05rem;
  font-weight: 700;
}

.hero-tile-text {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- FOOTER ---------- */
footer {
  margin-top: 54px;
  background: var(--footer-bg);
  color: white;
  padding: 24px 16px;
  border-radius: 22px 22px 0 0;

  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: white;
  opacity: 0.85;
  text-decoration: none;
}

.footer-links a:hover {
  opacity: 1;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  header {
    flex-wrap: nowrap;
    align-items: center;
  }

  .nav-toggle {
    display: inline-flex;   /* show burger on mobile */
  }

  .main-nav,
  .header-cta {
    display: none;          /* hide menu + CTA by default on small screens */
    width: 100%;
  }

  body.nav-open .main-nav,
  body.nav-open .header-cta {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
    gap: 10px;
  }

  .main-nav {
    flex-direction: column;
  }

  .hero {
    grid-template-columns: 1fr;
  }

}

/* =========================================
   LS PROJECT PAGE STYLES
========================================= */

.ls-hero {
  margin-bottom: 32px;
}

.ls-hero-text {
  max-width: 720px;
}

/* Scroll-story layout */
.ls-story-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: 28px;
  align-items: flex-start;
  margin-bottom: 48px;
}

.ls-image-panel {
  position: sticky;
  top: 110px; /* sticks under the header */
}

.ls-image-panel img {
  width: 100%;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-deep);
  border: 1px solid var(--border-soft);
  object-fit: cover;
}

.ls-text-panel {
  display: grid;
  gap: 26px;
}

.ls-text-block h2 {
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.ls-text-block p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Gallery / carousel */
.ls-gallery-section {
  margin-top: 12px;
}

.ls-carousel {
  margin-top: 16px;
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
}

.ls-thumb {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  scroll-snap-align: start;
  flex: 0 0 auto;
}

.ls-thumb img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.ls-thumb img:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-deep);
}

/* Modal */
.ls-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.ls-modal.open {
  display: flex;
}

.ls-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

.ls-modal-dialog {
  position: relative;
  background: var(--bg-panel);
  border-radius: 20px;
  padding: 18px;
  max-width: 900px;
  width: 92%;
  z-index: 1000;
  box-shadow: var(--shadow-deep);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 16px;
}

.ls-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: none;
  background: transparent;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--text-muted);
}

.ls-modal-image-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
}

.ls-modal-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Watermark overlay */
.ls-watermark {
  position: absolute;
  bottom: 10px;
  right: 10px;
  opacity: 0.4;
}

.ls-watermark img {
  max-width: 140px;
  height: auto;
}

/* Modal content */
.ls-modal-info h3 {
  margin-bottom: 8px;
}

.ls-modal-copy {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.ls-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ls-modal-secondary {
  background: transparent;
  border: 1px solid var(--border-soft);
  color: var(--text-main);
}

/* Responsive for LS layout */
@media (max-width: 900px) {
  .ls-story-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .ls-image-panel {
    position: relative;
    top: 0;
  }

  .ls-modal-dialog {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- LS PAGE LAYOUT ---------- */

.ls-hero {
  margin-bottom: 32px;
}

.ls-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 24px;
  align-items: center;
}

.ls-hero-image img {
  width: 100%;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-deep);
  object-fit: cover;
}

/* Sticky scroll story layout */
.ls-story-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  margin-bottom: 44px;
}

.ls-image-panel {
  position: sticky;
  top: 110px;
}

.ls-image-panel img {
  width: 100%;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-deep);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Fade animation class applied in JS */
.ls-image-panel img.ls-image-fade {
  opacity: 0;
  transform: translateY(10px);
}

.ls-text-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ls-text-block {
  background: var(--bg-panel);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-soft);
  padding: 16px 18px;
  box-shadow: var(--shadow-soft);

  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* When block comes into view via IntersectionObserver */
.ls-text-block.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- LS CAROUSEL ---------- */

.ls-gallery-section {
  margin-bottom: 40px;
}

.ls-carousel {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 0;
  scroll-snap-type: x mandatory;
}

.ls-carousel::-webkit-scrollbar {
  height: 6px;
}

.ls-carousel::-webkit-scrollbar-thumb {
  background: var(--border-soft);
  border-radius: 999px;
}

.ls-thumb {
  background: none;
  border: none;
  padding: 0;
  scroll-snap-align: start;
  flex: 0 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.ls-thumb img {
  display: block;
  height: 120px;
  width: auto;
}

/* ---------- LS MODAL ---------- */

.ls-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 999;
}

.ls-modal.open {
  display: block;
}

.ls-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}

.ls-modal-dialog {
  position: relative;
  max-width: 900px;
  width: 90%;
  margin: 40px auto;
  background: var(--bg-panel);
  border-radius: 18px;
  box-shadow: var(--shadow-deep);
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 18px;
}

.ls-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 1.6rem;
  cursor: pointer;
}

.ls-modal-image-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

.ls-modal-image-wrapper img {
  width: 100%;
  display: block;
}

/* watermark overlay */
.ls-watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.28;
  pointer-events: none;
}

.ls-watermark img {
  max-width: 50%;
}

.ls-modal-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ls-modal-copy {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.ls-modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ls-modal-secondary {
  background: transparent;
  border-color: var(--border-soft);
}

/* ---------- RESPONSIVE ADJUSTMENTS FOR LS PAGE ---------- */

@media (max-width: 900px) {
  .ls-hero-inner {
    grid-template-columns: 1fr;
  }

  .ls-hero-image {
    order: -1;
  }

  .ls-story-layout {
    grid-template-columns: 1fr;
  }

  .ls-image-panel {
    position: static;
    margin-bottom: 18px;
  }

  .ls-modal-dialog {
    grid-template-columns: 1fr;
    margin: 40px auto;
  }
}

