@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&family=Playfair+Display:wght@400;500;600;700&display=swap');

:root {
  --navy: #1e3a5f;
  --navy-dark: #15304f;
  --text: #1e3a5f;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-label: #94a3b8;
  --bg-white: #fff;
  --bg-light: #f8fafc;
  --bg-tag: #f0f4f8;
  --bg-hero: linear-gradient(165deg, #fafbfc 0%, #f0f4f8 40%, #e8edf4 100%);
  --border: #e8edf2;
  --border-light: #e2e8f0;
  --border-input: #d4dbe4;
  --shadow-chat: 0 12px 48px rgba(30,58,95,0.18);
  --shadow-btn: 0 4px 20px rgba(30,58,95,0.35);
}

/* --- RESET & BASE --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; color: var(--text); background: var(--bg-white); }

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes dotPulse {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1); }
}

@keyframes lineGrow {
  from { width: 0; }
  to { width: 48px; }
}

/* --- NAVBAR --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 64px;
  padding: 0 48px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #f0f2f5;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--navy);
  letter-spacing: -0.5px;
}

.navbar-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.25s ease;
  padding: 4px 0;
  border: none;
  background: none;
  text-decoration: none;
  position: relative;
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  height: 2px;
  background: var(--navy);
  animation: lineGrow 0.3s ease forwards;
}

/* --- HERO SECTION --- */
.section-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 48px 80px;
  position: relative;
  background: var(--bg-hero);
}

.hero-decoration-1 {
  position: absolute;
  top: 15%;
  right: 8%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 1px solid rgba(30,58,95,0.06);
}

.hero-decoration-2 {
  position: absolute;
  bottom: 20%;
  left: 5%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 1px solid rgba(30,58,95,0.04);
}

.hero-content {
  max-width: 720px;
  text-align: center;
  animation: fadeInUp 0.8s ease;
}

.cred-badges {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.cred-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--border-input);
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.3px;
}

.hero-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(42px, 6vw, 68px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.hero-tagline {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 540px;
  margin: 0 auto 36px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* --- BUTTONS --- */
.btn-primary {
  padding: 14px 32px;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.3px;
  transition: all 0.25s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--navy-dark);
}

.btn-outline {
  padding: 14px 32px;
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.3px;
  transition: all 0.25s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-outline:hover {
  background: var(--navy);
  color: #fff;
}

/* --- SECTIONS COMMON --- */
.section-about, 
.section-experience, 
.section-skills,
.section-calculators {
  padding: 100px 48px;
  max-width: 900px;
  margin: 0 auto;
}

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

.section-heading {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 28px;
  line-height: 1.2;
}

.section-divider {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 48px;
}

.section-divider::after {
  content: '';
  display: block;
  height: 1px;
  background: var(--border);
}

/* --- ABOUT --- */
.about-paragraphs {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.about-paragraphs p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-secondary);
}

/* --- EXPERIENCE --- */
.section-experience .section-heading {
  margin-bottom: 48px;
}

.experience-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.exp-card {
  border-left: 2px solid var(--border-light);
  padding-left: 28px;
  position: relative;
  transition: border-color 0.3s ease;
}

.exp-card:hover {
  border-color: var(--navy);
}

.exp-card::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--navy);
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
  flex-wrap: wrap;
  gap: 8px;
}

.exp-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
}

.exp-period {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-label);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.exp-company {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 14px;
}

.exp-points {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.exp-points li {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-secondary);
  padding-left: 16px;
  position: relative;
}

.exp-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-label);
}

/* --- SKILLS --- */
.section-skills .section-heading {
  margin-bottom: 48px;
}

.skill-groups {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.skill-group h3.skill-category {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 16px;
  opacity: 0.7;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tag {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  background: var(--bg-tag);
  color: var(--navy);
  transition: all 0.25s ease;
  display: inline-block;
}

.skill-tag:hover {
  background: var(--navy);
  color: #fff;
  transform: translateY(-2px);
}

/* --- CONTACT --- */
.section-contact {
  padding: 100px 48px 120px;
  background: var(--bg-light);
}

.contact-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-subtext {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 36px;
}

.contact-form {
  max-width: 500px;
  margin: 0 auto 32px;
  text-align: left;
}

.contact-form-group {
    margin-bottom: 16px;
}

.contact-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--navy);
}

