/* Design System & Core Styles */
:root {
  /* Brand Colors */
  --color-primary: #ff6900;
  --color-primary-dark: #e65e00;
  --color-bg-light: #ffffff;
  --color-bg-offwhite: #f9f9f9;
  --color-text-main: #333333;
  --color-text-muted: #666666;
  --color-border: #eeeeee;

  /* Typography */
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-size-h1: 3.5rem;
  --font-size-h2: 2.5rem;
  --font-size-h3: 1.5rem;
  --font-size-body: 1.125rem;

  /* Spacing */
  --container-width: 1200px;
  --spacing-section: 120px;
  --spacing-element: 24px;

  /* Effects */
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 20px 40px rgba(255, 105, 0, 0.15);
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --radius-button: 50px;
  --radius-card: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg-light);
  color: var(--color-text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  /* Offset for fixed header if needed, strictly asking for scroll behavior */
}

/* Header */
.site-header {
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  /* Standardized side padding */
}

.logo {
  height: 180px;
  /* Adjust based on logo aspect ratio */
}


/* Layout */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-element);
}

section {
  padding: var(--spacing-section) 0;
  position: relative;
}

/* Buttons */
.btn {
  display: inline-block;
  background-color: var(--color-primary);
  color: white;
  padding: 16px 40px;
  border-radius: var(--radius-button);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
  transition: var(--transition-smooth);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 105, 0, 0.3);
}

.btn:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* Typography Helpers */
h1,
h2,
h3 {
  line-height: 1.2;
  margin-bottom: var(--spacing-element);
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--font-size-h1);
  font-weight: 800;
}

h2 {
  font-size: var(--font-size-h2);
  font-weight: 700;
}

h3 {
  font-size: var(--font-size-h3);
  font-weight: 600;
}

.text-center {
  text-align: center;
}

.text-orange {
  color: var(--color-primary);
}

.mb-lg {
  margin-bottom: 60px;
}

/* Parallax/Scroll Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* FAQ Accordion */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 16px;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 24px 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-icon {
  font-size: 1.5rem;
  font-weight: 400;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* FAQ Accordion */
.section-faq {
  background-color: var(--color-bg-offwhite);
  /* Subtle Dot Pattern Texture */
  background-image: radial-gradient(var(--color-border) 1px, transparent 1px);
  background-size: 20px 20px;
}

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 16px;
}


.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-answer p {
  padding-bottom: 24px;
  color: var(--color-text-muted);
}

/* Navigation */
.site-nav ul {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
  background: rgba(255, 255, 255, 0.8);
  padding: 12px 32px;
  border-radius: 50px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.site-nav ul li a {
  text-decoration: none;
  color: var(--color-text-main);
  font-weight: 500;
  transition: color 0.3s;
  /* Added padding top as requested */
  padding-top: 10px;
  display: inline-block;
  /* Ensure padding applies */
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--color-primary);
}

.site-nav .btn-nav {
  padding: 10px 24px;
  background-color: var(--color-primary);
  color: white;
  border-radius: var(--radius-button);
  box-shadow: 0 4px 10px rgba(255, 105, 0, 0.2);
}

.site-nav .btn-nav:hover {
  background-color: var(--color-primary-dark);
  color: white;
  transform: translateY(-1px);
}

/* Testimonials Slider */
.testimonial-slider {
  position: relative;
  max-width: 900px;
  margin: 60px auto 0;
  padding: 0 40px;
  /* Space for arrows */
}

.slider-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.slide {
  min-width: 100%;
  padding: 20px;
  box-sizing: border-box;
}

.testimonial-card {
  background: white;
  padding: 60px 40px;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
  text-align: center;
  border: 1px solid var(--color-border);
  position: relative;
}

.testimonial-card::before {
  content: "“";
  font-size: 120px;
  color: rgba(255, 105, 0, 0.1);
  position: absolute;
  top: -20px;
  left: 40px;
  font-family: serif;
  line-height: 1;
}

