/* =========================================================
   Marian Eye Care - Professional Redesign & Animation Layer
   Loads AFTER tooplate-style.css / card.css and overrides them
   to give the site a calmer, more premium "eye hospital" feel.
   ========================================================= */

:root{
  --mec-navy:#06263f;
  --mec-navy-2:#0d3b5c;
  --mec-teal:#0e7c86;
  --mec-green:#509964;
  --mec-green-dark:#3f7a50;
  --mec-bg-soft:#f5f9f8;
  --mec-text:#2c2f33;
  --mec-text-light:#6b7280;
  --mec-radius:16px;
  --mec-radius-sm:10px;
  --mec-shadow:0 10px 30px rgba(6,38,63,0.08);
  --mec-shadow-hover:0 18px 42px rgba(6,38,63,0.16);
  --mec-ease:cubic-bezier(.22,.9,.32,1);
}

@media (prefers-reduced-motion: reduce){
  *{animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important;}
}

/* NOTE: scroll-behavior:smooth is intentionally NOT set here.
   This site already animates anchor scrolling via jQuery (custom.js /
   smoothscroll.js), which directly tweens scrollTop. Adding CSS
   smooth-scroll on top of that double-smooths the same scroll and
   causes visible stutter/jank when scrolling up and down the page. */

body{
  color:var(--mec-text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* subtle custom scrollbar */
::-webkit-scrollbar{width:10px; height:10px;}
::-webkit-scrollbar-track{background:#eef2f1;}
::-webkit-scrollbar-thumb{background:#b9cdc4; border-radius:6px;}
::-webkit-scrollbar-thumb:hover{background:var(--mec-green);}

::selection{background:var(--mec-green); color:#fff;}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline:2px solid var(--mec-teal);
  outline-offset:2px;
}

/* ---------------------------------------------------------
   Top info bar
--------------------------------------------------------- */
header{
  background:linear-gradient(100deg, var(--mec-navy), var(--mec-navy-2));
}
header p, header span, header a{
  color:rgba(255,255,255,0.92) !important;
}
header span i{
  color:#7fd6c4 !important;
}
header .phone-icon a, header .email-icon a{
  transition:opacity .2s var(--mec-ease);
}
header .phone-icon a:hover, header .email-icon a:hover{
  opacity:.75;
}

/* ---------------------------------------------------------
   Sticky navbar with scroll shadow
--------------------------------------------------------- */
.navbar-default{
  position:sticky;
  top:0;
  z-index:600;
  transition:box-shadow .3s var(--mec-ease), padding .3s var(--mec-ease), background-color .3s var(--mec-ease);
}
.navbar-default.mec-scrolled{
  box-shadow:0 8px 24px rgba(6,38,63,0.12);
  padding:4px 10px;
}
.navbar-default .navbar-brand .logo-img{
  transition:transform .35s var(--mec-ease);
}
.navbar-default .navbar-brand:hover .logo-img{
  transform:rotate(-8deg) scale(1.08);
}
.navbar-default .navbar-nav > li > a{
  position:relative;
  transition:color .25s var(--mec-ease);
}
.navbar-default .navbar-nav > li > a::after{
  content:'';
  position:absolute;
  left:20px;
  right:20px;
  bottom:6px;
  height:2px;
  background:var(--mec-green);
  transform:scaleX(0);
  transform-origin:left;
  transition:transform .3s var(--mec-ease);
}
.navbar-default .navbar-nav > li:not(.appointment-btn) > a:hover::after,
.navbar-default .navbar-nav > li.mec-active > a::after{
  transform:scaleX(1);
}
.navbar-default .navbar-nav li.appointment-btn a{
  background:linear-gradient(120deg, var(--mec-green), var(--mec-green-dark));
  border-radius:24px;
  box-shadow:0 6px 16px rgba(80,153,100,0.35);
  transition:transform .25s var(--mec-ease), box-shadow .25s var(--mec-ease);
}
.navbar-default .navbar-nav li.appointment-btn a:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 22px rgba(80,153,100,0.45);
  background:linear-gradient(120deg, var(--mec-green-dark), var(--mec-green));
}
.dropdown-content{
  transition:opacity .25s var(--mec-ease), transform .25s var(--mec-ease) !important;
}

/* ---------------------------------------------------------
   Hero / slider
--------------------------------------------------------- */
.slider{
  position:relative;
}
.slider .caption{
  background:linear-gradient(180deg, rgba(6,38,63,0.15) 0%, rgba(6,38,63,0.55) 100%);
}
.slider .item .col-md-offset-1{
  animation:mec-hero-in 1s var(--mec-ease) both;
}
@keyframes mec-hero-in{
  from{opacity:0; transform:translateY(22px);}
  to{opacity:1; transform:translateY(0);}
}
#home h3{
  position:relative;
  display:inline-block;
}
.slider .section-btn{
  background:linear-gradient(120deg, var(--mec-green), var(--mec-teal));
  border-radius:26px;
  box-shadow:0 10px 26px rgba(0,0,0,0.25);
}

/* gentle scroll-cue at the bottom of the hero */
.slider::after{
  content:'';
  position:absolute;
  left:50%;
  bottom:14px;
  width:12px;
  height:12px;
  border-right:2px solid rgba(255,255,255,0.75);
  border-bottom:2px solid rgba(255,255,255,0.75);
  transform:translateX(-50%) rotate(45deg);
  animation:mec-scroll-cue 1.8s ease-in-out infinite;
  pointer-events:none;
}
@keyframes mec-scroll-cue{
  0%,100%{opacity:.25; transform:translateX(-50%) translateY(-4px) rotate(45deg);}
  50%{opacity:.9; transform:translateX(-50%) translateY(4px) rotate(45deg);}
}

/* ---------------------------------------------------------
   Section headings - animated accent underline
--------------------------------------------------------- */
.about-info h2,
.section-title h2{
  position:relative;
  color:var(--mec-navy);
  padding-bottom:16px;
}
.about-info h2::after,
.section-title h2::after{
  content:'';
  position:absolute;
  left:0;
  bottom:0;
  width:64px;
  height:4px;
  border-radius:4px;
  background:linear-gradient(90deg, var(--mec-green), var(--mec-teal));
  transform:scaleX(0);
  transform-origin:left;
}
.about-info h2.animated::after,
.section-title h2.animated::after{
  animation:mec-underline-grow .7s .15s var(--mec-ease) forwards;
}
@keyframes mec-underline-grow{
  to{transform:scaleX(1);}
}

/* ---------------------------------------------------------
   Buttons (site-wide)
--------------------------------------------------------- */
.section-btn,
.read-more-btn,
.popup-btn,
#cf-submit{
  position:relative;
  overflow:hidden;
  border-radius:26px !important;
  letter-spacing:.2px;
  transition:transform .25s var(--mec-ease), box-shadow .25s var(--mec-ease), background .25s var(--mec-ease) !important;
}
.section-btn:hover,
.read-more-btn:hover,
.popup-btn:hover,
#cf-submit:hover{
  transform:translateY(-4px);
  box-shadow:var(--mec-shadow-hover);
}
.mec-ripple{
  position:absolute;
  border-radius:50%;
  background:rgba(255,255,255,0.55);
  transform:scale(0);
  animation:mec-ripple-anim .55s ease-out;
  pointer-events:none;
}
@keyframes mec-ripple-anim{
  to{transform:scale(2.6); opacity:0;}
}

