/* 
   B.V. Rao & Co LLP - Premium Style System
   Color Theme: Executive Indigo Blue & Imperial Gold
*/

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Montserrat:wght@400;500;600;700&display=swap');

/* CSS Variables */
:root {
  --primary-color: #0b2240;      /* Deep Indigo Blue */
  --primary-light: #163660;     /* Lighter Indigo for hover/cards */
  --primary-dark: #071324;      /* Dark Indigo for deep backgrounds */
  --accent-color: #c59b27;       /* Imperial Gold */
  --accent-light: #e0b848;      /* Lighter Gold */
  --accent-dark: #997517;       /* Deep Bronze Gold */
  
  --text-dark: #0f172a;         /* Near black for body text */
  --text-medium: #475569;       /* Slate grey for descriptions */
  --text-light: #f8fafc;        /* Off white for dark background text */
  
  --bg-light: #f8fafc;          /* Soft slate white */
  --bg-white: #ffffff;
  --bg-navy-gradient: linear-gradient(135deg, #0b2240 0%, #071324 100%);
  --bg-gold-gradient: linear-gradient(135deg, #c59b27 0%, #997517 100%);
  
  --border-color: #e2e8f0;      /* Soft grey border */
  --border-gold: rgba(197, 155, 39, 0.2);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-gold: 0 10px 20px -5px rgba(197, 155, 39, 0.15);
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--primary-color);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

img, svg {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Section Header Style */
.section-title-wrapper {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  font-family: 'Montserrat', sans-serif;
  color: var(--accent-color);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: 38px;
  position: relative;
  display: inline-block;
  padding-bottom: 16px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  transition: var(--transition-normal);
}

header.scrolled {
  padding: 8px 0;
  box-shadow: var(--shadow-md);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 60px;
  width: auto;
}

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

.nav-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary-color);
  letter-spacing: 0.5px;
  position: relative;
}

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

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: var(--transition-normal);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--text-light);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background-color: var(--accent-color);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-accent {
  background: var(--bg-gold-gradient);
  color: var(--primary-color);
  font-weight: 700;
  box-shadow: var(--shadow-md);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
  filter: brightness(1.1);
}

.btn-outline {
  border: 2px solid var(--accent-color);
  background: transparent;
  color: var(--primary-color);
}

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

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition-fast);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 95vh;
  padding-top: 120px;
  display: flex;
  align-items: center;
  background-color: #f0f4f8;
  background-image: 
    radial-gradient(at 100% 0%, rgba(197, 155, 39, 0.08) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(11, 34, 64, 0.05) 0px, transparent 50%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 0l40 40-40 40L0 40z' fill='%230b2240' fill-opacity='0.015' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-tagline {
  font-family: 'Montserrat', sans-serif;
  color: var(--accent-color);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: inline-block;
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 6px;
}

.hero-title {
  font-size: 48px;
  line-height: 1.15;
  margin-bottom: 24px;
  color: var(--primary-color);
}

.hero-title span {
  font-style: italic;
  color: var(--accent-color);
  font-weight: 400;
}

.hero-desc {
  font-size: 17px;
  color: var(--text-medium);
  margin-bottom: 36px;
  max-width: 540px;
}

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

.hero-badges {
  display: flex;
  gap: 20px;
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
}

.badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(11, 34, 64, 0.05);
  border: 1px solid var(--border-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  font-weight: bold;
}

.badge-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.badge-text span {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-medium);
  text-transform: none;
}

.hero-graphic {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Floating Glass Card for Logo Display */
.hero-glass-card {
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05), var(--shadow-gold);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  position: relative;
  z-index: 5;
  animation: float 6s ease-in-out infinite;
}

.hero-glass-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  z-index: -1;
  background: linear-gradient(135deg, rgba(197,155,39,0.3) 0%, transparent 60%, rgba(11,34,64,0.1) 100%);
  border-radius: inherit;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0px); }
}

