/* Design system carried over from the Vashi master template (vashi.licagent.co.in).
   Kharghar-specific additions are at the end of this file. */

/* CSS Reset & Variables */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --lic-blue: #0056A6;
  --lic-dark-blue: #003B73;
  --lic-yellow: #FFD200;
  --lic-yellow-hover: #E6BC00;
  --white: #FFFFFF;
  --light-bg: #F5F7FA;
  --light-blue-bg: #EDF4FB;
  --dark-text: #222222;
  --muted-text: #4A5568;
  --border-color: #DDE2E8;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-stack);
  color: var(--dark-text);
  background-color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--lic-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--lic-yellow);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Top Bar & Sticky Header */
.top-bar {
  background-color: var(--lic-dark-blue);
  color: var(--white);
  font-size: 0.85rem;
  padding: 0.45rem 0;
  border-bottom: 2px solid var(--lic-yellow);
}

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

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--white);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-logo {
  height: 48px;
  width: auto;
  display: block;
}

.brand-text {
  border-left: 2px solid var(--border-color);
  padding-left: 0.9rem;
}

.brand-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--lic-blue);
  line-height: 1.2;
}

.brand-sub {
  font-size: 0.8rem;
  color: var(--muted-text);
  display: block;
  margin-top: 2px;
}

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

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--dark-text);
  text-decoration: none;
  padding: 0.3rem 0;
  position: relative;
}

.nav-links a:hover {
  color: var(--lic-blue);
  text-decoration: none;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--lic-yellow);
  transition: width 0.2s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: var(--lic-blue);
  color: var(--white) !important;
  padding: 0.55rem 1.1rem;
  border-radius: 4px;
  font-weight: 600 !important;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid var(--lic-blue);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.nav-cta:hover {
  background-color: var(--lic-dark-blue);
  border-color: var(--lic-dark-blue);
  text-decoration: none !important;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--lic-blue);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.3rem;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background-color: var(--lic-yellow);
  color: #111111;
  border-color: var(--lic-yellow);
}

.btn-primary:hover {
  background-color: var(--lic-yellow-hover);
  border-color: var(--lic-yellow-hover);
  text-decoration: none;
}

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

.btn-secondary:hover {
  background-color: var(--lic-dark-blue);
  border-color: var(--lic-dark-blue);
  text-decoration: none;
}

.btn-outline {
  background-color: transparent;
  color: var(--lic-blue);
  border-color: var(--lic-blue);
}

.btn-outline:hover {
  background-color: var(--light-blue-bg);
  text-decoration: none;
}

/* Hero Section */
.hero {
  background: linear-gradient(180deg, #F0F5FA 0%, #FFFFFF 100%);
  padding: 3.5rem 0 3rem;
  border-bottom: 1px solid var(--border-color);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 2.5rem;
}

.hero-badge {
  display: inline-block;
  background-color: #E8F1FA;
  color: var(--lic-blue);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.25rem 0.75rem;
  border-radius: 3px;
  margin-bottom: 0.85rem;
  border-left: 3px solid var(--lic-blue);
}

.hero h1 {
  font-size: 2.25rem;
  color: var(--lic-blue);
  line-height: 1.25;
  margin-bottom: 1.1rem;
  font-weight: 800;
}

.hero-lead {
  font-size: 1.08rem;
  color: var(--muted-text);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.hero-location-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted-text);
  padding-top: 0.5rem;
}

.hero-image-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.hero-image-card img {
  max-width: 100%;
  height: auto;
  margin: 0 auto 1rem;
  display: block;
  border-radius: 4px;
}

.hero-image-card p {
  font-size: 0.85rem;
  color: var(--muted-text);
  line-height: 1.4;
}

/* Common Section Styles */
section {
  padding: 4rem 0;
}

.section-title-wrap {
  margin-bottom: 2.5rem;
}

.section-title-wrap.text-center {
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.section-tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--lic-blue);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 0.35rem;
}

h2 {
  font-size: 1.9rem;
  color: var(--lic-blue);
  line-height: 1.3;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--muted-text);
  line-height: 1.6;
}