/* ---------------------------------------------------------
   Cards
--------------------------------------------------------- */
.custom-card,
.card{
  border-radius:var(--mec-radius) !important;
  border:1px solid rgba(6,38,63,0.06) !important;
  box-shadow:var(--mec-shadow);
  transition:transform .35s var(--mec-ease), box-shadow .35s var(--mec-ease) !important;
  overflow:hidden;
}
.custom-card:hover,
.card:hover{
  transform:translateY(-8px);
  box-shadow:var(--mec-shadow-hover) !important;
}
.custom-card img,
.card img{
  transition:transform .5s var(--mec-ease);
}
.custom-card:hover img,
.card:hover img{
  transform:scale(1.06);
}
.custom-card .card-title{
  color:var(--mec-navy);
}

/* doctor / profile figures */
figure.profile img,
.about-info figure img{
  border-radius:var(--mec-radius);
  box-shadow:var(--mec-shadow);
  transition:transform .4s var(--mec-ease);
}
figure.profile:hover img{
  transform:translateY(-4px);
}

/* ---------------------------------------------------------
   Forms
--------------------------------------------------------- */
.form-control{
  border-radius:10px !important;
  border:1px solid #dfe6e3 !important;
  transition:border-color .25s var(--mec-ease), box-shadow .25s var(--mec-ease) !important;
}
.form-control:focus{
  border-color:var(--mec-green) !important;
  box-shadow:0 0 0 4px rgba(80,153,100,0.15) !important;
}

