:root {
  --white: #ffffff;
  --teal-main: #1fafa3;
  --teal-light: #18b7a9;
  --teal-deep: #0f8e87;
  --ink: #113536;
  --muted: #5d7b7d;
  --bg-soft: #f5fbfa;
  --radius: 14px;
  --shadow: 0 14px 28px rgba(15, 142, 135, 0.16);
  --hero-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.section {
  padding: 80px 0;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
}

p {
  margin-top: 0;
  color: var(--muted);
}

.section-label {
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--teal-main);
  margin-bottom: 10px;
}

.section-lead {
  text-align: center;
  max-width: 62ch;
  margin: 0 auto 32px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 30, 30, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: #18b7a9;
  z-index: 121;
}

.site-header--scrolled {
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid #e8f2f1;
  box-shadow: 0 4px 20px rgba(15, 142, 135, 0.08);
}

.logo-banner {
  position: fixed;
  top: 0;
  left: max(4%, calc((100% - 1120px) / 2));
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 168px;
  padding: 14px 12px 38px;
  background: #18b7a9;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.logo-banner:hover {
  background: #1fafa3;
}

.logo-banner__img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 124px;
  margin: 0 auto;
  object-fit: contain;
  object-position: center center;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 86px;
  padding-left: 204px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo__img {
  display: block;
  height: 44px;
  width: 44px;
  object-fit: cover;
  object-position: top center;
  border-radius: 8px;
  flex-shrink: 0;
}

.logo__text {
  color: #18b7a9;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.logo__img--footer {
  display: block;
  width: auto;
  height: auto;
  max-height: 96px;
  max-width: 158px;
  object-fit: contain;
  object-position: center center;
  background: transparent;
  padding: 0;
  border-radius: 0;
  flex-shrink: 0;
}

.logo--footer-brand {
  display: inline-flex;
  margin-bottom: 0;
  flex-shrink: 0;
}

.footer-brand__contact {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.footer-icon-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.footer-icon-row:last-child {
  margin-bottom: 0;
}

.footer-icon-row--address {
  align-items: flex-start;
}

.footer-icon-row--address .footer-icon-row__icon {
  height: calc(0.92rem * 1.4);
  flex-shrink: 0;
}

.footer-icon-row__icon {
  flex: 0 0 18px;
  width: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #18b7a9;
  font-size: 0.95rem;
  line-height: 1;
}

.footer-icon-row__icon i {
  display: block;
  line-height: 1;
}

.footer-icon-row__text {
  flex: 1;
  min-width: 0;
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--muted);
}

.footer-icon-row__text a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 400;
  font-size: 0.92rem;
  line-height: 1.4;
}

.footer-icon-row__text a:hover {
  color: var(--teal-main);
  text-decoration: underline;
}

.footer-links .footer-icon-row {
  margin-bottom: 8px;
}

.footer-links--contact .footer-links__aligner {
  margin-bottom: 8px;
  height: calc(0.92rem * 1.4);
  visibility: hidden;
  pointer-events: none;
}

.footer-links--contact > .footer-icon-row:first-child {
  min-height: calc(0.92rem * 1.4);
}

.footer-links li.footer-icon-row:last-child {
  margin-bottom: 0;
}

.main-nav {
  display: flex;
  gap: 26px;
}

.main-nav a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: #18b7a9;
}

.site-header--scrolled .main-nav a {
  color: var(--ink);
}

.site-header--scrolled .main-nav a:hover {
  color: var(--teal-main);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 42px;
  height: 42px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: #ffffff;
  transition: background 0.3s ease;
}

.site-header--scrolled .menu-toggle span {
  background: var(--ink);
}

/* Medila-inspired hero */
.medila-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  background: #000 url("https://images.unsplash.com/photo-1576091160399-112ba8d25d1d?auto=format&fit=crop&w=1920&q=80")
    no-repeat center center;
  background-size: cover;
}