/* About Section */
.about-section {
  background-color: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.about-text p {
  margin-bottom: 1.2rem;
  color: #333333;
  font-size: 1.02rem;
}

.about-card {
  background-color: var(--light-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 1.75rem;
  border-top: 4px solid var(--lic-yellow);
}

.about-card h3 {
  font-size: 1.15rem;
  color: var(--lic-blue);
  margin-bottom: 1rem;
}

.about-card ul {
  list-style: none;
  padding: 0;
}

.about-card li {
  padding: 0.6rem 0;
  border-bottom: 1px solid #E2E8F0;
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: #333333;
}

.about-card li:last-child {
  border-bottom: none;
}

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

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

.service-card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card h3 {
  font-size: 1.22rem;
  color: var(--lic-blue);
  margin-bottom: 0.85rem;
  border-left: 3px solid var(--lic-yellow);
  padding-left: 0.6rem;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--muted-text);
  line-height: 1.6;
  flex-grow: 1;
}

/* LIC Plans Section */
.plans-section {
  background-color: var(--white);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.plan-card {
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 1.5rem;
  background-color: var(--white);
}

.plan-card h3 {
  font-size: 1.2rem;
  color: var(--lic-blue);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.plan-card p {
  font-size: 0.93rem;
  color: var(--muted-text);
  line-height: 1.55;
}

.plan-disclaimer {
  background-color: #FFFDF0;
  border: 1px solid #FFE082;
  border-radius: 6px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
  margin-top: 1rem;
}

.plan-disclaimer p {
  font-size: 0.88rem;
  color: #5D4037;
  line-height: 1.5;
}

/* Local SEO Content Section */
.local-content-section {
  background-color: var(--light-blue-bg);
  border-top: 1px solid #D6E4F0;
  border-bottom: 1px solid #D6E4F0;
}

.local-content-box {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
}

.local-content-box p {
  margin-bottom: 1.2rem;
  font-size: 1rem;
  color: #333333;
  line-height: 1.7;
}

.local-areas-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border-color);
}

.area-badge {
  background-color: var(--light-bg);
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--lic-blue);
  border-radius: 4px;
}

/* Why Choose Us */
.why-section {
  background-color: var(--white);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.why-item {
  padding: 1.25rem;
  background: var(--light-bg);
  border-radius: 6px;
  border-left: 3px solid var(--lic-blue);
}

.why-item h3 {
  font-size: 1.05rem;
  color: var(--lic-blue);
  margin-bottom: 0.5rem;
}

.why-item p {
  font-size: 0.9rem;
  color: var(--muted-text);
  line-height: 1.5;
}

/* Goals Table */
.goals-section {
  background-color: var(--light-bg);
}

.table-responsive {
  overflow-x: auto;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--white);
}

.goals-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.goals-table th, .goals-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.95rem;
}

.goals-table th {
  background-color: var(--lic-blue);
  color: var(--white);
  font-weight: 600;
}

.goals-table tr:last-child td {
  border-bottom: none;
}