/* ---------------------------------------------------------
   Footer
--------------------------------------------------------- */
footer{
  position:relative;
  background:linear-gradient(165deg, var(--mec-navy), var(--mec-navy-2)) !important;
  color:rgba(255,255,255,0.85);
  padding-top:70px !important;
}
footer h4{
  color:#fff;
}
footer p, footer .opening-hours p{
  color:rgba(255,255,255,0.72);
}
footer a{
  color:rgba(255,255,255,0.72);
}
footer a:hover{
  color:#7fd6c4;
}
footer .contact-info .fa{
  background:rgba(255,255,255,0.12);
  transition:background .25s var(--mec-ease), transform .25s var(--mec-ease);
}
footer .contact-info .fa:hover{
  background:var(--mec-green);
  transform:translateY(-3px);
}
footer .social-icon a{
  transition:transform .25s var(--mec-ease), color .25s var(--mec-ease);
  display:inline-block;
}
footer .social-icon a:hover{
  transform:translateY(-4px) scale(1.1);
  color:#7fd6c4 !important;
}
footer .copyright-text p, footer .footer-link a{
  color:rgba(255,255,255,0.55);
}

.angle-up-btn a{
  transition:transform .3s var(--mec-ease), background .3s var(--mec-ease);
}
.angle-up-btn a:hover{
  transform:translateY(-6px);
}

/* ---------------------------------------------------------
   Preloader
--------------------------------------------------------- */
.spinner{
  border-radius:50%;
  background:conic-gradient(var(--mec-green), var(--mec-teal), var(--mec-navy), var(--mec-green));
  animation:mec-spin 1s linear infinite;
}
.spinner::before{
  background:#ffffff !important;
}
@keyframes mec-spin{
  to{transform:rotate(360deg);}
}

/* ---------------------------------------------------------
   Misc polish
--------------------------------------------------------- */
img{transition:filter .3s ease;}
.gallery-item img, .gallery-container img{
  border-radius:var(--mec-radius-sm);
  transition:transform .4s var(--mec-ease), box-shadow .4s var(--mec-ease);
}
.gallery-item:hover img{
  transform:scale(1.04);
  box-shadow:var(--mec-shadow-hover);
}

/* Fade/slide utility driven by redesign.js for elements without WOW */
.mec-reveal{
  opacity:0;
  transform:translateY(24px);
  transition:opacity .7s var(--mec-ease), transform .7s var(--mec-ease);
}
.mec-reveal.mec-in{
  opacity:1;
  transform:translateY(0);
}

/* ---------------------------------------------------------
   Services page - icon-grid card layout
--------------------------------------------------------- */
.mec-svc-intro{
  max-width:720px;
  color:var(--mec-text-light);
  margin:-6px 0 34px;
}
.mec-svc-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:28px;
  align-items:stretch;
}
@media (max-width:991px){
  .mec-svc-grid{grid-template-columns:repeat(2, 1fr);}
}
@media (max-width:600px){
  .mec-svc-grid{grid-template-columns:1fr;}
}