.medila-hero__overlay {
  position: absolute;
  inset: 0;
  background: #0a2e2c;
  opacity: 0.72;
}

.medila-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.medila-hero__content h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.medila-hero__lead {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.05rem;
  max-width: 54ch;
  line-height: 1.7;
  margin-bottom: 28px;
}

.medila-hero__features {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.medila-hero__features li {
  text-align: center;
}

.medila-hero__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: 0 14px 0 14px;
  color: var(--teal-main);
  font-size: 1.6rem;
}

.medila-hero__features h5 {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0;
  line-height: 1.35;
  text-align: center;
}

.medila-hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.medila-hero__form-card {
  background: var(--white);
  border-radius: 15px;
  padding: 32px 36px 36px;
  box-shadow: var(--hero-shadow);
}

.medila-hero__form-card h4 {
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 700;
  text-align: center;
  margin: 0 0 10px;
}

.medila-hero__form-sub {
  text-align: center;
  font-size: 0.92rem;
  margin-bottom: 22px;
  color: var(--muted);
}

.hero-form input {
  display: block;
  width: 100%;
  margin-bottom: 14px;
  padding: 0 22px;
  height: 48px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: transparent;
  border: 1px solid #e5e5e5;
  border-radius: 70px;
}

.hero-form input:focus {
  outline: 2px solid rgba(31, 175, 163, 0.3);
  border-color: var(--teal-main);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 11px;
  font-weight: 700;
  padding: 12px 20px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: 0.2s ease;
  font: inherit;
}

.btn-block {
  width: 100%;
  border-radius: 70px;
  height: 48px;
}

.btn-primary {
  background: linear-gradient(130deg, var(--teal-main), var(--teal-light));
  color: var(--white);
}

.btn-primary:hover {
  filter: brightness(0.93);
}

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

.btn-light:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Intro / problem-solution */
.intro-section {
  padding: 70px 0;
  background: var(--bg-soft);
  text-align: center;
}

.intro-section__inner {
  max-width: 780px;
}

.intro-section h2 {
  margin-bottom: 18px;
  color: var(--ink);
}

.intro-section p {
  font-size: 1.05rem;
  line-height: 1.75;
}

/* Services */
.services {
  background: #fbffff;
}

.services h2 {
  text-align: center;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}

.service-item {
  background: var(--white);
  border: 1px solid #dff1ef;
  border-radius: var(--radius);
  padding: 24px;
}

.service-item__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e9f9f7;
  border-radius: 10px;
  color: var(--teal-deep);
  font-size: 1.25rem;
  margin-bottom: 14px;
}

.service-item h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.service-item ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.service-item li {
  margin-bottom: 4px;
}

