:root {
  --bg: #f4fbff;
  --panel: #ffffff;
  --primary: #1f8ef1;
  --primary-dark: #0c5fc6;
  --accent: #dff5ee;
  --text: #123148;
  --muted: #607487;
  --line: #dfeaf4;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", serif;
  font-weight: 600;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-grid > *,
.about-grid > *,
.contact-grid > *,
.feature-grid > *,
.service-grid > * {
  min-width: 0;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(159, 183, 204, 0.5);
}



.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  gap: 12px;
  padding: 6px 0;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 10px;
}

.brand-logo {
  width: 150px;
  height: 52px;
  object-fit: contain;
  border-radius: 4px;
  border: 2px solid rgba(31, 142, 241, 0.35);
  box-shadow: 0 8px 20px rgba(20, 76, 141, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-logo:hover,
.brand-logo:focus-visible {
  transform: scale(1.03);
  box-shadow: 0 12px 26px rgba(20, 76, 141, 0.2);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px 16px;
  font-weight: 500;
  flex: 1;
}

.nav a {
  position: relative;
  color: var(--muted);
  font-size: 1rem;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(31, 142, 241, 0.08);
  border: 1px solid rgba(31, 142, 241, 0.15);
  flex-shrink: 0;
}

.lang-btn {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 7px 10px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.lang-btn:hover,
.lang-btn:focus-visible {
  color: var(--text);
  transform: translateY(-1px);
}

.lang-btn.is-active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(31, 142, 241, 0.28);
}

.header-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 170px;
  font-size: 0.82rem;
  color: var(--text);
  overflow-wrap: anywhere;
  text-align: right;
  flex-shrink: 0;
}

.header-info a {
  position: relative;
  display: inline-block;
  max-width: 100%;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.header-info a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.header-info a:hover,
.header-info a:focus-visible {
  color: var(--text);
}

.header-info a:hover::after,
.header-info a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}


.hero {
  position: relative;
  isolation: isolate;
  padding: 108px 0 78px;
  background:
    linear-gradient(rgba(10, 35, 55, 0.4), rgba(10, 35, 55, 0.58)),
    url("Media/Living%20room%20wallpaper.png") center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.08);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 52px;
}

.hero-copy {
  width: 100%;
  max-width: 1143px;
  padding: 3rem 4rem;
  border-radius: 18px;
  background: rgba(22, 90, 136, 0.62);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.hero-copy h1,
.hero-copy p,
.hero-copy .eyebrow,
.hero-points li {
  color: #ffffff;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.65);
}

.hero-copy h1 {
  font-weight: 700;
}

.hero-copy p {
  font-size: 1.15rem;
  color: #ffffff;
}

.hero-points li::marker {
  color: #b9edff;
}

.eyebrow {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background-color: var(--primary-dark);
  color: #ffffff;
  font-weight: 700;
}

.hero-copy h1,
.section-heading h2,
.about-text h2,
.contact-copy h2 {
  margin: 18px 0 16px;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.hero-copy h1 {
  max-width: 720px;
  font-size: clamp(2.8rem, 5.3vw, 5rem);
}

.hero-copy p,
.about-text p,
.contact-copy p,
.feature-grid p,
.info-box p {
  color: #1f3545;
}

.hero-copy p {
  color: #ffffff;
}

.cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 5px;
  border: 1px solid transparent;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-3px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #3bb9ff);
  color: white;
  box-shadow: 0 12px 22px rgba(31, 142, 241, 0.28);
}

.btn-secondary {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: #ffffff;
  color: #164e63;
  border-color: #ffffff;
}

.btn-whatsapp {
  border-color: #1ca653;
  background: #1ca653;
  color: #ffffff;
  box-shadow: 0 12px 22px rgba(28, 166, 83, 0.2);
}

.btn-whatsapp:hover,
.btn-whatsapp:focus-visible {
  background: #168b45;
  box-shadow: 0 16px 28px rgba(28, 166, 83, 0.28);
}

.hero-points {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--text);
  font-size: 1.8rem;
  font-weight: 600;
}

.features,
.services,
.about,
.contact {
  padding: 112px 0;
}

.feature-grid,
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.feature-card,
.service-card,
.info-box,
.contact-form,
.about-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 14px 35px rgba(20, 76, 141, 0.06);
}

.feature-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 42px rgba(20, 76, 141, 0.12);
}

.feature-image {
  width: 100%;
  height: 230px;
  overflow: hidden;
  background: #edf6ff;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature-body {
  padding: 22px 22px 26px;
}

.feature-card h3,
.service-card h3,
.info-box h3 {
  margin: 18px 0 8px;
  font-size: 1.2rem;
}

.feature-card h3 {
  margin-top: 0;
  color: #4B5563;
}

.feature-card p {
  margin: 0;
  color: #4B5563;
}

.service-card .service-body h3,
.service-card .service-body p {
  color: #1F3545;
}

.service-card .service-body h3 {
  color: #1F3545;
}

.service-card .service-body p {
  color: #4B5563;
}

