/* 
  Main Stylesheet for Minnispatt - Digitale Geschäftslösungen
  Author: Minnispatt Team
  Version: 1.0
*/

/* ========================
   VARIABLES
======================== */
:root {
  /* Brand Colors */
  --primary-color: #4a7aff;
  --primary-dark: #3a62cc;
  --primary-light: #e6f7ff;
  --secondary-color: #2c3e50;
  --accent-color: #ff7a4a;

  /* Neutral Colors */
  --dark: #1a1a2e;
  --gray-dark: #4a4b53;
  --gray: #a0a0a0;
  --gray-light: #e0e0e0;
  --light: #f8f9fa;
  --white: #ffffff;

  /* Typography */
  --font-primary: 'Helvetica Neue', Arial, sans-serif;
  --font-secondary: Georgia, serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 3rem;
  --space-xl: 5rem;

  /* Breakpoints */
  --breakpoint-sm: 576px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 992px;
  --breakpoint-xl: 1200px;

  /* Border Radius */
  --border-radius-sm: 3px;
  --border-radius-md: 6px;
  --border-radius-lg: 12px;
  --border-radius-xl: 24px;

  /* Transition */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* ========================
   RESET & BASE STYLES
======================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--secondary-color);
  background-color: var(--white);
  overflow-x: hidden;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

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

a:hover {
  color: var(--primary-dark);
}

ul, ol {
  list-style-position: inside;
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: var(--space-sm);
  line-height: 1.3;
  font-weight: 700;
  color: var(--secondary-color);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.125rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: var(--space-md);
}

button {
  cursor: pointer;
  font-family: var(--font-primary);
}

input, textarea, select {
  font-family: var(--font-primary);
}

/* ========================
   LAYOUT
======================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-header h2 {
  position: relative;
  display: inline-block;
  margin-bottom: var(--space-xs);
}

.section-header h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
}

.section-header p {
  color: var(--gray-dark);
  max-width: 800px;
  margin: var(--space-sm) auto 0;
}

/* Grid System */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.col {
  padding: 0 15px;
  flex: 1;
}

/* ========================
   COMPONENTS
======================== */

/* Buttons */
.btn {
  display: inline-block;
  font-weight: 600;
  text-align: center;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: var(--border-radius-md);
  transition: all var(--transition-normal);
  cursor: pointer;
}

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

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

.secondary-btn {
  background-color: var(--white);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.secondary-btn:hover {
  background-color: var(--primary-light);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

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

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

.text-btn {
  background-color: transparent;
  color: var(--primary-color);
  padding: 0.5rem 0.75rem;
}

.text-btn:hover {
  background-color: var(--primary-light);
  color: var(--primary-dark);
}

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

.form-group label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--gray-light);
  border-radius: var(--border-radius-md);
  background-color: var(--white);
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(74, 122, 255, 0.1);
}

.form-check {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-md);
}

.form-check input[type="checkbox"] {
  margin-right: 0.5rem;
  width: auto;
}

/* Cards */
.card {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* ========================
   HEADER & NAVIGATION
======================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  transition: padding var(--transition-normal);
}

.header.scrolled .navbar {
  padding: 0.5rem 0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
  color: var(--secondary-color);
  font-weight: 700;
  font-size: 1.5rem;
}

.logo img {
  height: 40px;
  margin-right: 0.5rem;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: var(--space-md);
}

.nav-links a {
  color: var(--secondary-color);
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width var(--transition-normal);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--secondary-color);
  cursor: pointer;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 400px;
  height: 100%;
  background-color: var(--white);
  box-shadow: var(--shadow-lg);
  z-index: 1100;
  padding: var(--space-lg);
  transition: right var(--transition-normal);
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

.close-menu-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--secondary-color);
  cursor: pointer;
}

.mobile-nav-links {
  margin-top: var(--space-xl);
  list-style: none;
}

.mobile-nav-links li {
  margin-bottom: var(--space-md);
}

