@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap');

:root {
  --primary: #27B07D;
  --primary-rgb: 39, 176, 125;
  --secondary: #26727E;
  --secondary-rgb: 38, 114, 126;
  --accent: #56E66A;
  --accent-rgb: 86, 230, 106;
  --bg: #F7F8FA;
  --bg-alt: #EDEEF2;
  --text-color: #1E2128;
  --text-muted: #555A65;
  --section-dark: #1E2128;
  --section-accent: #E8EAF0;
  --white: #ffffff;
  --border-light: #dde0e6;
  --font-primary: 'Nunito', system-ui, -apple-system, sans-serif;
  --container-max: 1200px;
  --gutter: 24px;
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.3s ease;
}

@keyframes floatOrb {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-18px) rotate(2deg); }
  66% { transform: translateY(-8px) rotate(-1deg); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmerSlide {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 8px rgba(var(--primary-rgb), 0.35); }
  50% { box-shadow: 0 0 22px rgba(var(--primary-rgb), 0.55); }
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-color);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-color);
  margin-bottom: 0.5em;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.625rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-color);
}

ul, ol {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.container {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  width: 100%;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: calc(var(--gutter) / -2);
  margin-right: calc(var(--gutter) / -2);
}

.row > * {
  padding-left: calc(var(--gutter) / 2);
  padding-right: calc(var(--gutter) / 2);
  width: 100%;
}

.grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gutter);
}

.grid-2 {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gutter);
}

.grid-2 > * {
  flex: 1 1 calc(50% - var(--gutter));
  min-width: 280px;
}

.grid-3 {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gutter);
}

.grid-3 > * {
  flex: 1 1 calc(33.333% - var(--gutter));
  min-width: 260px;
}

.grid-4 {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gutter);
}

.grid-4 > * {
  flex: 1 1 calc(25% - var(--gutter));
  min-width: 220px;
}

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow var(--transition), background var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0;
  padding-bottom: 0;
  min-height: 72px;
}

.logo {
  font-size: 1.375rem;
  font-weight: 900;
  color: var(--text-color);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo:hover {
  color: var(--primary);
}

.logo span {
  color: var(--primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-item {
  list-style: none;
}

.nav-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-color);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.06);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-color);
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  z-index: 1001;
}

main {
  padding-top: 72px;
}

.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: var(--primary);
  color: var(--white);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -80px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.18) 0%, transparent 70%);
  z-index: 0;
  animation: floatOrb 7s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -40px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  z-index: 0;
  animation: floatOrb 9s ease-in-out infinite reverse;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 55%;
  padding: 3rem 4rem;
}

.hero-content h1 {
  color: var(--white);
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.hero-content p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.125rem;
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 48%;
  height: 100%;
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
  z-index: 1;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-diagonal {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
}

.hero-diagonal::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -60px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.12);
  animation: floatOrb 6s ease-in-out infinite;
}

.hero-diagonal::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: 10%;
  width: 280px;
  height: 280px;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  background: rgba(255, 255, 255, 0.04);
}

.header-hero {
  position: relative;
  padding: 5rem 0 4rem;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  color: var(--white);
  text-align: center;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
  overflow: hidden;
}

.header-hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -40px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.1);
  animation: floatOrb 8s ease-in-out infinite;
}

.header-hero h1 {
  color: var(--white);
  font-size: 2.5rem;
  position: relative;
  z-index: 2;
}

.header-hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.125rem;
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.content-section {
  padding: 4rem 0;
}

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

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

.section-dark p {
  color: rgba(255, 255, 255, 0.78);
}

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

.section-dark a:hover {
  color: var(--white);
}

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

.section-header {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  margin-bottom: 0.75rem;
  position: relative;
  display: inline-block;
}

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

.section-header p {
  color: var(--text-muted);
  font-size: 1.0625rem;
  margin-top: 1rem;
}

.section-dark .section-header h2::after {
  background: var(--accent);
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}

.card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12), 0 6px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  transition: transform 0.45s ease;
  overflow: hidden;
}

.card:hover img {
  transform: scale(1.04);
}

.card h3, .card h4 {
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.feature {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border-light);
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
  text-align: center;
}

.feature:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(var(--secondary-rgb), 0.08));
  color: var(--primary);
  font-size: 1.625rem;
  margin-bottom: 1.25rem;
  transition: background var(--transition), transform var(--transition);
}

.feature:hover .feature-icon {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  transform: scale(1.1);
}

.feature h3, .feature h4 {
  margin-bottom: 0.5rem;
}

.feature p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.section-dark .feature {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.section-dark .feature:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
}

.section-dark .feature p {
  color: rgba(255, 255, 255, 0.7);
}

