/* Canvi Global - Main Styles */

:root {
  --color-primary: #507db8;
  --color-primary-dark: #3d6a9e;
  --color-secondary: #d87200;
  --color-accent: #6f116a;
  --color-text: #333;
  --color-text-light: #666;
  --color-bg: #f9f9fb;
  --color-white: #fff;
  --color-border: #e0e0e8;
  --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-title: 'Cormorant Garamond', Georgia, serif;
  --max-width: 1200px;
  --whatsapp-green: #25d366;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: var(--color-white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.logo img {
  height: 60px;
}

.logo-text {
  font-family: var(--font-title);
  font-size: 1.95rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
}

/* Navigation */
.nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  transition: color 0.3s;
}

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

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s;
}

.menu-icon {
  position: relative;
}

.menu-icon::before,
.menu-icon::after {
  content: '';
  position: absolute;
  left: 0;
}

.menu-icon::before {
  top: -8px;
}

.menu-icon::after {
  top: 8px;
}

.menu-toggle.active .menu-icon {
  background: transparent;
}

.menu-toggle.active .menu-icon::before {
  transform: rotate(45deg);
  top: 0;
}

.menu-toggle.active .menu-icon::after {
  transform: rotate(-45deg);
  top: 0;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(80, 125, 184, 0.85), rgba(80, 125, 184, 0.85)),
              url('../images/hero-bg.jpg') center/cover;
  color: var(--color-white);
  padding: 100px 20px;
  text-align: center;
}

.hero h1 {
  font-family: var(--font-title);
  font-size: 3.25rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 30px;
  opacity: 0.95;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
}

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

.btn-primary:hover {
  background: #c46600;
}

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

.btn-secondary:hover {
  background: var(--color-bg);
}

/* Sections */
.section {
  padding: 80px 20px;
}

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

.section-title {
  font-family: var(--font-title);
  text-align: center;
  font-size: 2.6rem;
  margin-bottom: 50px;
  color: var(--color-primary);
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--color-white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

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

.service-content {
  padding: 25px;
  text-align: center;
}

.service-card h3 {
  font-family: var(--font-title);
  font-size: 1.56rem;
  color: var(--color-primary);
  margin-bottom: 15px;
}

.service-card p {
  color: var(--color-text-light);
  margin-bottom: 20px;
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-image img {
  width: 100%;
  border-radius: 10px;
}

.about-text h2,
.about-text h3 {
  font-family: var(--font-title);
  font-size: 1.95rem;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 15px;
  color: var(--color-text-light);
}

.about-text a {
  color: var(--color-primary);
}

.about-text a:hover {
  color: var(--color-primary-dark);
}

/* Reference Box (for Josep) */
.reference-box {
  background: var(--color-bg);
  border-left: 4px solid var(--color-accent);
  padding: 20px;
  margin-top: 30px;
}

.reference-box h4 {
  font-family: var(--font-title);
  font-size: 1.3rem;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.reference-box p {
  font-size: 0.95rem;
}

/* Booking Section */
.booking-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.btn-booking {
  font-size: 1.2rem;
  padding: 18px 50px;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info h3 {
  font-family: var(--font-title);
  font-size: 1.95rem;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.contact-icon {
  color: var(--color-primary);
  font-size: 1.2rem;
  width: 25px;
  flex-shrink: 0;
}

.contact-item a {
  color: var(--color-text);
  text-decoration: none;
}

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

.map-container {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: none;
}

/* Partner Network */
.partners {
  padding: 40px 20px;
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
}

.partners-title {
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.partners-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.partner-link img {
  height: 50px;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.partner-link:hover img {
  opacity: 1;
}

/* Footer */
.footer {
  background: var(--color-primary-dark);
  color: var(--color-white);
  padding: 40px 20px;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
}

.footer-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.9rem;
}

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

.footer-copy {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: var(--whatsapp-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s, box-shadow 0.3s;
  z-index: 1000;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 35px;
  height: 35px;
  fill: white;
}

/* Therapy Pages */
.therapy-hero {
  background: linear-gradient(rgba(80, 125, 184, 0.7), rgba(80, 125, 184, 0.7)),
              url('../images/hero-bg.jpg') center/cover;
  color: var(--color-white);
  padding: 80px 20px;
  text-align: center;
}

.therapy-hero h1 {
  font-family: var(--font-title);
  font-size: 2.8rem;
  margin-bottom: 20px;
}

.therapy-subtitle {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.95;
}

.therapy-content {
  max-width: 800px;
  margin: 0 auto;
}

.therapy-image {
  margin-bottom: 40px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.therapy-image img {
  width: 100%;
  height: auto;
  display: block;
}

.therapy-block {
  margin-bottom: 40px;
}

.therapy-block h2 {
  font-family: var(--font-title);
  font-size: 1.8rem;
  color: var(--color-primary);
  margin-bottom: 15px;
}

.therapy-block p {
  margin-bottom: 15px;
  color: var(--color-text-light);
}

.therapy-list {
  list-style: none;
  padding: 0;
}

.therapy-list li {
  padding: 10px 0 10px 30px;
  position: relative;
  color: var(--color-text-light);
}

.therapy-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  width: 8px;
  height: 8px;
  background: var(--color-secondary);
  border-radius: 50%;
}

.therapy-cta {
  background: var(--color-bg);
  padding: 40px;
  border-radius: 10px;
  text-align: center;
  margin: 50px 0;
}

.therapy-cta h2 {
  font-family: var(--font-title);
  font-size: 1.8rem;
  color: var(--color-primary);
  margin-bottom: 15px;
}

.therapy-cta p {
  margin-bottom: 25px;
  color: var(--color-text-light);
}

.back-link {
  display: inline-block;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  margin-top: 20px;
}

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

/* Gift Card Section */
.giftcard-section {
  background: linear-gradient(135deg, var(--color-accent) 0%, #8b2086 100%);
  color: var(--color-white);
}

.giftcard-section .section-title {
  color: var(--color-white);
}

.giftcard-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.giftcard-text p {
  margin-bottom: 20px;
  opacity: 0.95;
}

.giftcard-text .btn-primary {
  background: var(--color-white);
  color: var(--color-accent);
}

.giftcard-text .btn-primary:hover {
  background: var(--color-bg);
}

.giftcard-image {
  display: flex;
  justify-content: center;
}

.giftcard-box {
  background: rgba(255,255,255,0.15);
  border: 2px dashed rgba(255,255,255,0.4);
  border-radius: 15px;
  padding: 50px 60px;
  text-align: center;
}

.giftcard-icon {
  font-size: 4rem;
  display: block;
  margin-bottom: 15px;
}

.giftcard-box p {
  font-family: var(--font-title);
  font-size: 1.5rem;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    display: none;
  }

  .nav.active {
    display: block;
  }

  .nav ul {
    flex-direction: column;
    padding: 20px;
    gap: 15px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .about-content,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-image {
    order: -1;
  }

  .partners-grid {
    gap: 25px;
  }

  .partner-link img {
    height: 40px;
  }

  .therapy-hero h1 {
    font-size: 2rem;
  }

  .therapy-cta {
    padding: 25px;
  }

  .giftcard-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .giftcard-image {
    order: -1;
  }

  .giftcard-box {
    padding: 30px 40px;
  }
}
