/**
 * Main stylesheet for Pretereo theme
 *
 * Contains core styles for the theme
 */

/* Import Variables */
@import 'variables.css';

/* Import Section-specific Styles */
@import 'sections/hero.css';
@import 'sections/process.css';
@import 'sections/services.css';
@import 'sections/services-page.css'; /* Services page template styles */
@import 'sections/testimonials.css';
@import 'sections/pricing.css';
@import 'sections/intake-form.css';
/* footer.css has been consolidated into this file with proper #colophon prefixes */

/* Import Responsive Styles */
@import 'responsive.css';

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--color-white);
}

/* WordPress/WooCommerce Compatible Container Classes */
.site-container {
  width: 100%;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.content-area {
  width: 100%;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  color: var(--text-dark);
}

h1, .entry-title {
  font-size: var(--font-size-hero);
}

h2, .section-title {
  font-size: var(--font-size-xxl);
}

h3 {
  font-size: var(--font-size-xl);
}

p {
  margin-bottom: var(--spacing-lg);
}

a {
  color: var(--color-berry-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-berry-secondary);
}

/* Buttons */
.btn,
.wp-block-button__link {
  display: inline-block;
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--border-radius-md);
  font-weight: var(--font-weight-medium);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-medium);
  text-decoration: none;
  border: none;
  line-height: 1.4;
}

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

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

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

.btn-secondary:hover {
  background: var(--color-green-secondary);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-berry-primary);
  color: var(--color-berry-primary);
}

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

/* Header Styles */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: var(--color-white);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: all var(--transition-fast);
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Fix for WordPress admin bar - desktop only */
@media screen and (min-width: 783px) {
  body.admin-bar .site-header {
    top: 32px;
  }
}

/* Admin bar margin removed for mobile */

.site-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md) 0;
  height: 80px;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.custom-logo-link {
  display: block;
  max-width: 200px;
  height: auto;
}

.custom-logo {
  width: 100%;
  height: 50px;
  object-fit: contain;
  display: block;
}

.site-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.main-navigation {
  display: flex;
  align-items: center;
}

/* Default state of menu toggle button (hidden on desktop) */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
}

/* Default state of the toggle icon */
.menu-toggle-icon {
  display: block;
  width: 24px;
  height: 2px;
  background-color: transparent;
  position: relative;
}

.menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Header menu items - specific styling to prevent conflicts */
#masthead .menu-item {
  position: relative;
  margin-left: var(--spacing-md);
  margin-right: var(--spacing-xs);
  background-color: transparent; /* Explicitly override any footer styling */
}

/* Remove left margin from first menu item */
#masthead .menu-item:first-child {
  margin-left: 0;
}

#masthead .menu-item a {
  position: relative;
  display: block;
  color: var(--text-dark);
  font-weight: var(--font-weight-medium);
  padding: var(--spacing-xs) 0;
  transition: color var(--transition-fast);
}

#masthead .menu-item a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-berry-primary);
  transition: width var(--transition-medium);
}

#masthead .menu-item a:hover {
  color: var(--color-berry-primary);
}

#masthead .menu-item a:hover::after {
  width: 100%;
}

#masthead .menu-item.current-menu-item a {
  color: var(--color-berry-primary);
}

#masthead .menu-item.current-menu-item a::after {
  width: 100%;
}

/* Style for the My Account button in the menu */
#masthead .menu-item a.btn.btn-primary {
  border-radius: var(--border-radius-md);
  padding: var(--spacing-xs) var(--spacing-lg);
  color: var(--color-white);
}

#masthead .menu-item a.btn.btn-primary:hover {
  color: var(--color-white);
}

#masthead .menu-item a.btn.btn-primary::after {
  display: none;
}

/* Hero Section */
#hero.hero-section {
  padding: calc(var(--spacing-xxl) * 2) 0;
  background: linear-gradient(135deg, var(--color-off-white) 0%, var(--color-white) 100%);
  position: relative;
  overflow: hidden;
}

/* Base styles only - section-specific styles moved to separate files */

/* Process Section */
#process.process-section {
  padding: var(--spacing-xxl) 0;
  background-color: var(--color-off-white);
}

#process .process-title {
  text-align: center;
  margin-bottom: var(--spacing-xxl);
}

/* Process section styles moved to process.css */

/* Media Queries */
@media (max-width: 1024px) {
  /* Media queries moved to their respective section files */
}

@media (max-width: 768px) {
  /* Media queries moved to their respective section files */
}

