/* =========================================================
   R.K. FURNITURES — MAIN STYLESHEET
   UPVC & ALUMINIUM CENTER | Lokanthali, Bhaktapur
========================================================= */

/* ---------- FONT IMPORT ---------- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Playfair+Display:wght@500;600;700;800&display=swap');

/* ---------- ROOT VARIABLES : LIGHT MODE ---------- */
:root{
  --bg: #F9F8F6;
  --bg-alt: #F3F1EC;
  --text: #1A1A1A;
  --text-secondary: #6B655F;
  --accent: #C85A32;        /* warm terracotta */
  --accent-rgb: 200,90,50;
  --accent2: #2E4F3F;       /* forest green */
  --accent2-rgb: 46,79,63;
  --card-bg: #EFECE9;
  --card-bg-alt: #ffffff;
  --border: rgba(26,26,26,0.09);
  --shadow-color: 30,25,20;
  --shadow: 0 10px 30px rgba(30,25,20,0.08);
  --shadow-soft: 0 4px 14px rgba(30,25,20,0.06);
  --header-bg: rgba(249,248,246,0.85);
  --overlay: rgba(18,18,18,0.55);
  --success: #2E4F3F;
  --gold: #B8862E;
}

[data-theme="dark"]{
  --bg: #121212;
  --bg-alt: #171717;
  --text: #F4EFEA;
  --text-secondary: #9E9993;
  --accent: #D4AF37;        /* muted gold */
  --accent-rgb: 212,175,55;
  --accent2: #E06D53;       /* rich terracotta */
  --accent2-rgb: 224,109,83;
  --card-bg: #1E1E1E;
  --card-bg-alt: #1A1A1C;
  --border: rgba(244,239,234,0.08);
  --shadow-color: 5,10,25;
  --shadow: 0 10px 30px rgba(5,10,25,0.55);
  --shadow-soft: 0 4px 14px rgba(5,10,25,0.45);
  --header-bg: rgba(18,18,18,0.85);
  --overlay: rgba(5,5,8,0.65);
  --success: #6fbf8b;
  --gold: #D4AF37;
}

*,*::before,*::after{ box-sizing: border-box; margin:0; padding:0; }
html{ scroll-behavior: smooth; }
body{
  font-family:'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  transition: background .4s ease, color .4s ease;
  overflow-x: hidden;
}
h1,h2,h3,h4,.font-display{ font-family:'Playfair Display', serif; }
a{ text-decoration:none; color:inherit; }
ul{ list-style:none; }
img{ max-width:100%; display:block; }
button{ font-family:inherit; cursor:pointer; border:none; background:none; color:inherit; }
input, textarea, select{ font-family:inherit; }
.container{ width:100%; max-width:1240px; margin:0 auto; padding:0 24px; }
section{ position:relative; padding:90px 0; }
.section-alt{ background: var(--bg-alt); }

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar{ width:10px; }
::-webkit-scrollbar-track{ background: var(--bg-alt); }
::-webkit-scrollbar-thumb{ background: var(--accent); border-radius:10px; }