.quote {
  font-size: 1.5rem;
  line-height: 1.5;
  margin-bottom: 32px;
  color: var(--color-text-main);
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.author strong {
  display: block;
  color: var(--color-primary);
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.author span {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.slider-controls {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
  /* Let clicks pass through except on buttons */
}

.slider-controls button {
  pointer-events: auto;
  background: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
  color: var(--color-text-main);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.slider-controls button:hover {
  background: var(--color-primary);
  color: white;
  transform: scale(1.1);
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 40px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
}

.form-group {
  margin-bottom: 24px;
  text-align: left;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text-main);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background-color: var(--color-bg-light);
  color: var(--color-text-main);
  font-family: var(--font-main);
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  /* Fix resize overflow */
  max-width: 100%;
  resize: vertical;
  box-sizing: border-box;
}

.form-group textarea {
  height: 120px;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255, 105, 0, 0.1);
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

/* Responsiveness */
@media (max-width: 768px) {

  /* Header Responsive */
  .header-container {
    flex-direction: column;
    padding: 10px 20px !important;
    gap: 15px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
  }

  .logo {
    height: 40px !important;
    /* Resize logo for mobile */
  }

  .site-nav ul {
    gap: 15px;
    padding: 10px 0;
    flex-wrap: wrap;
    justify-content: center;
    background: transparent;
    /* Remove pill bg on mobile since container has it */
    border: none;
    backdrop-filter: none;
  }

  .site-nav a {
    font-size: 0.85rem;
  }

  .site-nav .btn-nav {
    padding: 8px 16px;
  }

  /* Contact Responsive */
  .contact-form {
    padding: 20px;
  }

  /* General Adjustments */
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero {
    padding-top: 180px;
    /* More space for stacked header */
    text-align: center;
    display: block;
    /* Stack flex items */
  }

  .hero-content {
    margin: 0 auto;
  }

  .hero-content div {
    /* Button container */
    justify-content: center;
    flex-direction: column;
  }
}

/* Blog Styles */
.blog-hero {
  padding-top: 180px;
  padding-bottom: 80px;
  background-color: var(--color-bg-offwhite);
  text-align: center;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.blog-card {
  background: white;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.blog-card-image {
  height: 200px;
  background-color: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--color-text-muted);
}

.blog-card-content {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--color-text-main);
}

.blog-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.read-more {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.read-more:hover {
  color: var(--color-primary-dark);
}

/* Article Page */
.article-container {
  max-width: 800px;
  margin: 0 auto;
  padding-top: 140px;
  padding-bottom: 80px;
}

.article-header {
  margin-bottom: 40px;
  text-align: center;
}

.article-content {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--color-text-main);
}

.article-content h2 {
  font-size: 1.8rem;
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--color-text-main);
}

.article-content p {
  margin-bottom: 24px;
}

.article-content ul {
  margin-bottom: 24px;
  padding-left: 24px;
}

.article-content li {
  margin-bottom: 12px;
}

/* Footer */
.site-footer {
  background-color: #111;
  color: white;
  padding: 60px 0;
  margin-top: 80px;
  border-top: none;
}

.site-footer p {
  color: #888;
  margin-bottom: 20px;
}

.footer-social a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s;
}

.footer-social a:hover {
  color: var(--color-primary);
}/* Form Validation Styles */
.input-error {
    border-color: #EF4444 !important;
    /* Red-500 */
    background-color: #FEF2F2 !important;
    /* Red-50 */
    animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
}

.error-message {
    color: #EF4444;
    font-size: 0.875rem;
    margin-top: -16px;
    margin-bottom: 16px;
    display: none;
    /* Hidden by default */
    font-weight: 500;
}

.error-message.visible {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

@keyframes shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Success Message Card */
.success-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #ECFDF5;
    /* Emerald-50 */
    border: 1px solid #10B981;
    /* Emerald-500 */
    border-radius: 12px;
    padding: 24px;
    margin-top: 24px;
    text-align: center;
    animation: scaleIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-icon {
    width: 48px;
    height: 48px;
    background-color: #10B981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}

.success-title {
    color: #065F46;
    /* Emerald-800 */
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.success-text {
    color: #047857;
    /* Emerald-700 */
    font-size: 0.95rem;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}
