/* ==========================================================================
   Faith & Justice Associates and Consultants — Stylesheet
   Theme: Navy (#0b2545) & Gold (#c79a2f) Professional Legal Palette
   Full Responsive & Mobile-Cleared Styling
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Tamil:wght@400;600;700&display=swap');

:root {
  --navy: #0b2545;
  --gold: #c79a2f;
  --gold-hover: #b8862a;
  --white: #ffffff;
  --muted: #6b7280;
  --bg: #f6f8fb;
  --glass: rgba(255, 255, 255, 0.7);
  --max-width: 1100px;
  --radius: 12px;
  --gap: 1.25rem;
  --transition: 280ms cubic-bezier(.2, .9, .2, 1);
  --accent: #0f3a6b;
  --whatsapp: #25D366;
  --whatsapp-dark: #128C7E;
  --border-light: #e6e9ef;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--navy);
  background: linear-gradient(180deg, var(--bg) 0%, #ffffff 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
  width: 100%;
}

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

.container {
  width: 92%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 0;
}

/* Top Utility Bar */
.top-bar {
  background: #07192f;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.4rem 0;
  width: 100%;
}

.top-bar .container {
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.top-bar a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color var(--transition);
}

.top-bar a:hover {
  color: var(--gold);
}

.top-bar .whatsapp-top-link {
  color: #a3f7bf;
  font-weight: 600;
}

.top-bar .whatsapp-top-link:hover {
  color: #25D366;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 90;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: linear-gradient(90deg, rgba(11, 37, 69, 0.98), rgba(7, 25, 47, 0.95));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(11, 37, 69, 0.15);
  width: 100%;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  padding: 0.75rem 0;
  position: relative;
}

.brand {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
  flex-shrink: 1;
}

.brand-logo-img {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  object-fit: contain;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: transform var(--transition);
  flex-shrink: 0;
  display: block;
}

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

.logo-mark {
  width: 46px;
  height: 46px;
  min-width: 46px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, var(--gold), #b8862a);
  color: var(--navy);
  font-weight: 800;
  font-size: 1.15rem;
  border-radius: 10px;
  transform: rotate(-5deg);
  box-shadow: 0 4px 14px rgba(12, 34, 60, 0.25);
  transition: transform var(--transition);
  user-select: none;
  flex-shrink: 0;
}

.brand:hover .logo-mark {
  transform: rotate(0deg) scale(1.04);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand h1 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: 0.4px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--white);
}

.brand p {
  margin: 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 2px;
}

/* Nav Controls (Right Side) */
.nav-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

nav {
  display: flex;
  align-items: center;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

nav a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  display: inline-block;
  white-space: nowrap;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  transform: translateY(-2px);
}

nav a.active {
  background: rgba(199, 154, 47, 0.22);
  color: #ffd875;
  border-bottom: 2px solid var(--gold);
}

.nav-cta {
  background: var(--gold) !important;
  color: var(--navy) !important;
  font-weight: 700 !important;
  margin-left: 0.4rem;
}

.nav-cta:hover {
  background: var(--gold-hover) !important;
  color: var(--navy) !important;
}

.lang-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  padding: 0.4rem 0.75rem;
  border-radius: 7px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.lang-btn:hover {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

.mobile-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--white);
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background var(--transition);
}

.mobile-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Page Hero Banner (for Inner Pages: About, Services, Contact) */
.page-hero {
  background: linear-gradient(135deg, rgba(11, 37, 69, 0.06) 0%, rgba(199, 154, 47, 0.08) 100%);
  border-bottom: 1px solid rgba(11, 37, 69, 0.06);
  padding: 2.75rem 0 2.25rem 0;
  text-align: center;
  width: 100%;
}

.page-hero h1 {
  margin: 0 0 0.5rem 0;
  font-size: 2.1rem;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.25;
}

