/* =========================================================================
   LiveNest — Stylesheet
   Design tokens: warm ivory / near-black themes, antique-gold accent,
   Playfair Display (display) + Poppins (body), architectural corner-frame
   signature motif on imagery.
   ========================================================================= */

/* ---------------------------- THEME TOKENS ---------------------------- */
:root[data-theme="light"]{
  --bg:            #FAF7F1;
  --bg-alt:        #F2ECDF;
  --surface:       #FFFFFF;
  --text:          #2A231C;
  --text-soft:     #6E6455;
  --border:        #E5DCC7;
  --gold:          #A9812E;
  --gold-strong:   #8C6A22;
  --gold-soft:     rgba(169,129,46,0.12);
  --bronze:        #6B4E2E;
  --shadow:        0 20px 50px -25px rgba(42,35,28,0.35);
  --overlay-dark:  rgba(20,17,12,0.55);
}

:root[data-theme="dark"]{
  --bg:            #14120E;
  --bg-alt:        #1B1812;
  --surface:       #1E1B15;
  --text:          #EFE8D8;
  --text-soft:     #B4A991;
  --border:        #33301F;
  --gold:          #D4AF37;
  --gold-strong:   #E8C766;
  --gold-soft:     rgba(212,175,55,0.14);
  --bronze:        #C79A56;
  --shadow:        0 24px 60px -20px rgba(0,0,0,0.65);
  --overlay-dark:  rgba(10,9,6,0.65);
}

