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

:root {
  --primary-color: #0e7490;
  --primary-hover: #155e75;
  --dark-color: #1A202C;
  --body-color: #F7FAFC;
  --text-color: #4A5568;
  --title-color: #2D3748;
  --container-color: #FFFFFF;
  --body-font: 'Poppins', sans-serif;
  --h1-font-size: 2.5rem;
  --h2-font-size: 1.5rem;
  --normal-font-size: 1rem;
  --font-regular: 400;
  --font-semi-bold: 600;
  --font-bold: 700;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --hero-gradient: linear-gradient(135deg, #0e7490 0%, #155e75 45%, #312e81 100%);
  --accent-soft: #14b8a6;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
}

body.menu-open {
  overflow: hidden;
}

h1, h2, h3 {
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

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

.section {
  padding: 4rem 0 2rem;
  scroll-margin-top: 5rem;
}

.section__title {
  font-size: var(--h2-font-size);
  text-align: center;
  margin-bottom: 2rem;
}

.container {
  max-width: 1024px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.button {
  display: inline-block;
  background-color: var(--primary-color);
  color: #fff;
  padding: 1rem 2rem;
  border-radius: .5rem;
  font-weight: var(--font-semi-bold);
  transition: .3s;
}

.button:hover {
  background-color: var(--primary-hover);
}

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

.button--secondary {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}

.button--secondary:hover {
  background: #fff;
  color: var(--primary-color);
}

/* Header */
.header {
  width: 100%;
  background-color: transparent;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  transition: .4s;
}

.nav {
  height: 3.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  z-index: 110;
}

.nav__logo-img {
  height: 40px;
  width: auto;
  max-width: min(240px, 60vw);
  object-fit: contain;
}

.nav__logo-img--dark {
  display: none;
}

.scroll-header .nav__logo-img--light {
  display: none;
}

.scroll-header .nav__logo-img--dark {
  display: block;
}

.header.is-solid .nav__logo-img--light {
  display: none;
}

.header.is-solid .nav__logo-img--dark {
  display: block;
}

.nav__toggle {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 110;
}

.scroll-header .nav__toggle,
.header.is-solid .nav__toggle {
  color: var(--title-color);
}

.nav__list {
  display: flex;
  align-items: center;
  column-gap: 2rem;
}

.nav__link {
  color: #fff;
  font-weight: var(--font-semi-bold);
  transition: .3s;
}

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

.scroll-header {
  background-color: var(--body-color);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .1);
}

.header.is-solid {
  background-color: var(--body-color);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .1);
}

.scroll-header .nav__link,
.header.is-solid .nav__link {
  color: var(--title-color);
}

.scroll-header .nav__link:hover,
.scroll-header .active-link,
.header.is-solid .nav__link:hover {
  color: var(--primary-color);
}

.nav__legal {
  display: flex;
  gap: .75rem;
}

.nav__legal .nav__link {
  font-size: .85rem;
  opacity: .9;
}

@media screen and (max-width: 767px) {
  .nav__toggle {
    display: inline-flex;
  }

  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(300px, 85vw);
    height: 100%;
    background: var(--dark-color);
    padding: 5rem 1.5rem 2rem;
    box-shadow: -4px 0 20px rgba(0, 0, 0, .2);
    transition: .3s;
    z-index: 105;
  }

  .nav__menu.show-menu {
    right: 0;
  }

  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    row-gap: 1.5rem;
  }

  .nav__link {
    color: #fff;
  }

  .scroll-header .nav__menu .nav__link,
  .header.is-solid .nav__menu .nav__link {
    color: #fff;
  }

  .nav__legal {
    flex-direction: column;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, .15);
    width: 100%;
  }

  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    z-index: 104;
  }

  .nav-overlay.show {
    opacity: 1;
    visibility: visible;
  }
}

@media screen and (min-width: 768px) {
  .nav__menu {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    box-shadow: none;
    background: transparent;
  }

  .nav-overlay {
    display: none;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--hero-gradient);
  z-index: -1;
}

.hero__bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.hero__container {
  position: relative;
  z-index: 1;
}

.hero__content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero__badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: #fff;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: var(--font-semi-bold);
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero__title {
  font-size: 2.5rem;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 1.5rem;
  font-weight: var(--font-bold);
}

.hero__subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero__buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero__stat {
  text-align: center;
}

.hero__stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: var(--font-bold);
  color: #fff;
  margin-bottom: 0.5rem;
}

