/* Theme Variables */
:root {
  /* Colors */
  --primary: #7eaaa9; /* Lighter Teal */
  --primary-light: #a9cec3; /* Lighter teal/sage */
  --primary-dark: #42787b; /* Darker teal */
  --accent: #e78889; /* Salmon pink */
  --accent-light: #ffd8de; /* Soft blush pink */
  --accent-dark: #c46b6d; /* Darker salmon */
  --mint: #e2ede6; /* Light mint green */
  --sage: #9dc3b7; /* Sage green */
  --rose: #f8d1c0; /* Darker Rose */
  --rose-light: #fde3d7; /* Light rose (original rose color) */
  --rose-dark: #eba48a; /* Darker rose */
  --bg-warm: #f5f8f3; /* Light mint tint */
  --bg-light: #ffffff; /* White */
  --text-dark: #281515; /* Dark gray */
  --text-muted: #645252; /* Medium gray */
  --error: #dc3545; /* Error red */
  
  /* Shadows */
  --shadow-soft: rgba(0, 0, 0, 0.08);
  --shadow-medium: rgba(0, 0, 0, 0.12);
  
  /* Common Styles */
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 20px;
  --transition-speed: 0.3s;
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
}

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

body {
  font-family: 'Lato', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-warm) 100%);
}

/* Typography */
h2, h3 {
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 12px;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
}

h2 i, h3 i {
  color: var(--rose);
  font-size: 1.2rem;
}

a {
  color: var(--accent-dark);
  text-decoration: none;
  transition: color var(--transition-speed);
}

a:hover {
  color: var(--accent);
  text-decoration: underline;
  box-shadow: none;
  transform: none;
}

p {
  margin-bottom: 1rem;
}

/* Layout */
.container {
  width: 100%;
  max-width: 900px;
  padding: 25px;
  background: var(--bg-light);
  box-shadow: 0 4px 15px var(--shadow-soft);
  border-radius: var(--border-radius-md);
  margin-bottom: 20px;
  border-top: 4px solid var(--sage);
}

/* Main content layout */
main {
  width: 90%;
  max-width: 900px;
  margin: 20px auto;
}

main section {
  margin-bottom: 0;
}

main section + section .container {
  border-top: none;
}

/* Header & Navigation */
header {
  background: linear-gradient(135deg, var(--rose) 0%, var(--rose-light) 100%);
  color: var(--text-dark);
  text-align: center;
  padding: 20px 0px 0px 0;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px var(--shadow-medium);
  position: relative;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

header h1 {
  font-size: 2.2rem;
  margin: 0;
  font-weight: bold;
  text-align: center;
  color: var(--text-dark);
}

header p {
  color: var(--text-dark);
  font-weight: 400;
  margin: 0;
  font-size: 1.1rem;
}

.header-image {
  max-width: 300px;
  height: auto;
  display: block;
  margin: 0 auto 10px auto;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

/* Navigation layout */
.nav-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 15px;
  max-width: 900px;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
  background-color: var(--primary);
  padding: 12px 0;
  border-radius: 40px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  bottom: -25px;
  z-index: 10;
}

nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 0 15px;
}

nav ul li {
  display: flex;
}

nav ul li a {
  color: var(--bg-light);
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 10px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  transition: all var(--transition-speed);
  white-space: nowrap;
}

nav ul li a i {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  font-size: 1.3rem;
}

nav ul li a.active,
nav ul li a:hover {
  background: rgba(255, 255, 255, 0.25);
  color: var(--bg-light);
  text-decoration: none;
  box-shadow: none;
  transform: none;
}

