/* =========================================
   Anjani Eye Hospital - Homepage
   ========================================= */

:root {
  --blue: #0b3f8a;
  --blue-dark: #082f68;
  --navy: #262d6e;
  --pink: #f8e1e5;
  --light-blue: #ddf0fb;
  --grey-bg: #f4f4f4;
  --cream: #fdf5de;
  --text: #333333;
  --heading: #4a4a4a;
  --border: #e6e6e6;
  --container: 877px;
  --menu-w: 248px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text);
  background: #ffffff;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { margin: 0; padding: 0; }

.text-center { text-align: center; }
.text-justify { text-align: justify; }

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
}

.bg-pink { background: var(--pink); }

/* ---------- Full page sections ---------- */
.fp-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fp-section > .container { min-height: 100vh; }
.fp-section.fp-auto { display: block; min-height: auto; }
.fp-section.fp-auto > .container { min-height: auto; }

/* ---------- Page wrap (push on menu open) ---------- */
.page-wrap { transition: transform .4s ease; }
body.menu-open .page-wrap { transform: translateX(58px); }

/* ---------- Menu Button ---------- */
.menu-btn {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1001;
  width: 85px;
  height: 36px;
  border: 0;
  background: var(--blue);
  color: #ffffff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}
.menu-btn:hover { background: var(--blue-dark); }

/* ---------- Side Menu ---------- */
.side-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--menu-w);
  height: 100%;
  background: var(--blue);
  z-index: 1002;
  overflow-y: auto;
  padding: 52px 0 20px;
  transform: translateX(-100%);
  transition: transform .4s ease;
}
body.menu-open .side-menu { transform: translateX(0); }

.side-menu ul { list-style: none; }
.side-menu a {
  display: block;
  padding: 7px 15px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .3px;
}
.side-menu a:hover { color: #cfe0ff; }
.side-menu .sub-menu a { padding-left: 32px; }

/* ADDED: Menu Close (Cross) */
.menu-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background .2s ease;
}
.menu-close svg {
  width: 22px;
  height: 22px;
  fill: #ffffff;
}
.menu-close:hover { background: rgba(255, 255, 255, .15); }
.menu-close:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; }
/* END ADDED */

.side-menu::-webkit-scrollbar { width: 8px; }
.side-menu::-webkit-scrollbar-track { background: #ffffff; }
.side-menu::-webkit-scrollbar-thumb { background: #9a9a9a; border-radius: 4px; }

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
}
body.menu-open .menu-overlay { display: block; }

/* ---------- Right Dot Navigation ---------- */
.dot-nav {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  list-style: none;
}
.dot-nav li { margin: 4px 0; }
.dot-nav a {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  height: 11px;
}
.dot-nav .dot {
  width: 7px;
  height: 7px;
  border: 1px solid var(--blue);
  border-radius: 50%;
  background: transparent;
  transition: all .2s ease;
}
.dot-nav a.active .dot {
  width: 10px;
  height: 10px;
  background: var(--blue);
}
.dot-nav .dot-label {
  font-size: 11px;
  font-weight: 500;
  color: #333333;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease;
}
.dot-nav a:hover .dot-label,
.dot-nav a.active.show-label .dot-label {
  opacity: 1;
  visibility: visible;
}

/* ---------- Buttons ---------- */
.btn-square {
  display: inline-block;
  min-width: 122px;
  padding: 13px 20px;
  background: var(--blue);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  transition: background .2s ease;
}
.btn-square:hover { background: var(--blue-dark); }
.btn-square.btn-light { font-weight: 400; }

.btn-rounded {
  display: inline-block;
  padding: 10px 27px;
  background: var(--blue);
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  border-radius: 6px;
  transition: background .2s ease;
}
.btn-rounded:hover { background: var(--blue-dark); }

/* ---------- Common Section Text ---------- */
.section-text {
  text-align: center;
  padding: 40px 15px;
}
.sub-title {
  display: block;
  font-size: 9px;
  letter-spacing: 3px;
  color: #333333;
}
.section-title {
  margin: 8px 0 30px;
  font-size: 38px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--heading);
}
.section-text p {
  max-width: 285px;
  margin: 0 auto 18px;
  font-size: 11px;
  letter-spacing: 1px;
  line-height: 1.65;
  color: #333333;
}
.section-text .btn-square { margin-top: 38px; }

