:root {
  --bg: #d8ddd8;
  --surface: #eef1ec;
  --surface-2: #c9d0ca;
  --ink: #18201e;
  --muted: #58645f;
  --line: rgba(24, 32, 30, 0.14);
  --accent: #2f7d6d;
  --accent-2: #d5963f;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(25, 34, 31, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 18%, rgba(47, 125, 109, 0.16), transparent 28%),
    linear-gradient(135deg, #d5dbd5 0%, #bcc7c0 100%);
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 72px);
  backdrop-filter: blur(18px);
  background: rgba(216, 221, 216, 0.72);
  border-bottom: 1px solid var(--line);
}

.language-switcher {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.26);
}

.lang-button {
  min-width: 38px;
  height: 34px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.lang-button.active {
  color: var(--white);
  background: var(--ink);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 132px;
  height: 48px;
}

.brand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  transform: translateY(12px);
}

.hidden-field {
  display: none;
}

.hero-logo-image {
  position: absolute;
  top: -74px;
  right: 118px;
  z-index: 2;
  display: block;
  width: min(38%, 240px);
  height: auto;
  filter: drop-shadow(0 18px 28px rgba(24, 32, 30, 0.14));
}

.nav {
  display: flex;
  gap: clamp(16px, 3vw, 34px);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

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

html[dir="rtl"] body {
  direction: rtl;
}

html[dir="rtl"] .hero,
html[dir="rtl"] .form-row,
html[dir="rtl"] .choice-grid {
  direction: rtl;
}

html[dir="rtl"] .hero-logo-image {
  right: auto;
  left: 118px;
}

.hero {
  min-height: calc(100vh - 92px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: 96px clamp(20px, 5vw, 72px) 42px;
}

.hero-content {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 660px;
  font-size: clamp(2.7rem, 5.8vw, 5.1rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin: 18px 0 10px;
  font-size: 1.1rem;
}

.hero-text {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: var(--white);
  background: var(--ink);
  box-shadow: 0 16px 30px rgba(24, 32, 30, 0.24);
}

.button.secondary {
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.32);
}

.hero-visual {
  position: relative;
  min-height: 560px;
}

.browser-window {
  position: absolute;
  inset: 186px 0 auto auto;
  width: min(100%, 560px);
  aspect-ratio: 1.15;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(238, 241, 236, 0.72);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: float 7s ease-in-out infinite;
}

.browser-top {
  display: flex;
  gap: 8px;
  height: 42px;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}

.browser-top span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}

.screen-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
  padding: 18px;
  height: calc(100% - 42px);
}

.panel {
  min-height: 74px;
  border-radius: 8px;
  background: #f7f8f5;
  border: 1px solid rgba(24, 32, 30, 0.08);
}

.panel.wide {
  grid-column: span 2;
}

.panel.tall {
  min-height: 150px;
}

.panel.accent {
  background: linear-gradient(135deg, var(--accent), #6fa99a);
}

.panel.muted {
  background: #dfe4de;
}

.phone-frame {
  position: absolute;
  right: 4%;
  bottom: 18px;
  width: 180px;
  height: 330px;
  padding: 24px 16px;
  border-radius: 28px;
  background: #202a27;
  box-shadow: 0 24px 60px rgba(24, 32, 30, 0.28);
  animation: float 7s ease-in-out infinite reverse;
}

.phone-line,
.phone-block,
.phone-pill {
  border-radius: 8px;
  background: #e9eee9;
}

.phone-line {
  width: 54px;
  height: 5px;
  margin: 0 auto 28px;
  opacity: 0.5;
}

.phone-block {
  height: 120px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, var(--accent-2), #ead1a4);
}

.phone-block.small {
  height: 64px;
  background: #dce4de;
}

.phone-pill {
  height: 38px;
  margin-top: 20px;
  background: var(--accent);
}

.section {
  padding: 100px clamp(20px, 5vw, 72px);
  background: rgba(238, 241, 236, 0.48);
}

.section-head {
  max-width: 760px;
  margin-bottom: 36px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.36);
  transition: transform 220ms ease, background 220ms ease;
}

