﻿/* NIRMAYA PROPERTY INSPECTION - UI Components Style System */

/* Header / Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: var(--transition-smooth);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 120px;
  transition: var(--transition-smooth);
}

.header.scrolled .nav-container {
  height: 96px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color);
}

.logo span {
  color: var(--secondary-color);
}

.logo-icon {
  width: 36px;
  height: 36px;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.25rem;
}

.nav-link {
  font-family: var(--font-headings);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-color);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: var(--transition-smooth);
}

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 5px 0;
  transition: var(--transition-smooth);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-headings);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 2px solid transparent;
  outline: none;
}

.btn-primary {
  background-color: var(--secondary-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--white);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: var(--whatsapp-green);
  color: var(--white);
}

.btn-whatsapp:hover {
  background-color: var(--whatsapp-hover);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

/* Premium Cards */
.card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
  border: 1px solid rgba(23, 53, 99, 0.03);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 54px;
  height: 54px;
  background-color: rgba(23, 53, 99, 0.05);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  transition: var(--transition-smooth);
}

.card:hover .card-icon {
  background-color: var(--primary-color);
  color: var(--white);
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.card-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Interactive Form Styling */
.form-container {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(23, 53, 99, 0.04);
}

.form-title-group {
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.form-label {
  font-family: var(--font-headings);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--primary-color);
}

.form-control {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--border-radius);
  border: 1.5px solid var(--border-color);
  background-color: #FAFAFB;
  color: var(--text-color);
  outline: none;
  transition: var(--transition-smooth);
}

.form-control:focus {
  border-color: var(--primary-color);
  background-color: var(--white);
  box-shadow: 0 0 0 4px rgba(23, 53, 99, 0.06);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23173563' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.25rem center;
  background-size: 1.15rem;
  padding-right: 2.5rem;
}

textarea.form-control {
  width: 100%;
  min-height: 120px;
  resize: vertical;
}

/* Accordion (FAQs) */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.accordion-item {
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--border-color);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.accordion-item.active {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
}

.accordion-header {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  outline: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
}

.accordion-title {
  font-family: var(--font-headings);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--primary-color);
  margin: 0;
}

.accordion-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(23, 53, 99, 0.05);
  color: var(--primary-color);
  transition: var(--transition-smooth);
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
  background-color: var(--primary-color);
  color: var(--white);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-body {
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Timeline/Process styling */
.process-timeline {
  position: relative;
  max-width: 900px;
  margin: 3rem auto 0 auto;
  padding: 1rem 0;
}

.process-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: rgba(23, 53, 99, 0.1);
  transform: translateX(-50%);
}

.process-step {
  display: flex;
  margin-bottom: 3rem;
  position: relative;
}

.process-step:last-child {
  margin-bottom: 0;
}

.process-step:nth-child(even) {
  flex-direction: row-reverse;
}

.process-node {
  width: 46px;
  height: 46px;
  background-color: var(--white);
  border: 4px solid var(--secondary-color);
  border-radius: 50%;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-headings);
  font-weight: 600;
  color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.process-content {
  width: 45%;
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(23, 53, 99, 0.02);
}

.process-step:nth-child(even) .process-content {
  text-align: right;
}

/* Testimonial Cards */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(23, 53, 99, 0.02);
}

.testimonial-stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
  color: #FBBF24; /* Amber star color */
}

.testimonial-quote {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--primary-color);
  font-family: var(--font-headings);
}

.testimonial-meta h4 {
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.testimonial-meta span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Footer styling */
.footer {
  background-color: #0d1e37;
  color: rgba(255, 255, 255, 0.8);
  padding: 5rem 0 2rem 0;
  font-size: 0.9rem;
}

.footer h3, .footer h4 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-about p {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1.5rem;
  max-width: 320px;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition-smooth);
}

.social-icon:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--secondary-color);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-contact-item svg {
  width: 20px;
  height: 20px;
  color: var(--secondary-color);
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

.footer-bottom-links a:hover {
  color: var(--secondary-color);
}

/* Floating Action Buttons (FAB) */
.fab-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 999;
}

.fab-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition: var(--transition-smooth);
  position: relative;
  cursor: pointer;
  border: none;
}

.fab-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.fab-whatsapp {
  background-color: var(--whatsapp-green);
}

.fab-phone {
  background-color: var(--primary-color);
}

.fab-book {
  background-color: var(--secondary-color);
}

.fab-label {
  position: absolute;
  right: 70px;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-family: var(--font-headings);
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  pointer-events: none;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.fab-btn:hover .fab-label {
  opacity: 1;
  transform: translateX(0);
}

/* Form Success & Info Modals */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(13, 30, 55, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.modal.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  max-width: 550px;
  width: 90%;
  box-shadow: var(--shadow-lg);
  transform: scale(0.9);
  transition: var(--transition-smooth);
  text-align: center;
}

.modal.active .modal-content {
  transform: scale(1);
}

.modal-icon {
  width: 72px;
  height: 72px;
  background-color: rgba(34, 197, 94, 0.1);
  color: var(--whatsapp-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
}

.modal h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.modal p {
  margin-bottom: 2rem;
  font-size: 1rem;
}

/* Sticky Mobile Bottom CTA */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: 0 -4px 15px rgba(0,0,0,0.08);
  grid-template-columns: repeat(3, 1fr);
  z-index: 998;
  border-top: 1px solid var(--border-color);
}

.mobile-cta-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0.5rem;
  font-family: var(--font-headings);
  font-size: 0.75rem;
  font-weight: 500;
  gap: 0.25rem;
}

.mobile-cta-btn.whatsapp {
  color: var(--whatsapp-green);
}

.mobile-cta-btn.call {
  color: var(--primary-color);
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
}

.mobile-cta-btn.book {
  background-color: var(--secondary-color);
  color: var(--white);
}

/* Responsive adjustments */
@media (max-width: 1250px) {
  .nav-menu {
    gap: 0.75rem;
  }
  .nav-link {
    font-size: 0.85rem;
  }
  .nav-actions {
    gap: 0.5rem;
  }
  .nav-actions .btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--white);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-md);
    overflow-y: auto;
    z-index: 999;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-actions {
    display: none;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .header.scrolled .nav-menu {
    top: 70px;
    height: calc(100vh - 70px);
  }
  
  .mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  
  .mobile-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  .form-container {
    padding: 1.75rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .process-timeline::before {
    left: 24px;
  }
  
  .process-step {
    flex-direction: row !important;
  }
  
  .process-node {
    left: 24px;
    transform: translateX(-50%);
  }
  
  .process-content {
    width: calc(100% - 56px);
    margin-left: 56px;
    text-align: left !important;
    padding: 1.5rem;
  }
  
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .fab-container {
    bottom: 4.5rem; /* Elevate so it doesn't block mobile cta */
  }
  
  .mobile-sticky-cta {
    display: grid;
  }
  
  body {
    padding-bottom: 60px; /* Space for sticky cta */
  }
}

/* Brand Logo Full Image Styles */
.brand-logo-img {
  height: 105px;
  width: auto;
  display: block;
  transition: height 0.3s ease;
}

.header.scrolled .brand-logo-img {
  height: 82px;
}

.footer-logo-badge {
  background: var(--white);
  padding: 6px 12px;
  border-radius: var(--border-radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