.section-dark .feature-icon {
  background: rgba(var(--accent-rgb), 0.15);
  color: var(--accent);
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border-light);
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 12px;
  left: 20px;
  font-size: 4rem;
  color: var(--accent);
  opacity: 0.3;
  line-height: 1;
  font-family: Georgia, serif;
}

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

.testimonial-card p {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.9375rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.testimonial-card .author {
  font-weight: 700;
  font-style: normal;
  color: var(--text-color);
  font-size: 0.9375rem;
}

.testimonial-card .author span {
  display: block;
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.8125rem;
  margin-top: 2px;
}

.section-dark .testimonial-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.section-dark .testimonial-card p {
  color: rgba(255, 255, 255, 0.78);
}

.section-dark .testimonial-card .author {
  color: var(--white);
}

.section-dark .testimonial-card .author span {
  color: rgba(255, 255, 255, 0.6);
}

.pricing-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  border: 1px solid var(--border-light);
  text-align: center;
  transition: box-shadow 0.35s ease, transform 0.35s ease, border-color 0.35s ease;
  position: relative;
  overflow: hidden;
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
  border-color: var(--primary);
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.15);
}

.pricing-card.featured::before {
  content: 'Popular';
  position: absolute;
  top: 16px;
  right: -28px;
  transform: rotate(45deg);
  background: var(--primary);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 36px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pricing-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.pricing-card .price {
  font-size: 2.75rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.pricing-card .price span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  text-align: left;
}

.pricing-card li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.9375rem;
  padding-left: 1.5rem;
  position: relative;
}

.pricing-card li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.two-col-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3rem;
}

.two-col-layout > * {
  flex: 1 1 calc(50% - 1.5rem);
  min-width: 300px;
}

.two-col-layout.reverse {
  flex-direction: row-reverse;
}

.two-col-layout img {
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease;
}

.two-col-layout img:hover {
  transform: scale(1.02);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-primary);
  font-size: 0.9375rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition);
  line-height: 1.4;
}

.btn-primary {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--primary);
  background: linear-gradient(to right, var(--primary) 50%, transparent 50%);
  background-size: 200% 100%;
  background-position: right;
  transition: background-position 0.35s ease, color 0.35s ease, box-shadow 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.4;
}

.btn-primary:hover {
  background-position: left;
  color: var(--white);
  box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.3);
}

.section-dark .btn-primary {
  border-color: var(--accent);
  color: var(--accent);
  background: linear-gradient(to right, var(--accent) 50%, transparent 50%);
  background-size: 200% 100%;
  background-position: right;
}

.section-dark .btn-primary:hover {
  color: var(--section-dark);
  background-position: left;
}

.btn-secondary {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border: 2px solid var(--secondary);
  border-radius: var(--radius);
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--secondary);
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  line-height: 1.4;
}

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

.btn-outline {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border: 2px solid currentColor;
  border-radius: var(--radius);
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.9375rem;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  line-height: 1.4;
}

.btn-outline:hover {
  background: var(--text-color);
  color: var(--white);
  border-color: var(--text-color);
}

.section-dark .btn-outline {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.section-dark .btn-outline:hover {
  background: var(--white);
  color: var(--section-dark);
  border-color: var(--white);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.0625rem;
}

.hero .btn-primary {
  border-color: var(--white);
  color: var(--white);
  background: linear-gradient(to right, var(--white) 50%, transparent 50%);
  background-size: 200% 100%;
  background-position: right;
}

.hero .btn-primary:hover {
  color: var(--primary);
  background-position: left;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.25);
}

.hero .btn-secondary,
.header-hero .btn-secondary {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}

.hero .btn-secondary:hover,
.header-hero .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--white);
}

form {
  max-width: 100%;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.375rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-color);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  font-family: var(--font-primary);
  font-size: 1rem;
  color: var(--text-color);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

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

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

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.contact-info-item i,
.contact-info-item .icon {
  color: var(--primary);
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 3px;
}

.faq-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: var(--white);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  transition: background var(--transition);
  -webkit-user-select: none;
  user-select: none;
}

.faq-question:hover {
  background: rgba(var(--primary-rgb), 0.04);
}

.faq-question::after {
  content: '+';
  font-size: 1.375rem;
  color: var(--primary);
  font-weight: 600;
  transition: transform var(--transition);
}

.faq-item.active .faq-question::after {
  content: '\2212';
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 1.25rem 1.25rem;
}

.faq-answer p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.section-angled {
  position: relative;
  padding: 6rem 0 8rem;
  clip-path: polygon(0 4%, 100% 0, 100% 96%, 0 100%);
  margin-top: -3rem;
  margin-bottom: -3rem;
}