.goals-note {
  font-size: 0.92rem;
  color: var(--muted-text);
  font-style: italic;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

/* Customer Reviews / Consultation Section */
.reviews-section {
  background-color: var(--white);
}

.reviews-card {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2.5rem 1.75rem;
  text-align: center;
  background-color: var(--light-bg);
  max-width: 760px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}

.reviews-card p {
  color: var(--muted-text);
  font-size: 1.02rem;
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

/* FAQ Section */
.faq-section {
  background-color: var(--light-bg);
}

.faq-container {
  max-width: 840px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.1rem 1.25rem;
  background: none;
  border: none;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--lic-blue);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-question:hover {
  background-color: #F8FAFC;
}

.faq-icon {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--lic-blue);
  transition: transform 0.2s ease;
}

.faq-answer {
  padding: 0 1.25rem 1.1rem 1.25rem;
  color: #333333;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Contact Section */
.contact-section {
  background-color: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: flex-start;
  margin-bottom: 2.5rem;
}

.contact-info-card {
  background-color: var(--light-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2rem;
}

.contact-info-card h3 {
  font-size: 1.3rem;
  color: var(--lic-blue);
  margin-bottom: 1.2rem;
}

.contact-detail-line {
  margin-bottom: 1.25rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.98rem;
}

.contact-detail-line strong {
  display: block;
  color: var(--lic-blue);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.2rem;
}

.contact-actions-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
}

.contact-form-card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.contact-form-card h3 {
  font-size: 1.25rem;
  color: var(--lic-blue);
  margin-bottom: 0.5rem;
}

.contact-form-card p {
  font-size: 0.9rem;
  color: var(--muted-text);
  margin-bottom: 1.25rem;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark-text);
  margin-bottom: 0.35rem;
}

.form-control {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-size: 0.95rem;
  font-family: inherit;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background-color: var(--white);
  color: var(--dark-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  border-color: var(--lic-blue);
  box-shadow: 0 0 0 2px rgba(0, 86, 166, 0.15);
  outline: none;
}

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

.form-submit-btn {
  width: 100%;
  background-color: var(--lic-blue);
  color: var(--white);
  border: none;
  padding: 0.85rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.form-submit-btn:hover {
  background-color: var(--lic-dark-blue);
}

.form-submit-btn:disabled {
  background-color: #94A3B8;
  cursor: not-allowed;
}

.form-status-msg {
  margin-top: 1rem;
  padding: 0.85rem;
  border-radius: 4px;
  font-size: 0.92rem;
  display: none;
}

.form-status-success {
  background-color: #DEF7EC;
  color: #03543F;
  border: 1px solid #BCF0DA;
}

.form-status-error {
  background-color: #FDE8E8;
  color: #9B1C1C;
  border: 1px solid #F8B4B4;
}

/* Map Box */
.map-wrapper {
  background-color: var(--light-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.map-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.map-header h3 {
  font-size: 1.2rem;
  color: var(--lic-blue);
}

.map-iframe-container {
  width: 100%;
  height: 380px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.map-iframe-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Footer */
.footer {
  background-color: var(--lic-dark-blue);
  color: #E2E8F0;
  padding: 3.5rem 0 2rem;
  border-top: 4px solid var(--lic-yellow);
}

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

.footer-col h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.4rem;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background-color: var(--lic-yellow);
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #CBD5E0;
  margin-bottom: 0.8rem;
}

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

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

.footer-col li a {
  color: #CBD5E0;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col li a:hover {
  color: var(--lic-yellow);
  text-decoration: underline;
}

.footer-disclaimer-box {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.5rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #A0AEC0;
  line-height: 1.5;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.82rem;
  color: #A0AEC0;
}

/* Fixed Mobile Action Bar */
.mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--white);
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 999;
  padding: 0.5rem;
}

.mobile-bar-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5rem;
}

.mobile-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.2rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none !important;
  text-align: center;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.mobile-btn-call {
  background-color: var(--lic-blue);
  color: var(--white) !important;
}

.mobile-btn-whatsapp {
  background-color: #25D366;
  color: var(--white) !important;
}

.mobile-btn-inquiry {
  background-color: var(--lic-yellow);
  color: #111111 !important;
  border: 1px solid var(--lic-yellow-hover);
}

/* Popup Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(2px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  background-color: var(--white);
  border-radius: 8px;
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  animation: modalFadeIn 0.25s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--light-bg);
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.modal-header h3 {
  font-size: 1.2rem;
  color: var(--lic-blue);
  margin: 0;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  color: #718096;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  transition: color 0.15s ease;
}

.modal-close-btn:hover {
  color: #111111;
}

.modal-body {
  padding: 1.4rem;
}

/* Responsive Queries */
@media (max-width: 900px) {
  .hero-grid, .about-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  /* Navigation breakpoint moved to the header block at the end of this file (1100px) */

  body {
    padding-bottom: 60px;
  }

  .mobile-bar {
    display: block;
  }
}

@media (max-width: 600px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  .hero { padding: 2.25rem 0 2rem; }
  section { padding: 2.75rem 0; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .map-iframe-container { height: 280px; }
  .modal-card { max-height: 95vh; }
  .modal-body { padding: 1.1rem; }
}

/* =====================================================================
   KHARGHAR CUSTOMISATIONS
   Same tokens, colours and type as the master template; only new
   components and the upgraded header live below.
   ===================================================================== */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--lic-yellow);
  color: #111;
  padding: 0.6rem 1rem;
  z-index: 3000;
  font-weight: 600;
}
.skip-link:focus { left: 1rem; top: 0.5rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

[id] { scroll-margin-top: 92px; }

/* ---------- Top bar ---------- */
.top-bar a { color: var(--lic-yellow); font-weight: 600; text-decoration: none; }
.top-bar a:hover { text-decoration: underline; }
.top-bar-sep { opacity: 0.45; margin: 0 0.4rem; }

/* ---------- Header ---------- */
.header-inner { gap: 1.25rem; }
.brand-block > a { display: block; flex-shrink: 0; }
.brand-logo { height: 46px; width: auto; }
.brand-name { display: block; }

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

.nav-links { gap: 0.25rem; }
.nav-links > li { position: relative; }

.nav-links > li:not(.mobile-menu-actions) > a,
.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--dark-text);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.55rem 0.6rem;
  border-radius: 4px;
  position: relative;
  text-decoration: none;
  line-height: 1.3;
}