.service-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.56);
}

.service-card p {
  color: var(--muted);
  line-height: 1.65;
}

.icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  color: var(--white);
  background: var(--accent);
  font-weight: 800;
}

.work-band {
  padding: 100px clamp(20px, 5vw, 72px);
  background: #202a27;
  color: var(--white);
}

.work-content {
  max-width: 980px;
}

.work-band .eyebrow {
  color: #8fd0bd;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.steps span {
  min-height: 76px;
  display: flex;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #dfe8e3;
  font-weight: 700;
}

.contact-section {
  padding: 100px clamp(20px, 5vw, 72px);
}

.contact-box {
  max-width: 900px;
  padding: clamp(32px, 6vw, 64px);
  border-radius: 8px;
  background: rgba(238, 241, 236, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow);
}

.contact-box .button {
  margin-top: 28px;
}

.contact-intro {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
  font-weight: 700;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.contact-actions .button {
  margin-top: 0;
}

.button.whatsapp {
  color: var(--white);
  background: #1f8f5f;
  box-shadow: 0 16px 30px rgba(31, 143, 95, 0.24);
}

.project-form {
  display: grid;
  gap: 22px;
  margin-top: 34px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label,
fieldset {
  display: grid;
  gap: 9px;
  margin: 0;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 800;
}

fieldset {
  padding: 0;
  border: 0;
}

legend {
  padding: 0;
  margin-bottom: 10px;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 15px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
  font: inherit;
  font-weight: 500;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.native-file {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.file-control {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.55);
  font-weight: 700;
  cursor: pointer;
}

.file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 7px;
  color: var(--white);
  background: var(--ink);
  font-size: 0.9rem;
  font-weight: 900;
}

.file-name {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

input:focus,
textarea:focus {
  border-color: rgba(47, 125, 109, 0.72);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 0 0 4px rgba(47, 125, 109, 0.12);
}

textarea {
  resize: vertical;
}

label > span {
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 800;
}

label > span span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.choice-grid label {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.choice-grid label:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.55);
}

.choice-grid input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.project-form .button {
  width: fit-content;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}

.form-note {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.success-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  display: grid;
  gap: 5px;
  width: min(360px, calc(100vw - 40px));
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  color: var(--white);
  background: #1f5f4f;
  box-shadow: 0 24px 60px rgba(24, 32, 30, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.success-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.success-toast strong {
  font-size: 1rem;
}

.success-toast span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  font-weight: 700;
}

.success-page {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  padding: 32px;
  text-align: center;
}

.success-page img {
  width: min(280px, 72vw);
  height: auto;
  margin-bottom: 8px;
}

.success-page h1 {
  max-width: 720px;
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.success-page p {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
  font-weight: 700;
}

html[dir="rtl"] .success-toast {
  right: auto;
  left: 24px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

@media (min-width: 1200px) {
  h1 {
    font-size: clamp(3.6rem, 5vw, 4.8rem);
  }

  .hero-content {
    max-width: 620px;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 560px;
  }

  .service-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .form-row,
  .choice-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-header {
    position: sticky;
    padding: 16px 18px;
    gap: 12px;
    flex-wrap: wrap;
  }

  .nav {
    gap: 12px;
    font-size: 0.82rem;
  }

  .language-switcher {
    order: 3;
    width: 100%;
  }

  .lang-button {
    flex: 1;
  }

  .hero {
    min-height: auto;
    padding: 70px 18px 54px;
  }

  .hero-actions,
  .button,
  .project-form .button,
  .contact-actions .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 360px;
  }

  .hero-logo-image {
    top: -18px;
    right: auto;
    left: 0;
    width: min(58%, 190px);
  }

  html[dir="rtl"] .hero-logo-image {
    left: auto;
    right: 0;
  }

  .browser-window {
    inset: 128px auto auto 0;
  }

  .phone-frame {
    width: 142px;
    height: 264px;
    right: 0;
  }
}
