/* ==========================================================================
   GRIHA NAKSA ENGINEERING CONSULTANCY (grihanaksa.com.np)
   Ultra-Premium Dark & Gold Architectural Engineering Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  /* Ultra-Premium Color Tokens */
  --bg-dark: #060911;
  --bg-surface: #0d1322;
  --bg-card: #131d33;
  --bg-card-hover: #1a2744;
  --bg-glass: rgba(13, 19, 34, 0.88);

  /* Gold & Metallic Palette */
  --gold-primary: #e2b155;
  --gold-light: #fcd34d;
  --gold-dark: #b3832b;
  --gold-gradient: linear-gradient(135deg, #fcd34d 0%, #e2b155 40%, #a8761e 100%);
  --gold-glow: 0 0 35px rgba(226, 177, 85, 0.35);

  /* Secondary Accents */
  --blue-glow: rgba(56, 189, 248, 0.18);
  --whatsapp-green: #25d366;
  --whatsapp-hover: #1da851;

  /* Typography Colors */
  --text-main: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Borders & Shadows */
  --border-light: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(226, 177, 85, 0.35);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 12px 36px -6px rgba(0, 0, 0, 0.6);
  --shadow-hover: 0 20px 50px -10px rgba(226, 177, 85, 0.25);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-dark);
}

body {
  overflow-x: hidden;
  line-height: 1.65;
}

/* Typography Headings */
h1, h2, h3, h4, h5, .brand-font {
  font-family: 'Outfit', sans-serif;
}

/* Container */
.container {
  width: 92%;
  max-width: 1280px;
  margin: 0 auto;
}

/* Utility Helpers */
.text-gold { color: var(--gold-primary); }
.text-gradient-gold {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.bg-glass {
  background: var(--bg-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-light);
}

/* Top Announcement Bar */
.top-bar {
  background: linear-gradient(90deg, #070b14 0%, #131d33 50%, #070b14 100%);
  border-bottom: 1px solid var(--border-light);
  padding: 8px 0;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.top-bar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.top-bar-info span {
  margin-right: 20px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  border: none;
  outline: none;
}

.btn-primary {
  background: var(--gold-gradient);
  color: #060911;
  font-weight: 700;
  box-shadow: 0 8px 25px rgba(226, 177, 85, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(226, 177, 85, 0.5);
  background: linear-gradient(135deg, #fff0c2 0%, #fcd34d 100%);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  border: 1px solid var(--border-gold);
}

.btn-outline:hover {
  background: rgba(226, 177, 85, 0.15);
  border-color: var(--gold-primary);
  color: var(--gold-light);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: var(--whatsapp-green);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  background: var(--whatsapp-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 35px rgba(37, 211, 102, 0.5);
}

/* Header & Navbar */
.navbar {
  position: fixed;
  top: 37px; /* Below top-bar */
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  top: 0;
  padding: 10px 0;
  background: rgba(6, 9, 17, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 54px;
  width: auto;
  max-width: 270px;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.5));
  transition: var(--transition);
}

.logo-img:hover {
  transform: scale(1.03);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--gold-light);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gold-gradient);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.8rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 190px 0 110px;
  background: radial-gradient(circle at 75% 25%, rgba(226, 177, 85, 0.14) 0%, transparent 60%),
              radial-gradient(circle at 15% 75%, rgba(56, 189, 248, 0.1) 0%, transparent 50%),
              var(--bg-dark);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  background: rgba(226, 177, 85, 0.12);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 22px;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 38px;
  max-width: 560px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
}

.stat-item h3 {
  font-size: 2.3rem;
  font-weight: 800;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Interactive Hero Visual Card Stack */
.hero-visual {
  position: relative;
}

.hero-card-stack {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--border-gold);
  background: var(--bg-card);
}

.hero-card-img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  display: block;
  transition: var(--transition);
}

.hero-switcher {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 6px;
  background: rgba(6, 9, 17, 0.88);
  padding: 6px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
}

.switch-btn {
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: none;
  background: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.switch-btn.active {
  background: var(--gold-gradient);
  color: #060911;
}

.floating-glass-tag {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  padding: 20px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(13, 19, 34, 0.88);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-gold);
}

/* Section Common */
.section {
  padding: 105px 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}

.section-subtitle {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 38px 30px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-hover);
  background: var(--bg-card-hover);
}

.service-icon {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: rgba(226, 177, 85, 0.12);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border: 1px solid var(--border-gold);
}

.service-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-desc {
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.65;
}

/* Catalog & House Plans */
.catalog-filter {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 24px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--gold-gradient);
  color: #060911;
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(226, 177, 85, 0.35);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.plan-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.plan-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-hover);
}

.plan-thumb {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.plan-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.plan-card:hover .plan-thumb img {
  transform: scale(1.06);
}

.plan-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(6, 9, 17, 0.88);
  color: var(--gold-light);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-gold);
}

.plan-details {
  padding: 24px;
}

.plan-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.plan-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.plan-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.plan-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--gold-light);
}

/* Calculator Section */
.calc-box {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 48px;
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-card);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.form-control, .form-select {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
}

.form-control:focus, .form-select:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 18px rgba(226, 177, 85, 0.25);
}

.calc-result-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 38px;
  text-align: center;
  border: 1px solid var(--border-gold);
}

.calc-result-val {
  font-size: 2.7rem;
  font-weight: 900;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 10px 0;
}

/* Map Embed Section */
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-card);
  height: 380px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Footer */
.footer {
  background: #030509;
  padding: 85px 0 30px;
  border-top: 1px solid var(--border-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-main);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 520px;
  width: 100%;
  position: relative;
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-hover);
}

.close-modal {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
}

.close-modal:hover {
  color: var(--gold-light);
}

/* Responsive */
@media (max-width: 992px) {
  .navbar { top: 0; }
  .top-bar { display: none; }
  .hero { padding-top: 140px; }
  .hero-grid, .calc-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2.6rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-surface);
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--border-light);
  }
  .nav-links.active {
    display: flex;
  }
  .mobile-menu-btn {
    display: block;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 2.1rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .calc-box {
    padding: 24px;
  }
}
