/*
Theme Name: Sales Training Toronto
Description: Custom WordPress block theme for Sales Training Toronto
Version: 1.0
*/

/* CSS Variables */
:root {
  --primary: #1a365d;
  --secondary: #e53e3e;
  --accent: #2d3748;
  --text: #0f172a;
  --light: #f8fafc;
  --white: #ffffff;
}

/* Base Styles */
body {
  font-family: Inter, system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
  padding: 0;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: Merriweather, Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

/* Links */
a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

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

/* Buttons */
.cta-button, .wp-block-button__link {
  background-color: var(--secondary);
  color: var(--white) \!important;
  padding: 12px 24px;
  border-radius: 5px;
  font-weight: 600;
  text-decoration: none \!important;
  display: inline-block;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.cta-button:hover, .wp-block-button__link:hover {
  background-color: #c53030;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, var(--primary) 100%);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.hero h1 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
}

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

.section-dark .section-title,
.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

/* Content Grid */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

/* Cards */
.card {
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

/* Testimonials */
.testimonial {
  background: var(--light);
  padding: 2rem;
  border-radius: 8px;
  border-left: 4px solid var(--secondary);
}

.testimonial-text {
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary);
  margin: 0;
}

/* Lists */
ul {
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }
  
  .hero h1 {
    font-size: 2.25rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  
  .content-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .card {
    padding: 1.5rem;
  }
  
  .cta-button {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 3rem 0;
  }
  
  .hero h1 {
    font-size: 1.875rem;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .card {
    padding: 1rem;
  }
}

/* WordPress Block Overrides */
.wp-block-group {
  margin-block-start: 0;
  margin-block-end: 0;
}

.wp-site-blocks {
  padding-top: 0;
}

/* Ensure proper spacing for fixed header */
body:not(.home) .wp-site-blocks {
  padding-top: 0;
}

/* Contact Form 7 Styling */
.wpcf7-form {
  max-width: 600px;
  margin: 0 auto;
}

.wpcf7-form p {
  margin-bottom: 1rem;
}

.wpcf7-form input[type=text],
.wpcf7-form input[type=email],
.wpcf7-form input[type=tel],
.wpcf7-form textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #e2e8f0;
  border-radius: 5px;
  font-size: 1rem;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.wpcf7-form input[type=submit] {
  background-color: var(--secondary);
  color: #fff;
  padding: 12px 30px;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.wpcf7-form input[type=submit]:hover {
  background-color: #c53030;
  transform: translateY(-2px);
}

/* Business Hours Section */
.hours-section {
  text-align: center !important;
}

.hours-section h2 {
  text-align: center !important;
}

.hours-section > div[style*="display:grid"] > div {
  text-align: center !important;
}

.hours-section > div[style*="display:grid"] > div > div {
  text-align: center !important;
}

/* Fix mobile button stacking */
@media (max-width: 768px) {
  .hero div[style*="display:flex"] {
    gap: 0 !important;
    flex-direction: column !important;
    align-items: center !important;
  }
  
  .hero div[style*="display:flex"] .cta-button {
    margin-bottom: 1rem !important;
    width: 100% !important;
    max-width: 300px !important;
    text-align: center !important;
  }
  
  .hero div[style*="display:flex"] .cta-button:last-child {
    margin-bottom: 0 !important;
  }
}