/* Statistics Bar */
.stats-section {
  background: var(--bg-navy-gradient);
  color: var(--text-light);
  padding: 60px 0;
  position: relative;
  z-index: 10;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-item {
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 0;
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 44px;
  font-weight: 700;
  color: var(--accent-color);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

/* About Us & Team Profiles */
.about-section {
  padding: 100px 0;
  background-color: var(--bg-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

.about-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  font-size: 18px;
  color: var(--text-medium);
}

.about-intro strong {
  color: var(--primary-color);
}

.team-container {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.team-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.team-tab-btn {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  padding: 16px 20px;
  text-align: left;
  border-radius: var(--radius-md);
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-color);
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.team-tab-btn:hover {
  background-color: rgba(197, 155, 39, 0.05);
  border-color: var(--accent-color);
}

.team-tab-btn.active {
  background-color: var(--primary-color);
  color: var(--text-light);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
}

.team-tab-btn .tab-arrow {
  opacity: 0;
  transition: var(--transition-fast);
  color: var(--accent-color);
  font-weight: bold;
}

.team-tab-btn.active .tab-arrow {
  opacity: 1;
  transform: translateX(4px);
}

.team-content {
  position: relative;
  min-height: 380px;
}

.team-profile {
  display: none;
  animation: fadeIn 0.5s ease;
}

.team-profile.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.profile-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  background: var(--bg-white);
  padding: 30px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  height: 100%;
}

.profile-photo-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--border-color);
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  background-color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--primary-color);
}

.profile-info h3 {
  font-size: 26px;
  color: var(--primary-color);
  margin-bottom: 4px;
}

.profile-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  color: var(--accent-color);
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
  display: block;
}

.profile-bio {
  color: var(--text-medium);
  font-size: 15px;
  margin-bottom: 24px;
}

.profile-resume-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--accent-color);
  color: var(--primary-color);
  font-weight: 700;
  padding: 10px 20px;
  font-size: 12px;
  letter-spacing: 0.5px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.profile-resume-btn:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
}

/* Services Section */
.services-section {
  background-color: var(--bg-light);
  padding: 100px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--bg-white);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--bg-gold-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg), 0 10px 20px rgba(11, 34, 64, 0.05);
  border-color: rgba(197, 155, 39, 0.3);
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(11, 34, 64, 0.05);
  color: var(--primary-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 24px;
  border: 1px solid var(--border-gold);
  transition: var(--transition-normal);
}

.service-card:hover .service-icon {
  background: var(--bg-navy-gradient);
  color: var(--text-light);
  border-color: var(--primary-color);
}

.service-card h3 {
  font-size: 22px;
  margin-bottom: 16px;
  color: var(--primary-color);
}

.service-card p {
  color: var(--text-medium);
  font-size: 14px;
  margin-bottom: 20px;
}

.service-list {
  list-style: none;
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

.service-list li {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-list li::before {
  content: '✓';
  color: var(--accent-color);
  font-weight: bold;
}

/* Credentials and Empanelment */
.credentials-section {
  padding: 100px 0;
  background-color: var(--bg-white);
}

.credentials-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.credentials-desc {
  font-size: 16px;
  color: var(--text-medium);
  margin-bottom: 24px;
}

.credentials-list-styled {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 30px;
}

.credential-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-color);
  padding: 20px 24px;
  border-radius: var(--radius-md);
}

.credential-info h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  color: var(--text-medium);
  letter-spacing: 1px;
}

.credential-code {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-color);
}

/* Client & Bank Audits Showcase */
.clients-section {
  background-color: var(--primary-dark);
  color: var(--text-light);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.clients-section .section-title {
  color: var(--text-light);
}

.clients-intro {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  max-width: 700px;
  margin: -40px auto 48px auto;
  font-size: 16px;
}

.clients-slider-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.logo-row {
  display: flex;
  overflow: hidden;
  position: relative;
  user-select: none;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.logo-track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: scrollLogos 45s linear infinite;
}

.logo-track.reverse {
  animation-direction: reverse;
}

@keyframes scrollLogos {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.client-logo-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 32px;
  border-radius: var(--radius-md);
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.client-logo-item::before {
  content: '◆';
  color: var(--accent-color);
  font-size: 10px;
}

/* Income Tax Calculator */
.calculator-section {
  padding: 100px 0;
  background-color: var(--bg-light);
}

.calculator-wrapper {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
}

.calc-form-container h3 {
  font-size: 26px;
  margin-bottom: 8px;
  color: var(--primary-color);
}

.calc-subtitle {
  color: var(--text-medium);
  font-size: 14px;
  margin-bottom: 30px;
}

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

.calc-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  color: var(--primary-color);
}

.calc-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.calc-currency {
  position: absolute;
  left: 16px;
  font-weight: 600;
  color: var(--text-medium);
}

.calc-input {
  width: 100%;
  padding: 14px 14px 14px 38px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-dark);
  transition: var(--transition-fast);
}

