/* ============================================
   ROYALCRAFT DESIGN SYSTEM — TOKENS
   ============================================ */
:root{
  --navy: #0A2342;
  --navy-deep: #061427;
  --walnut: #8B5E3C;
  --walnut-light: #A87A52;
  --gold: #D4AF37;
  --gold-soft: #E9CD6E;
  --white: #FFFFFF;
  --gray-bg: #F8F9FA;
  --charcoal: #222222;
  --emerald: #2E8B57;

  --bg-page: var(--white);
  --bg-alt: var(--gray-bg);
  --bg-surface: var(--white);
  --bg-inverse: var(--navy);
  --text-main: var(--charcoal);
  --text-muted: #6B7280;
  --text-inverse: #F4F1EA;
  --border-soft: rgba(10,35,66,0.08);

  --font-display: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;

  --container: 1240px;
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 28px;

  --ease: cubic-bezier(.22,.61,.36,1);
  --seam-h: 5px;
}

[data-theme="dark"]{
  --bg-page: #081830;
  --bg-alt: #0D2240;
  --bg-surface: #0F2746;
  --bg-inverse: #050E1C;
  --text-main: #EDEFF4;
  --text-muted: #9AAAC4;
  --text-inverse: #F4F1EA;
  --border-soft: rgba(244,241,234,0.08);
}

*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  font-family: var(--font-body);
  color: var(--text-main);
  background: var(--bg-page);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background .4s var(--ease), color .4s var(--ease);
}
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
ul{list-style:none;}
button{font-family:inherit;cursor:pointer;border:none;background:none;}

.container{
  width:100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
@media(min-width:768px){ .container{ padding: 0 40px; } }

/* ---------- Headings & utility type ---------- */
.eyebrow{
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom: 18px;
}
.eyebrow::before{
  content:'';
  display:block;
  width: 34px;
  height: 1px;
  background: var(--gold);
}
.h1, .h2, .h3{
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--text-main);
}
.h1{ font-size: clamp(2.6rem, 8vw, 5.4rem); font-weight: 900; }
.h2{ font-size: clamp(2rem, 5vw, 3.2rem); }
.h3{ font-size: clamp(1.3rem, 3vw, 1.7rem); font-weight: 600; }
.lede{
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.8;
}
.section-head{
  max-width: 680px;
  margin-bottom: 56px;
}
.section-head.center{
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head.center .eyebrow{ justify-content:center; }
.section-head.center .eyebrow::before{ display:none; }
.section-head.center .eyebrow::after{
  content:'';
  display:block;
  width: 34px;
  height: 1px;
  background: var(--gold);
}

/* ---------- Buttons ---------- */
.btn{
  position: relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 17px 38px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease), color .35s var(--ease);
  white-space: nowrap;
}
.btn-gold{
  background: var(--gold);
  color: var(--navy-deep);
}
.btn-gold:hover{
  box-shadow: 0 14px 30px -10px rgba(212,175,55,.55);
  transform: translateY(-2px);
}
.btn-outline{
  background: transparent;
  color: var(--text-inverse);
  border: 1px solid rgba(244,241,234,.35);
}
.btn-outline:hover{
  background: rgba(244,241,234,.08);
  border-color: var(--gold);
  transform: translateY(-2px);
}
.btn-line{
  background:transparent;
  color: var(--navy);
  border-bottom: 1px solid var(--gold);
  padding: 4px 0;
  border-radius:0;
  font-size:13px;
}
[data-theme="dark"] .btn-line{ color: var(--text-inverse); }
.btn-line i{ transition: transform .3s var(--ease); }
.btn-line:hover i{ transform: translateX(6px); }

/* magnetic wrapper */
.magnetic{ display:inline-block; }

/* ============================================
   SIGNATURE — JOINERY SEAM DIVIDER
   ============================================ */
.seam{
  height: var(--seam-h);
  width: 100%;
  background: repeating-linear-gradient(90deg,
    var(--gold) 0 28px,
    var(--walnut) 28px 56px);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.1s var(--ease);
}
.seam.is-visible{ transform: scaleX(1); }
.seam-wrap{ overflow:hidden; }

/* ============================================
   PRELOADER
   ============================================ */
#preloader{
  position: fixed; inset: 0; z-index: 9999;
  background: var(--navy);
  display:flex; align-items:center; justify-content:center;
  flex-direction: column; gap: 22px;
  transition: opacity .8s var(--ease), visibility .8s var(--ease);
}
#preloader.hide{ opacity:0; visibility:hidden; }
.preloader-mark{
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: .3em;
  color: var(--text-inverse);
  text-transform:uppercase;
}
.preloader-seam{
  width: 220px; height: 3px; overflow:hidden;
  background: rgba(244,241,234,.15);
  position:relative;
}
.preloader-seam::after{
  content:'';
  position:absolute; inset:0;
  background: repeating-linear-gradient(90deg, var(--gold) 0 16px, var(--walnut) 16px 32px);
  transform: scaleX(0);
  transform-origin:left;
  animation: loadbar 1.4s var(--ease) forwards;
}
@keyframes loadbar{ to{ transform: scaleX(1); } }

/* ============================================
   CUSTOM CURSOR GLOW (hero only)
   ============================================ */