.page-hero p {
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 65ch;
  line-height: 1.55;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  margin-bottom: 0.85rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.breadcrumb a:hover {
  color: var(--gold);
}

/* Home Hero Section */
.hero {
  padding: 3.5rem 0 2.5rem 0;
  display: grid;
  grid-template-columns: 1fr 370px;
  gap: 2.5rem;
  align-items: center;
}

.hero-left {
  animation: slideIn 600ms var(--transition) both;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.hero .badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(199, 154, 47, 0.15);
  color: #8c6611;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(199, 154, 47, 0.3);
}

.hero h2 {
  margin: 0 0 0.5rem 0;
  font-size: 2.25rem;
  color: var(--navy);
  font-weight: 800;
  line-height: 1.2;
}

.hero .hero-subtitle {
  margin: 0 0 1.25rem 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

/* CTA Buttons */
.cta {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  background: var(--gold);
  color: var(--navy);
  padding: 0.7rem 1.3rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(199, 154, 47, 0.22);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(199, 154, 47, 0.3);
  background: var(--gold-hover);
}

.cta-secondary {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid rgba(11, 37, 69, 0.2);
  box-shadow: none;
}

.cta-secondary:hover {
  background: rgba(11, 37, 69, 0.05);
  border-color: var(--navy);
  transform: translateY(-2px);
}

.cta-whatsapp {
  background: var(--whatsapp);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.25);
}

.cta-whatsapp:hover {
  background: var(--whatsapp-dark);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(37, 211, 102, 0.35);
}

/* Hero Quick Contact Card */
.hero-card {
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  border-radius: 16px;
  padding: 1.6rem;
  box-shadow: 0 14px 40px rgba(11, 37, 69, 0.08);
  border: 1px solid rgba(11, 37, 69, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.hero-card h4 {
  margin: 0;
  color: var(--navy);
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f3f8;
}

.hero-contact-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.hero-contact-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(11, 37, 69, 0.06);
  color: var(--navy);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.hero-contact-text strong {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
}

.hero-contact-text a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color var(--transition);
  word-break: break-all;
}

.hero-contact-text a:hover {
  color: var(--gold);
}

/* Sections */
section {
  padding: 2.75rem 0;
  width: 100%;
}

section h2 {
  margin: 0 0 0.85rem 0;
  font-size: 1.45rem;
  color: var(--navy);
  border-left: 4px solid var(--gold);
  padding-left: 0.85rem;
  font-weight: 700;
  line-height: 1.3;
}

.section-subtitle {
  color: var(--muted);
  font-size: 1.02rem;
  margin-top: -0.35rem;
  margin-bottom: 1.75rem;
  max-width: 70ch;
  line-height: 1.55;
}

/* Pillars / Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.feature-box {
  background: var(--white);
  padding: 1.4rem;
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(11, 37, 69, 0.04);
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}

.feature-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(11, 37, 69, 0.08);
  border-color: rgba(199, 154, 47, 0.4);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(11, 37, 69, 0.08), rgba(199, 154, 47, 0.15));
  color: var(--navy);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.feature-box h3, .feature-box h4 {
  margin: 0 0 0.45rem 0;
  font-size: 1.05rem;
  color: var(--navy);
}

.feature-box p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

/* Team Section */
.team {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.member {
  background: linear-gradient(180deg, #ffffff, #fbfbff);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 8px 26px rgba(11, 37, 69, 0.05);
  border: 1px solid var(--border-light);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.member:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(11, 37, 69, 0.1);
}

.member-avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  margin: 0 auto 1.25rem auto;
  background: linear-gradient(135deg, var(--navy), var(--accent));
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  border: 4px solid #ffffff;
  box-shadow: 0 6px 20px rgba(11, 37, 69, 0.15);
  overflow: hidden;
}

.member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.member h3 {
  margin: 0 0 0.35rem 0;
  font-size: 1.2rem;
  color: var(--accent);
  font-weight: 700;
}

.member .role {
  margin: 0 0 0.45rem 0;
  color: var(--gold-hover);
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.member .office {
  margin: 0 0 0.75rem 0;
  color: var(--muted);
  font-size: 0.86rem;
  display: inline-block;
  background: #f0f3f8;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  font-weight: 600;
}

.member .bio {
  margin: 0;
  color: #4b5563;
  font-size: 0.92rem;
  line-height: 1.5;
}

/* Services Page & Grids */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.service-card {
  background: var(--white);
  padding: 1.6rem;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(11, 37, 69, 0.05);
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(11, 37, 69, 0.08);
  border-color: rgba(199, 154, 47, 0.35);
}

.service-card-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
  padding-bottom: 0.85rem;
  border-bottom: 1.5px solid #f0f3f8;
}

.service-card-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--navy);
  font-weight: 700;
}

.service-card-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, rgba(11, 37, 69, 0.08), rgba(199, 154, 47, 0.18));
  color: var(--accent);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.service-list ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--navy);
}

.service-list li {
  margin-bottom: 0.6rem;
  line-height: 1.55;
  font-size: 0.95rem;
}