/* ---------- Split layout ---------- */
.split {
  display: flex;
  align-items: center;
}
.split-col { width: 50%; }
.split-img img { width: 100%; object-fit: cover; }

/* =========================================
   SECTION 1 : HOME / HERO
   ========================================= */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
}
.hero-logos {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 12px 0 0 37px;
}
.hero-logos img:nth-child(1) { height: 100%; width: auto; }
.hero-logos img:nth-child(2) { height: 90px; width: auto; }
.hero-logos img:nth-child(3) { height: 76px; width: auto; }

.hero-row {
  display: flex;
  align-items: flex-start;
  padding-bottom: 40px;
}
.hero-left {
  width: 50%;
  padding: 35px 67px 0;
}
.hero-title {
  margin: 0 0 24px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  line-height: 2;
  color: #4a4a4a;
  max-width: 330px;
}
.hero-left p {
  margin: 0 0 20px;
  font-size: 11px;
  letter-spacing: 1px;
  line-height: 1.65;
  text-align: justify;
}
.hero-list {
  padding-left: 17px;
  margin-bottom: 34px;
}
.hero-list li {
  margin-bottom: 6px;
  font-size: 11px;
  letter-spacing: 1px;
  line-height: 1.65;
  text-align: justify;
}

.hero-right {
  width: 50%;
  padding: 11px 0 0 108px;
}
.safety-box {
  display: inline-block;
  width: 183px;
  padding: 4px 6px 6px;
  margin-bottom: 31px;
  background: rgba(136, 136, 136, .85);
  border-radius: 4px;
  font-family: 'Raleway', 'Roboto', Arial, sans-serif;
  font-size: 30px;
  font-weight: 300;
  line-height: 1.17;
  color: #ffffff;
}
.hero-right .btn-rounded { display: table; margin-left: 3px; }

/* =========================================
   SECTION 2 : SERVICES
   ========================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 8px;
  padding: 0 4px;
  align-self: flex-start;
  margin-top: 55px;
}
.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 169px;
  padding: 27px 10px 20px;
  background: var(--light-blue);
  text-align: center;
}
.services-grid .service-card:nth-child(n+4) { min-height: 222px; }
.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  margin-bottom: 30px;
  background: var(--pink);
  border-radius: 50%;
}
.service-icon img { width:100%; height: 100%; object-fit: contain; }
.service-name {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  color: #4a4a4a;
}
#services .section-text p { max-width: 280px; }

/* =========================================
   SECTION 3 : TEAM
   ========================================= */
#team .split-img img { height: 190px; }

/* =========================================
   SECTION 4 : FACILITIES
   ========================================= */
.facilities .split-img { padding-left: 15px; }
.facilities .split-img img { height: 254px; }
.facilities .section-text { padding: 40px 60px 40px 30px; }
.facilities .section-text p { max-width: 100%; margin-bottom: 20px; }
.facilities .section-title { margin-bottom: 30px; }

/* =========================================
   SECTION 5 : PARTNERS
   ========================================= */
#partners .section-text p { max-width: 295px; }
.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  row-gap: 16px;
}
.partner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 146px;
  padding: 5px;
  border: 1px solid var(--border);
  margin-left: -1px;
}
.partner img { max-height: 100%; width: auto; object-fit: contain; }

/* =========================================
   SECTION 6 : CONTACT
   ========================================= */
#contact { padding-top: 62px; }
.contact-wrap { display: flex; }
.contact-form-col {
  width: 50%;
  background: var(--grey-bg);
  padding: 42px 37px 38px;
}
.contact-text-col {
  width: 50%;
  background: var(--pink);
  padding: 72px 30px 49px;
}
.contact-text-col .section-title { margin-bottom: 34px; }
.contact-text-col p { max-width: 295px; }
.contact-text-col .btn-square { margin-top: 38px; padding: 13px 32px; }

