/* ===== CUSTOM PROPERTIES ===== */
:root {
  --navy: #0c2844;
  --light-gray: #ededed;
  --medium-gray: #b7b7b7;
  --teal: #409ec3;
  --text: #333;
  --white: #fff;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.15);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 24px;
  --transition: 0.3s ease;
  --transition-slow: 0.6s ease;
  --header-height: 80px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: 'Lato', Tahoma, sans-serif;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== SCREEN-READER ONLY ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background-color: rgba(12, 40, 68, 0.95);
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: height var(--transition), background-color var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  height: 64px;
  background-color: rgba(12, 40, 68, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.header-logo {
  max-height: 50px;
  width: auto;
  transition: max-height var(--transition);
}

.site-header.scrolled .header-logo {
  max-height: 38px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

/* ===== NAV ===== */
.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color var(--transition), background-color var(--transition);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background-color: rgba(64, 158, 195, 0.25);
}

.nav-link.active {
  background-color: rgba(64, 158, 195, 0.35);
}

/* ===== HAMBURGER ===== */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 10001;
  flex-direction: column;
  gap: 5px;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}

.hamburger.open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== HERO SECTION ===== */
.hero-section {
  position: relative;
  min-height: 100vh;
  background-image: url('images/κτηνιατρειο-Animed-κοζανη-αρχικη-o.png');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(12, 40, 68, 0.5) 0%,
    rgba(37, 52, 95, 0.2) 40%,
    rgba(37, 52, 95, 0.2) 60%,
    rgba(12, 40, 68, 0.6) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  animation: heroFadeIn 1.2s ease-out;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-logo {
  max-width: 314px;
  margin: 0 auto 20px;
}

.hero-address {
  color: var(--white);
  font-family: 'Lato', Tahoma, sans-serif;
  font-size: clamp(16px, 2.5vw, 22px);
  font-weight: 300;
  line-height: 1.5;
  margin-bottom: 31px;
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: scrollBounce 2s infinite;
}

.scroll-arrow {
  display: block;
  width: 24px;
  height: 24px;
  border-right: 2px solid rgba(255, 255, 255, 0.7);
  border-bottom: 2px solid rgba(255, 255, 255, 0.7);
  transform: rotate(45deg);
}

@keyframes scrollBounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(10px); }
  60% { transform: translateX(-50%) translateY(5px); }
}

/* ===== ACCENT LINE ===== */
.accent-line {
  width: 40px;
  height: 3px;
  background-color: var(--teal);
  border-radius: 2px;
  margin-bottom: 20px;
}

/* ===== ABOUT SECTION ===== */
.about-section {
  padding: clamp(40px, 8vw, 80px) 20px;
}

.about-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-logo {
  max-width: 260px;
  margin-bottom: 24px;
}

.about-text {
  font-size: clamp(15px, 1.8vw, 17px);
  font-weight: 400;
  line-height: 1.8;
  color: var(--text);
}

/* ===== TEAM SECTION ===== */
.team-section {
  padding: clamp(40px, 8vw, 80px) 20px;
  background-color: var(--light-gray);
}

.team-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1100px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.team-photo-col {
  overflow: hidden;
}

.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.team-card:hover .team-photo {
  transform: scale(1.03);
}

.team-info-col {
  padding: clamp(30px, 5vw, 60px) clamp(24px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.team-name {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.team-title {
  font-size: clamp(13px, 1.5vw, 15px);
  font-weight: 400;
  color: var(--teal);
  margin-bottom: 20px;
}

.team-bio {
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.7;
  color: var(--text);
}

/* ===== SERVICES SECTION ===== */
.services-section {
  padding: clamp(40px, 8vw, 80px) 20px;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: clamp(24px, 4vw, 40px);
  text-align: center;
}

.service-title {
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.4;
}

.service-divider {
  width: 30px;
  height: 2px;
  background-color: var(--teal);
  margin: 0 auto 24px;
  border-radius: 1px;
}

.service-list {
  list-style: none;
  text-align: left;
  padding: 0;
}

.service-list li {
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.6;
  padding: 8px 0 8px 24px;
  position: relative;
  transition: background-color var(--transition), padding-left var(--transition);
  border-radius: 6px;
}

.service-list li::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--teal);
}

.service-list li:hover {
  background-color: rgba(64, 158, 195, 0.06);
  padding-left: 28px;
}

.service-hidden {
  display: none;
}

.service-list.expanded .service-hidden {
  display: list-item;
}

/* ===== SHOW ALL BUTTON ===== */
.show-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 8px 20px;
  background: none;
  border: 1.5px solid var(--teal);
  border-radius: 20px;
  color: var(--teal);
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition);
}

.show-all-btn:hover {
  background-color: var(--teal);
  color: var(--white);
}

.show-all-icon {
  transition: transform var(--transition);
}

.show-all-btn[aria-expanded="true"] .show-all-icon {
  transform: rotate(180deg);
}

/* ===== SECTION HEADER ===== */
.section-header {
  text-align: center;
  margin-bottom: clamp(24px, 4vw, 40px);
}

