@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Syne:wght@400;500;600;700;800&display=swap");

:root {
  --theme-color1: #1d1729;
  --theme-color2: #7243f2;
  --theme-color3: #ae8fff;
  --theme-color4: #f4f5fa;
  --theme-color5: #6222cc;
  --text-color: #6c6a72;
  --muted: #8d869d;
  --white: #ffffff;
  --gradient-1: linear-gradient(to left, var(--theme-color3), var(--theme-color2));
  --text-font: "DM Sans", sans-serif;
  --title-font: "Syne", sans-serif;
  --container: 1200px;
  --shadow: 0 10px 40px rgba(29, 23, 41, 0.08);
  --radius: 0;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--text-font);
  font-size: 16px;
  line-height: 30px;
  color: var(--text-color);
  background: var(--white);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: 0.3s ease;
}

ul {
  list-style: none;
}

button,
input,
textarea,
select {
  font-family: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--title-font);
  color: var(--theme-color1);
  font-weight: 600;
  line-height: 1.2;
}

h1 { font-size: 72px; }
h2 { font-size: 42px; }
h3 { font-size: 28px; }
h4 { font-size: 22px; }
h5 { font-size: 20px; }
h6 { font-size: 18px; }

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.container-wide {
  width: min(1400px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 110px 0;
}

.section-sm {
  padding: 80px 0;
}

.bg-light {
  background: var(--theme-color4);
}

.bg-dark {
  background: var(--theme-color1);
  color: #cfc8db;
}

.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4, .bg-dark h5, .bg-dark h6 {
  color: var(--white);
}

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

.subtitle {
  color: var(--theme-color2);
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 10px;
  display: inline-block;
}

.sec-title {
  margin-bottom: 50px;
}

.sec-title h2 {
  margin-top: 6px;
}

.theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  z-index: 0;
  overflow: hidden;
  font-size: 16px;
  line-height: 30px;
  padding: 15px 42px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  color: var(--white);
  background: var(--gradient-1);
  transition: 0.3s ease;
}

.theme-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 500ms cubic-bezier(0.86, 0, 0.07, 1);
  z-index: -1;
}

.theme-btn:hover {
  color: var(--theme-color1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.theme-btn:hover::before {
  transform: scaleX(1);
}

.theme-btn.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: var(--white);
}

.theme-btn.btn-outline::before {
  background: var(--gradient-1);
}

.theme-btn.btn-outline:hover {
  color: var(--white);
  border-color: transparent;
}

.theme-btn.btn-dark {
  background: var(--theme-color1);
}

.theme-btn.btn-lavender {
  background: var(--theme-color3);
}

.theme-btn.small {
  padding: 10px 28px;
  font-size: 14px;
}

/* Header */
.site-header {
  position: relative;
  z-index: 1000;
}

.header-top {
  background: var(--theme-color1);
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}

.header-top-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 42px;
  gap: 16px;
}

.header-top a:hover { color: var(--theme-color3); }

.top-left,
.top-right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.top-links {
  display: flex;
  gap: 6px;
  align-items: center;
}

.top-links span { opacity: 0.5; }

.social-icons {
  display: flex;
  gap: 10px;
}

.social-icons a {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
}

.social-icons a:hover {
  background: var(--theme-color2);
  border-color: var(--theme-color2);
  color: var(--white);
}

.header-main {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(29, 23, 41, 0.05);
}

.header-main.sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  animation: slideDown 0.35s ease;
  z-index: 1100;
}

@keyframes slideDown {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.header-main-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 88px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-shrink: 0;
  font-family: var(--title-font);
  font-weight: 800;
  letter-spacing: 1.6px;
  font-size: 18px;
  color: var(--theme-color1);
}

.logo img {
  height: 48px;
  width: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.logo-text small {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2.2px;
  color: var(--theme-color2);
}

.logo-text strong {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1px;
}

.logo.light .logo-text small,
.site-footer .logo-text small,
.sub-logo .logo-text small {
  color: var(--theme-color3);
}

.logo.light,
.site-footer .logo,
.sub-logo .logo {
  color: var(--white);
}

.main-nav ul {
  display: flex;
  gap: 18px;
  align-items: center;
}

.main-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--theme-color1);
  position: relative;
  padding: 8px 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--theme-color2);
  transition: 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--theme-color2);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  left: 0;
  width: 100%;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-ask {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-ask .icon-box {
  width: 48px;
  height: 48px;
  background: var(--theme-color2);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}

.header-ask small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

.header-ask strong {
  color: var(--theme-color1);
  font-size: 15px;
  font-weight: 700;
}

.icon-btn {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--theme-color1);
  font-size: 18px;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  background: var(--theme-color2);
  color: var(--white);
}