.contact-form input,
.contact-form textarea {
  display: block;
  width: 251px;
  max-width: 100%;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid #e1e1e1;
  background: transparent;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  color: #333333;
  outline: none;
  resize: none;
}
.contact-form textarea { height: 117px; padding-top: 6px; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #333333; opacity: 1; }
.contact-form input:focus,
.contact-form textarea:focus { border-bottom-color: var(--blue); }
.contact-form .invalid { border-bottom-color: #d9363e; }

.form-msg {
  min-height: 0;
  margin: 6px 0 0;
  font-size: 11px;
}
.form-msg.error { color: #d9363e; }
.form-msg.success { color: #1b8a3a; }

.btn-send {
  display: block;
  width: 100%;
  max-width: 364px;
  height: 46px;
  margin-top: 8px;
  border: 0;
  background: var(--blue);
  color: #ffffff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.btn-send:hover { background: var(--blue-dark); }

/* =========================================
   FOOTER
   ========================================= */
.site-footer { background: var(--cream); }
.footer-cols {
  display: flex;
  padding: 70px 15px 60px;
}
.footer-col { width: 33.333%; }
.footer-about { text-align: center; padding-right: 15px; }
.footer-logo { width: 125px; margin: 6px auto 34px; }
.footer-about p { margin: 0 0 32px; font-size: 12.5px; color: #111111; }

.social { display: flex; justify-content: center; gap: 11px; }
.social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #eeeeee;
}
.social svg { width: 14px; height: 14px; fill: var(--blue); }
.social a:hover { background: var(--blue); }
.social a:hover svg { fill: #ffffff; }

.footer-title {
  margin: 0 0 18px;
  font-size: 15px;
  font-weight: 700;
  color: var(--blue);
}
.footer-links { list-style: none; padding-left: 6px; }
.footer-links li { margin-bottom: 15px; }
.footer-links a { font-size: 11px; color: #111111; }
.footer-links a:hover { color: var(--blue); }

.footer-contact { padding-left: 17px; }
.footer-contact p {
  margin: 0 0 18px;
  font-size: 11px;
  line-height: 1.65;
  color: #333333;
}
.footer-contact strong { color: #222222; }
.footer-contact a:hover { color: var(--blue); }

.copyright {
  padding: 8px 15px;
  background: var(--navy);
  color: #ffffff;
  font-size: 11px;
  text-align: center;
}
.copyright a { text-decoration: underline; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 991px) {
  :root { --container: 100%; }

  .fp-section,
  .fp-section > .container { min-height: auto; }
  .fp-section { display: block; }

  .menu-btn { left: auto; right: 0; transform: none; }
  body.menu-open .page-wrap { transform: none; }
  .menu-overlay { background: rgba(0, 0, 0, .4); }

  .dot-nav { display: none; }

  .split,
  .hero-row,
  .contact-wrap { flex-direction: column; }
  .split-col,
  .hero-left,
  .hero-right,
  .contact-form-col,
  .contact-text-col { width: 100%; }

  .hero-logos { padding: 45px 20px 0; justify-content: center; flex-wrap: wrap; }
  .hero-left { padding: 30px 30px 0; }
  .hero-title { max-width: 100%; }
  .hero-right { padding: 30px 20px 50px; text-align: center; }
  .hero-right .btn-rounded { margin: 0 auto; }

  .bg-pink { padding: 40px 0; }
  .services-grid { margin-top: 0; padding: 0 15px; align-self: stretch; }

  #team .split-img,
  .facilities .split-img { padding: 0 15px 40px; }
  #team .split { padding: 40px 0; }
  .facilities .split-img { order: 2; }
  .facilities .section-text { padding: 20px 20px 30px; }
  .facilities .section-text p { max-width: 520px; }

  #partners .split { padding: 40px 0; }
  .partners-grid { padding: 0 15px; }

  #contact { padding-top: 0; }
  .contact-form-col { padding: 40px 25px; }
  .contact-form input,
  .contact-form textarea { width: 100%; }
  .btn-send { max-width: 100%; }

  .footer-cols { flex-wrap: wrap; padding: 50px 20px 30px; }
  .footer-about { width: 100%; padding: 0 0 35px; }
  .footer-col:not(.footer-about) { width: 50%; }
}

@media (max-width: 575px) {
  .hero-logos { gap: 12px; }
  .hero-logos img:nth-child(1),
  .hero-logos img:nth-child(2) { height: 70px; }
  .hero-logos img:nth-child(3) { height: 60px; }
  .hero-left { padding: 25px 20px 0; }

  .section-title { font-size: 32px; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card,
  .services-grid .service-card:nth-child(n+4) { min-height: 180px; }

  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .partner { height: 120px; }

  .footer-col:not(.footer-about) { width: 100%; margin-bottom: 25px; }
  .footer-contact { padding-left: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .page-wrap,
  .side-menu { transition: none; }
}