/**
 * Vivologix Custom Styles
 * Glass morphism and additional effects not supported by theme.json
 */

/* ================================
   Body & Background
   ================================ */
html body,
body.wp-embed-responsive {
  background: linear-gradient(to bottom right, #0f172a, #1e3a8a, #1e40af) !important;
  background-attachment: fixed;
  min-height: 100vh;
}

.wp-site-blocks {
  background: transparent !important;
}

/* ================================
   Glass Morphism Effects
   ================================ */
.glass-header,
.is-style-glass,
.wp-block-group.is-style-glass {
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Service Card Style */
.service-card,
.feature-card,
.is-style-service-card,
.wp-block-group.is-style-service-card {
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 1rem;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.1), 0 0 60px rgba(59, 130, 246, 0.05);
}

.service-card:hover,
.feature-card:hover,
.is-style-service-card:hover {
  box-shadow: 0 4px 20px rgba(34, 211, 238, 0.15), 0 0 40px rgba(59, 130, 246, 0.1);
  border-color: rgba(34, 211, 238, 0.3) !important;
}

/* Equal height feature cards */
.wp-block-columns:has(.service-card) {
  align-items: stretch;
}

.wp-block-column:has(.service-card) {
  display: flex;
}

.wp-block-group.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.wp-block-group.service-card > p:last-of-type {
  flex-grow: 1;
}

/* Contact section - natural heights (each card sizes to content) */
#contact .wp-block-columns {
  align-items: flex-start;
}

#contact .wp-block-column {
  display: block;
}

#contact .wp-block-group.service-card {
  height: auto;
  width: 100%;
}

/* Service Detail Card */
.service-detail-card {
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 1rem;
}

/* Equal height for service detail cards (Services section) */
.detailed-services-section .wp-block-columns {
  align-items: stretch;
}

.detailed-services-section .wp-block-column {
  display: flex;
}

.detailed-services-section .service-detail-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

/* Make the list expand to fill remaining space */
.detailed-services-section .service-detail-card .wp-block-list {
  flex-grow: 1;
}

/* ================================
   Header Styles
   ================================ */
.glass-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* ================================
   Navigation
   ================================ */
.wp-block-navigation a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s ease;
}

.wp-block-navigation a:hover {
  color: #22d3ee;
}

/* ================================
   Buttons
   ================================ */
.wp-block-button__link {
  background: linear-gradient(90deg, #22d3ee, #3b82f6) !important;
  border-radius: 9999px !important;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(34, 211, 238, 0.3);
}

/* Outline button style */
.is-style-outline .wp-block-button__link {
  background: transparent !important;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.is-style-outline .wp-block-button__link:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.5);
}

/* ================================
   Icons (Icon Block Plugin)
   ================================ */