.cursor-glow{
  position:absolute;
  width: 420px; height:420px;
  border-radius:50%;
  background: radial-gradient(circle, rgba(212,175,55,.18), transparent 70%);
  pointer-events:none;
  transform: translate(-50%,-50%);
  transition: opacity .4s ease;
  opacity:0;
  z-index:1;
}
@media(hover:hover){
  .hero:hover .cursor-glow{ opacity:1; }
}

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header{
  position: fixed; top:0; left:0; right:0;
  z-index: 1000;
  padding: 26px 0;
  transition: background .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled{
  padding: 14px 0;
  background: var(--bg-page);
  border-color: var(--border-soft);
  box-shadow: 0 12px 30px -20px rgba(10,35,66,.35);
}
.nav-row{
  display:flex; align-items:center; justify-content:space-between; gap: 24px;
}
.logo{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: .02em;
  color: var(--text-inverse);
  display:flex; align-items:center; gap:10px;
  transition: color .4s var(--ease);
}
.logo span{ color: var(--gold); }
.site-header.scrolled .logo,
[data-theme="dark"] .logo{ color: var(--text-main); }
.site-header.scrolled .logo span,
[data-theme="dark"] .logo span{ color: var(--gold); }

.nav-links{
  display:none;
  align-items:center;
  gap: 36px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing:.06em;
  text-transform:uppercase;
}
@media(min-width:1024px){ .nav-links{ display:flex; } }
.nav-links > li{ position:relative; }
.nav-links a{
  color: var(--text-inverse);
  transition: color .3s var(--ease);
  padding: 8px 0;
  position:relative;
}
.site-header.scrolled .nav-links a,
[data-theme="dark"] .nav-links a{ color: var(--text-main); }
.nav-links a::after{
  content:'';
  position:absolute; left:0; bottom:0;
  width:0; height:2px; background: var(--gold);
  transition: width .3s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after{ width:100%; }

/* mega menu */
.has-mega{ }
.mega{
  position:absolute; top: calc(100% + 22px); left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 620px;
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  box-shadow: 0 30px 60px -20px rgba(10,35,66,.25);
  padding: 28px;
  display:grid;
  grid-template-columns: repeat(2,1fr);
  gap: 6px;
  opacity:0; visibility:hidden;
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
  z-index: 200;
}
.has-mega:hover .mega{ opacity:1; visibility:visible; transform: translateX(-50%) translateY(0); }
.mega a{
  display:flex; align-items:center; gap:12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  text-transform:none; letter-spacing:0; font-weight:500;
  color: var(--text-main);
  transition: background .25s var(--ease), padding-left .25s var(--ease);
}
.mega a:hover{ background: var(--bg-alt); padding-left:16px; }
.mega a i{ color: var(--gold); font-size:18px; }
.mega a::after{ display:none; }

.nav-actions{ display:flex; align-items:center; gap:14px; }
.icon-btn{
  width: 42px; height:42px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  border: 1px solid rgba(244,241,234,.25);
  color: var(--text-inverse);
  transition: all .3s var(--ease);
}
.site-header.scrolled .icon-btn,
[data-theme="dark"] .icon-btn{
  color: var(--text-main);
  border-color: var(--border-soft);
}
.icon-btn:hover{ background: var(--gold); color: var(--navy-deep); border-color: var(--gold); transform: rotate(20deg); }
.icon-btn svg{ width:18px; height:18px; }

.nav-cta{ display:none; }
@media(min-width:1024px){ .nav-cta{ display:inline-flex; } }

.burger{
  width: 42px; height:42px; border-radius:50%;
  border: 1px solid rgba(244,241,234,.25);
  display:flex; align-items:center; justify-content:center;
  color: var(--text-inverse);
}
@media(min-width:1024px){ .burger{ display:none; } }
.site-header.scrolled .burger,
[data-theme="dark"] .burger{ color: var(--text-main); border-color: var(--border-soft); }

/* mobile drawer */
.drawer{
  position:fixed; inset:0; z-index:1100;
  background: var(--navy-deep);
  display:flex; flex-direction:column;
  padding: 110px 32px 40px;
  transform: translateX(100%);
  transition: transform .5s var(--ease);
}
.drawer.open{ transform: translateX(0); }
.drawer a{
  color: var(--text-inverse);
  font-family: var(--font-display);
  font-size: 1.8rem;
  padding: 14px 0;
  border-bottom: 1px solid rgba(244,241,234,.08);
}
.drawer-close{
  position:absolute; top:34px; right:32px;
  width:42px;height:42px;border-radius:50%;
  border:1px solid rgba(244,241,234,.25);
  display:flex;align-items:center;justify-content:center;
  color: var(--text-inverse);
}

/* ============================================
   HERO
   ============================================ */
.hero{
  position:relative;
  min-height: 100vh;
  display:flex; align-items:center;
  background: var(--navy);
  overflow:hidden;
  isolation:isolate;
}
.hero-bg{
  position:absolute; inset:0;
  background: url('https://images.unsplash.com/photo-1616486338812-3dadae4b4ace?q=80&w=1800&auto=format&fit=crop') center/cover no-repeat;
  will-change: transform;
}
.hero-bg::after{
  content:'';
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(6,20,39,.55) 0%, rgba(6,20,39,.78) 55%, rgba(6,20,39,.96) 100%);
}
.hero-content{
  position:relative; z-index:2;
  padding-top: 140px; padding-bottom: 100px;
  display:grid; gap: 28px;
  max-width: 780px;
}
.hero .eyebrow{ color: var(--gold-soft); }
.hero .eyebrow::before{ background: var(--gold-soft); }
.hero h1{
  color: var(--text-inverse);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.8rem, 8.4vw, 5.6rem);
  line-height: 1.08;
}
.hero h1 .line{
  display:block;
  overflow:hidden;
}
.hero h1 .line span{
  display:inline-block;
  transform: translateY(110%);
  animation: riseline .9s var(--ease) forwards;
}
.hero h1 .line:nth-child(2) span{ animation-delay: .12s; }
.hero h1 .accent{ color: var(--gold); font-style:italic; font-weight:500; }
@keyframes riseline{ to{ transform: translateY(0); } }