.mobile-nav {
  display: none;
  background: var(--theme-color1);
  padding: 16px 0 24px;
}

.mobile-nav.open { display: block; }

.mobile-nav a {
  display: block;
  color: var(--white);
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--theme-color3);
}

/* Hero */
.hero {
  position: relative;
  min-height: 680px;
  display: flex;
  align-items: center;
  background: url("../images/hero.jpg") center/cover no-repeat;
  color: var(--white);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(29, 23, 41, 0.88) 0%, rgba(29, 23, 41, 0.55) 55%, rgba(114, 67, 242, 0.35) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: 90px 0;
}

.hero-content .subtitle {
  color: var(--theme-color3);
}

.hero-content h1 {
  color: var(--white);
  margin: 10px 0 20px;
}

.hero-content p {
  color: #d9d4e4;
  max-width: 560px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.page-banner {
  position: relative;
  background: url("../images/banner.jpg") center/cover no-repeat;
  padding: 110px 0;
  text-align: center;
}

.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(29, 23, 41, 0.78);
}

.page-banner .container {
  position: relative;
  z-index: 1;
}

.page-banner h1 {
  color: var(--white);
  font-size: 56px;
  margin-bottom: 12px;
}

.breadcrumb {
  color: #d9d4e4;
  font-size: 15px;
}

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

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 70px;
  align-items: center;
}

.about-media {
  position: relative;
}

.about-media .main-img {
  width: 78%;
  height: 480px;
  object-fit: cover;
}

.about-media .side-img {
  position: absolute;
  right: 0;
  bottom: 40px;
  width: 46%;
  height: 230px;
  object-fit: cover;
  border: 8px solid var(--white);
  box-shadow: var(--shadow);
}

.experience-badge {
  position: absolute;
  left: -18px;
  bottom: 90px;
  background: var(--theme-color2);
  color: var(--white);
  padding: 22px 20px;
  width: 140px;
  text-align: center;
  font-family: var(--title-font);
}

.experience-badge strong {
  display: block;
  font-size: 32px;
  line-height: 1;
}

.about-copy h2 {
  margin: 8px 0 18px;
}

.feature-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 24px 0;
}

.feature-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.feature-item i {
  color: var(--theme-color2);
  font-size: 28px;
}

.feature-item h5 {
  margin-bottom: 4px;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 8px;
}

.check-list li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--theme-color2);
  position: absolute;
  left: 0;
}

.about-footer {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.founder {
  display: flex;
  align-items: center;
  gap: 12px;
}

.founder img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.founder span {
  display: block;
  font-size: 13px;
  color: var(--muted);
}

.progress-wrap {
  margin-top: 24px;
}

.progress-item {
  margin-bottom: 16px;
}

.progress-item .meta {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  color: var(--theme-color1);
  margin-bottom: 6px;
}

.progress-bar {
  height: 8px;
  background: #eceaf3;
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  background: var(--gradient-1);
  width: 0;
  transition: width 1.2s ease;
}

/* Services */
.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.service-card {
  background: var(--white);
  padding: 36px 32px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  transition: 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
}

.service-card .icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(114, 67, 242, 0.1);
  color: var(--theme-color2);
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-bottom: 14px;
}

.service-card h3 {
  margin-bottom: 10px;
}

.service-card p {
  margin-bottom: 14px;
}

.service-card .thumb {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
}

.read-more {
  color: var(--theme-color2);
  font-weight: 700;
  font-size: 14px;
}

.read-more i { margin-left: 6px; }
.read-more:hover { color: var(--theme-color5); }

.service-offer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-mini {
  background: var(--white);
  padding: 36px 24px;
  box-shadow: var(--shadow);
  transition: 0.3s ease;
}

.service-mini:hover {
  transform: translateY(-6px);
}

.service-mini .icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(174, 143, 255, 0.18);
  color: var(--theme-color2);
  display: grid;
  place-items: center;
  font-size: 24px;
  margin-bottom: 18px;
}

