/* ==========================================================================
   ExotenVet Main Stylesheet
   ========================================================================== */

@import url('variables.css');

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,500&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,600;12..96,700&display=swap');

/* ==========================================================================
   BASE RESET & DEFAULTS
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--font-regular);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-off-white);
  overflow-x: hidden;
}

/* Selection */
::selection {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* Focus States */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--font-medium);
  line-height: var(--leading-tight);
  color: var(--color-text);
}

h1 {
  font-size: var(--text-5xl);
  font-weight: var(--font-light);
  letter-spacing: var(--tracking-tight);
}

h2 {
  font-size: var(--text-4xl);
  font-weight: var(--font-regular);
}

h3 {
  font-size: var(--text-3xl);
  font-weight: var(--font-medium);
}

h4 {
  font-size: var(--text-2xl);
}

h5 {
  font-size: var(--text-xl);
  font-family: var(--font-body);
  font-weight: var(--font-semibold);
}

h6 {
  font-size: var(--text-lg);
  font-family: var(--font-body);
  font-weight: var(--font-semibold);
}

p {
  margin-bottom: var(--space-4);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--color-primary-dark);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-smooth);
}

a:hover {
  color: var(--color-primary);
}

strong, b {
  font-weight: var(--font-semibold);
}

small {
  font-size: var(--text-sm);
}

/* Lead Text */
.lead {
  font-size: var(--text-xl);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
}

/* Label Text */
.label {
  font-family: var(--font-accent);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */

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

.container--narrow {
  max-width: var(--container-narrow);
}

.container--wide {
  max-width: var(--container-wide);
}

section {
  padding: var(--section-gap) 0;
}

/* Grid */
.grid {
  display: grid;
  gap: var(--space-8);
}

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

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

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

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Flex Utilities */
.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  font-family: var(--font-accent);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  text-decoration: none;
  border: var(--border-width-thick) solid transparent;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-smooth);
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
  color: var(--color-white);
}

.btn--secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn--secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn--outline {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn--outline:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

.btn--accent {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

.btn--accent:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: var(--color-white);
}

.btn--large {
  padding: var(--space-5) var(--space-10);
  font-size: var(--text-base);
}

.btn--small {
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-xs);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  background: rgba(250, 249, 247, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: all var(--duration-normal) var(--ease-smooth);
}

.header.scrolled {
  background: rgba(250, 249, 247, 0.98);
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
  transition: height var(--duration-normal) var(--ease-smooth);
}

.header.scrolled .header__inner {
  height: 70px;
}

.header__logo {
  display: flex;
  align-items: center;
}

.header__logo img {
  height: 50px;
  width: auto;
  transition: height var(--duration-normal) var(--ease-smooth);
}

.header.scrolled .header__logo img {
  height: 40px;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-10);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}

.nav__link {
  position: relative;
  font-family: var(--font-accent);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  letter-spacing: var(--tracking-wide);
  color: var(--color-text);
  text-decoration: none;
  padding: var(--space-2) 0;
  transition: color var(--duration-fast) var(--ease-smooth);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--duration-normal) var(--ease-out-expo);
}

.nav__link:hover,
.nav__link.active {
  color: var(--color-primary);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

/* ============================================
   NAVIGATION DROPDOWN - Sjöstrand-Inspired Design
   Full-width mega-menu with elegant transitions
   ============================================ */

.nav__item {
  position: static;
}

.nav__item--dropdown {
  position: static;
}

.nav__item--dropdown > .nav__link {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav__dropdown-icon {
  width: 12px;
  height: 12px;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  opacity: 0.7;
}

.nav__item--dropdown:hover .nav__dropdown-icon,
.nav__item--dropdown.active .nav__dropdown-icon {
  transform: rotate(180deg);
  opacity: 1;
}

/* Full-width Mega Dropdown Container */
.nav__dropdown {
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  width: 100vw;
  display: flex;
  justify-content: center;
  padding: var(--space-10) 0 var(--space-12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition:
    opacity 0.35s cubic-bezier(0.23, 1, 0.32, 1),
    transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
    visibility 0s 0.35s;
  z-index: calc(var(--z-fixed) + 10);
  background: linear-gradient(
    180deg,
    rgba(250, 249, 247, 0.98) 0%,
    rgba(250, 249, 247, 0.96) 100%
  );
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(149, 193, 31, 0.08);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.04),
    0 2px 8px rgba(0, 0, 0, 0.02);
}

/* Subtle top border accent */
.nav__dropdown::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(149, 193, 31, 0.2) 20%,
    rgba(149, 193, 31, 0.3) 50%,
    rgba(149, 193, 31, 0.2) 80%,
    transparent 100%
  );
}