.nav-links > li:not(.mobile-menu-actions) > a::after,
.dropdown-toggle::after {
  content: "";
  position: absolute;
  left: 0.6rem;
  right: 0.6rem;
  bottom: 2px;
  width: auto;
  height: 2px;
  background-color: var(--lic-yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-links > li:not(.mobile-menu-actions) > a:hover,
.dropdown-toggle:hover,
.has-dropdown:focus-within > .dropdown-toggle { color: var(--lic-blue); }

.nav-links > li:not(.mobile-menu-actions) > a:hover::after,
.dropdown-toggle:hover::after { width: auto; transform: scaleX(1); }

/* Active section indicator */
.nav-links > li:not(.mobile-menu-actions) > a.active,
.dropdown-toggle.active {
  color: var(--lic-blue);
  font-weight: 700;
}
.nav-links > li:not(.mobile-menu-actions) > a.active::after,
.dropdown-toggle.active::after { transform: scaleX(1); }

.dropdown-caret { transition: transform 0.2s ease; flex-shrink: 0; }
.has-dropdown.open .dropdown-caret { transform: rotate(180deg); }

.dropdown-menu {
  list-style: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 230px;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--lic-yellow);
  border-radius: 0 0 6px 6px;
  box-shadow: var(--shadow-md);
  padding: 0.4rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 1100;
}
/* invisible bridge so the pointer can travel from toggle to menu */
.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -10px; left: 0; right: 0; height: 10px;
}

.has-dropdown.open > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
@media (hover: hover) and (min-width: 1101px) {
  .has-dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .has-dropdown:hover .dropdown-caret { transform: rotate(180deg); }
}