/* Animations */
@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn var(--transition-medium) ease forwards;
}

.fade-in-delay-1 {
  animation-delay: 0.2s;
}

.fade-in-delay-2 {
  animation-delay: 0.4s;
}

.fade-in-delay-3 {
  animation-delay: 0.6s;
}

/**
 * Footer Styles for Pretereo Theme
 */

/* 
 * Full-width footer implementation with seamless wave integration
 * Uses the 100vw width with negative margin technique to break out of container
 * and span the entire viewport width regardless of parent container constraints
 */
 .site-footer {
  position: relative;
  background: linear-gradient(135deg, #8E2DE2 0%, #4A00E0 100%); /* Restore beautiful gradient */
  color: var(--color-white);
  padding: var(--spacing-xl) 0 var(--spacing-md);
  margin-top: 0; /* Remove margin to eliminate white space */
  width: 100vw; /* Full viewport width */
  margin-left: calc(-50vw + 50%); /* Calculate exact offset to center */
  box-sizing: border-box;
  max-width: none; /* Override any max-width constraints */
  overflow: visible; /* Allow the wave to be seen */
}

/* Wave positioning adjusted for true full-width display */
.footer-wave {
  position: absolute;
  bottom: 100px; /* Adjusted position to lower the wave and prevent overlay with the button */
  left: 0;
  right: 0;
  width: 100%;
  line-height: 0;
  z-index: 1; /* Lower z-index to ensure it stays behind content */
  text-align: center;
  overflow: hidden;
  /* Adding a comment to explain the purpose of this fix */
  /* This positioning prevents the wave from overlaying buttons in the mission statement section */
}

/* Footer Wave SVG - guaranteed to display at full width */
.footer-wave svg {
  width: 150%; /* Intentionally wider than needed to ensure full coverage */
  height: auto;
  display: inline-block; /* Allow centering via text-align */
  margin-left: -25%; /* Offset to ensure proper centering */
  min-width: 1600px; /* Minimum width to ensure coverage on all screens */
}

/* Footer content positioned above background */
.footer-content {
  position: relative;
  z-index: 10; /* Higher than the wave to ensure content is visible */
  padding-top: var(--spacing-md); /* Add top padding to create space from the wave */
}

.footer-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-brand {
  flex: 1;
  min-width: 280px;
}

.footer-logo {
  font-size: var(--font-size-xl);
  margin-bottom: var(--spacing-sm);
  font-weight: var(--font-weight-bold);
  color: #ffffff; /* Ensure logo text is white */
}

.footer-tagline {
  margin-bottom: var(--spacing-lg);
  opacity: 0.9;
}

.footer-cta {
  margin-bottom: var(--spacing-lg);
}

.social-links {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--color-white);
  transition: background-color var(--transition-fast);
}

.social-links a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--color-white);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--spacing-sm);
}

/* Style specifically for footer menu items - prevents bleeding into header */
#colophon .menu-item,
.footer-link {
  color: #ffffff;
  text-decoration: none;
  transition: all var(--transition-fast);
  font-weight: 600;
  padding: 0.3rem 0.5rem;
  border-radius: var(--border-radius-sm);
  background-color: rgba(255, 255, 255, 0.15);
  display: inline-block;
  margin: 0 0.2rem;
}

/* Footer-specific hover styles */
#colophon .menu-item:hover,
.footer-link:hover {
  opacity: 1;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

/* Styling for the separator dots between footer menu items */
.footer-dot {
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0.5rem;
  display: inline-block;
  vertical-align: middle;
  font-size: 1rem;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: var(--font-size-sm);
}

.footer-link-small {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-link-small:hover {
  color: var(--color-white);
}

.footer-dot-small {
  opacity: 0.3;
  font-size: var(--font-size-xs);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--spacing-lg);
  font-size: var(--font-size-sm);
  opacity: 0.7;
}

.footer-icon-badge {
  color: var(--color-green-primary);
  font-size: var(--font-size-lg);
}

@media (max-width: 768px) {
  .footer-flex {
    flex-direction: column;
    gap: var(--spacing-lg);
  }
  
  .footer-nav {
    gap: var(--spacing-lg);
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: var(--spacing-md);
    text-align: center;
  }
}

/* Button glow effect */
.btn-glow {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, var(--color-green-primary), var(--color-green-secondary));
  border: none;
  color: white;
  margin-bottom: var(--spacing-lg);
}

.btn-glow:before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 40%;
  animation: ripple 3s linear infinite;
}

@keyframes ripple {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