.wp-block-outermost-icon-block {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.wp-block-outermost-icon-block svg {
  stroke-width: 2;
}

/* Icon colors */
.icon-cyan svg,
.wp-block-outermost-icon-block.icon-cyan svg {
  color: #22d3ee;
  stroke: #22d3ee;
}

.icon-blue svg,
.wp-block-outermost-icon-block.icon-blue svg {
  color: #3b82f6;
  stroke: #3b82f6;
}

.icon-indigo svg,
.wp-block-outermost-icon-block.icon-indigo svg {
  color: #6366f1;
  stroke: #6366f1;
}

/* ================================
   Typography
   ================================ */
.gradient-text {
  background: linear-gradient(90deg, #22d3ee, #3b82f6, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ================================
   Section Spacing
   ================================ */
.section-padding {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

/* ================================
   Contact Info Styles
   ================================ */
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

.contact-info-item svg,
.contact-info-item .icon,
.contact-info-item .wp-block-outermost-icon-block svg {
  color: #22d3ee !important;
  stroke: #22d3ee !important;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.contact-info-item a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s ease;
}

.contact-info-item a:hover {
  color: #22d3ee;
}

/* ================================
   Founder Section
   ================================ */
.founder-image img {
  border-radius: 1rem;
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.15);
}

.founder-name {
  color: #22d3ee !important;
  font-weight: 600;
}

.founder-name a {
  color: #22d3ee !important;
  text-decoration: none;
}

.founder-name a:hover {
  text-decoration: underline;
}

/* ================================
   Case Study Cards
   ================================ */
.case-study-card {
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(34, 211, 238, 0.2) !important;
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-study-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 40px rgba(34, 211, 238, 0.2);
}

.case-study-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.case-study-card .wp-block-group {
  padding: 1.5rem;
}

/* ================================
   Contact Form 7 Styles
   ================================ */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  color: #ffffff;
  padding: 0.75rem 1rem;
  width: 100%;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form textarea:focus {
  outline: none;
  border-color: #22d3ee;
  background: rgba(255, 255, 255, 0.15);
}

.wpcf7-form input[type="text"]::placeholder,
.wpcf7-form input[type="email"]::placeholder,
.wpcf7-form input[type="tel"]::placeholder,
.wpcf7-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.wpcf7-form input[type="submit"] {
  width: 100%;
  background: linear-gradient(90deg, #22d3ee, #3b82f6);
  border: none;
  border-radius: 0.5rem;
  color: #ffffff;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  padding: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wpcf7-form input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(34, 211, 238, 0.3);
}

/* Contact Form 7 alignment fixes */
.wpcf7-form p {
  margin-bottom: 1rem;
  margin-top: 0;
}

.wpcf7-form label {
  display: block;
  margin-bottom: 0.25rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
}

.wpcf7-form .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

/* Ensure form inputs are full width */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"] {
  box-sizing: border-box;
  height: 2.75rem;
}

/* Make textarea taller */
.wpcf7-form textarea {
  box-sizing: border-box;
  min-height: 120px;
  resize: vertical;
}

/* Contact Information block - tighter spacing */
.contact-info-block p {
  margin-top: 0;
}

.contact-info-block .contact-label {
  margin-bottom: 0.125rem !important;
}

.contact-info-block p:not(.contact-label) {
  margin-bottom: 1rem !important;
}

/* ================================
   Lists
   ================================ */
.wp-block-list {
  color: rgba(255, 255, 255, 0.8);
}

.wp-block-list li {
  margin-bottom: 0.75rem;
}

.wp-block-list li::marker {
  color: #22d3ee;
}

/* ================================
   Quotes
   ================================ */
.wp-block-quote {
  font-style: italic;
}

/* Left border only for left-aligned quotes */
.wp-block-quote:not(.has-text-align-center) {
  border-left: 4px solid #22d3ee;
  padding-left: 1.5rem;
}

/* Remove left border for centered quotes */
.wp-block-quote.has-text-align-center {
  border-left: none !important;
  padding-left: 0 !important;
}

.wp-block-quote cite {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

/* ================================
   Responsive Adjustments
   ================================ */
@media (max-width: 768px) {
  .section-padding {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .wp-block-columns {
    flex-direction: column;
  }

  .service-card,
  .service-detail-card {
    margin-bottom: 1.5rem;
  }
}

/* ================================
   Animations
   ================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

/* ================================
   Mobile Menu
   ================================ */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 0.5rem;
}

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

/* ================================
   Utility Classes
   ================================ */
.text-center {
  text-align: center;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.max-w-xl {
  max-width: 36rem;
}

.max-w-2xl {
  max-width: 42rem;
}

.max-w-4xl {
  max-width: 56rem;
}

/* ================================
   FAQ Section
   ================================ */
.wp-block-details {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 1rem 1.5rem;
  margin-bottom: 0.75rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.wp-block-details:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(34, 211, 238, 0.3);
}

.wp-block-details[open] {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(34, 211, 238, 0.4);
}

.wp-block-details summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: #ffffff;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wp-block-details summary::-webkit-details-marker {
  display: none;
}

.wp-block-details summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: #22d3ee;
  transition: transform 0.2s ease;
}

.wp-block-details[open] summary::after {
  content: '−';
}

.wp-block-details p {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}