.dropdown-menu a {
  display: block;
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
  color: var(--dark-text);
  text-decoration: none;
  border-left: 3px solid transparent;
}
.dropdown-menu a:hover,
.dropdown-menu a:focus-visible {
  background: var(--light-blue-bg);
  color: var(--lic-blue);
  border-left-color: var(--lic-blue);
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.nav-cta { white-space: nowrap; }

.nav-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  border-radius: 4px;
  border: 1px solid #25D366;
  color: #128C48;
  background: #F0FBF4;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}
.nav-wa:hover { background: #DCF6E5; text-decoration: none; }

.mobile-menu-actions { display: none; }

@media (max-width: 1240px) {
  .brand-sub { display: none; }
}

@media (max-width: 1100px) {
  .hamburger { display: inline-flex; align-items: center; justify-content: center; }
  .nav-wa { display: none; }
  .header .container { position: relative; }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
    border-bottom: 3px solid var(--lic-blue);
    padding: 0.75rem 1.25rem 1.25rem;
    box-shadow: var(--shadow-md);
    gap: 0;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }
  .nav-links.active { display: flex; }

  .nav-links > li { border-bottom: 1px solid #EDF1F5; }
  .nav-links > li:last-child { border-bottom: none; }

  .nav-links > li:not(.mobile-menu-actions) > a,
  .dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 0.8rem 0.25rem;
    font-size: 1rem;
  }
  .nav-links > li:not(.mobile-menu-actions) > a::after,
  .dropdown-toggle::after { display: none; }
  .nav-links > li:not(.mobile-menu-actions) > a.active,
  .dropdown-toggle.active { border-left: 3px solid var(--lic-yellow); padding-left: 0.6rem; }

  .dropdown-menu {
    position: static;
    min-width: 0;
    border: none;
    border-left: 2px solid var(--lic-yellow);
    border-radius: 0;
    box-shadow: none;
    padding: 0 0 0.5rem;
    margin: 0 0 0.25rem 0.4rem;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }
  .dropdown-menu::before { display: none; }
  .has-dropdown.open > .dropdown-menu { display: block; }

  .mobile-menu-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    padding-top: 1rem;
    border-bottom: none !important;
  }
  .mobile-menu-actions .btn { width: 100%; font-size: 0.92rem; }
}

@media (max-width: 600px) {
  /* brand text stays visible on mobile – see end of file */
  .nav-cta .nav-cta-number { display: none; }
  .top-bar .top-bar-area { display: none; }
  .top-bar .container { justify-content: center; }
}

/* ---------- Hero ---------- */
.hero-trust-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-bottom: 1.1rem;
  font-size: 0.92rem;
  color: var(--muted-text);
}
.hero-trust-list li { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero-trust-list svg { color: var(--lic-blue); flex-shrink: 0; }

.hero-image-card { padding: 1rem; }
.hero-image-card picture img {
  width: 100%;
  height: auto;
  aspect-ratio: 1256 / 835;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 1rem;
}
.hero-image-card .hero-card-caption {
  text-align: left;
  border-left: 3px solid var(--lic-yellow);
  padding-left: 0.75rem;
}

/* ---------- About ---------- */
.about-card li > span:first-child { color: var(--lic-blue); font-weight: 700; }
.about-signoff {
  font-weight: 600;
  color: var(--lic-blue) !important;
}

/* ---------- Plan cards ---------- */
.plans-section { background-color: var(--light-bg); }
.plans-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.plan-card {
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  border-top: 3px solid var(--lic-blue);
}
.plan-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-top-color: var(--lic-yellow);
}
.plan-card:target { outline: 3px solid var(--lic-yellow); outline-offset: 2px; }

.plan-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--light-blue-bg);
  color: var(--lic-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border: 1px solid #D6E4F0;
}
.plan-card h3 { font-size: 1.12rem; display: block; }
.plan-card p { flex-grow: 1; margin-bottom: 1.1rem; }

.plan-enquire {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--lic-blue);
  background: none;
  border: none;
  padding: 0.25rem 0;
  cursor: pointer;
  font-family: inherit;
  border-bottom: 2px solid var(--lic-yellow);
  text-decoration: none;
}
.plan-enquire:hover { color: var(--lic-dark-blue); text-decoration: none; }

/* ---------- Services ---------- */
.services-section { background-color: var(--white); }
.services-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.service-step {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted-text);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

/* ---------- Why section ---------- */
.why-section { background-color: var(--light-bg); }
.why-item { background: var(--white); border: 1px solid var(--border-color); border-left: 3px solid var(--lic-blue); }

/* ---------- Area note ---------- */
.area-note {
  font-size: 0.88rem !important;
  color: var(--muted-text) !important;
  margin: 1rem 0 0 !important;
  font-style: italic;
}