/* Decorative background pattern */
.nav__dropdown::after {
  content: '';
  position: absolute;
  top: 0;
  right: 10%;
  width: 300px;
  height: 100%;
  background: radial-gradient(
    ellipse at center,
    rgba(149, 193, 31, 0.03) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.nav__item--dropdown:hover .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition:
    opacity 0.35s cubic-bezier(0.23, 1, 0.32, 1),
    transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
    visibility 0s 0s;
}

/* Inner content wrapper */
.nav__dropdown-inner {
  display: flex;
  align-items: flex-start;
  gap: var(--space-16);
  max-width: 1200px;
  width: 100%;
  padding: 0 var(--space-8);
}

/* Links Section */
.nav__dropdown-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

/* Section Header */
.nav__dropdown-header {
  font-family: var(--font-accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
  opacity: 0;
  transform: translateY(-8px);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0.1s;
}

.nav__item--dropdown:hover .nav__dropdown-header {
  opacity: 1;
  transform: translateY(0);
}

/* Navigation Links */
.nav__dropdown-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.nav__dropdown-link {
  position: relative;
  display: flex;
  align-items: center;
  padding: var(--space-3) 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    color 0.25s ease,
    opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1),
    transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.nav__dropdown-link:nth-child(1) { transition-delay: 0.12s; }
.nav__dropdown-link:nth-child(2) { transition-delay: 0.18s; }
.nav__dropdown-link:nth-child(3) { transition-delay: 0.24s; }

.nav__item--dropdown:hover .nav__dropdown-link {
  opacity: 1;
  transform: translateY(0);
}

/* Link hover accent line */
.nav__dropdown-link::before {
  content: '';
  position: absolute;
  left: -16px;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 2px;
  height: 20px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.nav__dropdown-link:hover::before {
  transform: translateY(-50%) scaleY(1);
}

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

/* Link arrow icon */
.nav__dropdown-link::after {
  content: '→';
  margin-left: var(--space-3);
  font-size: 14px;
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.25s cubic-bezier(0.23, 1, 0.32, 1);
}

.nav__dropdown-link:hover::after {
  opacity: 0.6;
  transform: translateX(0);
}

.nav__dropdown-link.active {
  color: var(--color-primary);
  font-weight: 500;
}

.nav__dropdown-link.active::before {
  transform: translateY(-50%) scaleY(1);
  background: var(--color-primary);
}

/* Dropdown Feature Cards - Right Side (Image Cards) */
.nav__dropdown-features {
  display: flex;
  gap: var(--space-4);
  margin-left: auto;
  padding-left: var(--space-8);
  border-left: 1px solid rgba(149, 193, 31, 0.12);
}

.nav__dropdown-card {
  display: block;
  width: 160px;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-lg);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
  transition:
    opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1),
    transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 0.3s ease;
  box-shadow: 0 4px 16px rgba(45, 42, 38, 0.08);
}

.nav__dropdown-card:nth-child(1) { transition-delay: 0.15s; }
.nav__dropdown-card:nth-child(2) { transition-delay: 0.22s; }

.nav__item--dropdown:hover .nav__dropdown-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.nav__dropdown-card:hover {
  box-shadow: 0 8px 24px rgba(45, 42, 38, 0.15);
  transform: translateY(-4px) scale(1.02);
}

.nav__dropdown-card__image {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.nav__dropdown-card:hover .nav__dropdown-card__image {
  transform: scale(1.05);
}

.nav__dropdown-card__caption {
  padding: var(--space-2) var(--space-3);
  background: var(--color-cream);
  text-align: center;
}

.nav__dropdown-card__title {
  font-family: var(--font-accent);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  color: var(--color-secondary-dark);
  margin: 0;
  letter-spacing: 0.02em;
}

/* Hide features on smaller screens */
@media (max-width: 1100px) {
  .nav__dropdown-features {
    display: none;
  }
}

/* Mobile Menu Toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: var(--space-2);
  background: none;
  border: none;
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--color-text);
  transition: all var(--duration-normal) var(--ease-smooth);
}

@media (max-width: 968px) {
  .nav__toggle {
    display: flex;
    z-index: var(--z-modal);
  }

  .nav__cta {
    display: none !important;
  }

  .nav__list {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(400px, 85vw);
    height: 100vh;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-6);
    padding: 120px var(--space-8) var(--space-8);
    background-color: #FFFFFF;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform var(--duration-slow) var(--ease-out-expo);
    z-index: 200;
    overflow-y: auto;
  }

  .nav__list.open {
    transform: translateX(0);
  }

  .nav__link {
    font-size: var(--text-xl);
    width: 100%;
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--color-border);
  }

  .nav__link:last-child {
    border-bottom: none;
  }

  /* Mobile Dropdown */
  .nav__item {
    width: 100%;
    position: relative;
  }

  .nav__item--dropdown > .nav__link::after {
    display: none;
  }

  /* Mobile Dropdown - always visible in mobile menu */
  .nav__dropdown {
    display: block;
    position: static;
    transform: none;
    min-width: 100%;
    padding: 0;
    background: var(--color-cream);
    border-radius: 0;
    box-shadow: none;
    border-bottom: none;
    opacity: 1;
    visibility: visible;
    margin-top: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    flex-direction: column;
    gap: 0;
    justify-content: flex-start;
  }

  .nav__dropdown-link {
    display: block;
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-lg);
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
  }

  .nav__dropdown-link:last-child {
    border-bottom: none;
  }

  .nav__dropdown-icon {
    display: none;
  }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-secondary-dark);
}

