:root {
  --primary: #415fff;
  --primary-dark: #2d46d4;
  --dark: #0b0c10;
  --dark-soft: #151821;
  --text: #4a4f5c;
  --text-dark: #1a1d26;
  --muted: #8b92a5;
  --border: #e4e8f0;
  --bg-soft: #f3f6ff;
  --white: #ffffff;
  --radius: 6px;
  --shadow: 0 12px 40px rgba(11, 12, 16, 0.08);
  --container: 1200px;
  --font: "Inter", "Segoe UI", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

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

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

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

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.section {
  padding: 4.5rem 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-head h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  color: var(--text-dark);
}

.section-head p {
  margin: 0;
  max-width: 36rem;
}

.view-all {
  font-weight: 600;
  white-space: nowrap;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled,
.site-header.header-solid {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 24px rgba(11, 12, 16, 0.06);
}

.site-header.is-scrolled .nav-link,
.site-header.header-solid .nav-link {
  color: var(--text-dark);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

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

.logo-text {
  font-weight: 700;
  color: var(--white);
  font-size: 1.05rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-link {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
  font-size: 0.92rem;
}

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

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

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

.btn:hover {
  transform: translateY(-1px);
}

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

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

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.85);
}

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

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

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary);
  margin: 5px auto;
}

/* Hero */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  color: var(--white);
  padding: 7rem 0 8rem;
}

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

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 12, 16, 0.72) 0%, rgba(11, 12, 16, 0.35) 55%, rgba(11, 12, 16, 0.25) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}

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

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Finder widget */
.finder-wrap {
  position: relative;
  z-index: 2;
  margin-top: -3.5rem;
  margin-bottom: 3rem;
}

.finder-card {
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 1.25rem 1.5rem 1.5rem;
}

.finder-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
}

.finder-tabs button {
  border: 0;
  background: transparent;
  padding: 0.45rem 0.9rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border-radius: var(--radius);
}

.finder-tabs button.active {
  background: var(--bg-soft);
  color: var(--primary);
}

.finder-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr) auto;
  gap: 0.75rem;
  align-items: end;
}

.finder-grid label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.finder-grid select,
.finder-grid input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
}

/* Brand grid */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.brand-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1rem;
  text-align: center;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.brand-card:hover {
  border-color: rgba(65, 95, 255, 0.35);
  box-shadow: var(--shadow);
}

.brand-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.brand-card h3 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-dark);
}

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

.card-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.listing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.listing-card:hover {
  box-shadow: var(--shadow);
}

.listing-card .thumb {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

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

.tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.tag.used {
  background: var(--dark);
}

.listing-body {
  padding: 1rem 1.1rem 1.15rem;
}

.listing-body h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--text-dark);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

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

/* Body types */
.body-types {
  background: var(--bg-soft);
}

.type-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.type-item {
  text-align: center;
  padding: 1.25rem 0.5rem;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 10px;
}

.type-item svg {
  width: 72px;
  height: 40px;
  margin: 0 auto 0.65rem;
  fill: var(--dark);
}

.type-item span {
  display: block;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.9rem;
}

/* Why choose */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.why-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.why-images img {
  border-radius: 10px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 180px;
}

.why-images img:first-child {
  grid-row: span 2;
  min-height: 100%;
}

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

.check-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.65rem;
}

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

/* Calculator */
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.calc-results {
  background: #f7f8fb;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
}

.calc-results h4 {
  margin: 0 0 1rem;
  color: var(--text-dark);
}

.result-row {
  display: flex;
  justify-content: space-between;
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--border);
}

.result-row:last-child {
  border-bottom: 0;
}

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

.blog-card img {
  border-radius: 10px;
  aspect-ratio: 16/10;
  object-fit: cover;
  width: 100%;
}

.blog-card h3 {
  margin: 0.85rem 0 0.35rem;
  font-size: 1.05rem;
  color: var(--text-dark);
}

.blog-meta {
  font-size: 0.82rem;
  color: var(--muted);
}

/* Page hero inner */
.page-hero {
  position: relative;
  padding: 8rem 0 4rem;
  color: var(--white);
  background-size: cover;
  background-position: center;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 12, 16, 0.65);
}

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

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.breadcrumb {
  font-size: 0.9rem;
  opacity: 0.9;
}

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

.content-block {
  padding: 3.5rem 0 4rem;
}

.content-block h2,
.content-block h3 {
  color: var(--text-dark);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.service-card,
.team-card,
.price-card,
.project-card,
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.service-card,
.price-card,
.testimonial-card {
  padding: 1.5rem;
}

.service-card h3,
.price-card h3 {
  margin-top: 0;
  color: var(--text-dark);
}

.team-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.team-card .team-body {
  padding: 1rem 1.1rem 1.25rem;
}

.team-card h3 {
  margin: 0 0 0.25rem;
  color: var(--text-dark);
}

.team-role {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.88rem;
}

.price-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), var(--shadow);
  transform: translateY(-4px);
}

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

.price-card ul {
  padding-left: 1.1rem;
  margin: 0 0 1.25rem;
}

.testimonial-card p {
  font-style: italic;
}

.testimonial-author {
  margin-top: 1rem;
  font-weight: 700;
  color: var(--text-dark);
}

.project-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.project-card .project-body {
  padding: 1.1rem 1.25rem 1.35rem;
}

.legal-content {
  max-width: 820px;
}

.legal-content h2 {
  margin-top: 2rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

/* Forms */
.form-wrapper {
  position: relative;
}

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

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

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

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-dark);
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
}

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

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0.75rem 0 1rem;
}

.checkbox-field input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0.15rem 0 0;
  flex-shrink: 0;
  accent-color: var(--primary);
}

.checkbox-field label {
  margin: 0;
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.5;
}

.has-error input,
.has-error select,
.has-error textarea {
  border-color: #e5484d;
}

.field-error {
  display: block;
  color: #e5484d;
  font-size: 0.78rem;
  margin-top: 0.25rem;
}

.form-success {
  display: none;
  padding: 2rem;
  text-align: center;
  background: var(--bg-soft);
  border: 1px solid rgba(65, 95, 255, 0.25);
  border-radius: 10px;
}

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

form.is-hidden {
  display: none;
}

.form-success h3 {
  margin: 0 0 0.35rem;
  color: var(--primary);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
}

.info-card {
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 1.5rem;
}

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

.social-share {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.social-share a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
}

.social-share a:hover {
  background: var(--primary);
  color: var(--white);
}

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

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

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

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

.footer-grid li {
  margin-bottom: 0.45rem;
}

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

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

.footer-brand p {
  max-width: 22rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.88rem;
}

.footer-brand .logo img {
  height: 40px;
  margin-bottom: 1rem;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.65);
  margin-left: 1rem;
}

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

/* Responsive */
@media (max-width: 1100px) {
  .finder-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .finder-grid .btn-primary {
    grid-column: 1 / -1;
  }

  .brand-grid,
  .type-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

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

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

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

  .main-nav .nav-link {
    color: var(--text-dark);
    padding: 0.5rem 0;
  }

  .card-grid-3,
  .blog-grid,
  .why-grid,
  .calc-grid,
  .contact-layout,
  .two-col {
    grid-template-columns: 1fr;
  }

  .why-images {
    grid-template-columns: 1fr;
  }

  .why-images img:first-child {
    grid-row: auto;
  }
}

@media (max-width: 640px) {
  .brand-grid,
  .type-grid,
  .card-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    min-height: 75vh;
    padding-bottom: 6rem;
  }
}