.service-list li strong {
  color: var(--accent);
}

/* Locations */
.locations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.location {
  padding: 1.4rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff, #fbfbff);
  box-shadow: 0 8px 24px rgba(11, 37, 69, 0.05);
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}

.location:hover {
  transform: translateY(-3px);
  border-color: rgba(199, 154, 47, 0.35);
  box-shadow: 0 12px 30px rgba(11, 37, 69, 0.08);
}

.location h3 {
  margin: 0 0 0.75rem 0;
  color: var(--accent);
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.location p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.location strong {
  color: var(--navy);
}

/* Contact Cards Grid */
.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.contact-card {
  background: var(--white);
  padding: 1.4rem;
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(11, 37, 69, 0.04);
  border: 1px solid var(--border-light);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all var(--transition);
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(11, 37, 69, 0.08);
  border-color: var(--gold);
}

.contact-card-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(11, 37, 69, 0.08), rgba(199, 154, 47, 0.15));
  color: var(--navy);
  display: grid;
  place-items: center;
  margin-bottom: 0.85rem;
}

.contact-card-icon.whatsapp-bg {
  background: rgba(37, 211, 102, 0.15);
  color: var(--whatsapp-dark);
}

.contact-card h4 {
  margin: 0 0 0.35rem 0;
  color: var(--navy);
  font-size: 1.05rem;
}

.contact-card p {
  margin: 0 0 0.65rem 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.contact-card a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: color var(--transition);
  word-break: break-all;
}

.contact-card a:hover {
  color: var(--gold);
}

/* Form */
.contact-form-wrapper {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
  align-items: flex-start;
}

form {
  background: var(--white);
  padding: 1.6rem;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(11, 37, 69, 0.05);
  border: 1px solid var(--border-light);
  display: grid;
  gap: 1rem;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

label {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.88rem;
  display: block;
  margin-bottom: 0.35rem;
}

input, textarea, select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: box-shadow var(--transition), border-color var(--transition);
  background: #fdfdfe;
  color: var(--navy);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(15, 58, 107, 0.08);
  background: #ffffff;
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.btn {
  background: var(--navy);
  color: var(--white);
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.btn:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(11, 37, 69, 0.2);
}

.btn-whatsapp-submit {
  background: var(--whatsapp);
  color: #ffffff;
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  justify-content: center;
}

.btn-whatsapp-submit:hover {
  background: var(--whatsapp-dark);
  transform: translateY(-2px);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.25);
}

.form-success {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  color: #15803d;
  background: #f0fdf4;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid #bbf7d0;
  font-weight: 600;
  font-size: 0.92rem;
  animation: pop 400ms cubic-bezier(.2, .9, .2, 1);
}

@keyframes pop {
  from { transform: scale(.95); opacity: 0; }
  to { transform: none; opacity: 1; }
}

/* Call to Action Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #081d38 100%);
  color: var(--white);
  padding: 2.75rem 2rem;
  border-radius: 18px;
  text-align: center;
  margin: 3rem auto 1rem auto;
  box-shadow: 0 14px 36px rgba(11, 37, 69, 0.16);
  position: relative;
  overflow: hidden;
  width: 100%;
}

.cta-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(199, 154, 47, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.cta-banner h2 {
  color: var(--white);
  border-left: none;
  padding-left: 0;
  font-size: 1.85rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  max-width: 60ch;
  margin: 0 auto 1.75rem auto;
}

.cta-banner-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: var(--whatsapp);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  text-decoration: none;
  transition: all var(--transition);
  animation: pulseWhatsApp 3s infinite ease-in-out;
}

.whatsapp-float:hover {
  background: var(--whatsapp-dark);
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.5);
  color: #ffffff;
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.whatsapp-float .tooltip {
  visibility: hidden;
  position: absolute;
  right: 68px;
  background: #0b2545;
  color: #ffffff;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  transition: opacity 250ms ease, visibility 250ms ease;
  pointer-events: none;
}

.whatsapp-float .tooltip::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  margin-top: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent transparent #0b2545;
}

.whatsapp-float:hover .tooltip {
  visibility: visible;
  opacity: 1;
}

@keyframes pulseWhatsApp {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Footer */
footer {
  background: #061527;
  color: rgba(255, 255, 255, 0.85);
  padding: 3.25rem 0 1.5rem 0;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
  gap: 2rem;
  margin-bottom: 2.25rem;
}