.calc-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(11, 34, 64, 0.1);
}

.calc-toggle-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background-color: var(--bg-light);
  padding: 6px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.calc-toggle-btn {
  background: none;
  border: none;
  padding: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-medium);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.calc-toggle-btn.active {
  background: var(--primary-color);
  color: var(--text-light);
}

.calc-results-container {
  background: var(--bg-navy-gradient);
  color: var(--text-light);
  border-radius: var(--radius-md);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
}

.calc-result-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 20px;
  margin-bottom: 24px;
}

.calc-result-header h4 {
  color: var(--text-light);
  font-size: 20px;
}

.regime-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

.regime-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: var(--radius-md);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.regime-card.recommended {
  border-color: var(--accent-color);
  background: rgba(197, 155, 39, 0.08);
}

.recommend-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--accent-color);
  color: var(--primary-dark);
  font-size: 9px;
  font-weight: 700;
  padding: 4px 8px;
  border-bottom-left-radius: var(--radius-sm);
  text-transform: uppercase;
}

.regime-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
}

.regime-val {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-light);
}

.regime-card.recommended .regime-val {
  color: var(--accent-color);
}

.saving-box {
  background: rgba(197, 155, 39, 0.15);
  border: 1.5px dashed var(--accent-color);
  padding: 24px;
  border-radius: var(--radius-md);
  text-align: center;
  margin-bottom: 24px;
}

.saving-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-color);
  margin-bottom: 4px;
}

.saving-val {
  font-size: 32px;
  font-weight: 800;
  color: var(--accent-color);
}

.calc-disclaimer {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  line-height: 1.4;
}

/* Contact & Branches Section */
.contact-section {
  padding: 100px 0;
  background-color: var(--bg-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 60px;
}

.branches-container {
  display: flex;
  flex-direction: column;
}

.branch-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1.5px solid var(--border-color);
  padding-bottom: 20px;
  margin-bottom: 30px;
}

.branch-tab-btn {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  padding: 10px 18px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}

.branch-tab-btn:hover {
  border-color: var(--accent-color);
  background-color: rgba(197, 155, 39, 0.05);
}

.branch-tab-btn.active {
  background-color: var(--primary-color);
  color: var(--text-light);
  border-color: var(--primary-color);
}

.branch-details {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px;
}

.branch-info-pane {
  display: none;
  animation: fadeIn 0.4s ease;
}

.branch-info-pane.active {
  display: block;
}

.branch-name {
  font-size: 24px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.branch-address {
  font-size: 15px;
  color: var(--text-medium);
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.branch-contact-item {
  font-size: 15px;
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.branch-contact-item a:hover {
  color: var(--accent-color);
}

.branch-icon-svg {
  width: 20px;
  height: 20px;
  color: var(--accent-color);
  flex-shrink: 0;
  margin-top: 3px;
}

.branch-map-btn {
  margin-top: 24px;
  display: inline-flex;
}

/* Consultation Contact Form */
.form-card {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.form-card h3 {
  font-size: 26px;
  margin-bottom: 8px;
}

.form-desc {
  color: var(--text-medium);
  font-size: 14px;
  margin-bottom: 30px;
}

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

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  color: var(--primary-color);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--text-dark);
  background-color: var(--bg-white);
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(11, 34, 64, 0.08);
}

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

.submit-btn {
  width: 100%;
}

.form-alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 500;
  display: none;
}

.form-alert.success {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  display: block;
}

.form-alert.error {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
  display: block;
}

/* Footer Section */
footer {
  background-color: var(--primary-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-about .logo-container {
  margin-bottom: 20px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.footer-title {
  color: var(--text-light);
  font-size: 16px;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 8px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--accent-color);
}

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

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

.footer-links a {
  font-size: 14px;
  transition: var(--transition-fast);
}

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

.footer-contact-info {
  list-style: none;
}

.footer-contact-info li {
  font-size: 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.footer-contact-info a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-credits {
  font-weight: 500;
}

.footer-credits a {
  color: var(--accent-color);
}

/* Responsiveness */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero-desc {
    margin: 0 auto 36px auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-badges {
    justify-content: center;
  }
  
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  
  .stat-item {
    border-right: none;
  }
  
  .stat-item:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .credentials-grid {
    grid-template-columns: 1fr;
  }
  
  .calculator-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 30px;
  }
  
  .hero-title {
    font-size: 36px;
  }
  
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--bg-white);
    flex-direction: column;
    padding: 40px;
    gap: 24px;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    transition: var(--transition-normal);
  }
  
  .nav-menu.open {
    left: 0;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  
  .menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  .team-container {
    grid-template-columns: 1fr;
  }
  
  .profile-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .profile-photo-wrapper {
    margin-bottom: 20px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-item {
    border-right: none !important;
  }
}

/* ==========================================================================
   FLOATING CHAT WIDGET
   ========================================================================== */
.chat-widget-wrapper {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  font-family: 'Inter', sans-serif;
}

.chat-bubble-toggle {
  width: 60px;
  height: 60px;
  background: var(--bg-navy-gradient);
  border: 1px solid var(--accent-color);
  border-radius: 50%;
  box-shadow: 0 10px 25px rgba(11, 34, 64, 0.2), var(--shadow-gold);
  color: var(--accent-color);
  font-size: 26px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
  position: relative;
  outline: none;
}

.chat-bubble-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 30px rgba(11, 34, 64, 0.3), var(--shadow-gold);
}

.chat-bubble-toggle .notification-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  background-color: var(--accent-light);
  border: 2px solid var(--primary-dark);
  border-radius: 50%;
}

.chat-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 380px;
  height: 500px;
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1), var(--shadow-gold);
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: chatOpen 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: bottom right;
}

