/* ============================================================
   Rudhra — Shared Styles (shared.css)
   Used by every page. Contains: base, header, footer only.
   Page-specific styles go in each HTML file's <style> block.
   ============================================================ */

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

:root {
  --orange: #f97316;
  --text:   #1a1a1a;
  --muted:  #555555;
  --border: #e0e0e0;
  --white:  #ffffff;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  background: #fff;
  color: var(--text);
  overflow-x: hidden;
}

/* ===== HEADER ===== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
  background: #fff;
  border-bottom: 1px solid var(--border);
  height: 100px;
  display: flex;
  align-items: center;
}

.header-container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo img { height: 100px; width: auto; padding:10px 0;}

.logo-wordmark {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 5px;
  text-transform: uppercase;
}

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

/* Nav */
nav ul { list-style: none; display: flex; gap: 36px; }

nav a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: color 0.2s;
  position: relative;
}

nav a:hover { color: var(--orange); }

/* Active underline */
nav a.active {
  color: var(--orange);
}

nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--orange);
  border-radius: 99px;
}

/* Header right */
.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}

.header-phone {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.header-phone:hover { color: var(--orange); }

.btn-contact {
  background: var(--orange);
  color: #fff;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}

.btn-contact:hover { background: #ea580c; transform: translateY(-1px); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  padding: 4px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
  display: block;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== FOOTER (PREMIUM DARK) ===== */
.dark-footer {
  background: #151922; /* Deep premium slate */
  color: #d1d5db;
  border-top: none;
}

.dark-footer .footer-inner {
  max-width: 1480;
  margin: 0 auto;
  padding: 80px 48px 50px;
  display: grid;
  grid-template-columns: 0.9fr 0.7fr 1fr 1fr;
  gap: 40px;
}

.dark-footer .wordmark {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 20px;
  display: block;
}

.dark-footer .wordmark span { color: var(--brand-orange, var(--orange)); }

.brand-desc {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #9ca3af;
  max-width: 100%;
}

.dark-footer h5 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 25px;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.toggle-icon { display: none; font-size: 0.8rem; transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }

.dark-footer a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.3s;
  font-size: 0.95rem;
}
.dark-footer a:hover { color: var(--brand-orange, var(--orange)); }

/* Useful Links Grid */
.useful-links-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px 10px;
}

/* Info List */
.contact-info-list .info-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  align-items: flex-start;
}
.info-item i { color: var(--brand-orange, var(--orange)); margin-top: 4px; font-size: 1.1rem; }
.info-item p { margin: 0; font-size: 0.95rem; line-height: 1.6; }

.dark-footer .socials { display: flex; gap: 15px; margin-top: 15px; }
.dark-footer .socials a {
  font-size: 1.2rem;
  color: #ffffff;
  background: rgba(255,255,255,0.05);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.3s;
}
.dark-footer .socials a:hover { 
  background: var(--brand-orange, var(--orange)); 
  color: #ffffff; 
  transform: translateY(-3px); 
}

/* Department Contact List */
.dept-block { margin-bottom: 25px; }
.dept-block h6 { color: #ffffff; font-size: 0.95rem; font-weight: 700; margin-bottom: 12px; }
.dept-block a { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 0.9rem; }
.dept-block a i { color: var(--brand-orange, var(--orange)); font-size: 0.9rem; }

/* Bottom Bar */
.dark-footer .footer-bottom-bar {
  background: #0d1117; /* Slightly darker than footer for contrast */
  padding: 25px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}
.dark-footer .footer-bottom-bar p { font-size: 0.9rem; color: #9ca3af; margin: 0; }
.text-orange { color: var(--brand-orange, var(--orange)); font-weight: 600; }

.back-to-top {
  width: 45px;
  height: 45px;
  background: #ffffff;
  color: #151922;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  opacity: 0;
  visibility: hidden;
  position: fixed;
  right: 48px;
  top: auto;
  bottom: 22px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--brand-orange, var(--orange)); color: #ffffff; transform: translateY(-5px); }

/* Accordion Baseline Handling */
.accordion-content { transition: max-height 0.35s ease-out; overflow: hidden; }

@media (min-width: 901px) {
  .accordion-content { max-height: none !important; }
}

/* ===== RESPONSIVE FOOTER & HEADER ===== */
@media (max-width: 1100px) {
  .dark-footer .footer-inner { grid-template-columns: 1fr 1fr; gap: 50px; }
}

@media (max-width: 900px) {
  /* Footer Mobile */
  .dark-footer .footer-inner { grid-template-columns: 1fr; padding: 50px 24px 20px; gap: 15px; }
  
  .dark-footer h5 { 
    margin-bottom: 0; 
    cursor: pointer; 
    padding: 18px 0; 
    border-bottom: 1px solid rgba(255,255,255,0.05); 
  }
  .toggle-icon { display: block; }
  .dark-footer h5.active .toggle-icon { transform: rotate(180deg); color: var(--brand-orange, var(--orange)); }
  
  .accordion-content { max-height: 0; }
  .accordion-content > *:first-child { margin-top: 20px; }
  .accordion-content > *:last-child { margin-bottom: 20px; }
  
  .useful-links-grid { padding-bottom: 10px; }
  
  .dark-footer .footer-bottom-bar { flex-direction: column; text-align: center; padding: 30px 24px; gap: 20px; }
  .back-to-top { position: static; margin-top: 10px; opacity: 1; visibility: visible; box-shadow: none; border: 1px solid rgba(255,255,255,0.1); background: transparent; color: #fff; }

  /* Header Mobile */
  .header-right { display: none; }

  nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 998;
  }

  nav.active { max-height: 400px; }

  nav ul { flex-direction: column; gap: 0; padding: 6px 0; }

  nav a {
    display: block;
    padding: 15px 24px;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
  }

  .hamburger { display: flex; }
  .header-container { padding: 0 15px; }
}

@media (max-width: 640px) {
  /* Smaller Screens Header Adjustments */
  header { height: 72px; }
  .logo img { height: 72px; width: 150px; object-fit: contain; }
}