.section-angled-alt {
  position: relative;
  padding: 6rem 0 8rem;
  clip-path: polygon(0 0, 100% 4%, 100% 100%, 0 96%);
  margin-top: -3rem;
  margin-bottom: -3rem;
}

.section-divider {
  display: block;
  width: 100%;
  height: auto;
  margin: -1px 0;
  line-height: 0;
}

.section-divider svg {
  display: block;
  width: 100%;
  height: 60px;
}

.section-divider.flip {
  transform: scaleY(-1);
}

footer.footer-minimal {
  padding: 2.5rem 0;
  background: var(--section-dark);
  color: rgba(255, 255, 255, 0.7);
  border-top: none;
}

footer.footer-minimal .footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

footer.footer-minimal .footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

footer.footer-minimal .footer-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition);
}

footer.footer-minimal .footer-links a:hover {
  color: var(--accent);
}

footer.footer-minimal p {
  margin: 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

footer .footer-logo {
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--white);
}

footer .footer-social {
  display: flex;
  gap: 0.75rem;
}

footer .footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  transition: background var(--transition), color var(--transition);
  font-size: 0.875rem;
}

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

[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

[data-animate="fade-in"] {
  transform: none;
}

[data-animate="fade-in"].visible {
  opacity: 1;
}

[data-animate="slide-left"] {
  transform: translateX(-30px);
}

[data-animate="slide-left"].visible {
  opacity: 1;
  transform: translateX(0);
}

[data-animate="slide-right"] {
  transform: translateX(30px);
}

[data-animate="slide-right"].visible {
  opacity: 1;
  transform: translateX(0);
}

[data-animate="scale-in"] {
  transform: scale(0.92);
}

[data-animate="scale-in"].visible {
  opacity: 1;
  transform: scale(1);
}

[data-stagger] > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

[data-stagger] > *.visible {
  opacity: 1;
  transform: translateY(0);
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.section-dark .badge {
  background: rgba(var(--accent-rgb), 0.15);
  color: var(--accent);
}

.stat-item {
  text-align: center;
  padding: 1.5rem 1rem;
}

.stat-item .stat-number {
  font-size: 2.75rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.375rem;
}

.section-dark .stat-item .stat-number {
  color: var(--accent);
}

.stat-item .stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.section-dark .stat-item .stat-label {
  color: rgba(255, 255, 255, 0.6);
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.blog-card:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.blog-card-body {
  padding: 1.5rem;
}

.blog-card-body .date {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.blog-card-body h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.blog-card-body h3 a {
  color: var(--text-color);
  transition: color var(--transition);
}

.blog-card-body h3 a:hover {
  color: var(--primary);
}

.blog-card-body p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.cta-banner {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 4rem 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}

.cta-banner h2 {
  color: var(--white);
  position: relative;
  z-index: 1;
  margin-bottom: 0.75rem;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  z-index: 1;
  max-width: 500px;
  margin: 0 auto 1.5rem;
  font-size: 1.0625rem;
}

.cta-banner .btn {
  position: relative;
  z-index: 1;
}

.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.gallery-grid > * {
  flex: 1 1 calc(33.333% - 16px);
  min-width: 220px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.gallery-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
  opacity: 1;
}

.timeline-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
}

.timeline-marker {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  margin-top: 6px;
  position: relative;
}

.timeline-marker::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: calc(100% + 2rem);
  background: var(--border-light);
}

.timeline-item:last-child .timeline-marker::after {
  display: none;
}

.timeline-content h4 {
  margin-bottom: 0.375rem;
}

.timeline-content p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 2;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.65);
}

.breadcrumb a:hover {
  color: var(--white);
}

.breadcrumb .separator {
  color: rgba(255, 255, 255, 0.4);
}

.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.9375rem;
  border-left: 4px solid;
}

.alert-success {
  background: rgba(var(--primary-rgb), 0.08);
  border-color: var(--primary);
  color: var(--primary);
}

.alert-info {
  background: rgba(var(--secondary-rgb), 0.08);
  border-color: var(--secondary);
  color: var(--secondary);
}

.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 0.875rem 1.25rem;
  text-align: left;
  font-size: 0.9375rem;
}

th {
  background: var(--bg-alt);
  font-weight: 700;
  color: var(--text-color);
  border-bottom: 2px solid var(--border-light);
}

td {
  border-bottom: 1px solid var(--border-light);
  color: var(--text-muted);
}

tr:last-child td {
  border-bottom: none;
}

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

.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition), background var(--transition);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--secondary);
  transform: translateY(-3px);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media screen and (max-width: 1280px) {
  .hero-content {
    max-width: 55%;
    padding: 2.5rem 3rem;
  }

  .hero-content h1 {
    font-size: 2.625rem;
  }
}

