@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --primary: #ff5a3c;
  --primary-dark: #e84a2f;
  --bg-soft: #f2f6f7;
  --text-dark: #1d2024;
  --text-muted: #5c727d;
  --footer-bg: #171b2a;
  --white: #ffffff;
  --shadow: 0 10px 40px rgba(29, 32, 36, 0.08);
  --radius: 4px;
  --section-pad: 100px;
  --container: 1170px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
  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);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-dark);
  line-height: 1.3;
  margin: 0 0 1rem;
}

p {
  margin: 0 0 1rem;
}

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

.section {
  padding: var(--section-pad) 0;
}

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

.section-label {
  display: inline-block;
  background: rgba(255, 90, 60, 0.12);
  color: var(--primary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  max-width: 640px;
}

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

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

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

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

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

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

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

.top-bar {
  background: var(--text-dark);
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  padding: 10px 0;
}

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

.top-bar a {
  color: rgba(255, 255, 255, 0.85);
}

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

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

.site-header.scrolled,
.site-header.header-solid {
  position: fixed;
  top: 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
}

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

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: 48px;
  width: auto;
  max-width: min(220px, 42vw);
}

.logo-img--light {
  display: none;
}

.site-header:not(.scrolled):not(.header-solid) .logo-img--dark {
  display: none;
}

.site-header:not(.scrolled):not(.header-solid) .logo-img--light {
  display: block;
}

.footer-logo {
  height: 48px;
  width: auto;
  max-width: 220px;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 22px;
}

.main-nav a {
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 500;
}

.site-header:not(.scrolled):not(.header-solid) .main-nav a {
  color: var(--white);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

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

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

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

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

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
}

.site-header:not(.scrolled):not(.header-solid) .nav-toggle span {
  background: var(--white);
}

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding: 160px 0 120px;
}

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

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(23, 27, 42, 0.55) 0%,
    rgba(23, 27, 42, 0.35) 50%,
    rgba(23, 27, 42, 0.65) 100%
  );
}

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

.hero h1 {
  color: var(--white);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.hero h1 span {
  color: var(--primary);
}

.hero-lead {
  font-size: 1.125rem;
  max-width: 640px;
  margin: 0 auto 32px;
  opacity: 0.95;
}

.hero-search {
  position: relative;
  margin-top: 48px;
  background: var(--white);
  border-radius: 8px;
  padding: 24px;
  box-shadow: var(--shadow);
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-dark);
  text-align: left;
}

.hero-search .search-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 16px;
  align-items: end;
}

.quote-form label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.quote-form select,
.quote-form input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #dde4e6;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
  color: var(--text-dark);
}

.page-hero {
  padding: 140px 0 80px;
  background: var(--bg-soft);
  text-align: center;
}

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

.breadcrumb {
  font-size: 14px;
  margin-bottom: 12px;
}

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

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

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

.about-gallery img:first-child {
  grid-column: 1 / -1;
  border-radius: 8px;
}

.about-gallery img {
  border-radius: 8px;
  object-fit: cover;
  width: 100%;
  min-height: 180px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

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

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}

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

.service-card {
  background: var(--white);
  padding: 40px 32px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.25s ease;
}

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

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: rgba(255, 90, 60, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.service-card h3 {
  font-size: 1.25rem;
}

.card-link {
  font-weight: 600;
  font-size: 14px;
}

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

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

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

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

.project-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 12px;
}

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

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

.highlight-box {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.highlight-content {
  background: var(--primary);
  color: var(--white);
  padding: 48px;
}

.highlight-content h2,
.highlight-content p {
  color: var(--white);
}

.highlight-content .section-label {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

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

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

.testimonial-card {
  background: var(--white);
  padding: 36px 28px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.quote-icon {
  color: var(--primary);
  font-size: 40px;
  line-height: 1;
  margin-bottom: 16px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}

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

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

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

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

.team-card-body {
  padding: 24px 16px;
}

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

.price-card {
  background: var(--white);
  border-radius: 8px;
  padding: 40px 32px;
  box-shadow: var(--shadow);
  text-align: center;
  border: 2px solid transparent;
}

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

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

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  text-align: left;
}

.price-card li {
  padding: 8px 0;
  border-bottom: 1px solid var(--bg-soft);
  font-size: 14px;
}

.cta-banner {
  background: var(--primary);
  padding: 48px 0;
  text-align: center;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 20px;
}

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

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

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

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

.site-footer {
  background: var(--footer-bg);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 0;
}

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

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

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

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

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

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

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

.social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}

.footer-newsletter {
  display: flex;
  gap: 0;
  margin-top: 12px;
}

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

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.form-panel {
  background: var(--white);
  padding: 40px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  max-width: 640px;
  margin: 0 auto;
}

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

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

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

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

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

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

.checkbox-group {
  display: grid;
  grid-template-columns: 20px 1fr;
  column-gap: 12px;
  row-gap: 6px;
  align-items: start;
  margin-bottom: 20px;
}

.checkbox-group input[type='checkbox'] {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  padding: 0;
  accent-color: var(--primary);
  cursor: pointer;
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  justify-self: start;
}

.checkbox-group label {
  font-size: 14px;
  line-height: 1.55;
  cursor: pointer;
  color: var(--text-muted);
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  padding: 0;
}

.checkbox-group .field-error {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
}

.is-invalid {
  border-color: #dc3545 !important;
}

.field-error {
  display: block;
  color: #dc3545;
  font-size: 13px;
  margin-top: 6px;
}

.form-success-message {
  margin-top: 20px;
  padding: 16px 20px;
  background: rgba(255, 90, 60, 0.12);
  border-left: 4px solid var(--primary);
  color: var(--text-dark);
  font-weight: 600;
  border-radius: var(--radius);
}

.legal-content {
  max-width: 820px;
  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;
}

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

.stat-item strong {
  display: block;
  font-size: 2rem;
  color: var(--primary);
}

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

.mb-0 {
  margin-bottom: 0;
}

@media (max-width: 1024px) {
  .service-cards,
  .project-grid,
  .testimonial-grid,
  .team-grid,
  .pricing-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .hero-search .search-grid {
    grid-template-columns: 1fr 1fr;
  }

  .highlight-box {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  :root {
    --section-pad: 64px;
  }

  .site-header {
    top: 0;
    position: fixed;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
  }

  .top-bar {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 24px;
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
  }

  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

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

  .main-nav a {
    color: var(--text-dark) !important;
    text-shadow: none !important;
  }

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

  .service-cards,
  .project-grid,
  .testimonial-grid,
  .team-grid,
  .pricing-grid,
  .blog-grid,
  .stats-row {
    grid-template-columns: 1fr;
  }

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

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

  .hero-search .search-grid {
    grid-template-columns: 1fr;
  }

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

  .logo-img--light {
    display: none !important;
  }

  .logo-img--dark {
    display: block !important;
  }
}