/* Why Us */
.why-us {
  background: linear-gradient(175deg, #f4fdfb, #eef9f8);
}

.why-us h2 {
  text-align: center;
  margin-bottom: 32px;
}

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

.why-card {
  background: var(--white);
  border: 1px solid #d4efeb;
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.why-card__badge {
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(130deg, var(--teal-main), var(--teal-deep));
  color: var(--white);
  font-weight: 800;
  font-size: 1rem;
}

.why-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.why-card p {
  font-size: 0.92rem;
  margin: 0;
}

/* About */
.two-col {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 26px;
}

.about-box {
  background: linear-gradient(175deg, #f4fdfb, #eef9f8);
  border: 1px solid #d4efeb;
  border-radius: var(--radius);
  padding: 24px;
}

.about-box ul {
  margin: 0 0 20px;
  padding-left: 18px;
}

.about-box li {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.company-snapshot {
  border-top: 1px solid #d4efeb;
  padding-top: 18px;
}

.company-snapshot h4 {
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: var(--teal-deep);
}

.company-snapshot dl {
  margin: 0;
}

.company-snapshot div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.company-snapshot dt {
  color: var(--muted);
  font-weight: 500;
}

.company-snapshot dd {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
  text-align: right;
}

/* CTA */
.cta {
  padding: 58px 0;
  background: linear-gradient(120deg, var(--teal-main), var(--teal-deep));
}

.cta-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cta h2 {
  color: var(--white);
  margin: 0 0 8px;
}

.cta p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.cta .btn-primary {
  background: var(--white);
  color: var(--teal-deep);
  flex-shrink: 0;
}

/* Contact */
.contact {
  background: #f5fbfa;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 26px;
  align-items: stretch;
}

.contact-info-panel {
  border-radius: var(--radius);
  padding: 36px 32px;
}

.contact-info-panel h3 {
  color: #18b7a9;
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 28px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 26px;
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.contact-info-item > i {
  color: #18b7a9;
  font-size: 1.15rem;
  margin-top: 4px;
  width: 22px;
  flex-shrink: 0;
  text-align: center;
}

.contact-info-item strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.contact-info-item a {
  color: #18b7a9;
  text-decoration: none;
  font-weight: 500;
}

.contact-info-item a:hover {
  text-decoration: underline;
}

.contact-info-item p {
  color: var(--muted);
  margin: 0;
  line-height: 1.65;
  font-size: 0.95rem;
}

.contact-map-wrap {
  margin-top: 26px;
}

.contact-map {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-form {
  background: #ffffff;
  border: 1px solid #ddf3f0;
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.contact-form label {
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
  color: var(--ink);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 6px;
  border: 1px solid #cbe8e4;
  border-radius: 10px;
  padding: 12px;
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(31, 175, 163, 0.24);
  border-color: var(--teal-main);
}

.form-msg {
  margin-top: 10px;
  min-height: 20px;
  font-weight: 600;
  color: var(--teal-deep);
  text-align: center;
  font-size: 0.9rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid #e3f3f1;
  padding: 48px 0 0;
  background: #f8fdfc;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 32px;
  align-items: start;
}

.footer-brand__heading {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 14px;
}

.footer-brand__heading h4 {
  margin: 0;
  white-space: nowrap;
}

.footer-brand__lead {
  margin: 0 0 8px;
  font-size: 0.92rem;
  color: var(--ink);
  font-weight: 600;
}

.footer-brand p {
  margin-top: 0;
  font-size: 0.92rem;
}

.site-footer h4 {
  font-size: 0.95rem;
  margin: 0 0 14px;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.25;
}

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

.footer-links li:not(.footer-icon-row) {
  margin-bottom: 8px;
}

.footer-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.footer-links a:hover {
  color: var(--teal-main);
}

.footer-bottom {
  border-top: 1px solid #e3f3f1;
  padding: 18px 0;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.88rem;
}

@media (max-width: 980px) {
  .medila-hero__inner,
  .service-grid,
  .why-grid,
  .two-col,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .service-grid .service-item:last-child {
    grid-column: span 2;
  }
}

@media (max-width: 760px) {
  .logo-banner {
    left: 12px;
    width: 118px;
    padding: 12px 10px 30px;
  }

  .logo-banner__img {
    max-width: 100%;
    max-height: 96px;
  }

  .nav-wrap {
    padding-left: 142px;
  }

  .menu-toggle {
    display: inline-block;
  }

  .main-nav {
    position: absolute;
    top: 86px;
    right: 4%;
    background: #ffffff;
    border: 1px solid #e2f2f0;
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 12px;
    display: none;
    flex-direction: column;
    min-width: 200px;
    gap: 10px;
  }

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

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

  .main-nav a:hover {
    color: var(--teal-main);
  }

  .medila-hero {
    padding-top: 115px;
    min-height: auto;
  }

  .medila-hero__inner,
  .service-grid,
  .why-grid,
  .two-col,
  .contact-grid,
  .cta-wrap,
  .footer-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .service-grid .service-item:last-child {
    grid-column: span 1;
  }

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