/* ---------- UTILITIES ---------- */
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  color: var(--accent); font-weight:600; letter-spacing:2px;
  text-transform:uppercase; font-size:.78rem; margin-bottom:14px;
}
.eyebrow::before{ content:''; width:26px; height:2px; background: var(--accent); display:inline-block; }
.section-head{ max-width:680px; margin-bottom:52px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-head h2{ font-size: clamp(1.9rem, 3.2vw, 2.7rem); font-weight:700; margin-bottom:16px; }
.section-head p{ color: var(--text-secondary); font-size:1.03rem; }
.text-secondary{ color: var(--text-secondary); }
.accent{ color: var(--accent); }

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:15px 32px; border-radius:50px; font-weight:600; font-size:.95rem;
  transition: all .35s cubic-bezier(.4,0,.2,1); white-space:nowrap; border:2px solid transparent;
}
.btn-primary{
  background: var(--accent); color:#fff;
  box-shadow: 0 8px 22px rgba(var(--accent-rgb),0.35);
}
[data-theme="dark"] .btn-primary{ color:#121212; }
.btn-primary:hover{ transform: translateY(-3px); box-shadow: 0 14px 28px rgba(var(--accent-rgb),0.45); }
.btn-outline{ border-color: var(--text); color: var(--text); }
.btn-outline:hover{ background: var(--text); color: var(--bg); transform: translateY(-3px); }
.btn-ghost{ border-color: rgba(255,255,255,.6); color:#fff; }
.btn-ghost:hover{ background:#fff; color:var(--text); }
.btn-sm{ padding:10px 22px; font-size:.85rem; }
.btn-block{ width:100%; }

.chip{
  display:inline-block; padding:6px 16px; border-radius:30px; font-size:.75rem; font-weight:600;
  background: rgba(var(--accent-rgb),0.12); color: var(--accent); letter-spacing:.5px;
}

/* =========================================================
   PRELOADER
========================================================= */
#preloader{
  position:fixed; inset:0; background:var(--bg); z-index:9999;
  display:flex; align-items:center; justify-content:center; transition: opacity .5s ease, visibility .5s ease;
}
#preloader.hide{ opacity:0; visibility:hidden; }
.loader-ring{
  width:56px; height:56px; border-radius:50%;
  border:4px solid var(--border); border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}
@keyframes spin{ to{ transform: rotate(360deg); } }

/* =========================================================
   TOP BAR
========================================================= */
.topbar{
  background: var(--accent2); color:#fff; font-size:.82rem;
}
[data-theme="dark"] .topbar{ background:#0d1a15; color: var(--text-secondary); }
.topbar .container{
  display:flex; align-items:center; justify-content:space-between;
  padding-top:9px; padding-bottom:9px; gap:20px;
}
.topbar-info{
  display:flex; align-items:center; gap:26px; flex-wrap:nowrap;
  overflow-x:auto; white-space:nowrap; scrollbar-width:none; -ms-overflow-style:none;
  flex:1; min-width:0;
}
.topbar-info::-webkit-scrollbar{ display:none; }
.topbar-item{ display:flex; align-items:center; gap:7px; flex-shrink:0; }
.topbar-item i{ color:#fff; opacity:.9; flex-shrink:0; }
[data-theme="dark"] .topbar-item i{ color: var(--accent); opacity:1; }
.topbar-divider{ width:1px; height:14px; background:rgba(255,255,255,.25); flex-shrink:0; }
[data-theme="dark"] .topbar-divider{ background: rgba(244,239,234,.15); }
.topbar a:hover{ color: var(--accent); }
.social-mini{ display:flex; gap:10px; flex-shrink:0; }
.social-mini a{ display:flex; align-items:center; justify-content:center; width:26px; height:26px; border-radius:50%; background:rgba(255,255,255,.15); transition:.3s; flex-shrink:0; }
[data-theme="dark"] .social-mini a{ background:rgba(244,239,234,.08); }
.social-mini a:hover{ background: var(--accent); transform: translateY(-2px); }

/* =========================================================
   HEADER / NAV
========================================================= */
header#site-header{
  position: sticky; top:0; z-index:1000;
  backdrop-filter: blur(14px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  transition: all .35s ease;
}
.navbar{ display:flex; align-items:center; justify-content:space-between; padding:14px 0; }
.brand{ display:flex; align-items:center; gap:12px; }
.brand-logo{
  width:52px; height:52px; border-radius:14px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-family:'Playfair Display',serif; font-weight:800; font-size:1.35rem;
  box-shadow: var(--shadow-soft);
}
.brand-text h1{ font-size:1.28rem; font-weight:700; line-height:1; }
.brand-text span{ font-size:.7rem; letter-spacing:1.5px; color: var(--text-secondary); text-transform:uppercase; }

.nav-menu{ display:flex; align-items:center; gap:2px; }
.nav-menu > li{ position:relative; }
.nav-menu > li > a{
  display:flex; align-items:center; gap:5px; padding:14px 16px; font-weight:500; font-size:.94rem;
  color: var(--text); border-radius:8px; transition: color .3s ease;
}
.nav-menu > li > a:hover, .nav-menu > li.active > a{ color: var(--accent); }
.nav-menu > li > a i{ font-size:.65rem; transition: transform .3s ease; }
.nav-menu > li:hover > a i{ transform: rotate(180deg); }

.dropdown{
  position:absolute; top:calc(100% + 10px); left:0; min-width:250px;
  background: var(--card-bg-alt); border:1px solid var(--border); border-radius:14px;
  box-shadow: var(--shadow); padding:10px; opacity:0; visibility:hidden; transform: translateY(10px);
  transition: all .3s ease; z-index:200;
}
.nav-menu > li:hover .dropdown{ opacity:1; visibility:visible; transform: translateY(0); }
.dropdown li a{ display:flex; align-items:center; gap:10px; padding:11px 14px; border-radius:9px; font-size:.9rem; color:var(--text); }
.dropdown li a i{ color: var(--accent); font-size:.85rem; width:16px; }
.dropdown li a:hover{ background: var(--bg-alt); color: var(--accent); padding-left:18px; }

.nav-actions{ display:flex; align-items:center; gap:14px; }

/* Theme Toggle Switch */
.theme-toggle{
  position:relative; width:56px; height:30px; border-radius:30px;
  background: var(--card-bg); border:1px solid var(--border); padding:3px;
  display:flex; align-items:center;
}
.theme-toggle .knob{
  width:22px; height:22px; border-radius:50%; background: var(--accent);
  display:flex; align-items:center; justify-content:center; color:#fff; font-size:.7rem;
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}
[data-theme="dark"] .theme-toggle .knob{ transform: translateX(26px); color:#121212; }
.theme-toggle:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }

.hamburger{ display:none; flex-direction:column; gap:5px; width:32px; }
.hamburger span{ height:2.5px; background: var(--text); border-radius:2px; transition:.35s; }
.hamburger.active span:nth-child(1){ transform: translateY(7.5px) rotate(45deg); }
.hamburger.active span:nth-child(2){ opacity:0; }
.hamburger.active span:nth-child(3){ transform: translateY(-7.5px) rotate(-45deg); }

/* =========================================================
   HERO SLIDER
========================================================= */
.hero-slider{ position:relative; height:92vh; min-height:600px; overflow:hidden; }
.slide{
  position:absolute; inset:0; opacity:0; visibility:hidden; transition: opacity 1.2s ease;
  display:flex; align-items:center;
}
.slide.active{ opacity:1; visibility:visible; z-index:2; }
.slide-bg{ position:absolute; inset:0; background-size:cover; background-position:center; transform: scale(1.08); transition: transform 8s ease; }
.slide.active .slide-bg{ transform: scale(1); }
.slide::after{ content:''; position:absolute; inset:0; background: linear-gradient(90deg, rgba(10,10,10,.78) 10%, rgba(10,10,10,.35) 60%, rgba(10,10,10,.15)); }
.slide-content{ position:relative; z-index:3; color:#fff; max-width:640px; padding:0 24px; }
.slide-content .chip{ background: rgba(255,255,255,.15); color:#fff; backdrop-filter: blur(6px); }
.slide-content h2{ font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight:800; margin:18px 0 20px; line-height:1.15; }
.slide-content h2 em{ font-style:normal; color: var(--accent2); }
[data-theme="dark"] .slide-content h2 em{ color: var(--gold); }
.slide-content p{ font-size:1.08rem; color:#eee; margin-bottom:32px; max-width:520px; }
.slide-btns{ display:flex; gap:16px; flex-wrap:wrap; }

.slider-nav{ position:absolute; bottom:36px; left:0; right:0; z-index:5; display:flex; justify-content:center; gap:10px; }
.slider-nav button{ width:11px; height:11px; border-radius:50%; background: rgba(255,255,255,.4); transition:.3s; }
.slider-nav button.active{ background: var(--accent); width:32px; border-radius:8px; }
.slider-arrow{
  position:absolute; top:50%; transform: translateY(-50%); z-index:5; width:52px; height:52px; border-radius:50%;
  background: rgba(255,255,255,.12); backdrop-filter: blur(8px); color:#fff; display:flex; align-items:center; justify-content:center;
  transition:.3s; border:1px solid rgba(255,255,255,.25);
}
.slider-arrow:hover{ background: var(--accent); }
.slider-arrow.prev{ left:26px; } .slider-arrow.next{ right:26px; }

.scroll-cue{ position:absolute; bottom:30px; right:40px; z-index:5; color:#fff; writing-mode:vertical-rl; letter-spacing:3px; font-size:.72rem; display:flex; align-items:center; gap:10px; opacity:.8; }
.scroll-cue::after{ content:''; width:1px; height:50px; background:#fff; display:block; }

/* =========================================================
   MARQUEE / TRUST STRIP
========================================================= */
.trust-strip{ background: var(--card-bg); padding:22px 0; border-bottom:1px solid var(--border); overflow:hidden; }
.marquee{ display:flex; gap:60px; white-space:nowrap; animation: marquee 22s linear infinite; width:max-content; }
.marquee span{ display:flex; align-items:center; gap:10px; font-weight:600; color: var(--text-secondary); font-size:.95rem; }
.marquee span i{ color: var(--accent); }
@keyframes marquee{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }

/* =========================================================
   STATS
========================================================= */
.stats-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:24px; }
.stat-card{ text-align:center; padding:30px 16px; background: var(--card-bg); border-radius:18px; box-shadow: var(--shadow-soft); border:1px solid var(--border); }
.stat-card h3{ font-size:2.6rem; color: var(--accent); font-weight:800; }
.stat-card p{ color: var(--text-secondary); margin-top:6px; font-weight:500; }

/* =========================================================
   ABOUT SNAPSHOT
========================================================= */
.about-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:60px; align-items:center; }
.about-media{ position:relative; }
.about-media img{ border-radius:22px; box-shadow: var(--shadow); }
.about-media .img-main{ width:80%; }
.about-media .img-float{ position:absolute; bottom:-40px; right:-10px; width:55%; border:6px solid var(--bg); border-radius:22px; }
.experience-badge{
  position:absolute; top:20px; left:-20px; background: var(--accent); color:#fff; padding:18px 22px; border-radius:16px;
  box-shadow: var(--shadow); text-align:center;
}
[data-theme="dark"] .experience-badge{ color:#121212; }
.experience-badge strong{ display:block; font-size:1.8rem; font-weight:800; }
.about-list{ display:grid; gap:16px; margin:28px 0 32px; }
.about-list li{ display:flex; gap:14px; align-items:flex-start; }
.about-list i{ color: var(--success); margin-top:4px; }

/* =========================================================
   CARDS : SERVICES / PRODUCTS
========================================================= */
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:30px; }
.grid-4{ display:grid; grid-template-columns:repeat(4,1fr); gap:26px; }
.grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:30px; }

.service-card, .product-card{
  background: var(--card-bg); border-radius:20px; overflow:hidden; border:1px solid var(--border);
  transition: transform .4s ease, box-shadow .4s ease; position:relative;
}
.service-card:hover, .product-card:hover{ transform: translateY(-10px); box-shadow: var(--shadow); }
.service-card .icon-wrap{
  width:64px; height:64px; border-radius:16px; display:flex; align-items:center; justify-content:center;
  background: rgba(var(--accent-rgb),.13); color: var(--accent); font-size:1.5rem; margin:26px 26px 0;
}
.service-card .body{ padding:20px 26px 28px; }
.service-card h3{ font-size:1.18rem; margin-bottom:10px; font-weight:600; }
.service-card p{ color: var(--text-secondary); font-size:.93rem; margin-bottom:14px; }
.service-card .link{ color: var(--accent); font-weight:600; font-size:.88rem; display:inline-flex; align-items:center; gap:6px; }
.service-card .link i{ transition:.3s; }
.service-card:hover .link i{ transform: translateX(5px); }

.product-media{ position:relative; height:230px; overflow:hidden; }
.product-media img{ width:100%; height:100%; object-fit:cover; transition: transform .6s ease; }
.product-card:hover .product-media img{ transform: scale(1.1); }
.product-tag{ position:absolute; top:14px; left:14px; background: var(--accent); color:#fff; font-size:.7rem; font-weight:700; padding:5px 12px; border-radius:20px; }
[data-theme="dark"] .product-tag{ color:#121212; }
.product-fav{ position:absolute; top:14px; right:14px; width:36px; height:36px; border-radius:50%; background: rgba(255,255,255,.85); color:#1A1A1A; display:flex; align-items:center; justify-content:center; transition:.3s; }
.product-fav:hover{ background: var(--accent); color:#fff; }
.product-body{ padding:20px 22px 24px; }
.product-cat{ font-size:.74rem; text-transform:uppercase; letter-spacing:1px; color: var(--accent); font-weight:700; }
.product-body h3{ font-size:1.12rem; margin:8px 0 8px; font-weight:600; }
.product-foot{ display:flex; align-items:center; justify-content:space-between; margin-top:14px; }
.price{ font-weight:700; color: var(--text); font-size:1.05rem; }
.price span{ font-size:.78rem; color: var(--text-secondary); font-weight:400; text-decoration:line-through; margin-left:6px; }
.stars{ color: var(--gold); font-size:.8rem; }

.filter-bar{ display:flex; flex-wrap:wrap; gap:12px; margin-bottom:42px; }
.filter-btn{ padding:10px 22px; border-radius:30px; background: var(--card-bg); border:1px solid var(--border); font-weight:500; font-size:.88rem; transition:.3s; }
.filter-btn:hover{ border-color: var(--accent); color: var(--accent); }
.filter-btn.active{ background: var(--accent); color:#fff; border-color: var(--accent); }
[data-theme="dark"] .filter-btn.active{ color:#121212; }

/* =========================================================
   PROCESS
========================================================= */
.process-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:30px; position:relative; }
.process-step{ text-align:center; position:relative; padding:0 10px; }
.process-num{
  width:70px; height:70px; margin:0 auto 20px; border-radius:50%; background: var(--card-bg); border:2px dashed var(--accent);
  display:flex; align-items:center; justify-content:center; font-size:1.4rem; font-weight:800; color: var(--accent);
}
.process-step h4{ font-weight:600; margin-bottom:8px; font-size:1.05rem; }
.process-step p{ font-size:.88rem; color: var(--text-secondary); }

/* =========================================================
   CTA BANNER
========================================================= */
.cta-banner{
  background: linear-gradient(120deg, var(--accent2), #16281f);
  border-radius:26px; padding:60px; color:#fff; display:flex; align-items:center; justify-content:space-between; gap:30px; flex-wrap:wrap;
  box-shadow: var(--shadow);
}
[data-theme="dark"] .cta-banner{ background: linear-gradient(120deg,#26201a, #1c1c1c); }
.cta-banner h2{ font-size:2rem; margin-bottom:10px; }
.cta-banner p{ color:#e8e5df; max-width:480px; }

/* =========================================================
   TESTIMONIALS
========================================================= */
.testi-slider{ position:relative; max-width:820px; margin:0 auto; }
.testi-track{ overflow:hidden; }
.testi-slides{ display:flex; transition: transform .6s cubic-bezier(.4,0,.2,1); }
.testi-slide{ min-width:100%; padding:10px; }
.testi-card{ background: var(--card-bg); border-radius:22px; padding:44px; text-align:center; border:1px solid var(--border); box-shadow: var(--shadow-soft); }
.testi-card .stars{ font-size:1rem; margin-bottom:18px; }
.testi-card p{ font-size:1.1rem; font-style:italic; margin-bottom:26px; color: var(--text); }
.testi-user{ display:flex; align-items:center; justify-content:center; gap:14px; }
.testi-user img{ width:54px; height:54px; border-radius:50%; object-fit:cover; border:3px solid var(--accent); }
.testi-user h4{ font-size:.98rem; font-weight:600; }
.testi-user span{ font-size:.8rem; color: var(--text-secondary); }
.testi-dots{ display:flex; justify-content:center; gap:9px; margin-top:30px; }
.testi-dots button{ width:10px; height:10px; border-radius:50%; background: var(--border); }
.testi-dots button.active{ background: var(--accent); }

/* =========================================================
   GALLERY
========================================================= */
.gallery-grid{ column-count:4; column-gap:20px; }
.gallery-item{ margin-bottom:20px; border-radius:16px; overflow:hidden; position:relative; break-inside:avoid; cursor:pointer; }
.gallery-item img{ width:100%; transition: transform .5s ease; }
.gallery-item:hover img{ transform: scale(1.08); }
.gallery-overlay{ position:absolute; inset:0; background: linear-gradient(0deg, rgba(0,0,0,.7), transparent 60%); display:flex; align-items:flex-end; padding:18px; opacity:0; transition:.3s; }
.gallery-item:hover .gallery-overlay{ opacity:1; }
.gallery-overlay h4{ color:#fff; font-size:.95rem; }
.gallery-overlay span{ color:#ddd; font-size:.75rem; }

.lightbox{ position:fixed; inset:0; background: rgba(5,5,8,.92); z-index:2000; display:flex; align-items:center; justify-content:center; opacity:0; visibility:hidden; transition:.35s; }
.lightbox.active{ opacity:1; visibility:visible; }
.lightbox img{ max-width:88%; max-height:82vh; border-radius:12px; }
.lightbox-close{ position:absolute; top:26px; right:30px; color:#fff; font-size:1.8rem; }

/* =========================================================
   FAQ ACCORDION
========================================================= */
.accordion{ max-width:820px; margin:0 auto; display:grid; gap:16px; }
.accordion-item{ background: var(--card-bg); border:1px solid var(--border); border-radius:16px; overflow:hidden; }
.accordion-head{ display:flex; align-items:center; justify-content:space-between; padding:22px 26px; font-weight:600; }
.accordion-head i{ transition:.3s; color: var(--accent); }
.accordion-item.open .accordion-head i{ transform: rotate(45deg); }
.accordion-body{ max-height:0; overflow:hidden; transition: max-height .4s ease; padding:0 26px; }
.accordion-item.open .accordion-body{ max-height:300px; padding-bottom:24px; }
.accordion-body p{ color: var(--text-secondary); font-size:.94rem; }

/* =========================================================
   FORMS
========================================================= */
.form-grid{ display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.form-group{ display:flex; flex-direction:column; gap:8px; }
.form-group.full{ grid-column: 1 / -1; }
.form-group label{ font-size:.85rem; font-weight:600; }
.form-group input, .form-group select, .form-group textarea{
  padding:14px 16px; border-radius:12px; border:1px solid var(--border); background: var(--bg-alt); color: var(--text); font-size:.95rem; transition:.3s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus{ outline:none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb),.14); }
.form-note{ font-size:.8rem; color: var(--text-secondary); }

.contact-info-card{ background: var(--card-bg); border-radius:20px; padding:34px; border:1px solid var(--border); }
.info-row{ display:flex; gap:16px; align-items:flex-start; padding:16px 0; border-bottom:1px solid var(--border); }
.info-row:last-child{ border-bottom:none; }
.info-row .ic{ width:46px; height:46px; border-radius:12px; background: rgba(var(--accent-rgb),.14); color: var(--accent); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.info-row h4{ font-size:.95rem; margin-bottom:4px; }
.info-row p, .info-row a{ font-size:.88rem; color: var(--text-secondary); }
.map-frame{ border-radius:20px; overflow:hidden; border:1px solid var(--border); height:340px; }
.map-frame iframe{ width:100%; height:100%; border:0; filter: grayscale(0.15); }

/* =========================================================
   FOOTER
========================================================= */
footer{ background: var(--bg-alt); border-top:1px solid var(--border); padding-top:80px; }
.footer-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap:40px; padding-bottom:50px; }
.footer-about p{ color: var(--text-secondary); font-size:.92rem; margin:18px 0 22px; }
.footer-social{ display:flex; gap:12px; }
.footer-social a{ width:38px; height:38px; border-radius:50%; background: var(--card-bg); border:1px solid var(--border); display:flex; align-items:center; justify-content:center; transition:.3s; }
.footer-social a:hover{ background: var(--accent); color:#fff; transform: translateY(-4px); }
footer h4{ font-size:1.02rem; margin-bottom:22px; font-weight:600; }
.footer-links li{ margin-bottom:12px; }
.footer-links a{ color: var(--text-secondary); font-size:.9rem; transition:.3s; }
.footer-links a:hover{ color: var(--accent); padding-left:5px; }
.footer-contact li{ display:flex; gap:12px; margin-bottom:16px; font-size:.9rem; color: var(--text-secondary); }
.footer-contact i{ color: var(--accent); margin-top:3px; }
.footer-newsletter{ display:flex; margin-top:10px; border-radius:12px; overflow:hidden; border:1px solid var(--border); }
.footer-newsletter input{ flex:1; padding:13px 16px; border:none; background: var(--card-bg); color: var(--text); }
.footer-newsletter button{ padding:0 20px; background: var(--accent); color:#fff; }
[data-theme="dark"] .footer-newsletter button{ color:#121212; }
.footer-bottom{ border-top:1px solid var(--border); padding:22px 0; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px; font-size:.85rem; color: var(--text-secondary); }
.footer-bottom a{ color: var(--text-secondary); }
.footer-bottom a:hover{ color: var(--accent); }

/* =========================================================
   BACK TO TOP
========================================================= */
#backToTop{
  position:fixed; bottom:26px; left:26px; width:48px; height:48px; border-radius:50%; background: var(--accent); color:#fff;
  display:flex; align-items:center; justify-content:center; box-shadow: var(--shadow); opacity:0; visibility:hidden; transform: translateY(15px);
  transition:.35s; z-index:900;
}
[data-theme="dark"] #backToTop{ color:#121212; }
#backToTop.show{ opacity:1; visibility:visible; transform: translateY(0); }

/* =========================================================
   PAGE HERO (inner pages)
========================================================= */
.page-hero{ position:relative; padding:170px 0 90px; text-align:center; color:#fff; overflow:hidden; }
.page-hero::before{ content:''; position:absolute; inset:0; background-size:cover; background-position:center; }
.page-hero::after{ content:''; position:absolute; inset:0; background: linear-gradient(180deg, rgba(10,10,10,.75), rgba(10,10,10,.55)); }
.page-hero .container{ position:relative; z-index:2; }
.page-hero h1{ font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight:800; margin-bottom:16px; }
.breadcrumb{ display:flex; gap:8px; justify-content:center; color:#eee; font-size:.9rem; }
.breadcrumb a{ color: var(--accent2); }
[data-theme="dark"] .breadcrumb a{ color: var(--gold); }

/* =========================================================
   REVEAL ANIMATIONS
========================================================= */
.reveal{ opacity:0; transform: translateY(40px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in{ opacity:1; transform: translateY(0); }

/* =========================================================
   AI CHATBOT
========================================================= */
#chat-toggle{
  position:fixed; bottom:26px; right:26px; width:64px; height:64px; border-radius:50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2)); color:#fff; font-size:1.5rem;
  display:flex; align-items:center; justify-content:center; box-shadow: 0 12px 30px rgba(var(--accent-rgb),.4); z-index:1000; transition:.35s;
}
#chat-toggle:hover{ transform: scale(1.08) rotate(8deg); }
#chat-toggle .dot{ position:absolute; top:6px; right:6px; width:12px; height:12px; background:#39d353; border-radius:50%; border:2px solid var(--bg); }

.chat-window{
  position:fixed; bottom:104px; right:26px; width:370px; max-width:90vw; height:520px; max-height:75vh;
  background: var(--card-bg-alt); border:1px solid var(--border); border-radius:22px; box-shadow: var(--shadow);
  display:flex; flex-direction:column; overflow:hidden; z-index:1001;
  opacity:0; visibility:hidden; transform: translateY(30px) scale(.95); transition: all .35s cubic-bezier(.4,0,.2,1);
}
.chat-window.open{ opacity:1; visibility:visible; transform: translateY(0) scale(1); }
.chat-header{ background: linear-gradient(120deg, var(--accent2), #1b3327); color:#fff; padding:18px 20px; display:flex; align-items:center; gap:12px; }
[data-theme="dark"] .chat-header{ background: linear-gradient(120deg,#26201a,#1c1c1c); }
.chat-header .avatar{ width:40px; height:40px; border-radius:50%; background: rgba(255,255,255,.2); display:flex; align-items:center; justify-content:center; font-size:1.2rem; }
.chat-header h4{ font-size:.95rem; }
.chat-header span{ font-size:.75rem; color:#cde; display:flex; align-items:center; gap:5px; }
.chat-header span::before{ content:''; width:7px; height:7px; border-radius:50%; background:#39d353; }
.chat-close{ margin-left:auto; color:#fff; font-size:1.2rem; }
.chat-body{ flex:1; padding:18px; overflow-y:auto; display:flex; flex-direction:column; gap:12px; background: var(--bg); }
.msg{ max-width:80%; padding:11px 15px; border-radius:16px; font-size:.87rem; line-height:1.5; animation: pop .25s ease; }
@keyframes pop{ from{ opacity:0; transform: translateY(8px);} to{opacity:1; transform:translateY(0);} }
.msg.bot{ background: var(--card-bg); align-self:flex-start; border-bottom-left-radius:4px; border:1px solid var(--border); }
.msg.user{ background: var(--accent); color:#fff; align-self:flex-end; border-bottom-right-radius:4px; }
[data-theme="dark"] .msg.user{ color:#121212; }
.chat-suggestions{ display:flex; flex-wrap:wrap; gap:8px; padding:0 18px 12px; background: var(--bg); }
.chat-suggestions button{ font-size:.75rem; padding:7px 12px; border-radius:20px; background: var(--card-bg); border:1px solid var(--border); color: var(--text); transition:.3s; }
.chat-suggestions button:hover{ background: var(--accent); color:#fff; }
.chat-input{ display:flex; align-items:center; gap:10px; padding:14px; border-top:1px solid var(--border); background: var(--card-bg-alt); }
.chat-input input{ flex:1; padding:12px 16px; border-radius:30px; border:1px solid var(--border); background: var(--bg-alt); color: var(--text); font-size:.87rem; }
.chat-input input:focus{ outline:none; border-color: var(--accent); }
.chat-input button{ width:42px; height:42px; border-radius:50%; background: var(--accent); color:#fff; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
[data-theme="dark"] .chat-input button{ color:#121212; }
.typing{ display:flex; gap:4px; padding:12px 15px; background: var(--card-bg); border-radius:16px; align-self:flex-start; border:1px solid var(--border); }
.typing span{ width:6px; height:6px; background: var(--text-secondary); border-radius:50%; animation: blink 1.2s infinite; }
.typing span:nth-child(2){ animation-delay:.2s; } .typing span:nth-child(3){ animation-delay:.4s; }
@keyframes blink{ 0%,80%,100%{ opacity:.3; } 40%{ opacity:1; } }

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1100px){
  .grid-4{ grid-template-columns:repeat(2,1fr); }
  .process-grid{ grid-template-columns:repeat(2,1fr); gap:40px; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .gallery-grid{ column-count:3; }
}
@media (max-width: 940px){
  .nav-menu, .nav-actions .btn{ display:none; }
  .hamburger{ display:flex; }
  .about-grid, .grid-2{ grid-template-columns:1fr; }
  .stats-grid{ grid-template-columns:repeat(2,1fr); }
  .grid-3{ grid-template-columns:repeat(2,1fr); }
  .form-grid{ grid-template-columns:1fr; }
  .gallery-grid{ column-count:2; }

  .nav-menu.mobile-open{
    display:flex; flex-direction:column; position:fixed; top:0; right:0; height:100vh; width:78%; max-width:340px;
    background: var(--bg); padding:100px 26px 30px; box-shadow: -10px 0 40px rgba(0,0,0,.2); z-index:999; overflow-y:auto; gap:6px;
    animation: slideIn .35s ease;
  }
  @keyframes slideIn{ from{ transform: translateX(100%);} to{ transform: translateX(0);} }
  .nav-menu.mobile-open > li > a{ padding:16px 10px; border-bottom:1px solid var(--border); justify-content:space-between; }
  .nav-menu.mobile-open .dropdown{ position:static; opacity:1; visibility:visible; transform:none; box-shadow:none; display:none; border:none; background: var(--bg-alt); }
  .nav-menu.mobile-open li.dropdown-open .dropdown{ display:block; }
  .mobile-cta{ display:block !important; margin-top:20px; text-align:center; }
  .nav-overlay{ position:fixed; inset:0; background: rgba(0,0,0,.5); z-index:998; opacity:0; visibility:hidden; transition:.3s; }
  .nav-overlay.show{ opacity:1; visibility:visible; }
}
@media (max-width: 700px){
  .cta-banner{ flex-direction:column; text-align:center; padding:40px 26px; }
  .stats-grid{ grid-template-columns:1fr 1fr; }
  .grid-3, .grid-4{ grid-template-columns:1fr; }
  .gallery-grid{ column-count:1; }
  section{ padding:60px 0; }
  .topbar .container{ gap:12px; }
  .topbar-info{ gap:18px; }
  .social-mini{ display:none; }
  .chat-window{ right:12px; bottom:96px; width:94vw; }
  #chat-toggle{ right:16px; }
  #backToTop{ left:16px; }
  .slider-arrow{ width:40px; height:40px; }
  .slide-content{ padding:0 24px 60px; }
}
@media (max-width: 480px){
  .brand-text span{ display:none; }
  .stats-grid{ grid-template-columns:1fr 1fr; gap:14px;}
  .stat-card h3{ font-size:2rem; }
}