.hero__background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 85% center;
  opacity: 0.85;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(45, 42, 38, 0.7) 0%,
    rgba(45, 42, 38, 0.3) 50%,
    rgba(149, 193, 31, 0.2) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding-top: var(--space-24);
}

.hero__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  padding: var(--space-2) var(--space-4);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-full);
  color: var(--color-white);
  font-family: var(--font-accent);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
}

.hero__label svg {
  width: 16px;
  height: 16px;
  fill: var(--color-primary);
}

.hero__title {
  color: var(--color-white);
  margin-bottom: var(--space-6);
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.3);
}

.hero__title span {
  color: var(--color-primary);
}

.hero__subtitle {
  font-size: var(--text-xl);
  line-height: var(--leading-relaxed);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-10);
  max-width: 550px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* Scroll Indicator */
.hero__scroll {
  position: absolute;
  bottom: var(--space-10);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-white);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  opacity: 0.7;
  animation: float 3s ease-in-out infinite;
}

.hero__scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--color-white), transparent);
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

@media (max-width: 768px) {
  .hero {
    min-height: 90vh;
  }

  .hero__content {
    padding-top: var(--space-20);
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__scroll {
    display: none;
  }
}

/* ==========================================================================
   INTRO SECTION
   ========================================================================== */

.intro {
  background: var(--color-white);
}

.intro__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.intro__image-wrapper {
  position: relative;
}

.intro__image {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
}

.intro__image-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: var(--color-primary);
  border-radius: var(--radius-2xl);
  z-index: -1;
}

.intro__content {
  padding: var(--space-8) 0;
}

.intro__label {
  display: block;
  margin-bottom: var(--space-4);
}

