/*
====================================================================
ETRUSCAFORM THEME - VERSION 2.6 UPDATES
====================================================================
Changelog:
- Team Section v3: Refined pill-to-square hover with colorful backgrounds
- Social icons always visible under expanded cards  
- Modern Services page template with animations
- Improved hover effects and transitions
====================================================================
*/

/* ============================================
   1. TEAM SECTION v3 - REFINED HOVER EFFECT
   ============================================ */

.ef-team-section {
  padding: var(--space-2xl, 5rem) var(--space-md, 1.5rem);
  background: var(--color-warm-white, #faf8f5);
  overflow: hidden;
}

.ef-team-header {
  text-align: center;
  margin-bottom: var(--space-xl, 3.5rem);
}

.ef-team-header .ef-section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--color-secondary, #d07c39);
  margin-bottom: 0.75rem;
}

.ef-team-header h2 {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  color: var(--color-primary, #39110e);
  margin-bottom: 0.5rem;
}

.ef-team-header p {
  color: var(--color-soft-brown, #8b7355);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto;
}

/* Team Grid - Centered Flex Container */
.ef-team-grid {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto;
  min-height: 380px;
  padding: 2rem 0;
}

/* Team Card Wrapper */
.ef-team-card-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* Team Card - PILL Shape by Default */
.ef-team-card {
  position: relative;
  width: 90px;
  height: 280px;
  border-radius: 100px;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  /* Smooth cubic-bezier animation */
  transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Color backgrounds for each card */
.ef-team-card[data-member="1"] { background: linear-gradient(180deg, #E8D5C4 0%, #D4BFA9 100%); }
.ef-team-card[data-member="2"] { background: linear-gradient(180deg, #D4C4B5 0%, #C4B4A5 100%); }
.ef-team-card[data-member="3"] { background: linear-gradient(180deg, #C9B8A8 0%, #B9A898 100%); }
.ef-team-card[data-member="4"] { background: linear-gradient(180deg, #DFD0C3 0%, #CFC0B3 100%); }
.ef-team-card[data-member="5"] { background: linear-gradient(180deg, #E5D8CC 0%, #D5C8BC 100%); }
.ef-team-card[data-member="6"] { background: linear-gradient(180deg, #D9CCC0 0%, #C9BCB0 100%); }
.ef-team-card[data-member="7"] { background: linear-gradient(180deg, #E0D2C5 0%, #D0C2B5 100%); }
.ef-team-card[data-member="8"] { background: linear-gradient(180deg, #D6C9BC 0%, #C6B9AC 100%); }
.ef-team-card[data-member="9"] { background: linear-gradient(180deg, #E3D6CA 0%, #D3C6BA 100%); }
.ef-team-card[data-member="10"] { background: linear-gradient(180deg, #DACDC1 0%, #CABDB1 100%); }
.ef-team-card[data-member="11"] { background: linear-gradient(180deg, #DDD0C4 0%, #CDC0B4 100%); }
.ef-team-card[data-member="12"] { background: linear-gradient(180deg, #D8CBC0 0%, #C8BBB0 100%); }

/* Hover: Expand to Rectangle with rounded corners */
.ef-team-card:hover,
.ef-team-card.active {
  width: 260px;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

/* Card Image - Full Cover */
.ef-team-card__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.ef-team-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ef-team-card:hover .ef-team-card__image img {
  transform: scale(1.02);
}

/* Placeholder */
.ef-team-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ef-team-card__placeholder svg {
  width: 40px;
  height: 40px;
  color: rgba(57, 17, 14, 0.3);
}

/* Gradient Overlay - Subtle bottom gradient for text readability */
.ef-team-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.ef-team-card:hover .ef-team-card__overlay {
  opacity: 1;
}

/* Content - Name & Role at bottom */
.ef-team-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  text-align: left;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition-delay: 0.15s;
}

.ef-team-card:hover .ef-team-card__content {
  transform: translateY(0);
  opacity: 1;
}

/* Name */
.ef-team-card__name {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.2rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
}

/* Role */
.ef-team-card__role {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  display: block;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* Social Links - BELOW the card */
.ef-team-card__social-external {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.4s ease;
  transition-delay: 0.1s;
  height: 0;
  overflow: hidden;
}

.ef-team-card-wrapper:hover .ef-team-card__social-external {
  opacity: 1;
  transform: translateY(0);
  height: auto;
  padding-top: 0.75rem;
}

.ef-team-card__social-external .ef-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary, #39110e);
  color: #ffffff;
  transition: all 0.3s ease;
  text-decoration: none;
}

.ef-team-card__social-external .ef-social-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.ef-team-card__social-external .ef-social-link:hover {
  transform: scale(1.15);
}

/* Social Brand Colors */
.ef-team-card__social-external .ef-social-link--linkedin:hover {
  background: #0077b5;
}

.ef-team-card__social-external .ef-social-link--facebook:hover {
  background: #1877f2;
}

.ef-team-card__social-external .ef-social-link--instagram:hover {
  background: linear-gradient(45deg, #f09433, #dc2743, #bc1888);
}

.ef-team-card__social-external .ef-social-link--email:hover {
  background: var(--color-secondary, #d07c39);
}

/* Hide internal social (old style) */
.ef-team-card__social {
  display: none !important;
}

/* Dark Mode */
[data-theme="dark"] .ef-team-section {
  background: #0a0a0a;
}

[data-theme="dark"] .ef-team-header h2 {
  color: #f5f5f5;
}

[data-theme="dark"] .ef-team-header p {
  color: #a0a0a0;
}

[data-theme="dark"] .ef-team-card__social-external .ef-social-link {
  background: rgba(255, 255, 255, 0.15);
}

/* Responsive */
@media (max-width: 992px) {
  .ef-team-grid {
    flex-wrap: wrap;
    gap: 1.5rem 1rem;
    min-height: auto;
    padding: 1rem 0;
  }
  
  .ef-team-card {
    width: 70px;
    height: 220px;
    border-radius: 80px;
  }
  
  .ef-team-card:hover {
    width: 200px;
    border-radius: 20px;
  }
  
  .ef-team-card__name {
    font-size: 1.3rem;
  }
  
  .ef-team-card__role {
    font-size: 0.8rem;
  }
}

@media (max-width: 576px) {
  .ef-team-grid {
    gap: 1rem 0.5rem;
  }
  
  .ef-team-card {
    width: 55px;
    height: 180px;
    border-radius: 60px;
  }
  
  .ef-team-card:hover {
    width: 160px;
    border-radius: 16px;
  }
  
  .ef-team-card__content {
    padding: 1rem;
  }
  
  .ef-team-card__name {
    font-size: 1.1rem;
  }
  
  .ef-team-card__role {
    font-size: 0.75rem;
  }
  
  .ef-team-card__social-external .ef-social-link {
    width: 32px;
    height: 32px;
  }
  
  .ef-team-card__social-external .ef-social-link svg {
    width: 14px;
    height: 14px;
  }
}

/* ============================================
   2. SERVICES PAGE - MODERN TEMPLATE
   ============================================ */

/* Hero Section */
.ef-services-hero-v2 {
  position: relative;
  padding: 8rem 0 6rem;
  background: linear-gradient(135deg, var(--color-primary, #39110e) 0%, #5a2820 50%, #39110e 100%);
  overflow: hidden;
}

.ef-services-hero-v2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.ef-services-hero-v2 .ef-container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.ef-services-hero-v2 .ef-section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-secondary, #d07c39);
  margin-bottom: 1rem;
  padding: 0.5rem 1.5rem;
  border: 1px solid rgba(208, 124, 57, 0.3);
  border-radius: 30px;
}

.ef-services-hero-v2 h1 {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.ef-services-hero-v2 p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Animated decoration */
.ef-services-hero-v2 .hero-decoration {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 1px solid rgba(208, 124, 57, 0.2);
  pointer-events: none;
}

.ef-services-hero-v2 .hero-decoration--1 {
  top: -200px;
  right: -100px;
  animation: float 20s infinite ease-in-out;
}

.ef-services-hero-v2 .hero-decoration--2 {
  bottom: -150px;
  left: -100px;
  width: 300px;
  height: 300px;
  animation: float 15s infinite ease-in-out reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(10px, -10px) rotate(2deg); }
  50% { transform: translate(0, -20px) rotate(0deg); }
  75% { transform: translate(-10px, -10px) rotate(-2deg); }
}

/* Services Main Grid */
.ef-services-main-v2 {
  padding: 5rem 0;
  background: var(--color-warm-white, #faf8f5);
}

.ef-services-grid-v2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* Modern Service Card */
.ef-service-card-v2 {
  position: relative;
  background: #ffffff;
  border-radius: 24px;
  padding: 2.5rem;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.ef-service-card-v2:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(57, 17, 14, 0.15);
}

/* Large number background */
.ef-service-card-v2__number {
  position: absolute;
  top: -20px;
  right: 20px;
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: 8rem;
  font-weight: 700;
  color: rgba(208, 124, 57, 0.08);
  line-height: 1;
  pointer-events: none;
  transition: color 0.4s ease;
}

.ef-service-card-v2:hover .ef-service-card-v2__number {
  color: rgba(208, 124, 57, 0.15);
}

/* Icon */
.ef-service-card-v2__icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--color-secondary, #d07c39) 0%, #e8a060 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: #ffffff;
  transition: all 0.4s ease;
}

.ef-service-card-v2:hover .ef-service-card-v2__icon {
  transform: scale(1.1) rotate(-5deg);
}

.ef-service-card-v2__icon svg {
  width: 32px;
  height: 32px;
}

/* Title */
.ef-service-card-v2 h3 {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--color-primary, #39110e);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

/* Description */
.ef-service-card-v2 > p {
  color: var(--color-soft-brown, #8b7355);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

/* Features List */
.ef-service-features-v2 {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.ef-service-features-v2 li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-primary, #39110e);
}

.ef-service-features-v2 li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-secondary, #d07c39);
  flex-shrink: 0;
}

/* Link */
.ef-service-link-v2 {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--color-secondary, #d07c39);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.ef-service-link-v2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-secondary, #d07c39);
  transition: width 0.3s ease;
}

.ef-service-link-v2:hover::after {
  width: 100%;
}

.ef-service-link-v2 svg {
  transition: transform 0.3s ease;
}

.ef-service-link-v2:hover svg {
  transform: translateX(5px);
}

/* Why Choose Us - Modern */
.ef-services-why-v2 {
  padding: 5rem 0;
  background: var(--color-primary, #39110e);
  position: relative;
  overflow: hidden;
}

.ef-services-why-v2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at top right, rgba(208, 124, 57, 0.15) 0%, transparent 50%);
}

.ef-why-header-v2 {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.ef-why-header-v2 .ef-section-tag {
  color: var(--color-secondary, #d07c39);
}

.ef-why-header-v2 h2 {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 500;
  color: #ffffff;
}

.ef-why-grid-v2 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.ef-why-item-v2 {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s ease;
}

.ef-why-item-v2:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
}

.ef-why-icon-v2 {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.25rem;
  background: var(--color-secondary, #d07c39);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.ef-why-icon-v2 svg {
  width: 28px;
  height: 28px;
}

.ef-why-item-v2 h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.ef-why-item-v2 p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

/* CTA Section - Modern */
.ef-services-cta-v2 {
  padding: 5rem 0;
  background: var(--color-warm-white, #faf8f5);
}

.ef-cta-box-v2 {
  background: linear-gradient(135deg, #ffffff 0%, #faf8f5 100%);
  border-radius: 32px;
  padding: 4rem;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.ef-cta-box-v2::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(208, 124, 57, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.ef-cta-box-v2 h2 {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 500;
  color: var(--color-primary, #39110e);
  margin-bottom: 1rem;
  position: relative;
}

.ef-cta-box-v2 > p {
  color: var(--color-soft-brown, #8b7355);
  font-size: 1.15rem;
  max-width: 500px;
  margin: 0 auto 2rem;
  position: relative;
}

.ef-cta-buttons-v2 {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* Dark Mode Services */
[data-theme="dark"] .ef-services-main-v2 {
  background: #0a0a0a;
}

[data-theme="dark"] .ef-service-card-v2 {
  background: #1a1a1a;
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .ef-service-card-v2 h3 {
  color: #f5f5f5;
}

[data-theme="dark"] .ef-service-card-v2 > p {
  color: #a0a0a0;
}

[data-theme="dark"] .ef-service-features-v2 li {
  color: #d0d0d0;
}

[data-theme="dark"] .ef-services-cta-v2 {
  background: #0a0a0a;
}

[data-theme="dark"] .ef-cta-box-v2 {
  background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .ef-cta-box-v2 h2 {
  color: #f5f5f5;
}

[data-theme="dark"] .ef-cta-box-v2 > p {
  color: #a0a0a0;
}

/* Responsive Services */
@media (max-width: 992px) {
  .ef-services-grid-v2 {
    grid-template-columns: 1fr;
  }
  
  .ef-why-grid-v2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .ef-services-hero-v2 {
    padding: 5rem 0 4rem;
  }
  
  .ef-service-card-v2 {
    padding: 2rem;
  }
  
  .ef-service-card-v2__number {
    font-size: 5rem;
  }
  
  .ef-service-features-v2 {
    grid-template-columns: 1fr;
  }
  
  .ef-why-grid-v2 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .ef-cta-box-v2 {
    padding: 2.5rem 1.5rem;
  }
}

/* ============================================
   3. ACCESSIBILITY
   ============================================ */

/* Focus states */
.ef-team-card:focus-visible,
.ef-service-card-v2:focus-visible,
.ef-service-link-v2:focus-visible,
.ef-team-card__social-external .ef-social-link:focus-visible {
  outline: 3px solid var(--color-secondary, #d07c39);
  outline-offset: 3px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ef-team-card,
  .ef-team-card__image img,
  .ef-service-card-v2,
  .ef-service-card-v2__icon,
  .ef-why-item-v2,
  .ef-team-card__social-external,
  .ef-services-hero-v2 .hero-decoration {
    transition: none;
    animation: none;
  }
}
