@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;700&display=swap");

:root {
  --blue-950: #0d3b66;
  --blue-900: #11477a;
  --blue-800: #145da0;
  --blue-700: #1d70b8;
  --yellow-100: #fff1de;
  --yellow-200: #ffc27a;
  --yellow-300: #ff9f43;
  --white: #ffffff;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --text: #16324f;
  --muted: #57738d;
  --border: rgba(13, 59, 102, 0.12);
  --border-strong: rgba(13, 59, 102, 0.18);
  --shadow-lg: 0 28px 70px rgba(13, 59, 102, 0.16);
  --shadow-soft: 0 12px 28px rgba(13, 59, 102, 0.08);
  --radius-lg: 28px;
  --radius-md: 22px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

#quoteForm {
  scroll-margin-top: 110px;
}

@media (max-width: 640px) {
  #quoteForm {
    scroll-margin-top: 100px;
  }
}

body {
  min-height: 100vh;
  font-family: "Manrope", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(circle at top left, rgba(255, 159, 67, 0.24), transparent 22%),
    radial-gradient(circle at right 12% top 18%, rgba(29, 112, 184, 0.1), transparent 18%),
    linear-gradient(180deg, #f7fbff 0%, #f3f8ff 36%, #fffdf4 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

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

section {
  animation: fadeIn 0.6s ease;
  scroll-margin-top: 8px;
}

.brand,
.main-nav a,
.cta-link,
.btn,
.service-card,
.project-card,
.contact-card,
.contact-value,
.footer-details a {
  -webkit-tap-highlight-color: transparent;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.95rem;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 0.22s ease;
}

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

.site-header .brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 13rem;
  min-width: 13rem;
  height: 6rem;
  min-height: 6rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid rgba(16, 46, 89, 0.08);
}

.site-header .brand-mark img {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  border-radius: 14px;
}

@media (max-width: 900px) {
  .site-header .brand-mark {
    width: 11rem;
    min-width: 11rem;
    height: 5rem;
    min-height: 5rem;
  }
}

@media (max-width: 640px) {
  .site-header .brand-mark {
    width: 9rem;
    min-width: 9rem;
    height: 4.75rem;
    min-height: 4.75rem;
    padding: 0.3rem 0.65rem;
  }
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--blue-950);
}

.brand-subtitle {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.main-nav {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.main-nav a {
  position: relative;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.45rem;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-800), var(--yellow-300));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a.active {
  color: var(--blue-950);
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after,
.main-nav a.active::after {
  transform: scaleX(1);
}

.main-nav a.active {
  font-weight: 700;
}

.cta-link,
.btn {
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    background 0.24s ease,
    color 0.24s ease,
    border-color 0.24s ease;
}

.cta-link {
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue-950), var(--blue-800));
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 14px 28px rgba(13, 59, 102, 0.25);
}

.cta-link::after {
  display: none;
}

.cta-link::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  opacity: 0;
  transform: translateX(-100%);
  transition: all 0.5s ease;
}

.cta-link:hover {
  color: var(--white);
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 22px 40px rgba(13, 59, 102, 0.35),
    0 0 18px rgba(29, 112, 184, 0.35);
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
}

.cta-link:hover::before {
  opacity: 1;
  transform: translateX(100%);
}

.highlight {
  background: linear-gradient(90deg, var(--blue-700), var(--yellow-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.eyebrow,
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--yellow-100), var(--yellow-200));
  color: var(--blue-950);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 224, 130, 0.45);
}

.eyebrow {
  margin-bottom: 1.5rem;
}

.hero h1,
.section-heading h2,
.service-card h3,
.project-card h3,
.map-placeholder h3,
.service-modal-content h3,
.stat strong {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  color: var(--blue-950);
}

.hero h1 {
  max-width: 9ch;
  margin-bottom: 1.55rem;
  font-size: clamp(3rem, 6vw, 5.7rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.hero p,
.section-heading p,
.service-card p,
.project-card p,
.service-modal-content p,
.map-placeholder p,
.form-note {
  color: var(--muted);
  line-height: 1.8;
}

.hero p {
  max-width: 58ch;
  font-size: 1.1rem;
}

.hero-trust span {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font-size: 0.9rem;
}

.btn {
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: linear-gradient(135deg, #ffd0a1, var(--yellow-300));
  color: var(--blue-950);
  box-shadow: 0 16px 34px rgba(255, 159, 67, 0.34);
}

.btn-secondary {
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.86);
  color: var(--blue-950);
}

.hero-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-lg);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: auto -20% -30% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 159, 67, 0.38), transparent 65%);
}