.mobile-nav-links a {
  color: var(--secondary-color);
  font-size: 1.25rem;
  font-weight: 500;
}

/* ========================
   HERO SECTION
======================== */
.hero {
  padding: calc(var(--space-xl) * 2) 0 var(--space-xl);
  background-color: var(--primary-light);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background-color: rgba(255, 255, 255, 0.1);
  transform: rotate(-30deg);
}

.hero-content {
  max-width: 600px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  color: var(--secondary-color);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: var(--space-lg);
  color: var(--gray-dark);
}

.hero-buttons {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.hero-image {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 45%;
  max-width: 600px;
  display: none;
}

/* ========================
   ABOUT SECTION
======================== */
.about-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.about-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-image img {
  max-width: 100%;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

.about-text {
  flex: 1;
}

.about-text h3 {
  margin-bottom: var(--space-md);
  color: var(--secondary-color);
}

.about-stats {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: var(--space-lg);
}

.stat {
  text-align: center;
  flex: 1;
  min-width: 120px;
  margin-bottom: var(--space-md);
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.stat-text {
  color: var(--gray-dark);
  font-size: 0.875rem;
}

/* ========================
   SERVICES SECTION
======================== */
.services {
  background-color: var(--light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.service-card {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  height: 100%;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: var(--primary-light);
  border-radius: 50%;
  margin-bottom: var(--space-sm);
}

.service-icon i {
  color: var(--primary-color);
  width: 24px;
  height: 24px;
}

.service-card h3 {
  margin-bottom: var(--space-sm);
  font-size: 1.25rem;
}

.service-card p {
  color: var(--gray-dark);
  margin-bottom: 0;
}

.services-image {
  display: flex;
  justify-content: center;
  margin-top: var(--space-lg);
}

.services-image img {
  max-width: 600px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

/* ========================
   TEAM SECTION
======================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-lg);
}

.team-member {
  text-align: center;
  transition: all var(--transition-normal);
}

.team-member:hover {
  transform: translateY(-10px);
}

.member-image {
  width: 200px;
  height: 200px;
  margin: 0 auto var(--space-md);
  overflow: hidden;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
}

.member-image img,
.member-image svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-placeholder {
  width: 100%;
  height: 100%;
  background-color: var(--primary-light);
}

.team-member h3 {
  margin-bottom: var(--space-xs);
}

.member-position {
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: var(--space-sm);
}

.member-description {
  color: var(--gray-dark);
  margin-bottom: var(--space-sm);
}

.member-social {
  display: flex;
  justify-content: center;
  gap: var(--space-xs);
}

.member-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary-color);
  transition: all var(--transition-fast);
}

.member-social a:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

/* ========================
   TESTIMONIALS SECTION
======================== */
.testimonials {
  background-color: var(--light);
  position: relative;
}

.testimonial-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  height: 350px;
}

.testimonial-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-slow);
}

.testimonial-slide.active {
  opacity: 1;
  visibility: visible;
}

.testimonial-content {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.quote-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: var(--primary-light);
  border-radius: 50%;
  margin: 0 auto var(--space-md);
}

.quote-icon i {
  color: var(--primary-color);
  width: 24px;
  height: 24px;
}

.testimonial-text {
  font-size: 1.125rem;
  font-style: italic;
  color: var(--gray-dark);
  margin-bottom: var(--space-md);
}

.testimonial-author h4 {
  color: var(--secondary-color);
  margin-bottom: var(--space-xs);
}

.testimonial-author p {
  color: var(--gray);
  margin-bottom: 0;
}

.testimonial-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--space-md);
}

.testimonial-dots {
  display: flex;
  gap: 8px;
  margin: 0 var(--space-sm);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--gray-light);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

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

.prev-btn,
.next-btn {
  background: none;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.prev-btn:hover,
.next-btn:hover {
  color: var(--primary-dark);
  transform: scale(1.1);
}

/* ========================
   BLOG PREVIEW SECTION
======================== */
.blog-preview {
  padding-bottom: calc(var(--space-xl) * 1.5);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.blog-card {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.blog-image {
  overflow: hidden;
  height: 200px;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.blog-card:hover .blog-image img {
  transform: scale(1.05);
}

.blog-content {
  padding: var(--space-md);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--primary-light);
  color: var(--primary-color);
  border-radius: var(--border-radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: var(--space-sm);
}

.blog-date {
  font-size: 0.875rem;
  color: var(--gray);
  margin-right: var(--space-sm);
}

.blog-content h3 {
  margin-bottom: var(--space-sm);
  font-size: 1.25rem;
}

.blog-content p {
  color: var(--gray-dark);
  margin-bottom: var(--space-md);
}

.read-more {
  display: flex;
  align-items: center;
  color: var(--primary-color);
  font-weight: 500;
  margin-top: auto;
}

.read-more i {
  margin-left: 0.5rem;
  transition: transform var(--transition-fast);
}

.read-more:hover i {
  transform: translateX(5px);
}

.blog-cta {
  text-align: center;
  margin-top: var(--space-lg);
}

/* ========================
   CONTACT SECTION
======================== */
.contact {
  background-color: var(--light);
}

.contact-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contact-info {
  flex: 1;
}

.contact-image {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.contact-image img {
  max-width: 300px;
  border-radius: var(--border-radius-lg);
}

.info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--space-md);
}

.info-item i {
  color: var(--primary-color);
  margin-right: var(--space-sm);
  margin-top: 5px;
}

.info-item h4 {
  margin-bottom: var(--space-xs);
}

.info-item p {
  color: var(--gray-dark);
  margin-bottom: 0;
}

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

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary-color);
  transition: all var(--transition-fast);
}

.social-link:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.contact-form {
  flex: 1;
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
}

.contact-form h3 {
  margin-bottom: var(--space-sm);
}

.contact-form p {
  color: var(--gray-dark);
  margin-bottom: var(--space-md);
}

/* ========================
   FOOTER
======================== */
.footer {
  background-color: var(--secondary-color);
  color: var(--white);
  padding: var(--space-xl) 0 var(--space-md);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: var(--space-md);
}

.footer-logo img {
  height: 50px;
  margin-bottom: var(--space-xs);
}

.footer-logo h3 {
  color: var(--white);
  margin-bottom: var(--space-xs);
}

.footer-logo p {
  color: var(--gray-light);
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer-column h4 {
  color: var(--white);
  margin-bottom: var(--space-sm);
  font-size: 1.125rem;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: var(--space-xs);
}

.footer-column a {
  color: var(--gray-light);
  transition: color var(--transition-fast);
}

.footer-column a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  margin-bottom: var(--space-sm);
  color: var(--gray-light);
  font-size: 0.875rem;
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
}

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

.social-icon:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

/* ========================
   THANK YOU PAGE
======================== */
.thank-you {
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: calc(var(--space-xl) * 2) 0;
}

.thank-you-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.thank-you-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background-color: var(--primary-light);
  border-radius: 50%;
  margin: 0 auto var(--space-md);
}

.thank-you-icon i {
  color: var(--primary-color);
  width: 40px;
  height: 40px;
}

.thank-you h1 {
  margin-bottom: var(--space-md);
}

.thank-you p {
  font-size: 1.125rem;
  margin-bottom: var(--space-sm);
  color: var(--gray-dark);
}

.thank-you-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.thank-you-image {
  display: flex;
  justify-content: center;
  margin-top: var(--space-lg);
}

.thank-you-svg {
  max-width: 300px;
}

/* ========================
   LEGAL PAGES
======================== */
.legal {
  padding-top: calc(var(--space-xl) * 2);
  padding-bottom: var(--space-xl);
}

.legal-header {
  margin-bottom: var(--space-lg);
  text-align: center;
}

.legal-header h1 {
  margin-bottom: var(--space-xs);
}

.legal-header p {
  color: var(--gray);
}

.legal-content {
  max-width: 900px;
  margin: 0 auto;
}

.legal-content h2 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  font-size: 1.5rem;
}