.mec-svc-card{
  position:relative;
  display:flex;
  flex-direction:column;
  background:#fff;
  border:1px solid rgba(6,38,63,0.06);
  border-radius:var(--mec-radius);
  box-shadow:var(--mec-shadow);
  padding:28px 24px 24px;
  scroll-margin-top:110px;
  transition:transform .35s var(--mec-ease), box-shadow .35s var(--mec-ease);
}
.mec-svc-card:hover{
  transform:translateY(-8px);
  box-shadow:var(--mec-shadow-hover);
}
.mec-svc-icon{
  width:56px;
  height:56px;
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg, var(--mec-green), var(--mec-teal));
  color:#fff;
  font-size:22px;
  margin-bottom:16px;
  box-shadow:0 8px 18px rgba(14,124,134,0.25);
}
.mec-svc-photo{
  width:100%;
  height:150px;
  object-fit:cover;
  border-radius:var(--mec-radius-sm);
  margin-bottom:16px;
}
.mec-svc-card h3{
  color:var(--mec-navy);
  font-size:19px;
  margin:0 0 10px;
}
.mec-svc-desc{
  color:var(--mec-text-light);
  font-size:13.5px;
  line-height:1.6;
  margin-bottom:18px;
}
.mec-svc-doctor{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px;
  background:var(--mec-bg-soft);
  border-radius:var(--mec-radius-sm);
  margin-bottom:10px;
}
.mec-svc-doctor img{
  width:44px;
  height:44px;
  border-radius:50%;
  object-fit:cover;
  flex-shrink:0;
  border:2px solid #fff;
  box-shadow:0 0 0 1px var(--mec-green);
}
.mec-svc-doctor h4{
  margin:0;
  font-size:13.5px;
  color:var(--mec-navy);
}
.mec-svc-doctor span{
  font-size:11.5px;
  color:var(--mec-text-light);
}
.mec-svc-more{
  margin-bottom:14px;
}
.mec-svc-more summary{
  cursor:pointer;
  font-size:12.5px;
  font-weight:600;
  color:var(--mec-teal);
  list-style:none;
}
.mec-svc-more summary::-webkit-details-marker{display:none;}
.mec-svc-more p{
  font-size:12.5px;
  color:var(--mec-text-light);
  margin-top:8px;
  line-height:1.55;
}
.mec-svc-bullets{
  list-style:none;
  margin:auto 0 0;
  padding:14px 0 0;
  border-top:1px dashed #e5e9e7;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.mec-svc-bullets li{
  position:relative;
  padding-left:22px;
  font-size:12.5px;
  color:var(--mec-text);
  line-height:1.5;
}
.mec-svc-bullets li::before{
  content:'\f00c';
  font-family:'Font Awesome 6 Free';
  font-weight:900;
  position:absolute;
  left:0;
  top:1px;
  color:var(--mec-green);
  font-size:11px;
}

/* ---------------------------------------------------------
   Insurance / TPA partner logo carousel
--------------------------------------------------------- */
.insurance-section .mec-svc-intro{
  text-align:center;
}
.insurance-logo-card{
  background:#fff;
  border-radius:12px;
  border:1px solid rgba(6,38,63,0.06);
  box-shadow:var(--mec-shadow);
  height:110px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:16px;
  transition:transform .3s var(--mec-ease), box-shadow .3s var(--mec-ease);
}
.insurance-logo-card:hover{
  transform:translateY(-5px);
  box-shadow:var(--mec-shadow-hover);
}
.insurance-logo-card img{
  max-width:100%;
  max-height:100%;
  width:auto;
  height:auto;
  object-fit:contain;
  filter:grayscale(20%);
  opacity:.9;
  transition:filter .3s ease, opacity .3s ease;
}
.insurance-logo-card:hover img{
  filter:grayscale(0%);
  opacity:1;
}
#insurance-slider.owl-carousel{
  display:block;
}
#insurance-slider .owl-dots{
  margin-top:22px;
  text-align:center;
}
#insurance-slider .owl-dots .owl-dot span{
  background:#c8d6cf;
}
#insurance-slider .owl-dots .owl-dot.active span{
  background:var(--mec-green);
}

/* Appointment form - AM/PM time picker */
.mec-time-picker{
  display:flex;
  gap:8px;
}
.mec-time-picker select{
  flex:1;
  min-width:0;
}