.hero p.lede{
  color: rgba(244,241,234,.78);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  max-width: 540px;
  opacity:0; animation: fadeup 1s var(--ease) forwards; animation-delay: .55s;
}
.hero-actions{
  display:flex; flex-wrap:wrap; gap:18px;
  opacity:0; animation: fadeup 1s var(--ease) forwards; animation-delay: .75s;
}
@keyframes fadeup{ from{ opacity:0; transform: translateY(22px);} to{ opacity:1; transform:translateY(0);} }

.hero-stats{
  position:relative; z-index:2;
  display:grid; grid-template-columns: repeat(2,1fr);
  border-top: 1px solid rgba(244,241,234,.14);
  margin-top: auto;
}
@media(min-width:768px){ .hero-stats{ grid-template-columns: repeat(4,1fr); } }
.hero-stats div{
  padding: 22px 0;
  border-right: 1px solid rgba(244,241,234,.14);
}
.hero-stats div:last-child{ border-right:none; }
.hero-stats strong{
  display:block; font-family: var(--font-display);
  font-size: clamp(1.4rem,3vw,2.2rem);
  color: var(--gold-soft); font-weight:700;
}
.hero-stats span{ font-size:12px; letter-spacing:.12em; text-transform:uppercase; color: rgba(244,241,234,.55); }

.scroll-cue{
  position:absolute; right: 28px; bottom: 130px;
  z-index:2;
  display:flex; flex-direction:column; align-items:center; gap:10px;
  color: rgba(244,241,234,.6);
  font-size:11px; letter-spacing:.3em; text-transform:uppercase;
  writing-mode: vertical-rl;
}
@media(max-width:767px){ .scroll-cue{ display:none; } }
.scroll-cue .line-anim{
  width:1px; height:60px; background: rgba(244,241,234,.25);
  position:relative; overflow:hidden;
}
.scroll-cue .line-anim::after{
  content:''; position:absolute; left:0; top:-60px; width:100%; height:60px;
  background: var(--gold);
  animation: scrolldrop 2.4s ease-in-out infinite;
}
@keyframes scrolldrop{ 0%{ top:-60px; } 60%{ top:60px; } 100%{ top:60px; } }





.page-banner {
    position: relative;
    min-height: 450px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--navy);
    padding-top: 100px; 
    padding-bottom: 60px;
}

.banner-bg {
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1616486338812-3dadae4b4ace?q=80&w=1800&auto=format&fit=crop')
                center/cover no-repeat;
}


.banner-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(6, 20, 39, 0.85), rgba(6, 20, 39, 0.6));
}


.container.banner-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px; 
    margin-right: auto;
    margin-left: auto;
    padding-right: 20px; 
    padding-left: 20px;
}

.banner-content h1 {
    color: #fff;
    font-family: var(--font-display), 'Playfair Display', serif; 
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.banner-content p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.15rem;
    line-height: 1.8;
    max-width: 650px;
}


@media (max-width: 768px) {
    .page-banner {
        min-height: 350px;
        padding-top: 90px; 
    }

    .banner-content h1 {
        font-size: 2.5rem;
    }

    .banner-content p {
        font-size: 1rem;
        line-height: 1.6;
    }
} 

/* ============================================
   SECTIONS — base
   ============================================ */
section{ position:relative; padding: 100px 0; }
.section-alt{ background: var(--bg-alt); }
.section-dark{ background: var(--navy); color: var(--text-inverse); }
.section-dark .text-muted{ color: rgba(244,241,234,.6); }

/* ============================================
   TRUSTED BY
   ============================================ */
.trust-bar{ padding: 56px 0; }
.trust-row{
  display:flex; align-items:center; justify-content:space-between;
  flex-wrap:wrap; gap: 28px 40px;
}
.trust-label{
  font-size: 12px; letter-spacing:.3em; text-transform:uppercase; color: var(--text-muted);
  flex-basis:100%; text-align:center; margin-bottom: 8px;
}
@media(min-width:768px){ .trust-label{ flex-basis:auto; margin:0; } }
.trust-logo{
  font-family: var(--font-display);
  font-weight:600; font-size:1.1rem;
  letter-spacing:.08em;
  color: var(--text-muted);
  opacity:.65;
  transition: opacity .3s var(--ease), color .3s var(--ease);
  flex:1 1 auto; text-align:center;
}
.trust-logo:hover{ opacity:1; color: var(--navy); }
[data-theme="dark"] .trust-logo:hover{ color: var(--gold); }

/* ============================================
   ABOUT PREVIEW
   ============================================ */