.card-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(13, 59, 102, 0.04), rgba(13, 59, 102, 0.12));
  color: var(--white);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  border-radius: var(--radius-md);
}

.overlay {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(13, 59, 102, 0.78);
  color: #fff;
  backdrop-filter: blur(8px);
}

.overlay h3 {
  margin-bottom: 0.35rem;
  font-size: 1.1rem;
  color: #fff;
}

.overlay p {
  color: rgba(255, 255, 255, 0.88);
}

.stat,
.service-card,
.project-card,
.contact-card,
.contact-form,
.contact-form-wrap,
.map-card,
.service-modal-content {
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px rgba(13, 59, 102, 0.1);
}

.stat {
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.service-card,
.project-card {
  position: relative;
  border-radius: 24px;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.service-card {
  background: linear-gradient(180deg, var(--surface-strong), rgba(234, 244, 255, 0.86));
  cursor: pointer;
}

.project-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 241, 222, 0.78));
}

.service-card::before,
.project-card::before,
.contact-card::before,
.contact-form::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(20, 93, 160, 0.08));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.service-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-700), var(--yellow-300));
}

.service-icon {
  display: inline-block;
  margin-bottom: 15px;
  font-size: 2.2rem;
}

.service-arrow {
  position: absolute;
  right: 20px;
  bottom: 20px;
  font-size: 1.2rem;
  opacity: 0.5;
  transition: 0.3s;
}

.service-card:hover,
.project-card:hover,
.contact-card:hover,
.stat:hover {
  transform: translateY(-4px);
}

.service-card:hover .service-arrow {
  opacity: 1;
  transform: translateX(5px);
}

.project-meta span {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(13, 59, 102, 0.07);
  color: var(--blue-950);
  font-size: 0.85rem;
  font-weight: 700;
}

.contact-card {
  position: relative;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 241, 222, 0.82));
}

.contact-label,
.footer-label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-value {
  display: inline-block;
  color: var(--blue-950);
  font-size: 1.4rem;
  font-weight: 700;
  word-break: break-word;
}

.contact-small {
  font-size: 1rem;
  line-height: 1.6;
}

.map-card,
.contact-form-wrap,
.contact-form {
  position: relative;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
}

.map-placeholder {
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(234, 244, 255, 0.85));
}

.map-placeholder-icon {
  font-size: 2.2rem;
}

.form-field label {
  font-weight: 700;
  color: var(--blue-950);
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  border: 1px solid rgba(13, 59, 102, 0.16);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  color: var(--text);
  font: inherit;
}

.form-field textarea {
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--blue-700);
  box-shadow: 0 0 0 4px rgba(29, 112, 184, 0.12);
}

.form-submit {
  border: 0;
  cursor: pointer;
}

.service-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.service-modal.active {
  display: flex;
}

.service-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 25, 47, 0.55);
  backdrop-filter: blur(6px);
}

.service-modal-content {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  background: #ffffff;
  animation: popupFade 0.25s ease;
}

.service-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: 0;
  background: transparent;
  color: var(--blue-950);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.floating-icon {
  border-radius: 50%;
  color: #fff;
  font-size: 1.4rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.floating-icon.call {
  background: linear-gradient(135deg, #ff8b2b, #ff9f43);
}

.floating-icon.whatsapp {
  background: linear-gradient(135deg, #25d366, #1f9d55);
}

.site-footer {
  background: linear-gradient(180deg, rgba(13, 59, 102, 0.98), rgba(17, 71, 122, 0.98));
  color: rgba(255, 255, 255, 0.92);
}

.footer-brand {
  color: var(--white);
}

.footer-copy {
  color: rgba(255, 255, 255, 0.78);
}

.footer-label {
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: 0.1em;
}

.footer-details a,
.footer-details span {
  color: rgba(255, 255, 255, 0.92);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes popupFade {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 640px) {
  .site-header .brand-mark {
    width: 7rem;
    min-width: 7rem;
    height: 4.25rem;
    min-height: 4.25rem;
  }

  .site-header .brand-mark img {
    width: auto;
    height: 100%;
  }

  .brand {
    gap: 0.75rem;
  }

  .brand-title {
    font-size: 1rem;
  }

  .brand-subtitle {
    font-size: 0.72rem;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2.4rem, 12vw, 3.4rem);
  }

  .btn,
  .cta-link {
    width: 100%;
    justify-content: center;
  }

  .overlay {
    left: 14px;
    right: 14px;
    bottom: 14px;
    padding: 0.9rem 1rem;
  }

  .contact-value {
    font-size: 1.1rem;
  }
}