.contact-input, .contact-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-input);
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: var(--text-secondary);
    background: #fff;
    transition: border-color 0.2s;
}

.contact-input:focus, .contact-textarea:focus {
    outline: none;
    border-color: var(--navy);
}

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

.contact-submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--navy);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: background 0.25s ease;
}

.contact-submit-btn:hover {
    background: var(--navy-dark);
}

.contact-location {
  margin-top: 28px;
  font-size: 13px;
  color: var(--text-label);
}

/* --- FOOTER --- */
.site-footer {
  padding: 24px 48px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--text-label);
}

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

/* --- CHATBOT --- */
.chat-toggle {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  z-index: 1000;
  transition: transform 0.2s ease;
}

.chat-toggle:hover {
  transform: scale(1.08);
}

.chat-panel {
  position: fixed;
  bottom: 96px;
  right: 28px;
  width: 380px;
  max-width: calc(100vw - 40px);
  height: 500px;
  max-height: calc(100vh - 140px);
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-chat);
  display: flex;
  flex-direction: column;
  z-index: 999;
  overflow: hidden;
  border: 1px solid var(--border);
  animation: slideUp 0.3s ease;
}

.chat-header {
  padding: 16px 20px;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-header-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-bubble {
  padding: 10px 14px;
  max-width: 82%;
  font-size: 13.5px;
  line-height: 1.55;
  font-family: 'DM Sans', sans-serif;
  white-space: pre-wrap;
}

.chat-bubble.user {
  align-self: flex-end;
  background: var(--navy);
  color: #fff;
  border-radius: 14px 14px 4px 14px;
}

.chat-bubble.assistant {
  align-self: flex-start;
  background: var(--bg-tag);
  color: var(--navy);
  border-radius: 14px 14px 14px 4px;
}

.chat-typing {
  align-self: flex-start;
  background: var(--bg-tag);
  padding: 10px 14px;
  border-radius: 14px 14px 14px 4px;
  display: flex;
  gap: 4px;
}

.typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--navy);
  animation: dotPulse 1.2s ease-in-out infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

.chat-input-bar {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
}

.chat-input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-input);
  outline: none;
  font-size: 13.5px;
  font-family: 'DM Sans', sans-serif;
  color: var(--navy);
  background: #fafbfc;
}

.chat-send {
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 13px;
}

.chat-send:disabled {
  background: #94a3b8;
  cursor: not-allowed;
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
  .navbar {
    padding: 0 20px;
  }
  .navbar-links {
    display: none;
  }
  
  .section-hero, 
  .section-about, 
  .section-experience, 
  .section-skills, 
  .section-calculators,
  .section-contact {
    padding: 60px 20px;
  }
  
  .hero-ctas, 
  .contact-links {
    flex-direction: column;
    align-items: center;
  }
  
  .exp-header {
    flex-direction: column;
  }
  
  .site-footer {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  
  .chat-panel {
    width: calc(100vw - 24px);
    right: 12px;
    bottom: 88px;
  }
}

/* --- CALCULATORS --- */
.section-calculators {
  max-width: 1100px; /* Slightly wider for grid */
}

.calculators-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.calc-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 32px 24px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.calc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(30,58,95,0.08);
  border-color: var(--navy);
}

.calc-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--navy);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.calc-card:hover::before {
  opacity: 1;
}

.calc-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-tag);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--navy);
  margin-bottom: 8px;
}

.calc-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
}

.calc-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.calc-link {
  margin-top: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.calc-link::after {
  content: '→';
  transition: transform 0.2s ease;
}

.calc-link:hover::after {
  transform: translateX(4px);
}

/* --- CALCULATOR PAGE STYLES --- */
.calc-card.active {
  border-color: var(--navy);
  box-shadow: 0 12px 24px rgba(30,58,95,0.12);
  transform: translateY(-4px);
}

.calc-card.active::before {
  opacity: 1;
}

.calc-card { cursor: pointer; }

/* Calculator Panel */
.calc-panel-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px;
}

