:root {
  --primary: #635bff;
  --primary-hover: #5248e6;
  --primary-light: #7b6fff;
  --navy: #1c1635;
  --navy-2: #252042;
  --white: #ffffff;
  --bg-soft: #f6f7fb;
  --bg-pattern: #eef0f8;
  --text: #5c5c72;
  --heading: #1c1635;
  --border: #e4e6ef;
  --radius: 12px;
  --shadow: 0 10px 40px rgba(28, 22, 53, 0.08);
  --font-sans: "Poppins", system-ui, sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
}

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

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

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

h1,
h2,
h3,
h4,
h5 {
  color: var(--heading);
  line-height: 1.25;
  margin: 0 0 1rem;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.section-title h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
}

.section-title p {
  margin: 0.75rem 0 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

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

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

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

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

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

.top-bar {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  padding: 0.5rem 0;
}

.top-bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 1rem;
}

.top-bar a {
  color: var(--white);
}

.header-search {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

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

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

.main-nav a {
  color: var(--heading);
  font-weight: 500;
  font-size: 0.92rem;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--navy);
}

/* Hero */
.hero {
  position: relative;
  padding: 4rem 0 5rem;
  background: linear-gradient(135deg, var(--bg-pattern) 0%, var(--white) 50%, var(--bg-soft) 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(99, 91, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(99, 91, 255, 0.06) 0%, transparent 45%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  margin-bottom: 1.25rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(99, 91, 255, 0.1);
  color: var(--primary);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-icon-float {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 80px;
  height: 80px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  font-size: 2rem;
}

/* Feature cards */
.features-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: -3rem;
  position: relative;
  z-index: 2;
}

.feature-card {
  background: var(--white);
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
}

.feature-card.highlight {
  background: linear-gradient(145deg, var(--primary-light), var(--primary));
  color: var(--white);
}

.feature-card.highlight h3,
.feature-card.highlight p {
  color: var(--white);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background: rgba(99, 91, 255, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.feature-card.highlight .feature-icon {
  background: rgba(255, 255, 255, 0.2);
}

/* About block */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  position: relative;
}

.about-images img {
  border-radius: var(--radius);
  object-fit: cover;
  width: 100%;
  height: 220px;
}

.about-images .exp-badge {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.check-list li {
  padding: 0.4rem 0 0.4rem 1.75rem;
  position: relative;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

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

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

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

.service-card .icon-wrap {
  width: 56px;
  height: 56px;
  background: rgba(99, 91, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -2.5rem auto 1rem;
  position: relative;
  z-index: 1;
  font-size: 1.5rem;
}

/* CTA strip */
.cta-strip {
  background: linear-gradient(90deg, var(--primary), #4f8cff);
  padding: 2.5rem 0;
  color: var(--white);
}

.cta-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-strip img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.3);
}

/* Why choose */
.why-section {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  overflow: hidden;
}

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

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.why-image-wrap {
  position: relative;
}

.why-image-wrap img {
  border-radius: var(--radius);
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
}

.progress-bar-wrap {
  margin-top: 1.5rem;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.progress-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 4px;
  width: 92%;
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-bottom: 4px solid var(--primary);
  position: relative;
}

.testimonial-card::before {
  content: "\201C";
  font-size: 4rem;
  color: var(--primary);
  opacity: 0.2;
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  line-height: 1;
  font-family: Georgia, serif;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
}

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

/* Quote section */
.quote-section {
  background: var(--bg-soft) url("../assets/images/quote-bg.jpg") center/cover no-repeat;
  position: relative;
}

.quote-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(246, 247, 251, 0.92);
}

.quote-section .container {
  position: relative;
  z-index: 1;
}

.quote-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.quote-tab {
  padding: 0.6rem 1.25rem;
  border: 2px solid var(--border);
  background: var(--white);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  color: var(--heading);
}

.quote-tab.active {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--white);
}

.quote-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

.quote-layout > img {
  border-radius: var(--radius);
  object-fit: cover;
  width: 100%;
  height: 100%;
  min-height: 320px;
}

/* Contact page */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-info h2 {
  margin-top: 0;
}

.contact-media {
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.contact-media img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.contact-email {
  margin-bottom: 0;
}

.contact-form {
  margin: 0;
  height: auto;
}

.contact-form-title {
  margin: 0 0 1.25rem;
  font-size: 1.35rem;
}

.contact-form .form-row {
  align-items: start;
}

.contact-form .checkbox-group {
  align-items: flex-start;
  margin: 0.25rem 0 1.25rem;
}

.contact-form .btn-primary {
  width: 100%;
  margin-top: 0.25rem;
}

.contact-form .form-success {
  margin-top: 1rem;
}

/* Forms */
.form-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

.form-group label {
  display: block;
  font-weight: 500;
  color: var(--heading);
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #e74c3c;
}

.field-error {
  color: #e74c3c;
  font-size: 0.8rem;
  margin-top: 0.35rem;
  display: none;
}

.field-error.visible {
  display: block;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
  width: 1.125rem;
  height: 1.125rem;
  min-width: 1.125rem;
  margin: 0.2rem 0 0;
  accent-color: var(--primary);
  flex-shrink: 0;
  cursor: pointer;
}

.checkbox-group label {
  margin: 0;
  font-weight: 400;
  font-size: 0.9rem;
  line-height: 1.5;
  cursor: pointer;
  flex: 1;
}

.checkbox-group .field-error {
  width: 100%;
  flex-basis: 100%;
  margin-left: calc(1.125rem + 0.65rem);
}

.form-success {
  display: none;
  padding: 1.25rem;
  background: #e8f8ef;
  border: 1px solid #2ecc71;
  color: #1e7e45;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  margin-top: 1rem;
}

.form-success.visible {
  display: block;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.team-card {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

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

.team-card-body {
  padding: 1.5rem;
  background: linear-gradient(180deg, var(--bg-soft), var(--white));
}

.team-social {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.team-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(99, 91, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 0.85rem;
}

/* Blog cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

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

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

.blog-date {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.pricing-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
}

.pricing-card.featured {
  border-color: var(--primary);
  transform: scale(1.03);
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
}

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

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  flex: 1;
}

.pricing-features li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

/* Page banner */
.page-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #2d2650 100%);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.page-banner h1 {
  color: var(--white);
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.breadcrumb {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  opacity: 0.85;
}

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

/* Projects */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.project-card {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}

.project-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.3s;
}

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

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(28, 22, 53, 0.9));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: var(--white);
}

.project-overlay h3 {
  color: var(--white);
  margin: 0;
}

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

.legal-content h2 {
  font-size: 1.35rem;
  margin-top: 2.5rem;
}

.legal-content h3 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
}

.legal-content p,
.legal-content li {
  font-size: 0.98rem;
}

.legal-content ul {
  padding-left: 1.25rem;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  padding-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 3rem;
}

.site-footer h4 {
  color: var(--white);
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.75);
}

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

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

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

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

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

.footer-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.9rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
  margin-top: 0.75rem;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
  margin: 3rem 0;
}

.stat-item h3 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.bg-soft {
  background: var(--bg-soft);
}

/* Responsive */
@media (max-width: 992px) {
  .hero-grid,
  .about-grid,
  .why-grid,
  .quote-layout,
  .contact-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .contact-media img {
    height: 240px;
  }

  .features-row,
  .services-grid,
  .team-grid,
  .blog-grid,
  .pricing-grid,
  .project-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-card.featured {
    transform: none;
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    display: none;
    padding: 1rem;
  }

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

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
  }

  .features-row {
    margin-top: 2rem;
  }
}

@media (max-width: 576px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .header-actions .btn {
    display: none;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }
}