.about-grid{
  display:grid; gap: 60px;
  align-items:center;
}
@media(min-width:900px){ .about-grid{ grid-template-columns: 1.05fr 1fr; } }
.about-media{
  position:relative;
  border-radius: var(--radius-lg);
  overflow:hidden;
  aspect-ratio: 4/5;
}
.about-media img{
  width:100%; height:100%; object-fit:cover;
  transform: scale(1.08);
  transition: transform 1.4s var(--ease);
}
.about-media:hover img{ transform: scale(1); }
.about-badge{
  position:absolute; bottom:24px; left:24px;
  background: var(--gold);
  color: var(--navy-deep);
  padding: 18px 26px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight:700;
  display:flex; flex-direction:column; line-height:1.2;
}
.about-badge .big{ font-size:1.9rem; }
.about-badge .small{ font-size:11px; letter-spacing:.18em; text-transform:uppercase; font-family:var(--font-body); font-weight:600; }
.about-copy p{ color: var(--text-muted); margin-bottom: 20px; }
.about-copy{ display:flex; flex-direction:column; gap:8px; }
.about-actions{ margin-top:14px; display:flex; gap:24px; align-items:center; flex-wrap:wrap; }

/* ============================================
   SERVICES
   ============================================ */
.services-grid{
  display:grid; gap: 28px;
  grid-template-columns: repeat(1,1fr);
}
@media(min-width:680px){ .services-grid{ grid-template-columns: repeat(2,1fr); } }
@media(min-width:1024px){ .services-grid{ grid-template-columns: repeat(3,1fr); } }

.service-card{
  position:relative;
  border-radius: var(--radius-md);
  overflow:hidden;
  aspect-ratio: 3/4;
  isolation:isolate;
}
.service-card img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  transform: scale(1.12);
  transition: transform 1.2s var(--ease), filter 1.2s var(--ease);
  filter: saturate(.85);
}
.service-card::before{
  content:'';
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(10,35,66,.05) 0%, rgba(6,20,39,.92) 100%);
  z-index:1;
}
.service-card:hover img{ transform: scale(1); filter: saturate(1.05); }
.service-card-body{
  position:absolute; inset:0; z-index:2;
  padding: 28px;
  display:flex; flex-direction:column; justify-content:flex-end;
  color: var(--text-inverse);
}
.service-icon{
  width:50px; height:50px; border-radius:50%;
  border: 1px solid rgba(244,241,234,.3);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:18px;
  transition: background .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.service-icon svg{ width:22px; height:22px; stroke: var(--gold); }
.service-card:hover .service-icon{ background: var(--gold); border-color: var(--gold); transform: rotate(-12deg); }
.service-card:hover .service-icon svg{ stroke: var(--navy-deep); }
.service-card h3{ font-family: var(--font-display); font-size:1.4rem; margin-bottom:8px; }
.service-card p{
  font-size:.92rem; color: rgba(244,241,234,.7);
  max-height:0; opacity:0; overflow:hidden;
  transition: max-height .45s var(--ease), opacity .45s var(--ease), margin-top .45s var(--ease);
}
.service-card:hover p{ max-height:90px; opacity:1; margin-top:10px; }
.service-card-num{
  position:absolute; top:24px; right:24px; z-index:2;
  font-family:var(--font-display); font-size:.8rem; letter-spacing:.2em;
  color: rgba(244,241,234,.5);
}

/* ============================================
   WHY CHOOSE US
   ============================================ */
.why-grid{
  display:grid; gap:1px;
  background: var(--border-soft);
  border-radius: var(--radius-md);
  overflow:hidden;
  grid-template-columns: repeat(1,1fr);
}
@media(min-width:680px){ .why-grid{ grid-template-columns: repeat(2,1fr); } }
@media(min-width:1024px){ .why-grid{ grid-template-columns: repeat(3,1fr); } }
.why-card{
  background: var(--bg-surface);
  padding: 40px 32px;
  transition: background .35s var(--ease), transform .35s var(--ease);
  position:relative;
}
.why-card:hover{ background: var(--navy); transform: translateY(-4px); z-index:2; }
.why-card:hover .why-icon{ background: var(--gold); }
.why-card:hover .why-icon svg{ stroke: var(--navy-deep); }
.why-card:hover h3, .why-card:hover p{ color: var(--text-inverse); }
.why-card:hover p{ color: rgba(244,241,234,.7); }
.why-icon{
  width:54px; height:54px; border-radius:50%;
  background: var(--bg-alt);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:24px;
  transition: background .35s var(--ease);
}
[data-theme="dark"] .why-icon{ background: var(--bg-page); }
.why-icon svg{ width:24px; height:24px; stroke: var(--navy); transition: stroke .35s var(--ease); }
[data-theme="dark"] .why-icon svg{ stroke: var(--gold); }
.why-card h3{ font-size:1.15rem; margin-bottom:10px; transition: color .35s var(--ease); }
.why-card p{ font-size:.92rem; color: var(--text-muted); transition: color .35s var(--ease); }

/* ============================================
   STATS
   ============================================ */
.stats-section{
  position:relative;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--text-inverse);
  overflow:hidden;
}
.stats-section::before{
  content:'';
  position:absolute; inset:0;
  background-image: url('https://images.unsplash.com/photo-1581539250439-c96689b516dd?q=80&w=1800&auto=format&fit=crop');
  background-size:cover; background-position:center;
  opacity:.10; mix-blend-mode: luminosity;
}
.stats-grid{
  position:relative; z-index:1;
  display:grid; grid-template-columns: repeat(2,1fr); gap: 40px;
  text-align:center;
}
@media(min-width:768px){ .stats-grid{ grid-template-columns: repeat(4,1fr); } }
.stat-num{
  font-family: var(--font-display);
  font-weight:800; font-size: clamp(2.4rem,6vw,4rem);
  color: var(--gold);
  display:flex; align-items:baseline; justify-content:center; gap:4px;
}
.stat-label{
  margin-top:10px; font-size:13px; letter-spacing:.18em; text-transform:uppercase;
  color: rgba(244,241,234,.6);
}

