@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700&display=swap');

:root {
  --primary-color: #BE3023;
  --primary-rgb: 190, 48, 35;
  --secondary-color: #CA6C63;
  --accent-color: #EE7C72;
  --bg-color: #FAF8F5;
  --bg-alt: #F0ECE6;
  --text-color: #2C2520;
  --text-muted: #6B6055;
  --section-dark: #2C2520;
  --section-accent: #EDE6DD;
  --border-color: #D6CFC6;
  --white: #ffffff;
  --font-primary: 'Ubuntu', system-ui, -apple-system, sans-serif;
  --font-secondary: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1200px;
  --gutter: 1.5rem;
  --radius-sm: 0;
  --radius-md: 0;
  --transition: 0.3s ease;
}

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

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

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

body.menu-open {
  overflow: hidden;
}

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

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

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

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

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

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

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

blockquote {
  border-left: 4px solid var(--secondary-color);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--bg-alt);
  font-style: italic;
  color: var(--text-muted);
}

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

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

.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-color);
  transition: box-shadow var(--transition), background var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 2px 12px rgba(44, 37, 32, 0.1);
}

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

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-color);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

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

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

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

.nav-link {
  display: block;
  padding: 1.5rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-color);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-color);
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1100;
  position: relative;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(44, 37, 32, 0.97);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

body.menu-open .mobile-menu-overlay {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-overlay .nav-menu {
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
}

.mobile-menu-overlay .nav-link {
  color: var(--white);
  font-size: 1.25rem;
  padding: 1rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.mobile-menu-overlay .nav-link:hover {
  color: var(--accent-color);
  border-bottom-color: var(--accent-color);
}

main {
  padding-top: 70px;
}

.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(160deg, var(--section-dark) 0%, #3D302A 50%, var(--primary-color) 100%);
  color: var(--white);
  overflow: hidden;
  padding: 4rem 1.5rem;
}

.hero::before {
  content: '';
  position: absolute;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(238, 124, 114, 0.18) 0%, transparent 70%);
  top: -120px;
  right: -100px;
  z-index: 0;
  animation: heroFloat 7s ease-in-out infinite;
}

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

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 750px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.hero-content p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-content .btn {
  margin: 0 0.5rem 0.5rem 0;
}

.header-hero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(160deg, var(--section-dark) 0%, #3D302A 100%);
  color: var(--white);
  overflow: hidden;
  padding: 4rem 1.5rem;
}

.header-hero::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(190, 48, 35, 0.15) 0%, transparent 70%);
  top: -80px;
  right: -60px;
  z-index: 0;
}

.header-hero h1 {
  position: relative;
  z-index: 2;
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

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

.content-section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border-color);
}

.content-section:last-of-type {
  border-bottom: none;
}

.section-dark {
  background-color: var(--section-dark);
  color: var(--white);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

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

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

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

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

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

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  position: relative;
  display: inline-block;
  padding-bottom: 0.75rem;
}

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

.section-header p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 1rem auto 0;
  font-size: 1rem;
}

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

.card {
  background: var(--white);
  border: 1px solid var(--border-color);
  padding: 2rem;
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

.card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(190, 48, 35, 0.1), 0 4px 16px rgba(44, 37, 32, 0.08);
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  margin-bottom: 1.5rem;
  transition: transform 0.4s ease;
  overflow: hidden;
}

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

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

.card p {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

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

.feature:hover {
  border-color: var(--secondary-color);
  box-shadow: 0 4px 16px rgba(44, 37, 32, 0.06);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

.feature h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

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

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

.section-dark .feature:hover {
  border-color: var(--accent-color);
}

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

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

.featured-grid .featured-item {
  flex: 1 1 100%;
  border: 1px solid var(--border-color);
  background: var(--white);
  padding: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  transition: border-color 0.35s ease;
}

.featured-grid .featured-item:hover {
  border-color: var(--primary-color);
}

.featured-grid .featured-item img {
  flex: 1 1 300px;
  max-width: 450px;
  height: 280px;
  object-fit: cover;
}

.featured-grid .featured-item-content {
  flex: 1 1 300px;
}

.featured-grid .grid-items {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gutter);
  width: 100%;
}

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

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary-color);
  padding: 2rem;
  position: relative;
  transition: border-color 0.35s ease;
}

.testimonial-card:hover {
  border-left-color: var(--accent-color);
}

.testimonial-card::before {
  content: '\201C';
  font-size: 3rem;
  color: var(--accent-color);
  font-family: Georgia, serif;
  line-height: 1;
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  opacity: 0.35;
}

.testimonial-card p {
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.7;
}

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