.calc-panel {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  margin-top: 48px;
  overflow: hidden;
  animation: panelSlideIn 0.4s ease;
}

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

.calc-panel-header {
  padding: 32px 40px 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.calc-panel-icon {
  width: 52px;
  height: 52px;
  background: var(--navy);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #fff;
}

.calc-panel-title {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--navy);
}

.calc-panel-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 2px;
}

.calc-panel-body {
  padding: 32px 40px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

/* Form Inputs */
.calc-form-section h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-label);
  margin-bottom: 20px;
}

.calc-form-group {
  margin-bottom: 18px;
}

.calc-form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 6px;
}

.calc-form-label .unit {
  color: var(--text-muted);
  font-weight: 400;
}

.calc-input, .calc-select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-input);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--text);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  -moz-appearance: textfield;
}

.calc-input:focus, .calc-select:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(30,58,95,0.08);
}

.calc-input::-webkit-inner-spin-button,
.calc-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.calc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Results */
.calc-results-section h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-label);
  margin-bottom: 20px;
}

.calc-result-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.calc-result-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 20px 24px;
  transition: all 0.3s ease;
}

.calc-result-card.highlight {
  border-color: var(--navy);
  background: linear-gradient(135deg, #f8faff 0%, #f0f4fa 100%);
}

.calc-result-card.success {
  border-left: 3px solid #22c55e;
}

.calc-result-card.warning {
  border-left: 3px solid #f59e0b;
}

.calc-result-card.danger {
  border-left: 3px solid #ef4444;
}

.calc-result-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.calc-result-value {
  font-family: 'DM Sans', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  transition: all 0.3s ease;
}

.calc-result-value .result-unit {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 4px;
}

.calc-result-value.success-text { color: #16a34a; }
.calc-result-value.warning-text { color: #d97706; }
.calc-result-value.danger-text { color: #dc2626; }

/* Formula / Info Box */
.calc-info-box {
  grid-column: 1 / -1;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.calc-info-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: var(--bg-tag);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--navy);
}

.calc-info-text {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.calc-info-text code {
  background: var(--bg-tag);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  color: var(--navy);
}

/* Status Badge */
.calc-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 8px;
}

.calc-status-badge.pass {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.calc-status-badge.fail {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

/* Load Calc Specific */
.load-item-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
}

.load-item-row .calc-form-group { margin-bottom: 0; }

.load-add-btn {
  padding: 8px 16px;
  background: var(--bg-tag);
  color: var(--navy);
  border: 1px solid var(--border-input);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.2s ease;
}

.load-add-btn:hover {
  background: var(--navy);
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .calc-panel-body {
    grid-template-columns: 1fr;
    padding: 24px 20px 32px;
  }
  .calc-panel-header {
    padding: 24px 20px 0;
  }
  .calc-row {
    grid-template-columns: 1fr;
  }
  .calc-panel-wrapper {
    padding: 0 20px;
  }
  .calculators-grid {
    grid-template-columns: 1fr;
  }
}

/* =============================================
   NEW STYLES — Breadcrumbs, Footer, FAQ, etc.
   ============================================= */

/* --- SKIP TO CONTENT --- */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--navy);
  color: #fff;
  padding: 12px 24px;
  z-index: 200;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 8px 0;
  transition: top 0.2s;
}
.skip-to-content:focus { top: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* --- BREADCRUMB --- */
.breadcrumb {
  padding: 80px 48px 0;
  max-width: 1100px;
  margin: 0 auto;
}
.breadcrumb-inner {
  font-size: 13px; color: var(--text-muted);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.breadcrumb-inner a {
  color: var(--text-muted); text-decoration: none; transition: color 0.2s;
}
.breadcrumb-inner a:hover { color: var(--navy); }
.breadcrumb-sep { color: var(--text-label); font-size: 11px; }
.breadcrumb-current { color: var(--navy); font-weight: 500; }

/* --- ENHANCED FOOTER --- */
.site-footer-enhanced {
  background: var(--navy); color: rgba(255,255,255,0.85); padding: 60px 48px 24px;
}
.footer-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px;
}
.footer-heading {
  font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 600;
  color: #fff; margin-bottom: 16px;
}
.footer-tagline { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.7); margin-bottom: 12px; }
.footer-col .footer-copy { font-size: 13px; color: rgba(255,255,255,0.5); }
.footer-links { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-links li a {
  color: rgba(255,255,255,0.7); text-decoration: none; font-size: 14px; transition: color 0.2s;
}
.footer-links li a:hover { color: #fff; }
.footer-bottom-bar {
  max-width: 1100px; margin: 0 auto; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.15);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom-bar .footer-creds { font-size: 12px; color: rgba(255,255,255,0.6); font-weight: 500; }
.footer-bottom-bar .footer-disclaimer { font-size: 11px; color: rgba(255,255,255,0.4); }

/* --- MOBILE MENU --- */
.navbar-mobile-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px;
}
.navbar-mobile-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); transition: all 0.3s; }
.navbar-mobile-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.navbar-mobile-toggle.open span:nth-child(2) { opacity: 0; }
.navbar-mobile-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.mobile-menu {
  display: none; position: fixed; top: 64px; left: 0; right: 0;
  background: rgba(255,255,255,0.98); backdrop-filter: blur(12px);
  padding: 20px; flex-direction: column; gap: 16px; z-index: 99; border-bottom: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-menu-link {
  color: var(--text-muted); font-size: 14px; font-weight: 500;
  text-decoration: none; padding: 8px 0; text-transform: uppercase; letter-spacing: 0.5px;
}
.mobile-menu-link:hover { color: var(--navy); }

/* --- UNIT TOGGLE --- */
.unit-toggle-wrapper { display: flex; align-items: center; }
.unit-toggle { display: flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; }
.unit-toggle input[type="checkbox"] { display: none; }
.unit-toggle-label { font-size: 13px; font-weight: 500; color: var(--navy); }
.unit-toggle-track {
  position: relative; width: 44px; height: 24px;
  background: var(--bg-tag); border: 1px solid var(--border-input); border-radius: 12px; transition: all 0.2s;
}
.unit-toggle-thumb {
  position: absolute; top: 2px; left: 2px; width: 18px; height: 18px;
  background: var(--navy); border-radius: 50%; transition: transform 0.2s;
}
.unit-toggle input:checked + .unit-toggle-label + .unit-toggle-track .unit-toggle-thumb {
  transform: translateX(20px); background: #fff;
}
.unit-toggle input:checked + .unit-toggle-label + .unit-toggle-track {
  background: var(--navy); border-color: var(--navy);
}

/* --- CALC FORM HEADING --- */
.calc-form-heading {
  font-size: 12px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--text-label); margin-bottom: 20px;
}

/* --- CALC BUTTONS --- */
.calc-btn-row { margin-top: 8px; display: flex; gap: 12px; }
.btn-sm { padding: 8px 16px; font-size: 12px; }
.calc-action-btns { display: flex; gap: 10px; margin-top: 16px; }

/* --- CALC INPUT VALIDATION --- */
.calc-input-invalid { border-color: #ef4444 !important; box-shadow: 0 0 0 3px rgba(239,68,68,0.1) !important; }
.calc-input-warning { border-color: #f59e0b !important; box-shadow: 0 0 0 3px rgba(245,158,11,0.1) !important; }
.calc-input-error { display: block; font-size: 11px; color: #ef4444; margin-top: 4px; min-height: 16px; }
.calc-hint { display: block; font-size: 11px; color: var(--text-label); margin-top: 4px; }

/* --- CALCULATOR CONTENT SECTION --- */
.calc-content-section {
  max-width: 800px; margin: 64px auto 0; padding-top: 48px; border-top: 1px solid var(--border);
}
.calc-content-section h2 {
  font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 600;
  color: var(--navy); margin-bottom: 20px; line-height: 1.3;
}
.calc-content-section h3 {
  font-size: 18px; font-weight: 600; color: var(--navy); margin-top: 32px; margin-bottom: 12px;
}
.calc-content-section p {
  font-size: 15px; line-height: 1.75; color: var(--text-secondary); margin-bottom: 16px;
}

/* --- FAQ SECTION --- */
.calc-faq-section {
  max-width: 800px; margin: 48px auto 0; padding-top: 48px; border-top: 1px solid var(--border);
}
.calc-faq-section h2 {
  font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 600;
  color: var(--navy); margin-bottom: 24px;
}
.faq-item {
  border: 1px solid var(--border-light); border-radius: 10px; margin-bottom: 12px; overflow: hidden; transition: border-color 0.2s;
}
.faq-item[open] { border-color: var(--navy); }
.faq-item summary {
  padding: 18px 24px; font-size: 15px; font-weight: 600; color: var(--navy);
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; transition: background 0.2s;
}
.faq-item summary:hover { background: var(--bg-light); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 20px; font-weight: 300; color: var(--text-muted); transition: transform 0.2s; }
.faq-item[open] summary::after { content: '\2212'; }
.faq-answer { padding: 0 24px 18px; }
.faq-answer p { font-size: 14px; line-height: 1.7; color: var(--text-secondary); margin-bottom: 8px; }
.faq-answer code {
  background: var(--bg-tag); padding: 2px 6px; border-radius: 4px;
  font-size: 12px; font-family: 'SF Mono', 'Fira Code', monospace; color: var(--navy);
}

/* --- RELATED TOOLS --- */
.related-tools {
  max-width: 1100px; margin: 48px auto 0; padding-top: 48px; border-top: 1px solid var(--border);
}
.related-tools h2 {
  font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 600; color: var(--navy); margin-bottom: 24px;
}
.related-tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.related-tool-card {
  display: flex; flex-direction: column; gap: 12px; padding: 24px 20px;
  background: #fff; border: 1px solid var(--border-light); border-radius: 12px;
  text-decoration: none; color: inherit; transition: all 0.3s ease;
}
.related-tool-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(30,58,95,0.08); border-color: var(--navy); }
.related-tool-card h3 { font-family: 'Playfair Display', serif; font-size: 17px; font-weight: 600; color: var(--navy); }
.related-tool-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

/* --- HUB INTRO --- */
.calc-hub-intro { max-width: 750px; margin-bottom: 48px; }
.calc-hub-intro p { font-size: 15px; line-height: 1.75; color: var(--text-secondary); margin-bottom: 16px; }

/* --- COPY TOAST --- */
.copy-toast {
  position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--navy); color: #fff; padding: 12px 24px; border-radius: 8px;
  font-size: 14px; font-weight: 500; font-family: 'DM Sans', sans-serif;
  box-shadow: 0 8px 24px rgba(30,58,95,0.3); opacity: 0; transition: all 0.3s ease;
  z-index: 2000; pointer-events: none;
}
.copy-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* --- PRINT STYLES --- */
@media print {
  .navbar, .chat-toggle, .chat-panel, .site-footer-enhanced,
  .breadcrumb, .calc-action-btns, .calc-btn-row, .unit-toggle-wrapper,
  .related-tools, .calc-faq-section, .mobile-menu, .navbar-mobile-toggle { display: none !important; }
  body { background: #fff; }
  .section-calculators { padding-top: 20px !important; }
  .calc-panel { border: 1px solid #ddd; break-inside: avoid; }
  .calc-content-section { border: none; }
  @page { margin: 1cm; }
  body::after {
    content: 'Generated by ammdelectrical.com \2014  Ali Mazloum, P.Eng.';
    display: block; text-align: center; font-size: 11px; color: #666;
    margin-top: 24px; padding-top: 12px; border-top: 1px solid #ddd;
  }
}

/* --- RESPONSIVE: NEW ELEMENTS --- */
@media (max-width: 768px) {
  .navbar-mobile-toggle { display: flex; }
  .breadcrumb { padding: 72px 20px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .site-footer-enhanced { padding: 40px 20px 20px; }
  .footer-bottom-bar { flex-direction: column; text-align: center; }
  .related-tools-grid { grid-template-columns: 1fr; }
  .calc-action-btns { flex-direction: column; }
}
