/* Specialities Page Stylesheet - Dr. PR Krishnan / JP Nagar Neuromed Clinic */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=DM+Serif+Display:ital@0;1&family=Manrope:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500&display=swap');

:root {
  --navy-darkest: #071520;
  --navy-dark: #0c1e2d;
  --navy-primary: #102a3d;
  --navy-card-title: #132838;
  --navy-text: #2c3e50;
  --text-muted: #5b7182;
  --text-light: #7b91a2;

  --teal-primary: #0e7b8b;
  --teal-hover: #0a6674;
  --teal-light: #e6f4f7;
  --teal-soft-bg: #f2f9fa;
  --teal-glow: rgba(14, 123, 139, 0.15);

  --bg-page: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-section-alt: #f4f8fb;
  --bg-card: #ffffff;

  --border-light: #e4edf2;
  --border-subtle: #edf3f7;

  --font-serif: 'Playfair Display', 'DM Serif Display', Georgia, serif;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'DM Serif Display', 'Playfair Display', Georgia, serif;

  --shadow-card: 0 4px 20px rgba(16, 42, 61, 0.05);
  --shadow-hover: 0 12px 32px rgba(14, 123, 139, 0.12);
  --shadow-subtle: 0 2px 8px rgba(16, 42, 61, 0.04);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--navy-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ── LAYOUT ── */
.wrap {
  width: min(1232px, calc(100% - 80px));
  margin: auto;
}

/* ==========================================================================
   Top Bar
   ========================================================================== */
.topline {
  background: var(--navy-dark);
  color: #d4e1e9;
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 9px 0;
}

.topline .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e5edf1;
}

.navrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 88px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-brand {
  gap: 0;
}

.logo-img {
  height: 100px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: opacity 0.2s;
}

.logo-img:hover {
  opacity: 0.85;
}

nav {
  display: flex;
  gap: 20px;
  font-size: 14px;
  font-weight: 500;
}

nav a {
  padding: 32px 0;
  position: relative;
  transition: color 0.2s;
}

nav a:hover,
nav a.active {
  color: var(--teal-primary);
}

nav a.active:after,
nav a.active::after {
  position: absolute;
  content: '';
  bottom: 20px;
  width: 100%;
  height: 2px;
  background: var(--teal-primary);
  left: 0;
}

/* Button component */
.button,
.btn {
  background: var(--teal-primary);
  color: white;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}

.button:hover,
.btn:hover {
  background: var(--teal-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(9, 101, 119, 0.25);
  color: white;
}

.button span,
.btn span {
  font-size: 16px;
  font-weight: 400;
}

.navcta {
  padding: 10px 16px;
  font-size: 13px;
  flex-shrink: 0;
}

/* Mobile menu toggle */
.menu {
  display: none;
  background: none;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  width: 40px;
  height: 40px;
  font-size: 20px;
  color: var(--navy-primary);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   Breadcrumb Bar
   ========================================================================== */
.breadcrumb-section {
  padding: 18px 0 0;
  background: #ffffff;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-light);
}

.breadcrumb-link {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.breadcrumb-link:hover {
  color: var(--teal-primary);
}

.breadcrumb-separator {
  color: #a0b3c2;
  font-weight: 300;
}

.breadcrumb-current {
  color: var(--navy-primary);
  font-weight: 500;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.specialities-hero {
  position: relative;
  width: 100%;
  min-height: 480px;
  padding: 85px 0 95px;
  background-color: #eaf4f7;
  background-image: url('../images/slider/5.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center right;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 40px;
  width: 100%;
}

.hero-content {
  max-width: 580px;
  padding-right: 10px;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #4b738a;
  margin-bottom: 16px;
}

.hero-heading {
  font-family: var(--font-heading);
  font-size: 46px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy-primary);
  margin-bottom: 22px;
  letter-spacing: -0.02em;
}

.hero-description {
  font-size: 17px;
  line-height: 1.6;
  color: #486377;
  max-width: 480px;
}

.hero-visual-wrapper {
  position: relative;
  min-height: 320px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

/* Floating typography in hero */
.hero-floating-text-top {
  position: absolute;
  top: 15px;
  right: 10px;
  z-index: 3;
  text-align: right;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #5c8498;
  line-height: 1.45;
}

.hero-floating-text-top::after {
  content: '';
  display: block;
  width: 32px;
  height: 1.5px;
  background-color: var(--teal-primary);
  margin-top: 8px;
  margin-left: auto;
}

.hero-floating-text-bottom {
  position: absolute;
  bottom: 20px;
  right: 10px;
  z-index: 3;
  text-align: right;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #648a9e;
  line-height: 1.45;
}

/* ==========================================================================
   Section 1: Core Specialities
   ========================================================================== */
.core-specialities-section {
  padding: 60px 0 50px;
  background-color: #ffffff;
}

.section-header-split {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 16px;
}

.section-title-wrap {
  position: relative;
}

.section-main-title {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 700;
  color: var(--navy-primary);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.section-accent-line {
  width: 46px;
  height: 3px;
  background-color: var(--teal-primary);
  margin-top: 10px;
  border-radius: 2px;
}

.section-header-tagline {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 4px;
}

.core-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.core-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 38px 30px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-normal);
  position: relative;
}

.core-card:hover {
  transform: translateY(-6px);
  border-color: #bad9e0;
  box-shadow: var(--shadow-hover);
}

.core-card-icon-wrap {
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--teal-primary);
  transition: transform var(--transition-normal);
}

.core-card:hover .core-card-icon-wrap {
  transform: scale(1.08);
}

.core-card-icon-svg {
  width: 56px;
  height: 56px;
  stroke: var(--teal-primary);
  fill: none;
}

.core-card-title {
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 700;
  color: var(--navy-card-title);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.core-card-text {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex-grow: 1;
}

.core-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--teal-primary);
  transition: all var(--transition-fast);
  margin-top: auto;
}

.core-card-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.core-card-link:hover {
  color: var(--teal-hover);
}

.core-card-link:hover svg {
  transform: translateX(4px);
}

/* ==========================================================================
   Section 2: Other Conditions We Treat
   ========================================================================== */
.other-conditions-section {
  padding: 50px 0 60px;
  background-color: #ffffff;
}

.other-conditions-header {
  margin-bottom: 36px;
}

.other-conditions-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  margin-top: 8px;
}

.conditions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.condition-card {
  background: #ffffff;
  border: 1px solid #e7eff3;
  border-radius: var(--radius-md);
  padding: 22px 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: var(--shadow-subtle);
  transition: all var(--transition-normal);
}

.condition-card:hover {
  border-color: #bfe0e7;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(14, 123, 139, 0.08);
}

.condition-icon-box {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-primary);
}