.legal-content h3 {
  margin-top: var(--space-md);
  margin-bottom: var(--space-sm);
  font-size: 1.25rem;
}

.legal-content p {
  margin-bottom: var(--space-sm);
}

.legal-content ul, 
.legal-content ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-md);
}

.legal-content li {
  margin-bottom: var(--space-xs);
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-md);
}

.cookie-table th, 
.cookie-table td {
  border: 1px solid var(--gray-light);
  padding: 0.75rem;
  text-align: left;
}

.cookie-table th {
  background-color: var(--primary-light);
  font-weight: 600;
}

/* ========================
   BLOG PAGE STYLES
======================== */
.blog-hero {
  background-color: var(--primary-light);
  padding: calc(var(--space-xl) * 2) 0 var(--space-lg);
  text-align: center;
}

.blog-hero-content h1 {
  margin-bottom: var(--space-sm);
}

.blog-hero-content p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto;
  color: var(--gray-dark);
}

.blog-main {
  padding: var(--space-xl) 0;
}

.blog-newsletter {
  background-color: var(--primary-light);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  margin-top: var(--space-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.newsletter-content {
  max-width: 600px;
  margin-bottom: var(--space-md);
}

.newsletter-content h3 {
  margin-bottom: var(--space-sm);
}

.newsletter-content p {
  margin-bottom: 0;
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  width: 100%;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.newsletter-form .form-group {
  flex-grow: 1;
  margin-bottom: 0;
}

.newsletter-privacy {
  font-size: 0.875rem;
  color: var(--gray-dark);
}

/* ========================
   BLOG ARTICLE STYLES
======================== */
.blog-article {
  padding: calc(var(--space-xl) * 2) 0 var(--space-xl);
}

.article-header {
  margin-bottom: var(--space-lg);
}

.article-header h1 {
  margin: var(--space-sm) 0;
  font-size: 2.5rem;
}

.article-meta {
  display: flex;
  gap: var(--space-md);
  color: var(--gray-dark);
  font-size: 0.875rem;
}

.article-meta > div {
  display: flex;
  align-items: center;
}

.article-meta i {
  margin-right: var(--space-xs);
  color: var(--primary-color);
}

.article-featured-image {
  margin-bottom: var(--space-lg);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.article-featured-image img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
}

.article-content h2 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-md);
  font-size: 1.75rem;
}

.article-content h3 {
  margin-top: var(--space-md);
  margin-bottom: var(--space-sm);
  font-size: 1.5rem;
}

.article-content h4 {
  margin-top: var(--space-md);
  margin-bottom: var(--space-sm);
  font-size: 1.25rem;
}

.article-content p {
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

.article-content ul,
.article-content ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-md);
}