.service-mini h4 {
  margin-bottom: 10px;
}

.service-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.service-split-card {
  background: var(--white);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  min-height: 260px;
}

.service-split-card .copy {
  padding: 36px 28px;
}

.service-split-card .visual {
  position: relative;
}

.service-split-card .visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-top-left-radius: 80px;
}

.service-split-card .float-icon {
  position: absolute;
  left: -24px;
  top: 50%;
  transform: translateY(-50%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--white);
  color: var(--theme-color2);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  font-size: 20px;
}

/* CTA banner */
.cta-banner {
  position: relative;
  background: url("../images/cta-bg.jpg") center/cover no-repeat;
  padding: 90px 0;
  text-align: center;
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(29, 23, 41, 0.82);
}

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

.cta-banner h2 {
  color: var(--white);
  max-width: 820px;
  margin: 0 auto 28px;
}

.cta-strip {
  background: #ece6ff;
  padding: 32px 0;
}

.cta-strip-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.cta-strip h3 { margin: 0; }

/* FAQ + form */
.faq-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--theme-color4);
}

.faq-panel {
  background: var(--theme-color2);
  color: var(--white);
  padding: 80px 50px;
}

.faq-panel h2,
.faq-panel h3 { color: var(--white); }

.accordion-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.accordion-btn {
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--white);
  text-align: left;
  padding: 16px 0;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.accordion-body {
  display: none;
  padding: 0 0 16px;
  color: rgba(255, 255, 255, 0.82);
}

.accordion-item.open .accordion-body { display: block; }

.faq-light .accordion-item {
  border-bottom: 1px solid #ebe7f3;
}

.faq-light .accordion-btn {
  color: var(--theme-color1);
}

.faq-light .accordion-item.open .accordion-btn {
  color: var(--theme-color2);
}

.faq-light .accordion-body {
  color: var(--text-color);
}

.contact-card {
  background: var(--white);
  margin: 50px 40px;
  padding: 46px 40px;
  box-shadow: 0 20px 50px rgba(29, 23, 41, 0.12);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-grid .full { grid-column: 1 / -1; }

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  border: 1px solid #e6e2ef;
  background: var(--theme-color4);
  padding: 14px 16px;
  outline: none;
  color: var(--theme-color1);
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--theme-color2);
  background: var(--white);
}

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

.error-text {
  color: #d93025;
  font-size: 13px;
  line-height: 1.4;
  min-height: 18px;
  margin-top: 4px;
}

.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* Process */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.process-card {
  text-align: center;
  padding: 40px 28px 28px;
  background: var(--white);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.process-card .icon {
  width: 86px;
  height: 86px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(114, 67, 242, 0.12);
  color: var(--theme-color2);
  display: grid;
  place-items: center;
  font-size: 32px;
}

.process-card .step {
  position: absolute;
  right: 18px;
  bottom: 6px;
  font-family: var(--title-font);
  font-size: 64px;
  font-weight: 800;
  color: rgba(114, 67, 242, 0.08);
  line-height: 1;
}

/* Testimonials */
.testimonial-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 50px;
  align-items: center;
}

.client-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.client-stack img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.55;
  transition: 0.3s ease;
}

.client-stack img.active,
.client-stack img:hover {
  opacity: 1;
  outline: 3px solid var(--theme-color2);
  outline-offset: 3px;
}

.quote-mark {
  font-size: 48px;
  color: var(--theme-color2);
  margin-bottom: 10px;
}

.stars {
  color: #f5b301;
  margin: 12px 0;
}

.testimonial-nav {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.testimonial-nav button {
  width: 42px;
  height: 42px;
  border: 0;
  background: var(--theme-color2);
  color: var(--white);
  cursor: pointer;
}

.testimonial-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: visible;
  position: relative;
}

.testimonial-card .head {
  background: var(--theme-color2);
  color: var(--white);
  padding: 26px 24px 40px;
  font-family: var(--title-font);
  font-size: 20px;
  font-weight: 700;
}

.testimonial-card .avatar {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  object-fit: cover;
  position: absolute;
  right: 22px;
  top: 48px;
  border: 4px solid var(--white);
}

.testimonial-card .body {
  padding: 46px 24px 28px;
}