/* Buttons & CTAs */
.cta-button, button {
  background: var(--accent);
  color: var(--bg-light);
  border-radius: var(--border-radius-lg);
  font-weight: bold;
  transition: all var(--transition-speed);
  border: none;
  padding: 12px 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.cta-button:hover, button:hover {
  background: var(--accent-dark);
  text-decoration: none;
  transform: none;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.standalone-cta {
  display: block;
  text-align: center;
  max-width: 500px;
  margin: 0 auto 30px auto;
  font-size: 1.1rem;
  background: var(--rose);
  color: var(--text-dark);
}

.standalone-cta:hover {
  background: var(--rose-dark);
  color: var(--text-dark);
  transform: none;
}

/* Common card styles */
.service,
.faq-item,
.certification-list li,
.step,
.testimonial-card {
  background: var(--bg-warm);
  padding: 20px;
  border-radius: var(--border-radius-md);
  box-shadow: 0 2px 4px var(--shadow-soft);
  margin-bottom: 20px;
}

.service:last-child,
.faq-item:last-child {
  margin-bottom: 0;
}

/* Process Steps */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 25px;
}

.step {
  text-align: center;
  padding: 25px 15px;
  border-radius: var(--border-radius-md);
  background: var(--mint);
  box-shadow: 0 4px 10px var(--shadow-soft);
  transition: all var(--transition-speed);
  border-bottom: 4px solid var(--accent-light);
}

.step:nth-child(1) {
  border-bottom-color: var(--accent);
}

.step:nth-child(2) {
  border-bottom-color: var(--rose);
}

.step:nth-child(3) {
  border-bottom-color: var(--primary-light);
}

.step:nth-child(4) {
  border-bottom-color: var(--primary);
}

.step h3 {
  color: var(--text-dark);
  justify-content: center;
  font-size: 1.1rem;
}

.step-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  box-shadow: 0 4px 8px var(--shadow-soft);
  font-size: 1.5rem;
}

.step:nth-child(1) .step-icon {
  background: var(--accent-light);
  color: var(--accent-dark);
}

.step:nth-child(2) .step-icon {
  background: rgba(253, 227, 215, 0.2);
  color: var(--rose-dark);
}

.step:nth-child(3) .step-icon {
  background: rgba(157, 195, 183, 0.2);
  color: var(--primary-dark);
}

.step:nth-child(4) .step-icon {
  background: rgba(110, 155, 155, 0.2);
  color: var(--primary);
}

/* Lists */
/* Common list styles */
main ul, ol {
  margin-bottom: 20px;
}

main ul {
  list-style: none;
  padding-left: 10px;
}

main ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  line-height: 1.5;
}

main ul li:before {
  content: "•";
  color: var(--accent);
  position: absolute;
  left: 0;
  top: 0.1em;
  font-size: 1.2em;
  line-height: 1;
  display: inline-block;
}

/* Remove bullets from certification cards */
.certification-list li:before {
  display: none;
}

/* Numbered list styling */
ol {
  counter-reset: item;
  list-style-type: none;
  padding-left: 10px;
}

ol li {
  counter-increment: item;
  margin-bottom: 20px;
  position: relative;
  padding-left: 20px;
  line-height: 1.5;
}

ol li:before {
  content: counter(item) ".";
  color: var(--primary);
  font-weight: bold;
  position: absolute;
  left: 0;
  font-size: 1.1rem;
}

/* Testimonials */
.testimonial-cards {
  position: relative;
  overflow: hidden;
  padding: 15px 0;
  height: 300px;
}

.testimonial-card {
  opacity: 0;
  display: none;
  margin: 0 auto;
  max-width: 600px;
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  border: 1px solid var(--accent-light);
  border-left: 5px solid var(--accent);
  background: var(--bg-light);
  padding: 25px;
  border-radius: var(--border-radius-md);
  box-shadow: 0 4px 15px var(--shadow-soft);
  font-family: 'Caveat', cursive;
  font-size: 1.5rem;
  transition: opacity var(--transition-speed);
}

.testimonial-card.active {
  display: block;
  opacity: 1;
}

.testimonial-nav {
  text-align: center;
  margin-top: 15px;
}

.testimonial-nav button {
  width: auto;
  padding: 10px 20px;
  margin: 0 5px;
  background: var(--accent);
}

.testimonial-dots {
  text-align: center;
  margin-top: 15px;
}

.dot {
  height: 10px;
  width: 10px;
  margin: 0 5px;
  background-color: var(--accent-light);
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: background-color 0.3s;
}

.dot.active {
  background-color: var(--primary-light);
}

/* About */
.about-content {
  display: block;
  margin-bottom: 30px;
  overflow: hidden;
}

.about-image {
  float: left;
  max-width: 300px;
  margin: 0 30px 0px 0;
}

.about-image img {
  width: 300px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 2px 8px var(--shadow-soft);
}

.about-bio {
  text-align: left;
}

.about-bio p {
  margin-bottom: 15px;
  line-height: 1.7;
}

/* Certifications */
.certification-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.certification-list li {
  background: var(--bg-warm);
  padding: 20px;
  border-radius: var(--border-radius-md);
  box-shadow: 0 2px 4px var(--shadow-soft);
  margin-bottom: 0;
  position: relative;
}

/* Certification with logo */
.certification-with-logo {
  display: flex;
  flex-direction: column;
}