.article-content li {
  margin-bottom: var(--space-xs);
}

.article-callout {
  display: flex;
  background-color: var(--primary-light);
  border-radius: var(--border-radius-lg);
  padding: var(--space-md);
  margin: var(--space-lg) 0;
}

.article-callout i {
  color: var(--primary-color);
  margin-right: var(--space-sm);
  margin-top: 5px;
  flex-shrink: 0;
}

.article-callout h3 {
  margin-top: 0;
  margin-bottom: var(--space-xs);
  font-size: 1.25rem;
}

.article-callout p {
  margin-bottom: 0;
}

.article-image {
  margin: var(--space-lg) 0;
}

.image-caption {
  text-align: center;
  font-size: 0.875rem;
  color: var(--gray);
  margin-top: var(--space-xs);
}

.article-author {
  display: flex;
  align-items: center;
  background-color: var(--light);
  border-radius: var(--border-radius-lg);
  padding: var(--space-md);
  margin-top: var(--space-xl);
}

.author-image {
  margin-right: var(--space-md);
  flex-shrink: 0;
}

.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
}

.author-info h3 {
  margin-bottom: var(--space-xs);
  font-size: 1.25rem;
}

.author-info p {
  color: var(--gray-dark);
  margin-bottom: 0;
}

.article-footer {
  max-width: 800px;
  margin: var(--space-xl) auto 0;
  border-top: 1px solid var(--gray-light);
  padding-top: var(--space-lg);
}