/* Projects */
.project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.project-card {
  background: var(--white);
}

.project-card .thumb {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.project-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.4s ease;
}

.project-card:hover .thumb img {
  transform: scale(1.08);
}

.tag {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: var(--theme-color2);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  z-index: 1;
}

.project-card h4 {
  padding: 18px 18px 20px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  background: var(--white);
  box-shadow: var(--shadow);
}

.news-card .thumb {
  position: relative;
  height: 220px;
}

.news-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card .date {
  position: absolute;
  left: 16px;
  bottom: -14px;
  background: var(--theme-color2);
  color: var(--white);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
}

.news-card .copy {
  padding: 32px 22px 24px;
}

.news-card h4 {
  margin-bottom: 10px;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: end;
}

.team-card {
  text-align: center;
}

.team-card .photo {
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
}

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

.team-card:nth-child(1) .photo {
  transform: perspective(800px) rotateY(12deg);
}

.team-card:nth-child(3) .photo {
  transform: perspective(800px) rotateY(-12deg);
}

.share-btn {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  background: var(--theme-color2);
  color: var(--white);
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
}

.team-card .role {
  color: var(--muted);
  text-transform: lowercase;
  font-size: 14px;
}

.team-social {
  display: none;
  position: absolute;
  right: 12px;
  bottom: 60px;
  flex-direction: column;
  gap: 6px;
}

.team-card.open .team-social,
.team-card:hover .team-social {
  display: flex;
}

.team-social a {
  width: 36px;
  height: 36px;
  background: var(--theme-color1);
  color: var(--white);
  display: grid;
  place-items: center;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.price-card {
  background: var(--theme-color1);
  color: #cfc8db;
  padding: 46px 36px 40px;
  text-align: left;
}

.price-card .mark {
  width: 54px;
  height: 54px;
  margin-bottom: 22px;
}

.price-card .amount {
  font-family: var(--title-font);
  font-size: 42px;
  color: var(--white);
  font-weight: 700;
}

.price-card .amount small {
  font-size: 14px;
  font-weight: 500;
  color: var(--theme-color3);
}

.price-card h3 {
  color: var(--white);
  margin: 10px 0 18px;
}

.price-card ul {
  margin-bottom: 28px;
}

.price-card li {
  padding: 7px 0 7px 22px;
  position: relative;
}

.price-card li::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--theme-color3);
  position: absolute;
  left: 0;
  top: 16px;
}

/* Contact page */
.contact-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.contact-points {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-point {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-point .icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--theme-color2);
  color: var(--white);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.contact-visual img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.legal-content h2,
.legal-content h3 {
  margin: 28px 0 12px;
}

.legal-content p,
.legal-content li {
  margin-bottom: 12px;
}

.legal-content ul {
  padding-left: 22px;
  list-style: disc;
}

.legal-content ol {
  padding-left: 22px;
}

.sidebar-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
}

.side-box {
  background: var(--theme-color4);
  padding: 8px;
  margin-bottom: 22px;
}

.side-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: var(--white);
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--theme-color1);
}

.side-links a.active,
.side-links a:hover {
  background: var(--theme-color2);
  color: var(--white);
}

.advice-box {
  background: var(--theme-color2);
  color: var(--white);
  padding: 32px 24px;
  text-align: center;
}

.advice-box h4 {
  color: var(--white);
  margin-bottom: 12px;
}

blockquote.highlight {
  border-left: 4px solid var(--theme-color2);
  padding: 12px 18px;
  font-style: italic;
  background: var(--theme-color4);
  margin: 22px 0;
}

.two-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 24px 0;
}

.two-images img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/* Subscribe bar + footer */
.subscribe-bar {
  background: #261f36;
  padding: 28px 0;
}

.subscribe-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
}

.sub-logo {
  background: var(--theme-color2);
  padding: 10px 16px;
  min-width: 240px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.sub-logo img { height: 36px; }

.subscribe-inner h3 {
  color: var(--white);
  margin: 0;
}

.subscribe-form {
  display: flex;
  min-width: 320px;
  align-items: flex-start;
}

.subscribe-form .form-field input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: var(--white);
  padding: 12px 16px;
}

.subscribe-form .form-field input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.sub-logo .logo {
  min-width: 0;
}

