/* --------------------
   GLOBAL BASE STYLES
-------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  background: #F6F2FA;
  color: #2E1A3B;
  line-height: 1.6;
}

.patient-video { 
  display: block;
  margin-left: auto;
  margin-right: auto;
  height: 60vh;
  max-width: 1100px;
  min-width: 60vw;
  border-radius: 10px;
  background-color: black;
}

.logo-img {
  width: 10rem;
  align-self: center;
}

.about-images {
  flex: 0 0 200px;
  display: flex;
  flex-direction: column;
}

.about-images-card {
  justify-content: space-evenly;
  display: flex;
  flex-direction: column;
}

.portrait-img-text {
  font-size: .8rem;
  font-weight: bold;
  text-align: center;
}

.portrait-img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

.euthanasia-img-container {
  display: flex;
  flex-direction: column;
}

.euthanasia-img {
  width: 100%;
  height: 100%;
  object-fit: scale-down;
  padding-bottom: 1.5rem;
  cursor: pointer;
}

.acc-patients {
  padding-bottom: 1.5rem;
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
}

.acc-img {
  object-fit: scale-down;
  width: 18vw;
  height: auto;
  max-height: 210px;
}

/* =========================
   Contact Form Styling
   ========================= */

form {
  max-width: 700px;
}

form label {
  display: block;
  margin-top: 1.2rem;
  margin-bottom: 0.3rem;
  font-weight: 500;
}

form input,
form textarea {
  display: block;
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1px solid #b5b5c3;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.95rem;
  box-sizing: border-box;
}

form textarea {
  resize: vertical;
}

form input::placeholder,
form textarea::placeholder {
  color: #9a9aa6;
}

/* Submit button */
form button {
  margin-top: 1.5rem;
  padding: 0.6rem 1.75rem;
  background-color: #6c4a7c; /* matches your purple tone */
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 0.95rem;
  cursor: pointer;
}

form button:hover {
  opacity: 0.9;
}

/* Success message */
#formSuccess {
  font-size: 0.95rem;
  margin-top: 1rem;
}

/* --------------------
   NAVIGATION
-------------------- */
header {
  position: fixed;
  width: 100%;
  top: 0;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

nav .logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: #8E44AD;
}

nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

nav ul li {
  position: relative;
}

nav ul li a {
  text-decoration: none;
  color: #4A235A;
  font-weight: 600;
  transition: 0.3s;
}

nav ul li a:hover {
  color: #8E44AD;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  user-select: none;
}

/* --------------------
   SUB MENU (FAQ)
-------------------- */
.has-sub-menu {
  position: relative;
}

.sub-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 160px;

  background: #fff;
  border-radius: 12px;
  padding: 0.5rem 0;

  box-shadow: 0 12px 30px rgba(74, 35, 90, 0.15);
  z-index: 10;

  display: none;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.has-sub-menu.open .sub-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.sub-menu li a {
  display: block;
  padding: 0.75rem 1rem;
  color: #4A235A;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}

.sub-menu li a:hover {
  background: #EFE6F5;
  color: #8E44AD;
}

/* Chevron animation */
.js-chevron {
  margin-left: 0.4rem;
  transition: transform 0.3s ease;
}

.has-sub-menu.open .js-chevron {
  transform: rotate(180deg);
}

/* --------------------
   HERO SECTION
-------------------- */
.hero {
  padding: 8rem 2rem 4rem 2rem;
  text-align: center;
  background: #EFE6F5;
}

.hero h1 {
  font-size: 2.5rem;
  color: #4A235A;
}

.secondary-text {
  color: #8E44AD;
}

/* --------------------
   CONTENT SECTIONS
-------------------- */
.section {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  margin-bottom: 1.5rem;
}

.card-body {
  display: flex;
  gap: 2rem;
}

.multiple-body {
  display: flex;
  flex-direction: column;
}

.services-section {
  display: flex;
}

.left-section {
  width: 100%;
}

.right-section {
  width: 40%;
  padding-left: 1.5rem;
}

.card-text {
  padding: .5rem;
}

.card-text p {
  flex: 1;
  line-height: 2;
}

.card-header {
  padding-left: .5rem;
}

.card ul {
  padding-left: 1.5rem;
}

.info-card h3 {
  padding-bottom: 1.5rem;
}

.disclaimer-text {
  color: #8E44AD;
}

.disclaimers ul li {
  color: #8E44AD;
};

.email {
  color: #fff;
  text-decoration: underline;
}

.email:hover {
  cursor: pointer;
  color:#8E44AD;
}

.split-section {
  width: 100%;
  display: flex;
  flex-direction: row;
}

.left-section {
  width: 100%;
}

.right-section {
  padding-left: 1.5rem;
  width: 40%;
}

.card-body {
  display: flex;
  gap: 2rem;
  padding: .5rem;
}

/* --------------------
   FEATURE IMAGE LAYOUT
-------------------- */
/* Single large feature image */
.feature-card-euth .feature-image-euth {
  width: 100%;
}

.feature-card-euth .feature-image-euth img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 14px;
}

.feature-card {
  padding: 0;
  overflow: hidden;
}

.feature-layout {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.feature-layout.reverse {
  flex-direction: row-reverse;
}

.feature-image {
  flex: 0 0 45%;
}

.feature-image img {
  width: 100%;
  height: 100%;
  max-height: 320px;
  object-fit: fill;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

/* Image strip */
.feature-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 3rem 0;
}

.feature-strip img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* --------------------
   FOOTER
-------------------- */
footer {
  background: #4A235A;
  color: #fff;
  text-align: center;
  padding: 1rem;
  margin-top: 3rem;
}

.footer-card {
  display: flex;
  justify-content: space-around;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #fff;
}

/* --------------------
   IMAGE MODAL
-------------------- */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

.modal.open {
  display: flex;
}

.modal-content {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
  user-select: none;
}

.modal-close:hover {
  opacity: 0.8;
}

/* --------------------
   MOBILE RESPONSIVE
-------------------- */
@media (max-width: 768px) {

  .patient-video {
    width: 88%;
  }

  .feature-layout,
  .feature-layout.reverse {
    flex-direction: column;
    text-align: center;
  }

  .feature-image {
    width: 100%;
  }

  .feature-image img {
    max-height: none;
  }

  .feature-strip {
    grid-template-columns: 1fr;
  }

  .feature-strip img {
    height: auto;
  }

  .acc-patients {
    flex-direction: column;
  }

  .acc-img {
    width: 70vw;
    align-self: center;
  }

  .menu-toggle {
    display: block;
  }

  nav ul {
    display: none; /* hide menu by default */
    position: absolute;
    top: 70px;
    right: 0;
    width: 220px;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 1rem;
    border-radius: 0 0 0 12px;
    box-shadow: -5px 5px 15px rgba(0,0,0,0.1);
    z-index: 1000;
  }

  nav ul.open {
    display: flex; /* show menu on toggle */
  }

  /* Submenu inside mobile menu */
  .has-sub-menu .sub-menu {
    position: static;
    display: none;
    opacity: 1 !important;
    transform: none !important;
    box-shadow: none;
    padding-left: 1rem;
  }

  .has-sub-menu.open .sub-menu {
    display: block;
  }

  .split-section {
    flex-direction: column;
  }

  .right-section {
    width: 100%;
    padding-left: 0;
  }

  .card-body {
    flex-direction: column;
    text-align: center;
  }

  .footer-card {
    flex-direction: column;
    gap: 1rem;
  }

  .card-header {
    text-align: center;
    padding-left: 0;
  }
}