.hero__stat-label {
  display: block;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media screen and (min-width: 768px) {
  .hero__title {
    font-size: 3.5rem;
  }

  .hero__subtitle {
    font-size: 1.25rem;
  }

  .hero__container {
    max-width: 900px;
  }
}

@media screen and (min-width: 1024px) {
  .hero__title {
    font-size: 4rem;
  }

  .container {
    max-width: 1120px;
  }

  :root {
    --h1-font-size: 3rem;
    --h2-font-size: 1.75rem;
  }
}

/* Services */
.services__container {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.service__card {
  background-color: var(--container-color);
  padding: 2rem 1.5rem;
  border-radius: .5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .3s;
}

.service__card:hover {
  transform: translateY(-10px);
}

.service__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.service__title {
  font-size: 1.25rem;
  margin-bottom: .5rem;
}

.service__description {
  color: var(--text-color);
  line-height: 1.6;
}

/* Portfolio */
.portfolio__container {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.portfolio__card {
  background-color: var(--container-color);
  border-radius: .5rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.portfolio__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.portfolio__data {
  padding: 1.5rem;
}

.portfolio__title {
  font-size: 1.25rem;
  margin-bottom: .5rem;
}

.portfolio__description {
  margin-bottom: 0;
  line-height: 1.6;
}

/* Process */
.process__container {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.process__step {
  text-align: center;
  padding: 1rem;
}

.process__number {
  font-size: 2rem;
  font-weight: var(--font-bold);
  color: var(--primary-color);
  margin-bottom: .5rem;
}

.process__title {
  font-size: 1.15rem;
  margin-bottom: .5rem;
}

.process__description {
  line-height: 1.6;
}

/* Testimonials */
.testimonials__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.testimonial__card {
  background-color: var(--container-color);
  padding: 1.5rem;
  border-radius: .75rem;
  box-shadow: var(--shadow);
}

.testimonial__quote {
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.testimonial__meta {
  display: flex;
  flex-direction: column;
}

.testimonial__name {
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
}

.testimonial__role {
  font-size: .875rem;
  color: #718096;
}

/* Contact */
.contact {
  background: var(--hero-gradient);
  padding: 5rem 0;
}

.contact .section__title {
  color: #fff;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.contact__container {
  max-width: 900px !important;
  margin: 0 auto;
}

.contact__info {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 3rem 2rem;
  border-radius: 1.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact__list {
  display: grid;
  gap: 2rem;
}

.contact__item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.contact__item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.contact__item::before {
  content: '';
  font-size: 2rem;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-soft) 0%, var(--primary-color) 100%);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(14, 116, 144, 0.3);
}

.contact__item:nth-child(1)::before { content: '📧'; }
.contact__item:nth-child(2)::before { content: '📱'; }
.contact__item:nth-child(3)::before { content: '📍'; }

.contact__item span {
  font-weight: var(--font-bold);
  color: var(--title-color);
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
}

.contact__item a {
  color: var(--primary-color);
  font-weight: var(--font-semi-bold);
  transition: color 0.3s;
}

.contact__item a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.contact__item-content {
  display: flex;
  flex-direction: column;
}

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

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__logo img {
  height: 42px;
  width: auto;
  max-width: 220px;
  margin-bottom: 1rem;
}

.footer__tagline {
  font-size: 0.92rem;
  line-height: 1.65;
  max-width: 280px;
  color: rgba(255, 255, 255, 0.65);
}

.footer__heading {
  color: #fff;
  font-size: 0.95rem;
  font-weight: var(--font-bold);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.footer__list {
  display: grid;
  gap: 0.65rem;
}

.footer__list a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-weight: var(--font-semi-bold);
  transition: color 0.25s;
}

.footer__list a:hover {
  color: var(--accent-soft);
}

.footer__list span {
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.55);
}

.footer__bottom {
  padding: 1.25rem 0 1.5rem;
  text-align: center;
}

.footer__bottom p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
}

.footer__grid--simple {
  grid-template-columns: 1.4fr 1fr 1fr;
}

@media screen and (max-width: 900px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .footer__tagline {
    max-width: none;
  }

  .footer__grid--simple {
    grid-template-columns: 1fr 1fr;
  }
}

@media screen and (max-width: 540px) {
  .footer {
    padding-top: 2.5rem;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    text-align: center;
  }

  .footer__logo {
    display: inline-flex;
    justify-content: center;
  }

  .footer__logo img {
    margin-left: auto;
    margin-right: auto;
  }
}

#scroll-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  background: var(--primary-color);
  color: #fff;
  border: 0;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  box-shadow: var(--shadow);
  cursor: pointer;
  display: none;
  z-index: 90;
}

#scroll-top.show {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Legal pages */
.legal-page {
  padding: 6rem 0 3rem;
  min-height: 100vh;
}

.legal-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #E2E8F0;
}

.legal-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 700;
  margin-bottom: .5rem;
}

.legal-meta {
  color: #718096;
  font-size: .9rem;
}

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

.legal-content > p,
.legal-content ul {
  color: var(--text-color);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.legal-content h2 {
  font-size: 1.15rem;
  margin: 2rem 0 .75rem;
}

.legal-content ul {
  padding-left: 1.2rem;
  list-style: disc;
}

.legal-content li {
  margin-bottom: .35rem;
}

.legal-content a {
  color: var(--primary-color);
  font-weight: 600;
}

.legal-strong {
  color: var(--title-color);
  font-weight: 600;
}

.legal-contact-box {
  margin-top: 1rem;
  padding: 1.25rem 1.4rem;
  border-radius: .75rem;
  background: #fff;
  border: 1px solid #E2E8F0;
  box-shadow: var(--shadow);
  line-height: 1.7;
}

.legal-contact-box strong {
  display: block;
  color: var(--title-color);
  margin-bottom: .35rem;
}

.legal-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid #E2E8F0;
}

.legal-nav-links a {
  font-size: .85rem;
  padding: .5rem .9rem;
  border-radius: 999px;
  border: 1px solid #E2E8F0;
  background: #fff;
  color: var(--text-color);
  font-weight: 600;
}

/* Legal page extras */
.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 2.5rem;
}

.legal-toc a {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid #E2E8F0;
  background: #fff;
  color: var(--title-color);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
}

.legal-toc a:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.legal-section {
  margin-bottom: 3.5rem;
  padding-top: 1rem;
  scroll-margin-top: 5rem;
}

.legal-section__head {
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #E2E8F0;
}

.legal-section__head h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.legal-section + .legal-section {
  border-top: 2px solid #E2E8F0;
  padding-top: 2.5rem;
}

@media screen and (max-width: 540px) {
  .hero__buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    text-align: center;
  }

  .contact__info {
    padding: 1.5rem 1rem;
  }

  .contact__item {
    padding: 1rem;
  }
}