.testimonial-card .author span {
  font-weight: 400;
  color: var(--text-muted);
}

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

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

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

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

.pricing-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(190, 48, 35, 0.1);
}

.pricing-card.featured {
  border-color: var(--primary-color);
  border-width: 2px;
  position: relative;
}

.pricing-card .price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 1rem 0;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.pricing-card li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.875rem;
  color: var(--text-muted);
}

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

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

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

.two-col-layout img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid var(--border-color);
}

.two-col-layout h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.two-col-layout p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: calc(50% + 2rem);
  position: relative;
  margin-bottom: 3rem;
}

.timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: calc(50% + 2rem);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 1.5rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary-color);
  border: 3px solid var(--bg-color);
  transform: translateX(-50%);
  z-index: 2;
}

.timeline-content {
  background: var(--white);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  max-width: 100%;
  transition: border-color 0.3s ease;
}

.timeline-content:hover {
  border-color: var(--secondary-color);
}

.timeline-content h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.timeline-content p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-primary);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.35s ease;
  line-height: 1.2;
}

.btn-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: linear-gradient(to right, var(--primary-color) 50%, transparent 50%);
  background-size: 200% 100%;
  background-position: right;
  transition: background-position 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
}

.btn-primary:hover {
  background-position: left;
  color: var(--white);
  box-shadow: 0 4px 14px rgba(190, 48, 35, 0.3);
}

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

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

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

.btn-outline:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-lg {
  padding: 1.1rem 2.8rem;
  font-size: 1rem;
}

.section-dark .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;
}

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

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

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

.contact-form {
  max-width: 650px;
  margin: 0 auto;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text-color);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-primary);
  font-size: 1rem;
  color: var(--text-color);
  background: var(--white);
  border: 1px solid var(--border-color);
  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-color);
  box-shadow: 0 0 0 3px rgba(190, 48, 35, 0.1);
}

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

.form-row {
  display: flex;
  gap: var(--gutter);
}

.form-row .form-group {
  flex: 1;
}

.faq-item {
  border: 1px solid var(--border-color);
  margin-bottom: 0.75rem;
  transition: border-color 0.3s ease;
}

.faq-item.active {
  border-color: var(--primary-color);
}

.faq-question {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1rem;
  background: var(--white);
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: var(--bg-alt);
}

.faq-question::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
  content: '\2212';
}

.faq-answer {
  display: none;
  padding: 0 1.5rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  display: block;
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gutter);
  justify-content: center;
}

.team-member {
  flex: 1 1 calc(25% - var(--gutter));
  min-width: 220px;
  max-width: 280px;
  text-align: center;
  border: 1px solid var(--border-color);
  padding: 2rem 1.5rem;
  background: var(--white);
  transition: border-color 0.35s ease;
}

.team-member:hover {
  border-color: var(--secondary-color);
}

.team-member img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.25rem;
  border: 3px solid var(--border-color);
  transition: border-color 0.35s ease;
}

.team-member:hover img {
  border-color: var(--primary-color);
}

.team-member h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.team-member .role {
  color: var(--primary-color);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.team-member p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

.portfolio-item {
  flex: 1 1 calc(50% - var(--gutter));
  min-width: 280px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

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

.portfolio-item:hover img {
  transform: scale(1.06);
}

.portfolio-item .portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(44, 37, 32, 0.92), transparent);
  color: var(--white);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay {
  transform: translateY(0);
}

.portfolio-overlay h3 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.portfolio-overlay p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0;
}

.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gutter);
  justify-content: center;
  text-align: center;
}

.stat-item {
  flex: 1 1 200px;
  padding: 2rem 1rem;
}

.stat-item .stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  display: block;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

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

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

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

.cta-block {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
}

.cta-block h2 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.cta-block p {
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 2rem;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

.cta-block .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;
}

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

.badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.badge-filled {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.divider {
  height: 1px;
  background: var(--border-color);
  margin: 3rem 0;
  border: none;
}

.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-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: 2rem;
  background: var(--section-dark);
  border-top: 3px solid var(--primary-color);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

footer.footer-minimal .footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  max-width: var(--max-width);
  margin: 0 auto;
}

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

footer.footer-minimal .footer-links a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

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

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

footer .section-dark {
  border-bottom: none;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-18px); }
}

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulseRing {
  0% {
    box-shadow: 0 0 0 0 rgba(190, 48, 35, 0.4);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(190, 48, 35, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(190, 48, 35, 0);
  }
}

[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  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-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);
}

.card img,
.feature img,
.portfolio-item img {
  transition: transform 0.45s ease;
}