.intro__title {
  margin-bottom: var(--space-6);
}

.intro__text {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
}

.intro__signature {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}

.intro__signature-avatar {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 3px solid var(--color-primary-light);
}

.intro__signature-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--font-medium);
  color: var(--color-text);
}

.intro__signature-title {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

@media (max-width: 968px) {
  .intro__inner {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .intro__image-wrapper {
    order: -1;
  }
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */

.services {
  background: var(--color-cream);
  position: relative;
  overflow: hidden;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-primary-subtle), transparent);
  pointer-events: none;
}

.services__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-16);
}

.services__label {
  display: block;
  margin-bottom: var(--space-4);
}

.services__title {
  margin-bottom: var(--space-4);
}

.services__subtitle {
  color: var(--color-text-secondary);
}

/* Service Cards */
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.service-card {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-slow) var(--ease-out-expo);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.service-card__image-wrapper {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
}

.service-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slower) var(--ease-out-expo);
}

.service-card:hover .service-card__image {
  transform: scale(1.08);
}

.service-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(45, 42, 38, 0.8) 0%,
    rgba(45, 42, 38, 0) 60%
  );
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-smooth);
}

.service-card:hover .service-card__overlay {
  opacity: 1;
}

.service-card__content {
  padding: var(--space-6);
}

.service-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-4);
  background: var(--color-primary-subtle);
  border-radius: var(--radius-lg);
  color: var(--color-primary);
  transition: all var(--duration-normal) var(--ease-smooth);
}

.service-card:hover .service-card__icon {
  background: var(--color-primary);
  color: var(--color-white);
}

.service-card__icon svg {
  width: 24px;
  height: 24px;
}

.service-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--font-medium);
  margin-bottom: var(--space-2);
}

.service-card__description {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-accent);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-primary);
  transition: gap var(--duration-normal) var(--ease-smooth);
}

.service-card__link:hover {
  gap: var(--space-3);
}

.service-card__link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--duration-normal) var(--ease-smooth);
}

.service-card:hover .service-card__link svg {
  transform: translateX(4px);
}

@media (max-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .services__grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   EMERGENCY / NOTDIENST SECTION
   ========================================================================== */

.emergency {
  background: linear-gradient(135deg, #c0392b 0%, #922b21 50%, #7b241c 100%);
  color: var(--color-white);
  padding: var(--space-16) 0;
  position: relative;
  overflow: hidden;
}

.emergency::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0, 0, 0, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

.emergency::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 40%;
  height: 200%;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.05));
  transform: rotate(15deg);
  pointer-events: none;
}

.emergency__inner {
  display: flex;
  align-items: center;
  gap: var(--space-10);
  position: relative;
  z-index: 1;
}

.emergency__badge {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-6);
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  animation: pulse-emergency 2s ease-in-out infinite;
}

@keyframes pulse-emergency {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
  }
  50% {
    box-shadow: 0 0 20px 10px rgba(255, 255, 255, 0.1);
  }
}

.emergency__badge svg {
  width: 48px;
  height: 48px;
  fill: var(--color-white);
}

.emergency__badge span {
  font-family: var(--font-accent);
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.emergency__content {
  flex: 1;
}

.emergency__title {
  color: var(--color-white);
  font-size: var(--text-3xl);
  margin-bottom: var(--space-3);
}

.emergency__text {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-lg);
  margin-bottom: var(--space-6);
  max-width: 600px;
}

.emergency__text strong {
  color: var(--color-white);
}

.emergency__info {
  display: flex;
  gap: var(--space-8);
  margin-bottom: var(--space-6);
}

.emergency__info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.emergency__info-item svg {
  width: 24px;
  height: 24px;
  fill: rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
  margin-top: 2px;
}

.emergency__info-item strong {
  display: block;
  color: var(--color-white);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  margin-bottom: 2px;
}

.emergency__info-item span {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--text-sm);
}