.section-heading {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.section-subheading {
  font-size: clamp(14px, 1.5vw, 16px);
  color: var(--medium-gray);
  font-weight: 400;
}

/* ===== GALLERY SECTION ===== */
.gallery-section {
  padding: clamp(40px, 8vw, 80px) 20px;
  background-color: var(--light-gray);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 5;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 40, 68, 0.0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.gallery-zoom-icon {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity var(--transition), transform var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
  background: rgba(12, 40, 68, 0.4);
}

.gallery-item:hover .gallery-zoom-icon {
  opacity: 1;
  transform: scale(1);
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  transition: transform var(--transition);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 36px;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  opacity: 0.8;
  transition: opacity var(--transition);
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 16px;
  border-radius: 50%;
  transition: background var(--transition);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ===== DIAGNOSIS SECTION ===== */
.diagnosis-section {
  padding: clamp(40px, 8vw, 80px) 20px;
}

.diagnosis-card {
  max-width: 1100px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  padding: clamp(24px, 4vw, 48px);
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.diagnosis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.diagnosis-name {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 16px;
}

.diagnosis-text {
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 12px;
}

.diagnosis-photo-col {
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.diagnosis-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.diagnosis-card:hover .diagnosis-photo {
  transform: scale(1.03);
}

/* ===== CASE STUDIES ===== */
.cases-section {
  padding: clamp(40px, 8vw, 80px) 20px;
  background-color: var(--light-gray);
}

.small-logo {
  max-width: 150px;
  margin: 0 auto 20px;
}

.case-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  max-width: 1000px;
  margin: 0 auto 30px;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.case-card-reverse {
  grid-template-columns: 1fr 280px;
}

.case-card-reverse .case-img-col {
  order: 2;
}

.case-card-reverse .case-content-col {
  order: 1;
}

.case-img-col {
  overflow: hidden;
}

.case-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.case-card:hover .case-img {
  transform: scale(1.05);
}

.case-content-col {
  padding: clamp(20px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.case-title {
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
}

.case-text {
  font-size: clamp(13px, 1.4vw, 15px);
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 10px;
}

.case-text:last-child {
  margin-bottom: 0;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
  background-color: var(--navy);
  padding: clamp(40px, 8vw, 80px) 20px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: clamp(24px, 3vw, 40px);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.contact-icon {
  margin-bottom: 16px;
}

.contact-heading {
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 20px;
}

.schedule-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.schedule-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.schedule-label {
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
}

.schedule-value {
  font-size: 15px;
  color: var(--text);
}

.schedule-detail {
  font-size: 13px;
  color: var(--medium-gray);
  margin-bottom: 8px;
}

.contact-name {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 8px;
}

.contact-phone {
  display: inline-block;
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  color: var(--teal);
  text-decoration: none;
  transition: color var(--transition);
}

.contact-phone:hover {
  color: var(--navy);
}

/* ===== FOOTER ===== */
.site-footer {
  background-color: var(--teal);
  color: var(--white);
  padding: 30px 0 20px;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-logo {
  max-width: 140px;
  margin-bottom: 4px;
}

.footer-address {
  font-size: 14px;
  opacity: 0.9;
}

.footer-divider {
  width: 60px;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
  margin: 8px 0;
}

.copyright {
  font-size: 13px;
  opacity: 0.7;
}

/* ===== SCROLL REVEAL ===== */
[data-reveal] {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal="up"] {
  transform: translateY(40px);
}

[data-reveal="left"] {
  transform: translateX(-40px);
}

[data-reveal="right"] {
  transform: translateX(40px);
}

[data-reveal="fade"] {
  transform: none;
}

[data-reveal="scale"] {
  transform: scale(0.92);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* ===== RESPONSIVE: TABLET (1024px) ===== */
@media (max-width: 1024px) {
  .team-card {
    grid-template-columns: 1fr;
  }

  .team-photo-col {
    max-height: 400px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

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

  .diagnosis-photo-col {
    max-height: 350px;
  }

  .case-card,
  .case-card-reverse {
    grid-template-columns: 1fr;
  }

  .case-card-reverse .case-img-col {
    order: 0;
  }

  .case-card-reverse .case-content-col {
    order: 0;
  }

  .case-img-col {
    max-height: 260px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ===== RESPONSIVE: MOBILE (768px) ===== */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background-color: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 24px 40px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform var(--transition);
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.3);
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .nav-link {
    font-size: 16px;
    padding: 10px 16px;
    width: 100%;
  }

  .hamburger {
    display: flex;
  }

  .hero-section {
    min-height: 100vh;
    background-attachment: scroll;
  }

  .hero-logo {
    max-width: 240px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .case-card,
  .case-card-reverse {
    grid-template-columns: 1fr;
  }

  .lightbox-prev { left: 8px; padding: 10px; }
  .lightbox-next { right: 8px; padding: 10px; }
}

/* ===== RESPONSIVE: SMALL (480px) ===== */
@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .gallery-item {
    aspect-ratio: 3 / 4;
  }

  .hero-logo {
    max-width: 200px;
  }
}

/* ===== BODY LOCK (mobile menu open) ===== */
body.menu-open {
  overflow: hidden;
}