@keyframes chatOpen {
  from { opacity: 0; transform: scale(0.8) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.chat-window.open {
  display: flex;
}

.chat-header {
  background: var(--bg-navy-gradient);
  color: var(--text-light);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2.5px solid var(--accent-color);
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.1);
  border: 1.5px solid var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent-color);
  font-size: 14px;
  font-family: 'Montserrat', sans-serif;
}

.chat-header-info h4 {
  color: var(--text-light);
  font-size: 15px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin: 0;
}

.chat-header-info span {
  display: block;
  font-size: 10px;
  color: rgba(255,255,255,0.6);
  font-weight: 400;
}

.chat-close-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 20px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.chat-close-btn:hover {
  color: var(--text-light);
}

.chat-body {
  flex-grow: 1;
  padding: 20px;
  overflow-y: auto;
  background-color: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-behavior: smooth;
}

.chat-msg {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  line-height: 1.5;
  animation: msgFadeIn 0.3s ease;
  word-wrap: break-word;
}

@keyframes msgFadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-msg.bot {
  background-color: var(--bg-white);
  color: var(--text-dark);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
  border: 1px solid var(--border-color);
}

.chat-msg.user {
  background-color: var(--primary-color);
  color: var(--text-light);
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.chat-typing-indicator {
  align-self: flex-start;
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  display: none;
  align-items: center;
  gap: 4px;
}

.chat-typing-indicator span {
  height: 6px;
  width: 6px;
  background-color: #94a3b8;
  border-radius: 50%;
  animation: typingDot 1.4s infinite both;
  display: inline-block;
}

.chat-typing-indicator span:nth-child(2) { animation-delay: .2s; }
.chat-typing-indicator span:nth-child(3) { animation-delay: .4s; }

@keyframes typingDot {
  0% { transform: scale(1); opacity: .4; }
  20% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(1); opacity: .4; }
}

.chat-options {
  padding: 0 20px 12px 20px;
  background-color: #f8fafc;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chat-opt-btn {
  background-color: var(--bg-white);
  border: 1.5px solid var(--border-color);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-color);
  cursor: pointer;
  transition: var(--transition-fast);
}

.chat-opt-btn:hover {
  border-color: var(--accent-color);
  background-color: rgba(197, 155, 39, 0.05);
  color: var(--accent-color);
}

.chat-footer {
  padding: 12px 20px;
  background-color: var(--bg-white);
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 10px;
  align-items: center;
}

.chat-input {
  flex-grow: 1;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 13.5px;
  font-family: 'Inter', sans-serif;
  outline: none;
}

.chat-input:focus {
  border-color: var(--primary-color);
}

.chat-send-btn {
  background-color: var(--primary-color);
  color: var(--text-light);
  border: none;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.chat-send-btn:hover {
  background-color: var(--accent-color);
  color: var(--primary-color);
}

@media (max-width: 480px) {
  .chat-window {
    width: 320px;
    height: 420px;
    bottom: 70px;
    right: -10px;
  }
  .chat-widget-wrapper {
    bottom: 20px;
    right: 20px;
  }
}