.share-article {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.share-article span {
  font-weight: 500;
}

.share-buttons {
  display: flex;
  gap: var(--space-xs);
}

.share-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--light);
  color: var(--secondary-color);
  transition: all var(--transition-fast);
}

.share-button:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.related-articles h3 {
  margin-bottom: var(--space-md);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-md);
}

.related-item {
  display: flex;
  flex-direction: column;
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.related-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.related-image {
  height: 150px;
  overflow: hidden;
}

.related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.related-item:hover .related-image img {
  transform: scale(1.05);
}

.related-item h4 {
  padding: var(--space-sm);
  font-size: 1rem;
  margin-bottom: 0;
  color: var(--secondary-color);
}

.article-cta {
  background-color: var(--light);
  padding: var(--space-xl) 0;
}

/* ========================
   RESPONSIVE STYLES
======================== */
@media (min-width: 768px) {
  /* Header & Navigation */
  .hero {
    height: 100vh;
    min-height: 600px;
    max-height: 900px;
    display: flex;
    align-items: center;
  }
  
  .hero-image {
    display: block;
  }
  
  /* About Section */
  .about-content {
    flex-direction: row;
  }
  
  /* Contact Section */
  .contact-content {
    flex-direction: row;
  }
  
  /* Footer */
  .footer-content {
    flex-direction: row;
  }
  
  .footer-logo {
    flex: 1;
    align-items: flex-start;
    text-align: left;
    margin-bottom: 0;
  }
  
  .footer-links {
    flex: 2;
    flex-direction: row;
    justify-content: space-around;
  }
  
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
  
  .footer-bottom p {
    margin-bottom: 0;
  }
}

@media (max-width: 991px) {
  /* Hero Section */
  .hero-content {
    max-width: 100%;
    text-align: center;
    margin: 0 auto;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-image {
    display: none;
  }
}

@media (max-width: 767px) {
  /* Typography */
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  /* Header & Navigation */
  .nav-links {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  /* Hero Section */
  .hero {
    padding: calc(var(--space-xl) + 60px) 0 var(--space-lg);
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  /* Services Section */
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  /* Team Section */
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  /* Testimonials */
  .testimonial-slider {
    height: 400px;
  }
  
  /* Blog Preview */
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  /* Contact Section */
  .contact-form {
    padding: var(--space-md);
  }
  
  /* Newsletter Form */
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form .form-group {
    margin-bottom: var(--space-sm);
  }
}

@media (max-width: 575px) {
  /* Sections */
  .section {
    padding: var(--space-lg) 0;
  }
  
  /* Hero Section */
  .hero {
    padding: calc(var(--space-lg) + 60px) 0 var(--space-md);
  }
  
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  /* About Section */
  .stat {
    width: 100%;
    margin-bottom: var(--space-sm);
  }
  
  /* Testimonials */
  .testimonial-slider {
    height: 450px;
  }
  
  /* Blog Article */
  .article-meta {
    flex-direction: column;
    gap: var(--space-xs);
  }
  
  .article-callout {
    flex-direction: column;
  }
  
  .article-callout i {
    margin-bottom: var(--space-xs);
  }
  
  .article-author {
    flex-direction: column;
    text-align: center;
  }
  
  .author-image {
    margin-right: 0;
    margin-bottom: var(--space-sm);
  }
  
  .related-grid {
    grid-template-columns: 1fr;
  }
}