/* ---------- Enquiry section ---------- */
.enquiry-section {
  background: linear-gradient(180deg, #F0F5FA 0%, #FFFFFF 100%);
  border-top: 1px solid var(--border-color);
}
.enquiry-intro p { color: #333; margin-bottom: 1.1rem; }
.enquiry-points {
  list-style: none;
  margin: 1.25rem 0 1.5rem;
  padding: 0;
}
.enquiry-points li {
  display: flex;
  gap: 0.6rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--border-color);
  font-size: 0.97rem;
}
.enquiry-points li:last-child { border-bottom: none; }
.enquiry-points li span:first-child { color: var(--lic-blue); font-weight: 700; }
.enquiry-direct { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form-group .optional { font-weight: 400; color: var(--muted-text); font-size: 0.85rem; }
.form-group .req { color: #B42318; }

.form-control[aria-invalid="true"] {
  border-color: #D92D20;
  background-color: #FFFBFA;
}
.field-error {
  display: block;
  color: #B42318;
  font-size: 0.84rem;
  margin-top: 0.3rem;
  min-height: 0;
}
.field-error:empty { display: none; }

.form-privacy {
  font-size: 0.82rem !important;
  color: var(--muted-text);
  margin: 0.85rem 0 0 !important;
  line-height: 1.5;
}

/* ---------- Contact ---------- */
.contact-grid { align-items: stretch; margin-bottom: 0; }
.map-wrapper { display: flex; flex-direction: column; }
.map-iframe-container { flex-grow: 1; min-height: 340px; }

/* ---------- Footer ---------- */
.footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
.footer a.footer-strong { color: var(--lic-yellow); font-weight: 600; }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid .footer-col:first-child { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Footer headings use h3 for a correct outline; styled like the template's h4 */
.footer-col .footer-h {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.4rem;
}
.footer-col .footer-h::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background-color: var(--lic-yellow);
}
.faq-h { margin: 0; font-size: inherit; font-weight: inherit; }
.faq-question:hover { background-color: #F8FAFC; }

/* Header fit: keep the desktop menu on one line */
.header .container { max-width: 1280px; }
.nav-links > li:not(.mobile-menu-actions) > a,
.dropdown-toggle { white-space: nowrap; padding-left: 0.5rem; padding-right: 0.5rem; }
@media (max-width: 1320px) and (min-width: 1101px) {
  .brand-text { display: none; }
  .nav-wa .nav-wa-label { display: none; }
  .nav-wa { padding: 0.5rem 0.65rem; }
}
@media (max-width: 1180px) and (min-width: 1101px) {
  .nav-cta .nav-cta-number { display: none; }
}
.top-bar .container { max-width: 1280px; }
.brand-name, .brand-sub { white-space: nowrap; }
@media (max-width: 1240px) { .brand-sub { display: block; } }
.nav-links .mobile-menu-actions .btn-secondary { color: var(--white); }
.nav-links .mobile-menu-actions .btn-primary { color: #111111; }
.nav-links .mobile-menu-actions .btn::after { display: none; }
@media (max-width: 600px) { .hero h1 { font-size: 1.65rem; } }
.plan-enquire { border-bottom: none; text-decoration: underline; text-decoration-color: var(--lic-yellow); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* Mobile: show "S Kulkarni / LIC Agent, Kharghar" beside the logo */
@media (max-width: 600px) {
  .brand-block { gap: 0.6rem; min-width: 0; }
  .brand-logo { height: 38px; }
  .brand-text { display: block; padding-left: 0.6rem; min-width: 0; }
  .brand-name { font-size: 1rem; }
  .brand-sub { display: block; font-size: 0.74rem; }
  .header-inner { gap: 0.6rem; }
  .header-actions { gap: 0.35rem; }
  .nav-cta { padding: 0.5rem 0.75rem; }
}
@media (max-width: 400px) {
  .brand-logo { height: 34px; }
  .nav-cta > span { display: none; }   /* icon-only call button; aria-label keeps it accessible */
  .nav-cta { padding: 0.55rem 0.65rem; }
}
@media (max-width: 360px) {
  .brand-logo { height: 30px; }
  .brand-block { gap: 0.45rem; }
  .brand-text { padding-left: 0.45rem; }
  .brand-name { font-size: 0.92rem; }
  .brand-sub { font-size: 0.68rem; }
}