/* ------------------------------ RESET/BASE ------------------------------ */
*{ box-sizing: border-box; }
html{ scroll-behavior:smooth; scroll-padding-top: 130px; }
body{
  background: var(--bg);
  color: var(--text);
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  line-height: 1.7;
  transition: background .35s ease, color .35s ease;
  overflow-x: hidden;
}
h1,h2,h3,h4, .font-display{
  font-family: "Playfair Display", serif;
  color: var(--text);
  letter-spacing: 0.2px;
}
a{ text-decoration:none; color: inherit; }
img{ max-width:100%; display:block; }
::selection{ background: var(--gold); color:#14120E; }

/* Focus visibility (accessibility floor) */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.ln-eyebrow{
  font-family:"Poppins",sans-serif;
  font-size:.78rem;
  font-weight:600;
  letter-spacing:3px;
  text-transform:uppercase;
  color: var(--gold);
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:14px;
}
.ln-eyebrow::before{
  content:"";
  width:34px; height:1px;
  background: var(--gold);
  display:inline-block;
}
.ln-eyebrow--light{ color:#E8C766; }
.ln-eyebrow--light::before{ background:#E8C766; }
.ln-eyebrow--center{ justify-content:center; }
.ln-eyebrow--center::before{ display:none; }

.section-title{
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  font-weight:600;
  margin-bottom: 18px;
}
.section-lead{
  color: var(--text-soft);
  font-size:1.02rem;
  max-width:560px;
}
.text-gold{ color: var(--gold) !important; }
.bg-alt-section{ background: var(--bg-alt); }

/* ------------------------------ BUTTONS ------------------------------ */
.ln-btn-gold{
  background: linear-gradient(135deg, var(--gold-strong), var(--gold));
  color:#1A150C !important;
  border:none;
  font-weight:600;
  font-size:.92rem;
  padding:12px 26px;
  border-radius:2px;
  letter-spacing:.4px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 10px 24px -12px rgba(169,129,46,0.7);
}
.ln-btn-gold:hover{ transform: translateY(-2px); color:#1A150C; box-shadow: 0 16px 30px -12px rgba(169,129,46,0.85); }

.ln-btn-gold-outline{
  background:transparent;
  border:1.5px solid var(--gold);
  color: var(--gold);
  font-weight:600;
  font-size:.92rem;
  padding:12px 28px;
  border-radius:2px;
  display:inline-flex;
  align-items:center;
  gap:10px;
  transition: all .25s ease;
  white-space:nowrap;
}
.ln-btn-gold-outline:hover{ background: var(--gold); color:#1A150C; }

.ln-btn-outline-soft{
  background:transparent;
  border:1.5px solid var(--border);
  color: var(--text);
  font-weight:600;
  font-size:.9rem;
  padding:11px 24px;
  border-radius:2px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  transition:.25s ease;
}
.ln-btn-outline-soft:hover{ border-color: var(--gold); color: var(--gold); }

/* ------------------------------ TOPBAR ------------------------------ */
.ln-topbar{
  background: #14120E;
  color:#CFC5AD;
  font-size:.82rem;
  border-bottom: 1px solid rgba(212,175,55,0.25);
}
.ln-topbar__inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:8px 15px;
}
.ln-topbar__left{ display:flex; gap:26px; align-items:center; }
.ln-topbar__left a, .ln-topbar__left span{ color:#CFC5AD; }
.ln-topbar__left a:hover{ color: #D4AF37; }
.ln-topbar__left i{ color:#D4AF37; margin-right:5px; }
.ln-topbar__right{ display:flex; gap:16px; }
.ln-topbar__right a{
  color:#CFC5AD; font-size:.95rem; transition: color .2s ease, transform .2s ease;
}
.ln-topbar__right a:hover{ color:#D4AF37; transform: translateY(-2px); display:inline-block;}

/* ------------------------------ HEADER ------------------------------ */
.ln-header{
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky; top:0; z-index:1000;
  transition: background .35s ease;
}
.ln-header__inner{
  display:flex; align-items:center; justify-content:space-between;
  padding: 16px 15px;
}
.ln-logo{ display:flex; align-items:center; gap:10px; }
.ln-logo__mark{
  width:40px; height:40px;
  border:1.5px solid var(--gold);
  display:flex; align-items:center; justify-content:center;
  font-family:"Playfair Display",serif;
  font-size:1.25rem;
  color: var(--gold);
  position:relative;
}
.ln-logo__mark::before, .ln-logo__mark::after{
  content:""; position:absolute; width:6px; height:6px; border: 1px solid var(--gold);
}
.ln-logo__mark::before{ top:-4px; left:-4px; border-width:1px 0 0 1px; }
.ln-logo__mark::after{ bottom:-4px; right:-4px; border-width:0 1px 1px 0; }
.ln-logo__text{
  font-family:"Playfair Display", serif;
  font-size:1.35rem;
  font-weight:600;
  color: var(--text);
  letter-spacing:.3px;
}
.ln-logo__text em{ color: var(--gold); font-style:normal; }

.ln-nav{ gap:34px; }
.ln-nav a{
  font-size:.92rem; font-weight:500; color: var(--text-soft);
  position:relative; padding:6px 0;
  transition: color .2s ease;
}
.ln-nav a::after{
  content:""; position:absolute; left:0; bottom:0; width:0; height:1.5px;
  background: var(--gold); transition: width .25s ease;
}
.ln-nav a:hover, .ln-nav a.active{ color: var(--text); }
.ln-nav a:hover::after, .ln-nav a.active::after{ width:100%; }

.ln-header__actions{ display:flex; align-items:center; gap:16px; }

.ln-theme-toggle{
  width:42px; height:42px;
  border-radius:50%;
  border:1px solid var(--border);
  background: var(--surface);
  color: var(--gold);
  display:flex; align-items:center; justify-content:center;
  position:relative;
  cursor:pointer;
  transition: border-color .2s ease;
}
.ln-theme-toggle:hover{ border-color: var(--gold); }
.ln-icon-moon{ display:none; }
:root[data-theme="dark"] .ln-icon-sun{ display:none; }
:root[data-theme="dark"] .ln-icon-moon{ display:block; }

.ln-hamburger{
  width:42px; height:42px;
  border:1px solid var(--border);
  background: var(--surface);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px;
  cursor:pointer;
}
.ln-hamburger span{ width:20px; height:2px; background: var(--gold); display:block; }

/* ------------------------------ MOBILE SIDEBAR (offcanvas, left→right) ------------------------------ */
.ln-sidebar{
  width: min(320px, 84vw);
  background: var(--bg);
  color: var(--text);
  border-right: 2px solid var(--gold);
}
.ln-sidebar .offcanvas-header{ border-bottom:1px solid var(--border); padding:18px 20px; }
.ln-sidebar__close{ filter: none; }
:root[data-theme="dark"] .ln-sidebar__close{ filter: invert(1); }
.ln-sidebar__nav{ display:flex; flex-direction:column; margin-top:10px; }
.ln-sidebar__nav a{
  padding:14px 6px;
  border-bottom:1px solid var(--border);
  font-size:1.02rem; font-weight:500;
  display:flex; align-items:center; gap:12px;
  color: var(--text);
}
.ln-sidebar__nav a i{ color: var(--gold); font-size:1.05rem; width:20px; }
.ln-sidebar__nav a:hover{ color: var(--gold); padding-left:12px; }
.ln-sidebar__divider{ height:1px; background: var(--border); margin:22px 0; }
.ln-sidebar__contact{ display:flex; flex-direction:column; gap:12px; font-size:.9rem; color: var(--text-soft); }
.ln-sidebar__contact a{ color: var(--text-soft); }
.ln-sidebar__contact i{ color: var(--gold); margin-right:8px; }
.ln-sidebar__social{ display:flex; gap:14px; margin-top:20px; }
.ln-sidebar__social a{
  width:38px; height:38px; border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center;
  color: var(--gold);
}

/* ------------------------------ HERO SLIDER ------------------------------ */
.ln-hero{ position:relative; height: 88vh; min-height:560px; overflow:hidden; }
.ln-hero .carousel, .ln-hero .carousel-inner, .ln-hero .carousel-item{ height:100%; }
.ln-hero .carousel-item{ position:relative; }
.ln-hero .carousel-item img{
  height:100%; width:100%; object-fit:cover;
  filter: saturate(1.02);
}
.ln-hero .carousel-item::after{
  content:""; position:absolute; inset:0;
  background: linear-gradient(90deg, rgba(15,13,9,0.78) 0%, rgba(15,13,9,0.45) 45%, rgba(15,13,9,0.25) 100%);
}
.ln-hero__caption{
  position:absolute; inset:0; z-index:2;
  display:flex; align-items:center;
}
.ln-hero__caption .container{ max-width:680px; }
.ln-hero__caption p.ln-eyebrow{ color:#E8C766; }
.ln-hero__caption p.ln-eyebrow::before{ background:#E8C766; }
.ln-hero__caption h1{
  color:#FBF6E9;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  font-weight:600;
  line-height:1.15;
  margin-bottom:20px;
}
.ln-hero__caption p.ln-hero__sub{
  color:#E4DCC3;
  font-size:1.05rem;
  max-width:520px;
  margin-bottom:30px;
}
.ln-hero__actions{ display:flex; gap:16px; flex-wrap:wrap; }

.ln-hero .carousel-indicators{ bottom:26px; }
.ln-hero .carousel-indicators [data-bs-target]{
  width:34px; height:3px; background: rgba(255,255,255,0.4); border:none; opacity:1;
}
.ln-hero .carousel-indicators .active{ background: var(--gold, #D4AF37); }
.ln-hero .carousel-control-prev, .ln-hero .carousel-control-next{ width:60px; opacity:0.85;}

.ln-hero__stats{
  position:absolute; z-index:3; left:0; right:0; bottom:0;
  transform: translateY(50%);
}
.ln-hero__stats-inner{
  background: var(--surface);
  box-shadow: var(--shadow);
  display:flex;
  border:1px solid var(--border);
}
.ln-hero__stat{
  flex:1; text-align:center; padding:22px 10px;
  border-right:1px solid var(--border);
}
.ln-hero__stat:last-child{ border-right:none; }
.ln-hero__stat strong{
  display:block; font-family:"Playfair Display",serif; color: var(--gold);
  font-size:1.8rem; font-weight:700;
}
.ln-hero__stat span{ font-size:1rem; letter-spacing:1px; text-transform:uppercase; color: var(--text-soft); }

/* ------------------------------ CORNER-FRAME SIGNATURE MOTIF ------------------------------ */
.ln-framed{ position:relative; padding:14px; }
.ln-framed__inner{ position:relative; overflow:hidden; }
.ln-framed__inner img{ width:100%; height:100%; object-fit:cover; transition: transform .6s ease; }
.ln-framed:hover .ln-framed__inner img{ transform: scale(1.06); }
.ln-framed::before, .ln-framed::after,
.ln-framed__inner::before, .ln-framed__inner::after{ content:none; }
.ln-corner{
  position:absolute; width:34px; height:34px; z-index:2;
  border-color: var(--gold);
  border-style:solid; border-width:0;
}
.ln-corner--tl{ top:0; left:0; border-top-width:2.5px; border-left-width:2.5px; }
.ln-corner--br{ bottom:0; right:0; border-bottom-width:2.5px; border-right-width:2.5px; }

/* ------------------------------ CONTENT / IMAGE ALTERNATING SECTIONS ------------------------------ */
.ln-split{ padding:100px 0; overflow:hidden; }
.ln-split__row{ display:flex; align-items:center; gap:60px; flex-wrap:wrap; }
.ln-split__row.reverse{ flex-direction:row-reverse; }
.ln-split__media, .ln-split__content{ flex:1 1 440px; min-width:300px; }
.ln-split__media{ position:relative; }
.ln-split__content ul.ln-check-list{ list-style:none; padding:0; margin:22px 0; }
.ln-split__content ul.ln-check-list li{
  display:flex; align-items:flex-start; gap:12px; margin-bottom:12px; color: var(--text-soft);
}
.ln-split__content ul.ln-check-list li i{ color: var(--gold); margin-top:4px; }

/* Floating accent tag on split media */
.ln-split__badge{
  position:absolute; bottom:-18px; left:24px; z-index:3;
  background: var(--gold);
  color:#1A150C; font-weight:600; font-size:.85rem;
  padding:10px 18px;
  display:flex; align-items:center; gap:8px;
  box-shadow: var(--shadow);
}
.reverse .ln-split__badge{ left:auto; right:24px; }

/* ------------------------------ SERVICE CARDS ------------------------------ */
.ln-service-card{
  background: var(--surface);
  border:1px solid var(--border);
  padding:38px 30px;
  height:100%;
  transition: transform .3s ease, border-color .3s ease;
  position:relative;
}
.ln-service-card:hover{ transform: translateY(-6px); border-color: var(--gold); }
.ln-service-card__icon{
  width:58px; height:58px;
  border:1.5px solid var(--gold);
  display:flex; align-items:center; justify-content:center;
  font-size:1.5rem; color: var(--gold);
  margin-bottom:22px;
}
.ln-service-card h3{ font-size:1.25rem; margin-bottom:12px; }
.ln-service-card p{ color: var(--text-soft); font-size:.94rem; margin-bottom:0;}
.ln-service-card__num{
  position:absolute; top:20px; right:24px;
  font-family:"Playfair Display",serif; font-style:italic;
  color: var(--border); font-size:1.6rem;
}

/* ------------------------------ PROCESS STEPS ------------------------------ */
.ln-process{ display:flex; gap:0; flex-wrap:wrap; }
.ln-process__step{ flex:1 1 220px; position:relative; padding:0 20px 20px 0; }
.ln-process__step .num{
  font-family:"Playfair Display",serif; font-style:italic; color: var(--gold);
  font-size:2.4rem; display:block; margin-bottom:10px;
}
.ln-process__step h4{ font-size:1.05rem; margin-bottom:8px; }
.ln-process__step p{ color: var(--text-soft); font-size:.9rem; }

/* ------------------------------ TESTIMONIALS ------------------------------ */
.ln-testimonial{
  background: var(--surface); border:1px solid var(--border);
  padding:34px; height:100%;
}
.ln-testimonial i.bi-quote{ font-size:1.8rem; color: var(--gold-soft); color:var(--gold); opacity:.5; }
.ln-testimonial p{ color: var(--text-soft); font-style:italic; margin: 16px 0 20px; }
.ln-testimonial__who{ display:flex; align-items:center; gap:12px; }
.ln-testimonial__avatar{
  width:44px; height:44px; border-radius:50%;
  background: var(--gold-soft); color: var(--gold);
  display:flex; align-items:center; justify-content:center; font-weight:700;
  font-family:"Playfair Display",serif;
}
.ln-testimonial__who strong{ display:block; font-size:.92rem; }
.ln-testimonial__who span{ font-size:.78rem; color: var(--text-soft); }

/* ------------------------------ CTA STRIP ------------------------------ */
.ln-cta{ background:#14120E; padding:60px 0; }
.ln-cta__inner{ display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap; }
.ln-cta h2{ color:#FBF6E9; font-size: clamp(1.4rem, 3vw, 2rem); margin:0; max-width:560px; }

/* ------------------------------ FOOTER ------------------------------ */
.ln-footer{ background: var(--bg-alt); border-top:1px solid var(--border); padding:70px 0 0; }
.ln-footer__grid{ display:grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap:40px; padding-bottom:50px; }
.ln-footer__col h6{ font-size:.82rem; text-transform:uppercase; letter-spacing:1.5px; color: var(--gold); margin-bottom:20px; }
.ln-footer__col a, .ln-footer__col span{ display:block; color: var(--text-soft); font-size:.92rem; margin-bottom:12px; }
.ln-footer__col a:hover{ color: var(--gold); }
.ln-footer__about{ color: var(--text-soft); font-size:.9rem; margin:16px 0 20px; max-width:320px; }
.ln-logo--footer{ margin-bottom:6px; }
.ln-footer__social{ display:flex; gap:12px; }
.ln-footer__social a{
  width:36px; height:36px; border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center; color: var(--gold);
}
.ln-footer__bottom{
  border-top:1px solid var(--border);
  padding:20px 0; display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px;
  font-size:.82rem; color: var(--text-soft);
}

/* ------------------------------ PAGE HEADER (inner pages) ------------------------------ */
.ln-pageheader{
  position:relative; padding: 150px 0 90px; text-align:center;
  background: linear-gradient(var(--overlay-dark), var(--overlay-dark)), url('https://images.unsplash.com/photo-1618221195710-dd6b41faaea6?auto=format&fit=crop&w=1600&q=70') center/cover;
}
.ln-pageheader h1{ color:#FBF6E9; font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom:14px; }
.ln-breadcrumb{ display:flex; justify-content:center; gap:10px; color:#D8CCAA; font-size:.9rem; }
.ln-breadcrumb a{ color:#D8CCAA; }
.ln-breadcrumb a:hover{ color: var(--gold); }

/* ------------------------------ FORMS (contact) ------------------------------ */
.ln-form-card{
  background: var(--surface); border:1px solid var(--border); padding:44px; box-shadow: var(--shadow);
}
.ln-form .form-label{ font-size:.85rem; font-weight:600; letter-spacing:.4px; color: var(--text-soft); margin-bottom:8px; }
.ln-form .form-control, .ln-form .form-select{
  background: var(--bg); border:1px solid var(--border); color: var(--text);
  padding:12px 14px; border-radius:2px; font-size:.94rem;
}
.ln-form .form-control:focus, .ln-form .form-select:focus{
  border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); background: var(--bg);
  color: var(--text);
}
.ln-form textarea.form-control{ min-height:130px; resize:vertical; }

.ln-info-card{
  background: var(--surface); border:1px solid var(--border); padding:26px; display:flex; gap:18px; margin-bottom:18px;
}
.ln-info-card i{ font-size:1.3rem; color: var(--gold); }
.ln-info-card h6{ font-size:.95rem; margin-bottom:4px; }
.ln-info-card p, .ln-info-card a{ color: var(--text-soft); font-size:.9rem; margin:0; }

.ln-map-wrap{ border:1px solid var(--border); overflow:hidden; height:100%; min-height:340px; }
.ln-map-wrap iframe{ width:100%; height:100%; min-height:340px; border:0; filter: grayscale(.15); }

/* ------------------------------ PROJECT GALLERY ------------------------------ */
.ln-filters{ display:flex; gap:10px; flex-wrap:wrap; justify-content:center; margin-bottom:44px; }
.ln-filter-btn{
  background:transparent; border:1px solid var(--border); color: var(--text-soft);
  padding:9px 20px; font-size:.85rem; font-weight:500; cursor:pointer; transition:.2s ease;
}
.ln-filter-btn:hover{ border-color: var(--gold); color: var(--gold); }
.ln-filter-btn.active{ background: var(--gold); border-color: var(--gold); color:#1A150C; }

.ln-project-card{ position:relative; overflow:hidden; margin-bottom:30px; border:1px solid var(--border); }
.ln-project-card__img{ height:280px; overflow:hidden; }
.ln-project-card__img video{ height:100%; width: 100%; overflow:hidden; }
.ln-project-card__img img{ width:100%; height:100%; object-fit:cover; transition: transform .5s ease; }
.ln-project-card:hover .ln-project-card__img img{ transform: scale(1.08); }
.ln-project-card__body{ padding:20px 22px; background: var(--surface); }
.ln-project-card__tag{ font-size:.72rem; letter-spacing:1.5px; text-transform:uppercase; color: var(--gold); margin-bottom:6px; }
.ln-project-card__body h5{ font-size:1.05rem; margin-bottom:4px; }
.ln-project-card__body p{ font-size:.85rem; color: var(--text-soft); margin:0; }

/* ------------------------------ MISC UTIL ------------------------------ */
.ln-divider-gold{ width:60px; height:2px; background: var(--gold); margin: 0 auto 20px; }
.fade-up{ opacity:0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.fade-up.in-view{ opacity:1; transform:none; }

/* ============================== RESPONSIVE ============================== */
@media (max-width: 991.98px){
  .ln-footer__grid{ grid-template-columns: 1fr 1fr; }
  .ln-split__row, .ln-split__row.reverse{ flex-direction:column; }
  .ln-split{ padding:70px 0; }
  .ln-hero{ height:78vh; }
}

@media (max-width: 767.98px){
  html{ scroll-padding-top:74px; }
  .ln-header__inner{ padding:12px 15px; }
  .ln-hero{ height:640px; }
  .ln-hero__caption h1{ font-size:1.9rem; }
  .ln-hero__stats{ display:none; }
  .ln-cta__inner{ flex-direction:column; align-items:flex-start; text-align:left; }
  .ln-footer__grid{ grid-template-columns:1fr; gap:34px; }
  .ln-form-card{ padding:26px; }
  .ln-pageheader{ padding:110px 0 60px; }
}