.btn--emergency {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  background: var(--color-white);
  color: #c0392b;
  font-family: var(--font-accent);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn--emergency:hover {
  background: var(--color-off-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn--emergency svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 768px) {
  .emergency {
    padding: var(--space-10) 0;
  }

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

  .emergency__badge {
    flex-direction: row;
    padding: var(--space-3) var(--space-5);
  }

  .emergency__badge svg {
    width: 32px;
    height: 32px;
  }

  .emergency__title {
    font-size: var(--text-2xl);
  }

  .emergency__text {
    font-size: var(--text-base);
  }

  .emergency__info {
    flex-direction: column;
    gap: var(--space-4);
    align-items: center;
  }

  .emergency__info-item {
    justify-content: center;
  }
}

/* ==========================================================================
   NOTICE BANNER
   ========================================================================== */

.notice {
  background: var(--color-secondary-dark);
  color: var(--color-white);
  padding: var(--space-12) 0;
}

.notice__inner {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.notice__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
}

.notice__icon svg {
  width: 32px;
  height: 32px;
  fill: var(--color-primary);
}

.notice__content h3 {
  color: var(--color-white);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
}

.notice__content p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0;
}

.notice__address {
  margin-top: var(--space-4);
  padding: var(--space-4);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
}

.notice__address strong {
  display: block;
  color: var(--color-primary);
  margin-bottom: var(--space-1);
}

@media (max-width: 768px) {
  .notice__inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   IMAGE SLIDER SECTION
   ========================================================================== */

.gallery {
  background: var(--color-white);
  overflow: hidden;
}

.gallery__header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.gallery__slider {
  display: flex;
  gap: var(--space-4);
  animation: scroll 40s linear infinite;
}

.gallery__slide {
  flex-shrink: 0;
  width: 350px;
  height: 450px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slower) var(--ease-smooth);
}

.gallery__slide:hover img {
  transform: scale(1.05);
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.gallery__slider:hover {
  animation-play-state: paused;
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */

.cta {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta__inner {
  position: relative;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta__title {
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.cta__text {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-8);
}

.cta__buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  background: var(--color-text);
  color: var(--color-white);
  padding: var(--space-16) 0 var(--space-8);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer__brand {
  max-width: 300px;
}

.footer__logo {
  height: 45px;
  margin-bottom: var(--space-6);
  filter: brightness(0) invert(1);
}

.footer__tagline {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

.footer__title {
  font-family: var(--font-accent);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-6);
}

.footer__list {
  list-style: none;
}

.footer__list li {
  margin-bottom: var(--space-3);
}

.footer__list a {
  position: relative;
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-sm);
  transition: color var(--duration-fast) var(--ease-smooth);
}

.footer__list a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-primary);
  transition: width var(--duration-normal) var(--ease-out-expo);
}

.footer__list a:hover {
  color: var(--color-primary);
}

.footer__list a:hover::after {
  width: 100%;
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-sm);
}

.footer__contact-item svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  fill: var(--color-primary);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__copyright {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
}

.footer__legal {
  display: flex;
  gap: var(--space-6);
}

.footer__legal a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
}

.footer__legal a:hover {
  color: var(--color-white);
}

@media (max-width: 968px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__brand {
    grid-column: span 2;
    max-width: none;
    margin-bottom: var(--space-6);
  }
}

@media (max-width: 600px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer__brand {
    grid-column: span 1;
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

/* Fade In Up */
.animate-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--duration-slow) var(--ease-out-expo);
}

.animate-fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger Children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0ms; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 100ms; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 200ms; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 300ms; }

.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
  transition: all var(--duration-slow) var(--ease-out-expo);
}

/* Scale In */
.animate-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: all var(--duration-slow) var(--ease-out-expo);
}

.animate-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.text-accent { color: var(--color-accent); }
.text-muted { color: var(--color-text-muted); }

.bg-white { background-color: var(--color-white); }
.bg-cream { background-color: var(--color-cream); }
.bg-primary { background-color: var(--color-primary); }

.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }

.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }

.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;
}