.subscribe-form .error-text {
  color: #ffb4b4;
}

.subscribe-form input {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: var(--white);
  padding: 12px 16px;
  outline: none;
}

.subscribe-form button {
  width: 52px;
  border: 0;
  background: var(--theme-color2);
  color: var(--white);
  cursor: pointer;
}

.site-footer {
  background: var(--theme-color1);
  padding: 80px 0 0;
  color: #b9b3c7;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.1fr 1fr;
  gap: 36px;
  padding-bottom: 50px;
}

.site-footer h4 {
  color: var(--white);
  margin-bottom: 18px;
  position: relative;
}

.site-footer h4::after {
  content: "";
  display: inline-block;
  width: 18px;
  height: 2px;
  background: var(--theme-color2);
  margin-left: 8px;
  vertical-align: middle;
}

.footer-about .logo {
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  padding: 6px 0 6px 16px;
  position: relative;
}

.footer-links a::before {
  content: "\f105";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--theme-color3);
  position: absolute;
  left: 0;
}

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

.footer-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.footer-gallery img {
  width: 100%;
  height: 70px;
  object-fit: cover;
}

.footer-contact li {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  align-items: flex-start;
}

.footer-contact i {
  color: var(--theme-color3);
  margin-top: 6px;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
}

.copyright .legal-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.copyright a:hover { color: var(--theme-color3); }

/* Search + thank you */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(29, 23, 41, 0.82);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.overlay.open { display: flex; }

.search-box,
.thanks-box {
  background: var(--white);
  padding: 40px;
  width: min(520px, 100%);
  text-align: center;
  position: relative;
}

.search-box input {
  width: 100%;
  border: 1px solid #e6e2ef;
  padding: 14px 16px;
  margin-top: 12px;
}

.search-results {
  text-align: left;
  margin-top: 16px;
}

.search-results a {
  display: block;
  padding: 8px 0;
  color: var(--theme-color1);
  font-weight: 600;
}

.search-results a:hover { color: var(--theme-color2); }

.close-overlay {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
}

.thanks-box i {
  font-size: 46px;
  color: var(--theme-color2);
  margin-bottom: 12px;
}

/* Utility */
[data-testimonial] + [data-testimonial] {
  display: none;
}

.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mt-20 { margin-top: 20px; }
.narrow { max-width: 860px; margin-left: auto; margin-right: auto; }

@media (max-width: 1199px) {
  h1 { font-size: 56px; }
  .main-nav,
  .header-ask { display: none; }
  .menu-toggle { display: grid; place-items: center; }
  .project-grid,
  .service-offer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 991px) {
  h1 { font-size: 44px; }
  h2 { font-size: 34px; }
  .main-nav,
  .header-ask { display: none; }
  .menu-toggle { display: grid; place-items: center; }
  .about-grid,
  .faq-contact,
  .testimonial-layout,
  .contact-intro,
  .sidebar-layout,
  .service-grid,
  .service-split,
  .subscribe-inner {
    grid-template-columns: 1fr;
  }
  .faq-panel,
  .contact-card { margin: 0; padding: 40px 24px; }
  .team-grid,
  .pricing-grid,
  .testimonial-cards,
  .news-grid,
  .process-grid {
    grid-template-columns: 1fr 1fr;
  }
  .about-media .main-img { width: 100%; height: 380px; }
  .hero { min-height: 520px; }
  .page-banner h1 { font-size: 42px; }
  .team-card:nth-child(1) .photo,
  .team-card:nth-child(3) .photo { transform: none; }
}

@media (max-width: 767px) {
  .section { padding: 70px 0; }
  .team-grid,
  .pricing-grid,
  .testimonial-cards,
  .news-grid,
  .process-grid,
  .project-grid,
  .service-offer-grid,
  .form-grid,
  .service-split-card,
  .footer-grid,
  .feature-pair,
  .two-images {
    grid-template-columns: 1fr;
  }
  .hero-content h1 { font-size: 36px; }
  .page-banner { padding: 80px 0; }
  .page-banner h1 { font-size: 34px; }
  .header-top-inner { justify-content: center; text-align: center; }
  .top-right { display: none; }
  .copyright { justify-content: center; text-align: center; }
  .cta-strip-inner { flex-direction: column; text-align: center; }
  .service-card { grid-template-columns: 1fr; }
}