@media screen and (max-width: 1024px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }

  .hero {
    min-height: 75vh;
  }

  .hero-content {
    max-width: 50%;
    padding: 2rem;
  }

  .hero-content h1 {
    font-size: 2.25rem;
  }

  .hero-image {
    width: 52%;
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%);
  }

  .content-section {
    padding: 3.5rem 0;
  }

  .two-col-layout {
    gap: 2rem;
  }

  .grid-4 > * {
    flex: 1 1 calc(50% - var(--gutter));
  }
}

@media screen and (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.375rem; }

  .mobile-menu-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1.5rem;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    gap: 0;
    max-height: 70vh;
    overflow-y: auto;
  }

  .nav-menu.active,
  .nav-menu.visible {
    transform: translateY(0);
  }

  .nav-item {
    width: 100%;
    border-bottom: 1px solid var(--border-light);
  }

  .nav-item:last-child {
    border-bottom: none;
  }

  .nav-link {
    display: block;
    padding: 0.875rem 0.5rem;
    font-size: 1rem;
    text-align: center;
  }

  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .hero {
    min-height: auto;
    flex-direction: column;
    padding: 4rem 0 6rem;
    clip-path: polygon(0 0, 100% 0, 100% 94%, 0 100%);
  }

  .hero-content {
    max-width: 100%;
    padding: 2rem var(--gutter);
    text-align: center;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-image {
    position: relative;
    width: 100%;
    height: 260px;
    clip-path: none;
  }

  .hero-diagonal {
    min-height: auto;
    padding: 4rem 0 6rem;
    clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
  }

  .header-hero {
    padding: 3.5rem 0 3rem;
    clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
  }

  .header-hero h1 {
    font-size: 2rem;
  }

  .content-section {
    padding: 3rem 0;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .two-col-layout {
    flex-direction: column;
    gap: 2rem;
  }

  .two-col-layout.reverse {
    flex-direction: column;
  }

  .two-col-layout > * {
    flex: 1 1 100%;
    min-width: auto;
  }

  .grid-2 > *,
  .grid-3 > * {
    flex: 1 1 100%;
    min-width: auto;
  }

  .grid-4 > * {
    flex: 1 1 100%;
    min-width: auto;
  }

  .cta-banner {
    padding: 3rem 1.5rem;
  }

  .cta-banner h2 {
    font-size: 1.75rem;
  }

  footer.footer-minimal .footer-content {
    flex-direction: column;
    text-align: center;
  }

  footer.footer-minimal .footer-links {
    justify-content: center;
  }

  .gallery-grid > * {
    flex: 1 1 calc(50% - 16px);
  }

  .pricing-card {
    padding: 2rem 1.5rem;
  }

  .section-angled,
  .section-angled-alt {
    clip-path: polygon(0 2%, 100% 0, 100% 98%, 0 100%);
    padding: 4.5rem 0 5.5rem;
    margin-top: -1.5rem;
    margin-bottom: -1.5rem;
  }

  .stat-item .stat-number {
    font-size: 2.25rem;
  }
}

@media screen and (max-width: 480px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }

  body {
    font-size: 0.9375rem;
  }

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    padding: 3rem 0 5rem;
  }

  .hero-content h1 {
    font-size: 1.75rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .header-hero {
    padding: 3rem 0 2.5rem;
  }

  .header-hero h1 {
    font-size: 1.625rem;
  }

  .content-section {
    padding: 2.5rem 0;
  }

  .section-header {
    margin-bottom: 1.75rem;
  }

  .card {
    padding: 1.5rem;
  }

  .feature {
    padding: 1.5rem;
  }

  .testimonial-card {
    padding: 1.5rem;
  }

  .pricing-card .price {
    font-size: 2.25rem;
  }

  .btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }

  .gallery-grid > * {
    flex: 1 1 100%;
  }

  .gallery-item img {
    height: 200px;
  }

  .cta-banner {
    padding: 2.5rem 1rem;
    border-radius: var(--radius);
  }

  .faq-question {
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
  }

  .video-embed {
    border-radius: var(--radius);
  }

  table {
    font-size: 0.875rem;
  }

  th, td {
    padding: 0.625rem 0.875rem;
  }

  footer.footer-minimal {
    padding: 2rem 0;
  }

  .back-to-top {
    width: 40px;
    height: 40px;
    bottom: 16px;
    right: 16px;
    font-size: 1.125rem;
  }
}

@media print {
  .navbar, .back-to-top, .mobile-menu-toggle {
    display: none !important;
  }

  main {
    padding-top: 0;
  }

  .hero, .header-hero {
    clip-path: none;
    min-height: auto;
    padding: 2rem 0;
  }

  .content-section {
    padding: 1.5rem 0;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: var(--text-muted);
  }
}