/* ============================================
   FEATURED PROJECTS (Masonry)
   ============================================ */
.filter-row{
  display:flex; flex-wrap:wrap; gap:12px;
  margin-bottom: 48px;
}
.filter-btn{
  padding: 10px 22px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  font-size:12px; font-weight:600; letter-spacing:.12em; text-transform:uppercase;
  color: var(--text-muted);
  transition: all .3s var(--ease);
}
.filter-btn:hover, .filter-btn.active{
  background: var(--navy); color: var(--text-inverse); border-color: var(--navy);
}
[data-theme="dark"] .filter-btn:hover, [data-theme="dark"] .filter-btn.active{
  background: var(--gold); color: var(--navy-deep); border-color: var(--gold);
}

.masonry{
  display:grid; gap: 20px;
  grid-template-columns: repeat(2,1fr);
  grid-auto-flow: dense;
}
@media(min-width:768px){ .masonry{ grid-template-columns: repeat(4,1fr); } }
.masonry-item{
  position:relative; border-radius: var(--radius-md); overflow:hidden; isolation:isolate;
  grid-column: span 2; aspect-ratio: 1/1;
  transition: transform .6s var(--ease), opacity .5s var(--ease);
}
@media(min-width:768px){
  .masonry-item.tall{ grid-row: span 2; aspect-ratio: 1/2; }
  .masonry-item.wide{ grid-column: span 4; aspect-ratio: 2.6/1; }
  .masonry-item:not(.tall):not(.wide){ grid-column: span 2; aspect-ratio:1.2/1; }
}
.masonry-item.hidden{ display:none; }
.masonry-item img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  transform: scale(1.1);
  transition: transform 1.4s var(--ease);
}
.masonry-item:hover img{ transform: scale(1); }
.masonry-overlay{
  position:absolute; inset:0; z-index:1;
  background: linear-gradient(180deg, transparent 40%, rgba(6,20,39,.92) 100%);
  display:flex; flex-direction:column; justify-content:flex-end;
  padding: 22px;
  color: var(--text-inverse);
  opacity:0; transform: translateY(14px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.masonry-item:hover .masonry-overlay{ opacity:1; transform: translateY(0); }
.masonry-overlay .tag{
  font-size:11px; letter-spacing:.2em; text-transform:uppercase; color: var(--gold-soft); margin-bottom:6px;
}
.masonry-overlay h4{ font-family: var(--font-display); font-size:1.2rem; }

/* ============================================
   COLLECTION PREVIEW
   ============================================ */
.collection-grid{
  display:grid; gap:24px;
  grid-template-columns: repeat(2,1fr);
}
@media(min-width:768px){ .collection-grid{ grid-template-columns: repeat(3,1fr); } }
.collection-card{
  text-align:center;
}
.collection-media{
  border-radius: var(--radius-md);
  overflow:hidden; aspect-ratio:1/1; margin-bottom:18px;
  position:relative;
}
.collection-media img{
  width:100%; height:100%; object-fit:cover;
  transition: transform .8s var(--ease);
}
.collection-card:hover .collection-media img{ transform: scale(1.08) rotate(1deg); }
.collection-card h4{ font-family: var(--font-display); font-size:1.15rem; margin-bottom:4px; }
.collection-card span{ font-size:12px; letter-spacing:.16em; text-transform:uppercase; color: var(--text-muted); }
.collection-card .btn-line{ margin-top:10px; }

/* ============================================
   PROCESS TIMELINE
   ============================================ */
.timeline{
  display:grid; gap: 40px;
  grid-template-columns: 1fr;
  position:relative;
}
@media(min-width:1024px){
  .timeline{ grid-template-columns: repeat(5,1fr); align-items:flex-start; }
  .timeline::before{
    content:''; position:absolute; top:29px; left:0; right:0; height:2px;
    background: repeating-linear-gradient(90deg, var(--gold) 0 12px, transparent 12px 24px);
  }
}
.timeline-step{ position:relative; padding-top: 0; }
@media(min-width:1024px){ .timeline-step{ padding-top: 76px; } }
.timeline-num{
  width:58px; height:58px; border-radius:50%;
  background: var(--navy); color: var(--gold);
  font-family: var(--font-display); font-weight:700; font-size:1.3rem;
  display:flex; align-items:center; justify-content:center;
  margin-bottom: 22px;
  border: 4px solid var(--bg-page);
  position:relative; z-index:1;
}
@media(min-width:1024px){
  .timeline-num{ position:absolute; top:0; left:0; }
}
.timeline-step h3{ margin-bottom:8px; }
.timeline-step p{ color: var(--text-muted); font-size:.94rem; }

/* ============================================
   TESTIMONIALS
   ============================================ */
.testi-wrap{ position:relative; max-width:760px; margin:0 auto; }
.testi-track{ overflow:hidden; }
.testi-slides{ display:flex; transition: transform .6s var(--ease); }
.testi-slide{ flex:0 0 100%; padding: 0 6px; }
.testi-card{
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align:center;
}
.testi-stars{ color: var(--gold); font-size:1.1rem; letter-spacing:4px; margin-bottom:20px; }
.testi-quote{
  font-family: var(--font-display);
  font-size: clamp(1.1rem,2.4vw,1.5rem);
  font-style:italic; line-height:1.6;
  margin-bottom: 28px;
}
.testi-person{ display:flex; align-items:center; justify-content:center; gap:14px; }
.testi-person img{ width:54px; height:54px; border-radius:50%; object-fit:cover; }
.testi-person .name{ font-weight:600; font-family:var(--font-display); }
.testi-person .role{ font-size:12px; color: var(--text-muted); letter-spacing:.08em; text-transform:uppercase; }
.testi-nav{ display:flex; justify-content:center; gap:14px; margin-top:34px; }
.testi-dot{
  width:10px; height:10px; border-radius:50%;
  border:1px solid var(--gold);
  transition: background .3s var(--ease);
}
.testi-dot.active{ background: var(--gold); }
.testi-arrow{
  width:50px; height:50px; border-radius:50%;
  border:1px solid var(--border-soft);
  display:flex; align-items:center; justify-content:center;
  position:absolute; top:50%; transform:translateY(-50%);
  transition: all .3s var(--ease);
}
.testi-arrow:hover{ background: var(--navy); color: var(--text-inverse); border-color: var(--navy); }
.testi-arrow.prev{ left:-70px; }
.testi-arrow.next{ right:-70px; }
@media(max-width:900px){ .testi-arrow{ display:none; } }

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner{
  position:relative; overflow:hidden;
  color: var(--text-inverse);
  text-align:center;
  padding: 130px 0;
}
.cta-bg{
  position:absolute; inset:-10%;
  background: url('https://images.unsplash.com/photo-1565538810643-b5bdb714032a?q=80&w=1800&auto=format&fit=crop') center/cover no-repeat;
  will-change: transform;
}
.cta-bg::after{ content:''; position:absolute; inset:0; background: rgba(6,20,39,.78); }
.cta-banner .container{ position:relative; z-index:1; }
.cta-banner h2{ color: var(--text-inverse); margin-bottom:24px; }
.cta-banner p{ color: rgba(244,241,234,.75); max-width:520px; margin: 0 auto 38px; }
.cta-actions{ display:flex; justify-content:center; gap:18px; flex-wrap:wrap; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer{ background: var(--navy-deep); color: var(--text-inverse); padding-top: 90px; }
.footer-grid{
  display:grid; gap: 48px;
  grid-template-columns: repeat(1,1fr);
}
@media(min-width:768px){ .footer-grid{ grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-logo{ font-family: var(--font-display); font-size:1.6rem; font-weight:800; margin-bottom:18px; }
.footer-logo span{ color: var(--gold); }
.footer-about p{ color: rgba(244,241,234,.6); font-size:.92rem; margin-bottom:24px; max-width:320px; }
.footer-social{ display:flex; gap:12px; }
.footer-social a{
  width:38px; height:38px; border-radius:50%;
  border:1px solid rgba(244,241,234,.18);
  display:flex; align-items:center; justify-content:center;
  transition: all .3s var(--ease);
}
.footer-social a:hover{ background: var(--gold); border-color: var(--gold); color: var(--navy-deep); transform: translateY(-3px); }
.footer-social svg{ width:16px; height:16px; }
.footer-head{
  font-family: var(--font-display); font-size:1.05rem; margin-bottom:22px;
  letter-spacing:.04em;
}
.footer-links li{ margin-bottom:13px; }
.footer-links a{ color: rgba(244,241,234,.6); font-size:.92rem; transition: color .3s var(--ease), padding-left .3s var(--ease); }
.footer-links a:hover{ color: var(--gold); padding-left:6px; }
.footer-contact li{ display:flex; gap:12px; margin-bottom:16px; font-size:.92rem; color: rgba(244,241,234,.7); align-items:flex-start; }
.footer-contact svg{ width:18px; height:18px; flex-shrink:0; margin-top:2px; color: var(--gold); }
.newsletter{ margin-top:26px; }
.newsletter-form{ display:flex; border:1px solid rgba(244,241,234,.2); border-radius: var(--radius-sm); overflow:hidden; }
.newsletter-form input{
  flex:1; background:transparent; border:none; padding:14px 16px; color: var(--text-inverse); font-size:.9rem;
}
.newsletter-form input::placeholder{ color: rgba(244,241,234,.4); }
.newsletter-form button{
  background: var(--gold); color: var(--navy-deep); padding: 0 20px;
  display:flex; align-items:center; justify-content:center;
  transition: background .3s var(--ease);
}
.newsletter-form button:hover{ background: var(--gold-soft); }
.footer-bottom{
  margin-top:70px; padding: 26px 0;
  border-top: 1px solid rgba(244,241,234,.08);
  display:flex; flex-direction:column; gap:12px; align-items:center; text-align:center;
  font-size:.85rem; color: rgba(244,241,234,.5);
}
@media(min-width:768px){ .footer-bottom{ flex-direction:row; justify-content:space-between; } }
.footer-bottom-links{ display:flex; gap:24px; }
.footer-bottom-links a:hover{ color: var(--gold); }

/* ============================================
   FLOATING ACTIONS
   ============================================ */
.floating-stack{
  position:fixed; right: 26px; bottom: 26px; z-index: 900;
  display:flex; flex-direction:column; gap:14px; align-items:center;
}
.fab{
  width:56px; height:56px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 14px 30px -10px rgba(10,35,66,.4);
  transition: transform .3s var(--ease);
}
.fab:hover{ transform: scale(1.08); }
.fab-whatsapp{ background: var(--emerald); color: #fff; }
.fab-chat{ background: var(--navy); color: var(--gold-soft); }
[data-theme="dark"] .fab-chat{ background: var(--gold); color: var(--navy-deep); }
.fab svg{ width:26px; height:26px; }
.totop{
  width:46px; height:46px; border-radius:50%;
  background: var(--bg-surface); border:1px solid var(--border-soft);
  display:flex; align-items:center; justify-content:center;
  opacity:0; visibility:hidden; transform: translateY(10px);
  transition: all .4s var(--ease);
}
.totop.show{ opacity:1; visibility:visible; transform:translateY(0); }
.totop svg{ width:18px; height:18px; }

/* ============================================
   AOS-LIKE SCROLL REVEAL
   ============================================ */
[data-reveal]{
  opacity:0; transform: translateY(36px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
[data-reveal].in{ opacity:1; transform:translateY(0); }
[data-reveal="zoom"]{ transform: scale(.92); }
[data-reveal="zoom"].in{ transform: scale(1); }
[data-reveal="left"]{ transform: translateX(-46px); }
[data-reveal="left"].in{ transform: translateX(0); }
[data-reveal="right"]{ transform: translateX(46px); }
[data-reveal="right"].in{ transform: translateX(0); }

.stagger > *{ transition-delay: calc(var(--i,0) * 90ms); }

/* ============================================
   THEME TOGGLE
   ============================================ */
.theme-toggle-icon-dark{ display:none; }
[data-theme="dark"] .theme-toggle-icon-light{ display:none; }
[data-theme="dark"] .theme-toggle-icon-dark{ display:block; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .hero-bg, .cta-bg{ transform:none !important; }
}



/* ============================================
   ROYALCRAFT CHATBOT INTERFACE COMPONENT
   ============================================ */
.rc-chat-widget {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 2000; /* Stays reliably above layout stacks */
  font-family: var(--font-body);
}

/* --- Floating Action Button Container --- */
.rc-chat-fab {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  box-shadow: 0 12px 32px -8px rgba(6, 20, 39, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease);
}
[data-theme="dark"] .rc-chat-fab {
  background: var(--gold);
  color: var(--navy-deep);
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.5);
}
.rc-chat-fab:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 18px 40px -10px rgba(10, 35, 66, 0.6);
}

.fab-icon-wrap {
  position: relative;
  width: 24px;
  height: 24px;
}
.fab-icon-wrap svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: transform .4s var(--ease), opacity .3s linear;
}
.rc-chat-fab .icon-chat-close { opacity: 0; transform: rotate(-45deg) scale(0.5); }
.rc-chat-fab.active .icon-chat-open { opacity: 0; transform: rotate(45deg) scale(0.5); }
.rc-chat-fab.active .icon-chat-close { opacity: 1; transform: rotate(0) scale(1); }

.rc-chat-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--walnut);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-page);
}

/* --- Chat Window Container --- */
.rc-chat-window {
  position: absolute;
  bottom: 76px;
  right: 0;
  width: 380px;
  max-width: calc(100vw - 40px);
  height: 520px;
  max-height: calc(100vh - 140px);
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  box-shadow: 0 24px 64px -16px rgba(10, 35, 66, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(24px) scale(0.95);
  transform-origin: right bottom;
  transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s;
}
.rc-chat-window.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* --- Chat Header Layout --- */
.rc-chat-header {
  padding: 20px 24px;
  background: var(--navy-deep);
  color: var(--text-inverse);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.rc-chat-brand { display: flex; align-items: center; gap: 12px; }
.rc-chat-avatar {
  width: 36px;
  height: 36px;
  background: var(--gold);
  color: var(--navy-deep);
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rc-chat-meta { display: flex; flex-direction: column; }
.rc-chat-title { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; letter-spacing: 0.02em; }
.rc-chat-title span { color: var(--gold); }
.rc-chat-status { font-size: 11px; color: rgba(244, 241, 234, 0.6); display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--emerald); display: inline-block; }

.rc-chat-controls { display: flex; align-items: center; }
.rc-control-btn {
  width: 32px; height: 32px; border-radius: 50%;
  color: rgba(244, 241, 234, 0.6);
  display: flex; align-items: center; justify-content: center;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.rc-control-btn:hover { background: rgba(244, 241, 234, 0.08); color: var(--text-inverse); }
.rc-control-btn svg { width: 16px; height: 16px; }

/* --- Conversational Stream Content --- */
.rc-chat-body {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  background: var(--bg-alt);
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-behavior: smooth;
}
.rc-msg { display: flex; flex-direction: column; max-width: 80%; animation: chatBubbleFade .35s var(--ease) forwards; }
.rc-msg.msg-system { align-self: flex-start; }
.rc-msg.msg-user { align-self: flex-end; align-items: flex-end; }

.rc-msg-bubble {
  padding: 14px 18px;
  border-radius: 4px 14px 14px 14px;
  font-size: 13.5px;
  line-height: 1.5;
}
.msg-system .rc-msg-bubble { background: var(--bg-surface); color: var(--text-main); border: 1px solid var(--border-soft); }
.msg-user .rc-msg-bubble { background: var(--navy); color: var(--text-inverse); border-radius: 14px 4px 14px 14px; }
[data-theme="dark"] .msg-user .rc-msg-bubble { background: var(--gold); color: var(--navy-deep); font-weight: 500; }

.rc-msg-time { font-size: 10px; color: var(--text-muted); margin-top: 4px; padding: 0 4px; }

@keyframes chatBubbleFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Interface Controls Footer --- */
.rc-chat-footer {
  padding: 16px 20px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-soft);
}
.rc-chat-form { display: flex; align-items: center; gap: 10px; }
.rc-chat-form input {
  flex: 1; background: var(--bg-alt); border: 1px solid var(--border-soft);
  padding: 12px 16px; color: var(--text-main); font-size: 13.5px;
  border-radius: var(--radius-sm); outline: none;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.rc-chat-form input:focus { border-color: var(--gold); background: var(--bg-surface); }
.rc-chat-send {
  width: 42px; height: 42px; border-radius: var(--radius-sm);
  background: var(--gold); color: var(--navy-deep);
  display: flex; align-items: center; justify-content: center;
  transition: transform .25s var(--ease), background .25s var(--ease);
}
[data-theme="dark"] .rc-chat-send { background: var(--navy); color: var(--text-inverse); }
.rc-chat-send:hover { background: var(--gold-soft); transform: scale(1.02); }
[data-theme="dark"] .rc-chat-send:hover { background: var(--navy-deep); }
.rc-chat-send svg { width: 16px; height: 16px; transform: translateX(1px); }

/* --- Responsive Adjustments --- */
@media (max-width: 500px) {
  .rc-chat-widget { right: 16px; bottom: 16px; }
  .rc-chat-window {
    width: calc(100vw - 32px);
    height: calc(100vh - 100px);
    bottom: 68px;
  }
}


/* ============================================
   RESPONSIVE FIXES (Mobile & Small Viewports)
   ============================================ */
@media (max-width: 767px) {
  /* Prevent horizontal layout shifting globally */
  html, body {
    overflow-x: hidden;
    position: relative;
    width: 100%;
  }

  /* 1. Header Fixes — Keep layout contained and interactive elements visible */
  .site-header {
    padding: 16px 0;
    background: linear-gradient(to bottom, rgba(6, 20, 39, 0.85) 60%, transparent);
    backdrop-filter: blur(4px); /* Keeps text legible against busy background images */
  }
  
  .site-header .logo {
    font-size: 1.25rem;
    color: var(--text-inverse) !important; /* Force visibility over hero images */
  }
  
  .nav-row {
    gap: 12px;
  }

  .nav-actions {
    gap: 8px;
  }

  /* 2. Typography Scaling Bounds — Prevent large strings from causing overflow breaks */
  .hero h1, 
  .banner-content h1, 
  .h1 {
    font-size: clamp(2.2rem, 7vw, 2.8rem) !important;
    line-height: 1.15;
    word-break: break-word; /* Prevents long words from extending outside screens */
  }
  
  .hero h1 .line,
  .hero h1 .line span {
    display: inline; /* Reset blocks to inline on mobile to let sentences wrap naturally */
    transform: none !important;
    animation: none !important;
  }

  /* 3. Section Sizing & Structural Containers */
  .container {
    padding: 0 20px !important; /* Standardize layout boundary walls */
  }

  .hero {
    min-height: 90vh; /* Prevents excessive dead spaces on mobile profiles */
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .hero-content {
    padding-top: 40px;
    padding-bottom: 20px;
    gap: 16px;
  }

  /* 4. Page Banner Overlaps (from WhatsApp Image 2026-06-30 at 01.04.42.jpeg) */
  .page-banner {
    min-height: 320px !important;
    padding-top: 110px !important; /* Give fixed nav ample room */
    padding-bottom: 40px !important;
  }

  /* 5. Stat grid columns — prevent 2x2 alignment squishing labels */
  .hero-stats, 
  .stats-grid {
    grid-template-columns: 1fr !important; /* Stack columns sequentially */
    gap: 16px !important;
    text-align: left;
    margin-top: 30px;
  }

  .hero-stats div {
    border-right: none !important;
    border-bottom: 1px solid rgba(244,241,234,.14);
    padding: 12px 0 !important;
  }
  
  .hero-stats div:last-child {
    border-bottom: none;
  }

  /* 6. Layout Grid Unstacking */
  .about-grid, 
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  .about-media {
    aspect-ratio: 4/3; /* Lower height profile for screens with portrait aspect ratios */
  }
}

/* ============================================
   PRELOADER MOBILE OVERRIDES
   ============================================ */
@media (max-width: 767px) {
  #preloader {
    padding: 0 24px;
    text-align: center;
  }

  .preloader-mark {
    /* Scale down font size so long names don't force a line break or push left */
    font-size: clamp(1.2rem, 5vw, 1.6rem) !important;
    
    /* Ensure the tracking letter-spacing doesn't offset the absolute center alignment */
    letter-spacing: 0.15em !important; 
    margin-right: -0.15em; /* Perfectly balances out the trailing letter-spacing */
    
    width: 100%;
    display: block;
    text-align: center;
  }

  .preloader-seam {
    /* Slightly slim down the joinery seam bar dimension for compact profiles */
    width: 160px !important; 
    margin: 0 auto;
  }
}


/* 1. Base State on Mobile / Top of Page */
.site-header .logo {
  color: var(--text-inverse) !important;
  transition: color .4s var(--ease);
}

/* 2. Scrolled State — Overrides the top-of-page rule cleanly */
.site-header.scrolled .logo {
  color: var(--charcoal) !important; /* Forces it to your crisp main text tone */
}

/* 3. Keep Dark Mode Correct */
[data-theme="dark"] .site-header.scrolled .logo {
  color: #EDEFF4 !important; /* Keeps it light if the user toggles dark mode */
}


@media (max-width: 767px) {
  /* Hide the hero stats panel completely on mobile screens */
  .hero-stats{
    display: none !important;
  }
}