.section-heading {
  margin-bottom: 32px;
  text-align: center;
}

.section-heading h2,
.about-text h2,
.contact-copy h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.service-card {
  display: flex;
  flex-direction: column;
  width: min(100%, 340px);
  padding: 0;
  color: inherit;
  cursor: pointer;
  overflow: hidden;
  transition:
    background 0.4s ease,
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.service-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #edf6ff;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-body {
  padding: 22px 22px 26px;
}

.service-card:hover,
.service-card:focus-visible {
  background: linear-gradient(135deg, #e0f7ff, #a9dff2);
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(72, 170, 210, 0.25);
}

.service-card:hover h3,
.service-card:hover p,
.service-card:focus-visible h3,
.service-card:focus-visible p {
  color: #164e63;
}

.service-grid > .service-card:nth-child(4) {
  grid-column: 2;
  justify-self: center;
  transform: translateX(-60%);
}

.service-grid > .service-card:nth-child(5) {
  grid-column: 3;
  justify-self: center;
  transform: translateX(-60%);
}

.service-card:focus-visible {
  outline: 3px solid #1f8ef1;
  outline-offset: 4px;
}

.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.about-text ul {
  margin: 24px 0 0;
  padding-left: 18px;
  color: var(--text);
  font-weight: 600;
}

.about-text li + li {
  margin-top: 10px;
}

.about-panel {
  padding: 24px;
  display: grid;
  gap: 18px;
}

.info-box {
  padding: 22px 20px;
}

.contact-copy {
  max-width: 520px;
}

.social-label {
  margin: 24px 0 12px;
  color: var(--primary-dark);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.socials {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 0;
}

.socials a {
  min-width: 110px;
  text-align: center;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: #ffffff;
  font-weight: 600;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.socials a:first-child {
  background: #1877f2;
}

.instagram-link {
  background-color: #e1306c;
  color: #ffffff;
  border-color: #e1306c;
}

.instagram-link:hover,
.instagram-link:focus-visible {
  background-color: #c2185b;
  border-color: #c2185b;
}

.socials a:hover,
.socials a:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 22px rgba(20, 76, 141, 0.18);
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: 28px;
}

.contact-form-wrap {
  display: grid;
  gap: 18px;
}

.form-status {
  min-height: 1.5em;
  margin: 0;
  color: var(--primary-dark);
  font-weight: 600;
  text-align: center;
}

.whatsapp-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.whatsapp-divider::before,
.whatsapp-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.contact-form-wrap .btn-whatsapp {
  width: 100%;
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
  color: var(--text);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 14px 16px;
  font: inherit;
  background: #f8fbff;
  color: var(--text);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(31, 142, 241, 0.18);
  border-color: rgba(31, 142, 241, 0.5);
}

.footer {
  background: #0d2337;
  color: rgba(255, 255, 255, 0.82);
  padding: 26px 0;
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 20px;
}

@media (max-width: 900px) {
  .nav-wrap {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 10px;
    padding: 8px 0;
  }

  .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 10px;
  }

  .lang-switcher {
    justify-self: end;
  }

  .header-info {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 2px 6px;
    min-width: auto;
    font-size: 0.62rem;
  }

  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    padding-top: 42px;
  }

  .features,
  .services,
  .about,
  .contact {
    padding: 72px 0;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 16px, 480px);
  }

  .nav-wrap {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 8px 0;
  }

  .brand {
    justify-content: center;
  }

  .lang-switcher {
    justify-self: center;
  }

  .header-info {
    justify-content: center;
    align-items: center;
    font-size: 0.58rem;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 6px;
    min-width: unset;
  }

  .header-info a {
    font-size: 0.56rem;
  }

  .nav {
    grid-column: auto;
    grid-row: auto;
    gap: 4px 8px;
    font-size: 0.7rem;
  }

  .hero {
    padding: 34px 0 36px;
  }

  .hero-copy {
    padding: 1.5rem 1.1rem;
  }

  .hero-copy h1 {
    font-size: 2.5rem;
  }

  .hero-copy h1,
  .section-heading h2,
  .about-text h2,
  .contact-copy h2 {
    letter-spacing: -0.03em;
  }

  .feature-grid article,
  .service-card,
  .contact-form,
  .info-box,
  .about-panel {
    width: 100%;
    max-width: 290px;
    justify-self: center;
    margin-inline: auto;
  }

  .feature-grid article,
  .service-card {
    padding: 0;
  }

  .contact-form-wrap {
    max-width: 100%;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    padding: 12px 14px;
  }

  .btn {
    width: 100%;
  }

  .cta-group {
    display: grid;
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-grid > .service-card:nth-child(4),
  .service-grid > .service-card:nth-child(5) {
    grid-column: auto;
    transform: none;
  }

  .features,
  .services,
  .about,
  .contact {
    padding: 56px 0;
  }

  .footer-wrap,
  .footer-links {
    justify-content: center;
    text-align: center;
  }

  .footer-wrap {
    display: grid;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
