:root {
  --navy: #1a1d2b;
  --navy-light: #252a3d;
  --orange: #f4a62a;
  --orange-dark: #e8941a;
  --white: #ffffff;
  --gray-100: #f5f6f8;
  --gray-200: #e8eaef;
  --gray-500: #6b7280;
  --text: #4a5568;
  --font: 'Poppins', system-ui, sans-serif;
  --radius: 8px;
  --shadow: 0 10px 40px rgba(26, 29, 43, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.section {
  padding: 90px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  color: var(--navy);
  margin: 0 0 12px;
  font-weight: 700;
}

.section-title p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--gray-500);
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

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

.btn-primary:hover {
  background: var(--orange-dark);
}

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

.btn-outline:hover {
  background: var(--orange);
  color: var(--navy);
}

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

.btn-dark:hover {
  background: var(--navy-light);
}

/* Header */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
}

.site-header.inner-header {
  position: relative;
  background: var(--navy);
}

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

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

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

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

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  min-height: 88vh;
  background: var(--navy);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-wave {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  background: var(--orange);
  clip-path: ellipse(80% 100% at 100% 0%);
  opacity: 0.95;
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 60px;
}

.hero-content h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  color: var(--white);
  line-height: 1.2;
  margin: 0 0 20px;
  font-weight: 700;
}

.hero-content p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 28px;
  max-width: 480px;
}

.hero-image {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

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

/* Page banner */
.page-banner {
  background: var(--navy);
  padding: 120px 0 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-banner::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 50%;
  height: 140%;
  background: var(--orange);
  clip-path: ellipse(70% 80% at 100% 30%);
  opacity: 0.25;
}

.page-banner h1 {
  color: var(--white);
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 2.75rem);
  position: relative;
  z-index: 1;
}

.breadcrumb {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

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

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

.about-images {
  position: relative;
}

.about-images .img-main {
  border-radius: 12px;
  overflow: hidden;
}

.about-images .img-secondary {
  position: absolute;
  bottom: -30px;
  right: -20px;
  width: 55%;
  border-radius: 12px;
  border: 6px solid var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.award-badge {
  position: absolute;
  top: 20px;
  left: -20px;
  width: 100px;
  height: 100px;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.75rem;
  text-align: center;
  line-height: 1.2;
  box-shadow: var(--shadow);
}

.about-content h2 {
  color: var(--navy);
  font-size: 2rem;
  margin: 0 0 16px;
}

.stats-row {
  display: flex;
  gap: 24px;
  margin: 28px 0;
  flex-wrap: wrap;
}

.stat-box {
  background: var(--gray-100);
  padding: 20px 28px;
  border-left: 4px solid var(--orange);
  border-radius: 4px;
}

.stat-box strong {
  display: block;
  font-size: 1.75rem;
  color: var(--navy);
}

.check-list li {
  padding: 8px 0 8px 32px;
  position: relative;
}

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

/* Services grid */
.services-section {
  background: var(--gray-100);
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l25.98 15v30L30 60 4.02 45V15z' fill='none' stroke='%23e0e3ea' stroke-width='1'/%3E%3C/svg%3E");
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.service-card {
  padding: 40px 28px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

.service-card.dark {
  background: var(--navy);
  color: var(--white);
  padding: 0;
  min-height: 320px;
}

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

.service-icon {
  width: 56px;
  height: 56px;
  background: rgba(244, 166, 42, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.service-card h3 {
  color: var(--navy);
  margin: 0 0 12px;
  font-size: 1.15rem;
}

.service-card.dark h3 {
  color: var(--white);
}

.service-card a {
  color: var(--orange);
  font-weight: 600;
  margin-top: 16px;
}

/* Testimonials */
.testimonial-block {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-block .stars {
  color: var(--orange);
  font-size: 1.25rem;
  letter-spacing: 4px;
  margin-bottom: 20px;
}

.testimonial-block blockquote {
  font-size: 1.15rem;
  color: var(--navy);
  font-style: italic;
  margin: 0 0 30px;
}

.testimonial-avatars {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.testimonial-avatars img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--orange);
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

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

.team-card .photo {
  background: var(--gray-100);
  padding: 20px;
}

.team-card .photo img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 4px;
}

.team-card h4 {
  margin: 16px 0 4px;
  color: var(--navy);
}

.team-card span {
  color: var(--orange);
  font-size: 0.85rem;
  font-weight: 600;
}

.team-social {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 16px;
}

.team-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--navy);
}

.team-social a:hover {
  background: var(--orange);
}

/* Why choose */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
}

.split-dark {
  background: var(--navy);
  padding: 70px 50px;
  color: var(--white);
  position: relative;
}

.split-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 20px,
    #fff 20px,
    #fff 21px
  );
}

.split-dark h2 {
  color: var(--white);
  position: relative;
}

.feature-list {
  position: relative;
}

.feature-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.feature-item img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.feature-item h4 {
  margin: 0 0 6px;
  color: var(--orange);
}

.split-image img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
}