.condition-icon-svg {
  width: 38px;
  height: 38px;
  stroke: var(--teal-primary);
  fill: none;
}

.condition-body {
  flex: 1;
}

.condition-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy-card-title);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.condition-desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* ==========================================================================
   Section 3: Care Beyond Consultation
   ========================================================================== */
.care-beyond-section {
  padding: 40px 0 60px;
  background-color: #ffffff;
}

.care-beyond-header {
  margin-bottom: 34px;
}

.care-beyond-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  margin-top: 8px;
}

.care-beyond-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.care-service-item {
  background: #ffffff;
  border: 1px solid #e8f0f4;
  border-radius: var(--radius-md);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all var(--transition-normal);
}

.care-service-item:hover {
  border-color: #bad9e0;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(14, 123, 139, 0.08);
}

.care-service-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--teal-primary);
}

.care-service-icon-svg {
  width: 40px;
  height: 40px;
  stroke: var(--teal-primary);
  fill: none;
}

.care-service-title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--navy-primary);
  margin-bottom: 4px;
}

.care-service-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ==========================================================================
   CTA Banner Section
   ========================================================================== */
.consultation-cta-section {
  background: linear-gradient(135deg, #091d2c 0%, #0d2a3f 50%, #082133 100%);
  position: relative;
  overflow: hidden;
  padding: 44px 0;
  color: #ffffff;
}

.cta-ambient-lines {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.25;
  background-image: radial-gradient(circle at 80% 20%, rgba(14, 123, 139, 0.5) 0%, transparent 60%),
                    radial-gradient(circle at 10% 80%, rgba(0, 180, 204, 0.3) 0%, transparent 50%);
  pointer-events: none;
}

.cta-flex-box {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.cta-text-content {
  max-width: 680px;
}

.cta-heading {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.cta-subtext {
  font-size: 15.5px;
  color: #bdd6e6;
}

.cta-button-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--teal-primary);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  transition: all var(--transition-normal);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}

.cta-button-pill:hover {
  background-color: #0b91a5;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(14, 123, 139, 0.5);
  color: #ffffff;
}

/* ==========================================================================
   Languages Bar
   ========================================================================== */
.languages-banner-bar {
  background-color: #eaf4f8;
  padding: 14px 0;
  border-bottom: 1px solid #ddecfa;
}

.languages-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-primary);
  text-align: center;
}

.languages-icon-svg {
  width: 22px;
  height: 22px;
  color: var(--teal-primary);
  flex-shrink: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  border-top: 1px solid #e4ebee;
  background: #fcfdfe;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
  gap: 36px;
  padding: 56px 0 40px;
}

.footer-main h3 {
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--navy-primary);
}

.footer-main p,
.footer-main > div > a:not(.brand) {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
  transition: color var(--transition-fast);
}

.footer-main > div > a:not(.brand):hover {
  color: var(--teal-primary);
}

.footer-about p {
  margin-top: 16px !important;
  line-height: 1.7;
}

.footer-logo-brand {
  display: inline-block;
  margin-bottom: 4px;
}

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

.footer-bottom {
  border-top: 1px solid #e1e8ed;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 12px;
  color: #778791;
  padding: 22px 0;
}

.footer-bottom > a {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-light);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.footer-bottom > a:hover {
  background: #ffffff;
  border-color: var(--teal-primary);
  color: var(--teal-primary);
}

.footer-bottom span a {
  color: var(--teal-primary);
  text-decoration: underline;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.footer-bottom span a:hover {
  color: var(--navy-dark);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
  .specialities-hero {
    min-height: 420px;
    padding: 60px 0 70px;
    background-position: 70% center;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }

  .hero-content {
    max-width: 100%;
    padding-right: 0;
    margin: 0 auto;
  }

  .hero-description {
    margin: 0 auto;
  }

  .hero-visual-wrapper {
    margin: 0 auto;
  }

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

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

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

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .specialities-hero {
    min-height: auto;
    padding: 45px 0 50px;
    background: linear-gradient(180deg, rgba(234, 244, 247, 0.93) 0%, rgba(234, 244, 247, 0.85) 100%), url('../images/slider/5.png') center right / cover no-repeat;
  }

  .hero-visual-wrapper {
    display: none;
  }

  .menu {
    display: block;
  }

  nav {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: white;
    padding: 16px 24px 24px;
    box-shadow: 0 15px 24px rgba(21, 59, 67, 0.12);
    border-bottom: 1px solid #e2ebf0;
  }

  nav.open {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  nav a {
    padding: 12px 0;
    border-bottom: 1px solid #f0f4f7;
  }

  nav a.active:after {
    display: none;
  }

  .hero-heading {
    font-size: 34px;
  }

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

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

  .care-beyond-grid {
    grid-template-columns: 1fr;
  }

  .section-header-split {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-flex-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 32px 0;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
