:root {
  --rg-orange: #ff7e00;
  --rg-orange-dark: #e56f00;
  --rg-navy: #1a1d2e;
  --rg-navy-light: #252a42;
  --rg-bg: #f7f7f7;
  --rg-white: #ffffff;
  --rg-text: #2b2b2b;
  --rg-muted: #6b7280;
  --rg-border: #e5e7eb;
  --rg-radius: 5px;
  --rg-shadow: 0 10px 40px rgba(26, 29, 46, 0.08);
  --font-main: "Rubik", "Segoe UI", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

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

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

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

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

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--rg-bg);
}

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

.section-title .subtitle {
  display: inline-block;
  color: var(--rg-orange);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  color: var(--rg-navy);
  line-height: 1.25;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--rg-radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

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

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

.btn-outline-light {
  background: transparent;
  color: var(--rg-white);
  border-color: var(--rg-white);
}

.btn-outline-light:hover {
  background: var(--rg-white);
  color: var(--rg-navy);
}

.btn-outline-dark {
  background: transparent;
  color: var(--rg-navy);
  border-color: var(--rg-navy);
}

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

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

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

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

.top-social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: grid;
  place-items: center;
  color: var(--rg-white);
  font-size: 0.75rem;
}

.top-social a:hover {
  background: var(--rg-orange);
  border-color: var(--rg-orange);
}

.top-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.top-meta a:hover {
  color: var(--rg-orange);
}

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

.site-header .header-inner {
  position: relative;
}

.site-header .container {
  width: min(1320px, 96%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 14px 0;
  flex-wrap: nowrap;
}

.logo {
  flex-shrink: 0;
}

.logo img {
  height: 40px;
  width: auto;
  max-width: 210px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  gap: clamp(8px, 1.2vw, 20px);
  min-width: 0;
}

.main-nav a {
  font-weight: 500;
  color: var(--rg-navy);
  font-size: clamp(0.78rem, 0.85vw, 0.9rem);
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.2;
}

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

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

.header-cta .btn-primary {
  padding: 10px 18px;
  font-size: 0.85rem;
  white-space: nowrap;
}

.header-help {
  text-align: right;
  font-size: 0.85rem;
  color: var(--rg-muted);
}

.header-help strong {
  display: block;
  color: var(--rg-navy);
  font-size: 0.95rem;
}

.header-help a:hover {
  color: var(--rg-orange);
}

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

.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--rg-navy);
  border-radius: 2px;
  transition: transform 0.2s;
}

.hero {
  position: relative;
  min-height: 560px;
  display: grid;
  align-items: center;
  color: var(--rg-white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(26, 29, 46, 0.88), rgba(26, 29, 46, 0.55));
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 100px 0 120px;
  max-width: 680px;
}

.hero-content h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.15;
  margin: 0 0 20px;
}

.hero-content p {
  font-size: 1.05rem;
  opacity: 0.92;
  margin-bottom: 28px;
}

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

.search-float {
  position: relative;
  margin-top: -50px;
  z-index: 2;
  margin-bottom: 40px;
}

.search-card {
  background: var(--rg-white);
  border-radius: var(--rg-radius);
  box-shadow: var(--rg-shadow);
  padding: 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: end;
}

.search-card label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--rg-navy);
  margin-bottom: 6px;
}

.search-card input,
.search-card select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--rg-border);
  border-radius: var(--rg-radius);
  font-family: inherit;
}

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

.about-list {
  margin-top: 24px;
}

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

.about-list .check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 126, 0, 0.15);
  color: var(--rg-orange);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  margin-top: 3px;
}

.about-media {
  position: relative;
  border-radius: var(--rg-radius);
  overflow: hidden;
  box-shadow: var(--rg-shadow);
}

.about-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--rg-orange);
  color: var(--rg-white);
  padding: 16px 20px;
  border-radius: var(--rg-radius);
  font-weight: 700;
  font-size: 1.1rem;
}

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

.service-card {
  background: var(--rg-white);
  padding: 32px 28px;
  border-radius: var(--rg-radius);
  box-shadow: var(--rg-shadow);
  border: 1px solid var(--rg-border);
  transition: transform 0.2s, border-color 0.2s;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--rg-orange);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 126, 0, 0.12);
  color: var(--rg-orange);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}

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