/* Quote */
.quote-section {
  background: var(--gray-100);
}

.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.quote-form-card {
  background: var(--white);
  padding: 40px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid var(--orange);
  border-color: var(--orange);
}

.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
  border-color: #dc2626;
}

.field-error {
  display: block;
  color: #dc2626;
  font-size: 0.8rem;
  margin-top: 6px;
}

.form-message {
  margin-top: 16px;
  padding: 14px;
  border-radius: 4px;
  background: #ecfdf5;
  color: #065f46;
  font-weight: 500;
}

.form-message[hidden] {
  display: none;
}

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

.process-card {
  background: var(--white);
  border-radius: 8px;
  padding: 30px;
  box-shadow: var(--shadow);
  text-align: center;
}

.process-card .num {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--orange);
  opacity: 0.4;
}

.process-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 20px;
}

/* CTA bar */
.cta-bar {
  background: var(--navy);
  padding: 40px 0;
}

.cta-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.cta-bar h3 {
  color: var(--white);
  margin: 0;
  font-size: 1.5rem;
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.blog-featured {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  min-height: 400px;
}

.blog-featured img {
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
}

.blog-featured .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  background: linear-gradient(transparent, rgba(26, 29, 43, 0.9));
  color: var(--white);
}

.blog-list article {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-200);
}

.blog-list article img {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.blog-list h4 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 1rem;
}

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

.pricing-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 36px 28px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.pricing-card h3 {
  color: var(--navy);
  margin: 0 0 8px;
}

.pricing-card .price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--orange);
  margin: 20px 0;
}

.pricing-card ul li {
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.9rem;
}

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

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

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

.project-card .body {
  padding: 24px;
}

.project-card h3 {
  margin: 0 0 10px;
  color: var(--navy);
}

/* Content pages */
.content-page {
  padding: 70px 0 90px;
}

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

.content-page h2 {
  color: var(--navy);
  margin-top: 2em;
  font-size: 1.35rem;
}

.content-page h3 {
  color: var(--navy);
  margin-top: 1.5em;
}

.content-page p,
.content-page li {
  color: var(--text);
}

.content-page ul {
  list-style: disc;
  padding-left: 1.5em;
  margin: 1em 0;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info-card {
  background: var(--navy);
  color: var(--white);
  padding: 40px;
  border-radius: 12px;
}

.contact-info-card h3 {
  color: var(--orange);
  margin-top: 0;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
}

.footer-grid h4 {
  color: var(--white);
  margin: 0 0 20px;
  font-size: 1.1rem;
}

.footer-about p {
  margin: 16px 0 24px;
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-subscribe {
  display: flex;
  gap: 0;
  max-width: 320px;
}

.footer-subscribe input {
  flex: 1;
  padding: 12px 14px;
  border: none;
  border-radius: 4px 0 0 4px;
  font-family: inherit;
}

.footer-subscribe button {
  padding: 12px 18px;
  background: var(--orange);
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
}

.footer-links li {
  margin-bottom: 10px;
}

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

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.85rem;
}

.footer-social a:hover {
  background: var(--orange);
  color: var(--navy);
}

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

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

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

.footer-legal {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-legal a {
  color: var(--orange);
  font-size: 0.85rem;
}

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

.info-card {
  padding: 30px;
  background: var(--gray-100);
  border-radius: 8px;
  border-top: 4px solid var(--orange);
}

.info-card h3 {
  color: var(--navy);
  margin-top: 0;
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid,
  .process-grid,
  .pricing-grid,
  .projects-grid,
  .card-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero .container,
  .about-grid,
  .quote-grid,
  .blog-grid,
  .contact-grid,
  .split-section {
    grid-template-columns: 1fr;
  }

  .split-image img {
    min-height: 320px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-light);
    padding: 20px;
    display: none;
  }

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

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

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

  .services-grid,
  .team-grid,
  .process-grid,
  .pricing-grid,
  .projects-grid,
  .card-grid-3,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-wave {
    width: 100%;
    opacity: 0.3;
  }

  .about-images .img-secondary {
    position: relative;
    right: 0;
    bottom: 0;
    width: 100%;
    margin-top: 16px;
  }

  .award-badge {
    left: 10px;
  }
}