.hero-content img {
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-color);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--white);
}

.trust-badge i {
  color: var(--primary-color);
}

.hero .trust-badges {
  margin-top: 2.5rem;
}

.hero .trust-badge {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
}

.hero .trust-badge i {
  color: var(--accent-color);
}

.insight-card {
  border: 1px solid var(--border-color);
  background: var(--white);
  overflow: hidden;
  transition: border-color 0.35s ease;
}

.insight-card:hover {
  border-color: var(--secondary-color);
}

.insight-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

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

.insight-card .meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.insight-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

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

.process-steps {
  counter-reset: process-counter;
}

.process-step {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 2.5rem;
  counter-increment: process-counter;
  position: relative;
}

.process-step::before {
  content: counter(process-counter);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--primary-color);
  color: var(--white);
  font-weight: 700;
  font-size: 1.125rem;
}

.process-step h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.process-step p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--text-muted);
}

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

.breadcrumb span {
  color: var(--text-muted);
}

.alert {
  padding: 1rem 1.5rem;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.map-embed {
  width: 100%;
  height: 350px;
  border: 1px solid var(--border-color);
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}

@media screen and (max-width: 1024px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }

  .featured-grid .featured-item img {
    max-width: 100%;
  }

  .timeline::before {
    left: 1.5rem;
  }

  .timeline-item {
    padding-right: 0;
    padding-left: 3.5rem;
    justify-content: flex-start;
  }

  .timeline-item:nth-child(even) {
    padding-left: 3.5rem;
    padding-right: 0;
  }

  .timeline-item::before {
    left: 1.5rem;
  }

  .portfolio-item img {
    height: 240px;
  }
}

@media screen and (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }

  .navbar .nav-menu {
    display: none;
  }

  main {
    padding-top: 70px;
  }

  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.35rem; }

  .hero {
    min-height: 75vh;
    padding: 3rem 1.25rem;
  }

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

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

  .header-hero {
    min-height: 240px;
    padding: 3rem 1.25rem;
  }

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

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

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

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

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

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

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

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

  .portfolio-item {
    flex: 1 1 100%;
  }

  .team-member {
    flex: 1 1 calc(50% - var(--gutter));
  }

  .stats-row {
    gap: 0;
  }

  .stat-item {
    flex: 1 1 50%;
    padding: 1.5rem 1rem;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .cta-block {
    padding: 3rem 1.25rem;
  }

  .section-angled {
    clip-path: polygon(0 2%, 100% 0, 100% 98%, 0 100%);
    padding: 4rem 0 6rem;
  }

  .trust-badges {
    gap: 0.5rem;
  }

  .trust-badge {
    font-size: 0.7rem;
    padding: 0.4rem 0.75rem;
  }

  .process-step {
    gap: 1.25rem;
  }

  .process-step::before {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

@media screen and (max-width: 480px) {
  body {
    font-size: 0.9375rem;
  }

  .container {
    padding: 0 1rem;
  }

  .hero {
    min-height: 65vh;
    padding: 2.5rem 1rem;
  }

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

  .hero::before {
    width: 200px;
    height: 200px;
  }

  .hero::after {
    width: 150px;
    height: 150px;
  }

  .header-hero {
    min-height: 200px;
    padding: 2.5rem 1rem;
  }

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

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

  .card {
    padding: 1.5rem;
  }

  .feature {
    padding: 1.5rem;
  }

  .testimonial-card {
    padding: 1.5rem;
  }

  .team-member {
    flex: 1 1 100%;
    max-width: 100%;
  }

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

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.8rem;
    width: 100%;
    text-align: center;
  }

  .btn-lg {
    padding: 0.85rem 2rem;
  }

  .hero-content .btn {
    margin: 0 0 0.75rem 0;
  }

  .section-header h2 {
    font-size: 1.25rem;
  }

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

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

  .cta-block {
    padding: 2.5rem 1rem;
  }

  .cta-block h2 {
    font-size: 1.25rem;
  }

  footer.footer-minimal .footer-content {
    flex-direction: column;
    gap: 1rem;
  }

  footer.footer-minimal .footer-links {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
  }
}

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

  [data-animate] {
    opacity: 1;
    transform: none;
  }

  [data-stagger] > * {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .navbar,
  .mobile-menu-toggle,
  .mobile-menu-overlay,
  .section-divider {
    display: none;
  }

  main {
    padding-top: 0;
  }

  .hero {
    min-height: auto;
    background: var(--white);
    color: var(--text-color);
    padding: 2rem 0;
  }

  .hero-content h1 {
    color: var(--text-color);
  }

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