.footer-brand h3 {
  margin: 0 0 0.75rem 0;
  font-size: 1.15rem;
  color: var(--white);
  letter-spacing: 0.5px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 32ch;
}

.footer-col h4 {
  margin: 0 0 1rem 0;
  color: var(--gold);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.6rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition);
}

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

.footer-contact-item {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

.footer-contact-item a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color var(--transition);
  word-break: break-all;
}

.footer-contact-item a:hover {
  color: var(--gold);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Bilingual & Language Switcher Support */
.lang-en {
  display: block;
}

.lang-ta {
  display: none;
  font-family: 'Noto Sans Tamil', 'Inter', system-ui, sans-serif;
}

/* ==========================================================================
   MOBILE & RESPONSIVE RULES (CLEAR MOBILE VIEW)
   ========================================================================== */

/* Tablet & Mobile Nav breakpoint (<= 980px) */
@media (max-width: 980px) {
  nav ul {
    display: none;
  }

  nav ul.show {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #07192f;
    padding: 1.25rem;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    gap: 0.5rem;
    align-items: stretch;
    z-index: 100;
  }

  nav ul.show a {
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    font-size: 1rem;
    display: block;
  }

  nav ul.show a:hover,
  nav ul.show a.active {
    background: rgba(199, 154, 47, 0.25);
    color: #ffd875;
  }

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2.75rem 0 2rem 0;
  }

  .hero .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-card {
    margin: 1.5rem auto 0 auto;
    width: 100%;
    max-width: 500px;
    text-align: left;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .locations {
    grid-template-columns: 1fr;
  }

  .contact-cards-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-wrapper {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
  }
}

/* Small Tablets & Mobile Landscape (<= 768px) */
@media (max-width: 768px) {
  .top-bar {
    padding: 0.45rem 0;
  }

  .top-bar .container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
  }

  .top-bar-left, .top-bar-right {
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.8rem;
  }
}

/* Mobile Screens (<= 640px) — Crystal Clean Layout */
@media (max-width: 640px) {
  .container {
    width: 90%;
    padding: 1.5rem 0;
  }

  header .container {
    padding: 0.65rem 0;
  }

  .brand {
    gap: 0.6rem;
    max-width: calc(100% - 150px);
  }

  .brand-logo-img {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }

  .logo-mark {
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-size: 1rem;
    border-radius: 8px;
  }

  .brand h1 {
    font-size: 0.88rem;
    line-height: 1.25;
  }

  .brand p {
    font-size: 0.68rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 190px;
  }

  .nav-wrapper {
    gap: 0.35rem;
  }

  .lang-btn {
    padding: 0.35rem 0.55rem;
    font-size: 0.78rem;
  }

  .mobile-toggle {
    padding: 0.35rem 0.6rem;
    font-size: 0.85rem;
  }

  /* Hero on mobile */
  .hero {
    padding: 1.75rem 0 1.25rem 0;
    gap: 1.5rem;
  }

  .hero h2 {
    font-size: 1.65rem;
    line-height: 1.25;
  }

  .hero .hero-subtitle {
    font-size: 0.95rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.6rem;
    margin-top: 1.25rem;
  }

  .hero-actions .cta {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 0.75rem 1rem;
  }

  .hero-card {
    padding: 1.25rem;
    border-radius: 12px;
  }

  .hero-card h4 {
    font-size: 1.05rem;
  }

  /* Page Hero on mobile */
  .page-hero {
    padding: 1.75rem 0 1.5rem 0;
  }

  .page-hero h1 {
    font-size: 1.55rem;
  }

  .page-hero p {
    font-size: 0.92rem;
  }

  /* Grids collapse cleanly */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .team {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .form-grid-2 {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .form-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.65rem;
  }

  .form-actions .btn,
  .form-actions .btn-whatsapp-submit {
    width: 100%;
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .cta-banner {
    padding: 2rem 1.25rem;
    margin: 2rem auto 0.5rem auto;
    border-radius: 14px;
  }

  .cta-banner h2 {
    font-size: 1.45rem;
  }

  .cta-banner p {
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
  }

  .cta-banner-buttons {
    flex-direction: column;
    width: 100%;
    gap: 0.6rem;
  }

  .cta-banner-buttons .cta {
    width: 100%;
    justify-content: center;
  }

  /* Floating WhatsApp on mobile */
  .whatsapp-float {
    bottom: 18px;
    right: 18px;
    width: 50px;
    height: 50px;
  }

  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }

  .whatsapp-float .tooltip {
    display: none !important;
  }
}