.service-card p {
  color: var(--rg-muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.service-card a {
  color: var(--rg-orange);
  font-weight: 600;
  font-size: 0.9rem;
}

.stats-bar {
  background: var(--rg-navy);
  color: var(--rg-white);
  padding: 56px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stats-grid h3 {
  margin: 0;
  font-size: 2.2rem;
  color: var(--rg-orange);
}

.stats-grid p {
  margin: 8px 0 0;
  opacity: 0.85;
}

.cta-split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 360px;
  background: var(--rg-bg);
}

.cta-split .cta-image {
  background-size: cover;
  background-position: center;
  min-height: 280px;
}

.cta-split .cta-body {
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cta-split h2 {
  color: var(--rg-navy);
  margin-top: 0;
}

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

.project-item {
  position: relative;
  border-radius: var(--rg-radius);
  overflow: hidden;
  min-height: 260px;
}

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

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

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 29, 46, 0.85), transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: var(--rg-white);
}

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

.price-card {
  background: var(--rg-white);
  border: 1px solid var(--rg-border);
  border-radius: var(--rg-radius);
  padding: 36px 28px;
  text-align: center;
  position: relative;
  box-shadow: var(--rg-shadow);
}

.price-card.featured {
  border-top: 4px solid var(--rg-orange);
  transform: scale(1.03);
}

.price-card .tag {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--rg-orange);
  color: var(--rg-white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}

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

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

.price-card .amount small {
  font-size: 1rem;
  color: var(--rg-muted);
  font-weight: 500;
}

.price-features {
  text-align: left;
  margin: 24px 0;
}

.price-features li {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.92rem;
  align-items: flex-start;
}

.price-features .check {
  color: var(--rg-orange);
  flex-shrink: 0;
  margin-top: 2px;
}

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

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

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

.team-card .info {
  padding: 20px;
}

.team-card h3 {
  margin: 0 0 4px;
  color: var(--rg-navy);
  font-size: 1.05rem;
}

.team-card p {
  margin: 0;
  color: var(--rg-orange);
  font-size: 0.9rem;
  font-weight: 500;
}

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

.testimonial-card {
  background: var(--rg-white);
  padding: 32px;
  border-radius: var(--rg-radius);
  box-shadow: var(--rg-shadow);
  border-left: 4px solid var(--rg-orange);
}

.testimonial-card .stars {
  color: var(--rg-orange);
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.testimonial-card .author {
  margin-top: 20px;
  font-weight: 700;
  color: var(--rg-navy);
}

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

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

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

.blog-card .body {
  padding: 22px;
}

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

.page-hero {
  position: relative;
  padding: 100px 0 80px;
  color: var(--rg-white);
  text-align: center;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 29, 46, 0.82);
}

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

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
  opacity: 0.9;
}

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

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

.content-prose h2 {
  color: var(--rg-navy);
  margin-top: 2em;
}

.content-prose h3 {
  color: var(--rg-navy);
}

.content-prose ul {
  padding-left: 1.25rem;
  margin: 1em 0;
}

.content-prose li {
  margin-bottom: 0.5em;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
}

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

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

.contact-info-card li {
  margin-bottom: 16px;
  padding-left: 28px;
  position: relative;
}

.form-card {
  background: var(--rg-white);
  padding: 36px;
  border-radius: var(--rg-radius);
  box-shadow: var(--rg-shadow);
  border: 1px solid var(--rg-border);
}

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

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

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

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: 2px solid rgba(255, 126, 0, 0.35);
  border-color: var(--rg-orange);
}

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

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

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

.form-check-align {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.form-check-align input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 3px 0 0;
  flex-shrink: 0;
  accent-color: var(--rg-orange);
  cursor: pointer;
}

.form-check-align label {
  font-size: 0.92rem;
  line-height: 1.5;
  cursor: pointer;
  flex: 1;
}

.form-success {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  padding: 16px 20px;
  border-radius: var(--rg-radius);
  margin-bottom: 20px;
  font-weight: 600;
}

.site-footer {
  background: var(--rg-navy);
  color: rgba(255, 255, 255, 0.85);
}

.footer-main {
  padding: 64px 0 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
}

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

.footer-about p {
  font-size: 0.92rem;
  line-height: 1.8;
}

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

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

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: grid;
  place-items: center;
  font-size: 0.8rem;
}

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

.footer-newsletter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  width: 100%;
}

.footer-newsletter .form-success {
  flex: 1 1 100%;
}

.footer-newsletter input {
  flex: 1;
  padding: 12px 14px;
  border: none;
  border-radius: var(--rg-radius);
  font-family: inherit;
}

.footer-newsletter button {
  padding: 12px 18px;
  border: none;
  border-radius: var(--rg-radius);
  background: var(--rg-orange);
  color: var(--rg-white);
  font-weight: 600;
  cursor: pointer;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 0;
  font-size: 0.875rem;
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

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

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

.partner-strip {
  background: var(--rg-bg);
  padding: 36px 0;
  text-align: center;
}

.partner-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  opacity: 0.55;
  font-weight: 700;
  color: var(--rg-navy);
  letter-spacing: 0.05em;
}

@media (max-width: 1200px) {
  .header-cta .btn-primary {
    display: none;
  }
}

@media (max-width: 1100px) {
  .header-help {
    display: none;
  }
}

@media (min-width: 769px) {
  .main-nav {
    flex-direction: row;
    position: static;
    padding: 0;
    box-shadow: none;
    background: transparent;
  }

  .nav-toggle {
    display: none !important;
  }
}

@media (max-width: 1024px) {
  .search-card {
    grid-template-columns: 1fr 1fr;
  }

  .services-grid,
  .team-grid,
  .pricing-grid,
  .testimonial-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .header-cta .btn-primary {
    display: none;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--rg-white);
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    padding: 20px;
    gap: 16px;
    box-shadow: var(--rg-shadow);
    display: none;
    flex: none;
    z-index: 50;
  }

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

  .main-nav a {
    white-space: normal;
  }

  .header-help {
    display: none;
  }

  .about-grid,
  .cta-split,
  .contact-grid,
  .search-card,
  .services-grid,
  .projects-grid,
  .team-grid,
  .pricing-grid,
  .testimonial-grid,
  .blog-grid,
  .stats-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-content {
    padding: 80px 0 100px;
  }

  .section {
    padding: 56px 0;
  }
}
