:root {
  --primary-color: #0F4C5C;
  /* Deep Teal - Professional & Calming */
  --secondary-color: #9A8C98;
  /* Muted Purple/Grey - Balance */
  --accent-color: #E36414;
  /* Warm Orange - Calls to Action (Subtle) */
  --text-dark: #2F3E46;
  --text-light: #F8F9FA;
  --bg-light: #F8F9FA;
  --bg-white: #FFFFFF;
  --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  /* Increased opacity from 0.05 to 0.1 */
  --section-padding: 80px 0;
  --font-main: 'Inter', sans-serif;
  --transition: all 0.3s ease;
}

/* Accessibility: Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent-color);
  color: white;
  padding: 8px;
  z-index: 2000;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* Accessibility: Focus Indicators */
:focus-visible {
  outline: 3px solid var(--accent-color);
  outline-offset: 2px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--bg-light);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
  line-height: 1.2;
}

h2 {
  font-size: 2.25rem;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--accent-color);
  margin: 1rem auto 0;
  border-radius: 2px;
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--accent-color);
  color: #fff;
}

.btn-primary:hover {
  background-color: #c5530e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(227, 100, 20, 0.3);
}

.btn-outline {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: #fff;
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 15px 0;
  transition: all 0.4s ease;
}

header.scrolled {
  padding: 8px 0;
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 40px;
  /* Adjust based on preference */
  width: auto;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
  /* Critical for alignment */
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: var(--transition);
  position: relative;
  display: flex;
  /* Helps with alignment if icons are added later */
  align-items: center;
}

/* .nav-links li:last-child a { } */

.nav-links a:hover {
  color: var(--primary-color);
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent-color);
  transition: width 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 1.5rem;
  /* Match previous size */
  color: var(--text-dark);
  /* Ensure visibility */
  padding: 5px;
}

/* Hero Section */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(15, 76, 92, 0.8), rgba(15, 76, 92, 0.6));
  background-attachment: fixed;
  /* Parallax effect */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding-top: 60px;
  position: relative;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.4;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  color: #fff;
  margin-bottom: 1.5rem;
  animation: fadeUp 1s ease-out;
}

.hero-content p {
  font-size: 1.3rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  opacity: 0.9;
  animation: fadeUp 1.2s ease-out;
}

.hero-actions {
  animation: fadeUp 1.4s ease-out;
}

.btn-primary {
  /* ... existing styles ... */
  background-color: var(--accent-color);
  color: #fff;
  /* Add pulse animation to primary buttons, specifically useful in Hero */
}

.hero .btn-primary {
  animation: pulse 2s infinite;
}

/* Services Highlight (Cards) */
.services-highlight {
  padding: var(--section-padding);
  background-color: #f2f6f8;
  /* Changed from var(--bg-white) for contrast */
  position: relative;
  z-index: 2;
  /* Sit on top of parallax */
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background: #fff;
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  /* Bouncy transition */
  border-top: 4px solid transparent;
  border: 1px solid rgba(0, 0, 0, 0.05);
  /* Added subtle border */
}

.service-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-top-color: var(--accent-color);
  /* Changed to accent for more 'alive' feel */
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

/* About Section */
.about {
  padding: var(--section-padding);
  background-color: #f0f4f5;
}

.about-container {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-img {
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.about-img img {
  width: 100%;
  height: auto;
  display: block;
}

.about-text {
  flex: 1;
}

/* Core Service: Hypnosis Detailed */
.hypnosis-detailed {
  padding: var(--section-padding);
  background-color: #f2f6f8;
  /* Changed from var(--bg-white) for contrast */
}

.conditions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 50px;
}

.condition-item {
  background: #fff;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  /* Centered for better card look */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  /* Soft shadow */
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}

.condition-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary-color);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

.condition-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.condition-item:hover::before {
  transform: scaleX(1);
}

.condition-item h3 {
  font-size: 1.35rem;
  margin-bottom: 15px;
  color: var(--primary-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.condition-item h3 i {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 5px;
  background: rgba(227, 100, 20, 0.1);
  padding: 15px;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Other Services & Training */
.other-services {
  padding: var(--section-padding);
  background-color: #f0f4f5;
}

.training {
  padding: var(--section-padding);
  background-color: var(--bg-white);
}

.training-card {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.training-info h3 {
  margin-bottom: 0.5rem;
}

.price-tag {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-color);
}

/* Partners */
.partners {
  padding: 60px 0;
  background-color: #fff;
  text-align: center;
  border-bottom: 1px solid #eee;
}

.partners h3 {
  /* Increase contrast from #999 to #757575 or darker */
  color: #757575 !important;
}

.partners-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 50px;
  margin-top: 40px;
  align-items: center;
}

.partner-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  opacity: 0.7;
  transition: var(--transition);
  text-decoration: none;

}

.partner-item:hover {
  opacity: 1;
  transform: scale(1.05);
}

.partner-item img {
  width: 150px;
  /* Fixed width */
  height: 100px;
  /* Fixed height */
  border-radius: 8px;
  /* Optional: adds a soft look */
  object-fit: contain;
  /* Ensures logo fits within box without distortion */
  filter: none;
  /* Removed grayscale */
  transition: var(--transition);
  background-color: white;
}

.partner-item:hover img {
  transform: scale(1.05);
  /* Slight zoom on hover instead of color change */
}

.partner-item span {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 1.1rem;
}

/* Contact */
.contact {
  padding: var(--section-padding);
  background-color: var(--primary-color);
  color: white;
}

.contact h2 {
  color: white;
}

.contact h2::after {
  background-color: white;
}

.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.contact-info {
  flex: 1;
  min-width: 300px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  /* Aligns icon to top of text block */
  gap: 20px;
  margin-bottom: 2.5rem;
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--accent-color);
  margin-top: 5px;
  /* Slight offset to align with first line of text text-optically */
  width: 30px;
  /* Fixed width to align text column */
  text-align: center;
}

.contact-item h4 {
  margin-bottom: 5px;
  font-size: 1.1rem;
  color: var(--secondary-color);
}

.contact-item p {
  margin-bottom: 0;
  opacity: 0.9;
}

.map {
  flex: 1;
  min-width: 300px;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
  background: #eee;
}

footer {
  background-color: #263238;
  color: #adb5bd;
  text-align: center;
  padding: 30px 0;
  font-size: 0.9rem;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(227, 100, 20, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(227, 100, 20, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(227, 100, 20, 0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
  }

  .nav-links.active {
    display: flex;
  }

  /* Improved Mobile Button Spacing */
  .hero-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .contact-wrapper {
    flex-direction: column;
  }

  .hamburger {
    display: block;
    font-size: 1.8rem;
    color: var(--primary-color);
  }
}