.certification-title h3 {
  margin: 0 0 15px 0;
  text-align: left;
  display: block;
}

.certification-body {
  display: flex;
  align-items: flex-start;
}

.certification-logo {
  flex-shrink: 0;
  width: 70px;
  margin-right: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.certification-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.certification-content {
  flex: 1;
}

.certification-content h3 {
  margin-top: 0;
}

.certification-list h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  justify-content: flex-start;
  display: block;
  color: var(--primary);
  font-weight: bold;
}

.certification-list p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* Common heading styles for cards */
.service h3,
.faq-item h3 {
  margin-bottom: 15px;
  justify-content: flex-start;
}

/* Resources */
.resources h3, 
.resource-section h3 {
  margin: 30px 0 15px;
  justify-content: flex-start;
}

.resources h3:first-of-type,
.resource-section h3:first-of-type {
  margin-top: 0;
}

.resources ol li strong,
.resource-section ol li strong {
  color: var(--primary);
  font-size: 1.1rem;
}

.resources ol li p,
.resource-section ol li p {
  margin: 8px 0;
  color: var(--text-dark);
}

.resources ol li em,
.resource-section ol li em {
  color: var(--text-muted);
  font-style: italic;
  display: block;
  margin-top: 5px;
}

.resources .tip,
.resource-section .tip {
  background: var(--bg-warm);
  padding: 15px 20px;
  border-radius: 8px;
  margin: 20px 0;
  border-left: 4px solid var(--accent);
}

/* Forms */
.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-group label {
  display: block;
  margin-bottom: var(--spacing-sm);
  font-weight: bold;
  color: var(--text-dark);
}

.form-group .required {
  color: var(--error);
  margin-left: var(--spacing-xs);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--spacing-md);
  border: 1px solid var(--accent-light);
  border-radius: var(--border-radius-sm);
  font-family: inherit;
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Contact Info */
.contact-info {
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--accent-light);
}

.contact-info h3 {
  margin-bottom: var(--spacing-md);
  justify-content: flex-start;
}

.contact-info p {
  margin: var(--spacing-sm) 0;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.contact-info i {
  color: var(--accent);
  width: 20px;
  text-align: center;
}

/* Blockquote */
blockquote {
  background: var(--bg-warm);
  border-left: 5px solid var(--accent);
  margin: 20px 0;
  padding: 15px 20px;
  font-style: italic;
  color: var(--text-muted);
  border-radius: 8px;
  box-shadow: 0 2px 4px var(--shadow-soft);
}

blockquote p {
  margin: 0;
}

blockquote footer {
  text-align: right;
  font-size: 0.9rem;
  color: var(--primary);
  background-color: transparent;
  margin-top: 10px;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  margin-top: 30px;
  color: var(--text-dark);
  background-color: var(--rose-light);
  border-top: 5px solid var(--rose);
}

/* Responsive Design */
@media (max-width: 900px) {
  .nav-container {
    width: 95%;
    max-width: none;
    border-radius: 30px;
  }
  
  main {
    width: 95%;
  }
}

@media (max-width: 800px) {
  nav ul {
    gap: 5px;
  }
  
  nav ul li a {
    padding: 8px 12px;
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-image {
    float: none;
    max-width: 100%;
    margin: 0 0 20px 0;
  }
}

@media (max-width: 650px) {
  .certification-list {
    grid-template-columns: 1fr;
  }
  
  /* Ensure the certification with logo retains flex layout on small screens */
  .certification-with-logo {
    display: flex;
    align-items: center;
  }
}

@media (max-width: 600px) {
  .nav-container {
    padding: 8px;
    bottom: -20px;
    border-radius: 25px;
  }
  
  nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 5px 15px;
    gap: 8px;
  }
  
  nav ul li {
    width: 100%;
  }
  
  nav ul li a {
    width: 100%;
    padding: 12px 15px;
    justify-content: flex-start;
    border-radius: 20px;
  }
  
  nav ul li a i {
    width: 25px;
  }
  
  main {
    margin-top: 35px;
  }
}

@media (max-width: 480px) {
  .process-steps {
    grid-template-columns: 1fr;
  }
  
  header h1 {
    font-size: 1.8rem;
  }
  
  header p {
    font-size: 1rem;
    padding: 0 10px;
  }
  
  .container {
    width: 100%;
    padding: 15px;
  }
  
  .cta-button {
    width: 100%;
    max-width: 300px;
  }
  
  h2 {
    font-size: 1.5rem;
  }
}