:root {
  --navy: #073763;
  --navy-2: #0b4b83;
  --blue: #7fb7da;
  --ice: #eef7fb;
  --text: #102a43;
  --muted: #60758a;
  --line: #e6eef4;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(7, 55, 99, 0.10);
  --radius-xl: 42px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(127,183,218,.22), transparent 28%),
    radial-gradient(circle at 10% 25%, rgba(127,183,218,.12), transparent 22%),
    #f8fbfd;
}

body[dir="rtl"] {
  font-family: Vazirmatn, Tahoma, Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.page-shell {
  max-width: 1320px;
  margin: 24px auto;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(224, 236, 245, .9);
  border-radius: 46px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.container {
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(230, 238, 244, .72);
}

.nav {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
}

.logo-mark {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #fff, var(--ice));
  position: relative;
}

.logo-mark::before,
.logo-mark::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: var(--navy);
  box-shadow:
    15px 8px 0 var(--blue),
    -10px 10px 0 var(--navy-2),
    8px -12px 0 var(--blue);
  width: 5px;
  height: 5px;
}

.logo-text small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .02em;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 14px;
  color: #1d3852;
}

.nav-links a {
  transition: .2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--blue);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  font-size: 13px;
  background: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  cursor: pointer;
  background: var(--navy);
  color: #fff;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 12px 32px rgba(7,55,99,.18);
  transition: .22s ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--navy-2);
}

.btn.light {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--line);
  box-shadow: none;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: var(--navy);
  font-size: 28px;
  cursor: pointer;
}

.hero {
  position: relative;
  padding: 80px 0 90px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  align-items: center;
  gap: 44px;
}

.eyebrow {
  color: var(--navy-2);
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow-white {
  color: var(--white);
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::after {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--blue);
}

h1, h2, h3 {
  margin: 0;
  color: var(--navy);
  letter-spacing: -0.045em;
}

h1 {
  font-size: clamp(48px, 7vw, 78px);
  line-height: .96;
}

h2 {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;
}

h3 {
  font-size: 22px;
}

.accent {
  color: var(--blue);
}

.lead {
  margin: 24px 0 34px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
  max-width: 570px;
  text-align: justify;
}

.hero-art {
  min-height: 500px;
  border-radius: 56px 56px 56px 10px;
  background:transparent;

  position: relative;
  box-shadow: none; 
  overflow: hidden;
}

.flask {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 230px;
  height: 300px;
  transform: translate(-50%, -44%);
  border: 5px solid rgba(7,55,99,.58);
  border-top: 0;
  border-radius: 0 0 110px 110px;
  background: linear-gradient(to top, rgba(127,183,218,.55) 0 42%, rgba(255,255,255,.4) 42% 100%);
}

.flask::before {
  content: "";
  position: absolute;
  left: 72px;
  top: -110px;
  width: 80px;
  height: 120px;
  border: 5px solid rgba(7,55,99,.58);
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
  background: rgba(255,255,255,.5);
}

.bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--blue) 50%, var(--navy-2));
  opacity: .9;
}

.b1 { width: 32px; height: 32px; left: 12%; top: 22%; }
.b2 { width: 18px; height: 18px; left: 18%; top: 62%; }
.b3 { width: 26px; height: 26px; right: 18%; top: 28%; }
.b4 { width: 14px; height: 14px; right: 14%; bottom: 23%; }

.section {
  padding: 82px 0;
}

.section.soft {
  background:
    radial-gradient(circle at left top, rgba(127,183,218,.12), transparent 22%),
    #fff;
}


.two-col {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 70px;
  align-items: center;
}

.icon {
  width: 100%;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon img {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.cards.three {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  min-height: 220px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.9);
  box-shadow: 0 16px 42px rgba(7,55,99,.05);
  transition: .22s ease;
}

.card h3 {
  text-align: center;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 64px rgba(7,55,99,.10);
}

.promise {
  margin: 70px 0;
  padding: 58px;
  background:
    radial-gradient(circle at 8% 20%, rgba(127,183,218,.25), transparent 20%),
    linear-gradient(135deg, #073763, #0b4b83);
  color: #fff;
  border-radius: 56px;
  overflow: hidden;
}

.promise h2,
.promise h3 {
  color: #fff;
}

.promise p {
  color: rgba(255,255,255,.78);
}

.promise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  margin-top: 36px;
}

.page-hero {
  padding: 78px 0 46px;
  background:
    radial-gradient(circle at 70% 10%, rgba(127,183,218,.25), transparent 28%),
    #fff;
}

.page-hero .lead {
  max-width: 760px;
}

.contact-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 44px;
  align-items: start;
}

.contact-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px;
}

.contact-item {
  display: flex;
  gap: 14px;
  margin: 28px 0;
  color: var(--muted);
}

.form {
  display: grid;
  gap: 14px;
  margin-top: 175px;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  outline: none;
  color: var(--text);
  font: inherit;
  background: #fff;
}

textarea {
  min-height: 160px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(127,183,218,.16);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 34px;
  color: var(--muted);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.socials {
  display: flex;
  gap: 12px;
}

.socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--navy);
  background: #fff;
}

body[dir="rtl"] .eyebrow::after {
  order: -1;
}

body[dir="rtl"] h1,
body[dir="rtl"] h2,
body[dir="rtl"] h3 {
  letter-spacing: -0.02em;
}

body[dir="rtl"] .feature {
  grid-template-columns: 1fr 58px;
}

body[dir="rtl"] .icon {
  order: 2;
}

@media (max-width: 980px) {
  .page-shell {
    margin: 0;
    border-radius: 0;
  }
  
  .form {
  margin-top: 0;
}

  .mobile-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    left: 22px;
    right: 22px;
    top: 92px;
    padding: 22px;
    flex-direction: column;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
    transform: translateY(-18px);
    opacity: 0;
    pointer-events: none;
    transition: .22s ease;
  }

  body[dir="rtl"] .nav-links {
    align-items: flex-end;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-actions .btn {
    display: none;
  }

  .hero-grid,
  .two-col,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 54px;
  }

  .hero-art {
    min-height: 380px;
  }

  .cards,
  .cards.three,
  .promise-grid {
    grid-template-columns: 1fr;
  }

  .promise {
    padding: 34px;
    border-radius: 36px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

.logo img{
    height:55px;
    width:auto;
    display:block;
}

.hero-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 56px 56px 56px 10px;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}


.feature {
    display: flex;
    align-items: center;
    gap: 16px;
}


.feature-image {
    flex: 0 0 110px;
}


.feature-image img {
    width: 110px;
    height: 110px;
    object-fit: contain;
}


.feature-content h3 {
    margin: 0 0 8px;
}


.feature-content p {
    margin: 0;
    line-height: 1.6;
    text-align: justify;
}

.features2 {
  display: flex;
  justify-content: flex-start;
  gap: 50px;
}


.feature2 {
  width: 260px;
  text-align: left;
}

.feature2 img {
 width: 200px;
  height: 200px;
  object-fit: contain;
  margin-bottom: 25px;
}


.feature2 h3 {
  font-size: 24px;
  margin-bottom: 15px;
}


.feature2 p {
  line-height: 1.7;
  max-width: 240px;
}


.promise {
  width: min(1320px, calc(100% - 44px));
  margin: 0px auto;
  background:
    url("../images/erlen2.webp") no-repeat right bottom,
    #2C4A7A;
  background-size: 400px;
}

.contact-item img {
  width: 45px;
  height: 45px;
  object-fit: contain;
  flex-shrink: 0;
}

.contact-item div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-item strong {
  font-size: 15px;
  color: var(--navy);
}

.contact-item span {
  font-size: 16px;
  color: var(--text);
}

.contact-item a {
  color: inherit;
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}

.socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

.socials a {
  width: 38px;
  height: 38px;
  border: 1px solid #dfe7ef;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: 0.2s ease;
}

.socials a img {
  width: 17px;
  height: 17px;
  object-fit: contain;
}

.socials a:hover {
  transform: translateY(-2px);
}


/* ===== FINAL FIX: Why -> Get in Touch ===== */

/* سرمه‌ای بلندتر + فاصله متن با لبه پایین بیشتر */
.promise{
  width: min(1320px, calc(100% - 44px));
  margin: 0 auto;
  padding: 58px 58px 150px;   /* قبلاً 110 بود */
  border-radius: 56px;
  background:
    url("../images/erlen2.webp") no-repeat right 8px bottom 70px, /* عکس بالاتر */
    #2C4A7A;
  background-size: 300px;      /* کمی کوچکتر */
  position: relative;
  overflow: visible;
  z-index: 2;
}

/* cap سفید را بیشتر ببر بالا */
.contact-transition{
  position: relative;
  margin-top: -92px;          /* قبلاً -54 بود */
  z-index: 3;
  pointer-events: none;
}

.contact-transition__cap{
  width: min(1320px, calc(100% - 44px));
  height: 112px;
  margin: 0 auto;
  background: #fff;
  border-radius: 90px 90px 0 0;
}

/* نکته مهم: بالای سکشن تماس دیگر گرد نباشد تا دو تیکه نشود */
.section.contact-section{
  width: min(1320px, calc(100% - 44px));
  margin: 0 auto;
  background: #fff;
  border-radius: 0 0 42px 42px;   /* فقط پایین گرد */
  padding-top: 18px;               /* قبلاً زیاد بود، تیتر میاد بالاتر */
  position: relative;
  z-index: 2;
}

/* فاصله داخلی متن تماس را هم کمی بالا بکش */
.section.contact-section .contact-grid{
  margin-top: 0;
}

/* فرم زیادی پایین نیفتد */
.section.contact-section .form{
  margin-top: 90px; /* اگر هنوز زیاده کن 70 */
}

/* موبایل */
@media (max-width: 980px){
  .promise{
    padding: 34px 34px 120px;
    background-size: 220px;
    background-position: right 6px bottom 58px;
  }

  .contact-transition{
    margin-top: -76px;
  }

  .contact-transition__cap{
    width: calc(100% - 24px);
    height: 88px;
    border-radius: 30px 30px 0 0;
  }

  .section.contact-section{
    width: calc(100% - 24px);
    border-radius: 0 0 30px 30px;
    padding-top: 10px;
  }

  .section.contact-section .form{
    margin-top: 20px;
  }
}

/* ===== Mobile fix: Why PerSyn + Contact ===== */
/* ===== Mobile Why cards: icon left, title+text right ===== */
@media (max-width: 980px){

  .features2{
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 22px !important;
  }

  .feature2{
    width: 100% !important;
    max-width: 100% !important;
    display: grid !important;
    grid-template-columns: 88px 1fr !important;  /* آیکون | متن */
    column-gap: 14px !important;
    align-items: start !important;
    text-align: left !important;
  }

  .feature2 img{
    width: 88px !important;   /* بزرگ‌تر از قبل */
    height: 88px !important;
    margin: 0 !important;
    object-fit: contain;
    display: block;
  }

  .feature2 h3{
    margin: 2px 0 8px !important;
    font-size: 22px !important;
    line-height: 1.25 !important;
    text-align: left !important;
  }

  .feature2 p{
    margin: 0 !important;
    font-size: 16px !important;
    line-height: 1.75 !important;
    text-align: justify !important;
    max-width: 100% !important;
    word-break: normal !important;
    overflow-wrap: anywhere;
  }

  /* متن دقیقاً زیر تیتر بماند */
  .feature2 h3,
  .feature2 p{
    grid-column: 2 !important;
  }

  /* آیکون فقط ستون اول */
  .feature2 img{
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
  }
}
@media (max-width: 980px){
  .promise{
    background: #2C4A7A !important;   /* حذف کامل عکس */
    /* اگر گرادیان می‌خوای:
    background: linear-gradient(135deg,#073763,#0b4b83) !important;
    */
  }
}
@media (max-width: 980px){
  .section.contact-section{
    border-radius: 0 0 34px 34px !important; /* قبلا مثلا 22 یا 30 بوده */
  }

  .contact-transition__cap{
    border-radius: 34px 34px 0 0 !important; /* بالای سفید */
  }
}

/* ===== Final Persian Why PerSyn Alignment Fix ===== */

body[dir="rtl"] .feature2 {
  direction: rtl;
  text-align: right !important;
  align-items: stretch !important;
}

body[dir="rtl"] .feature2 img {
  display: block;
  align-self: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body[dir="rtl"] .feature2 h3 {
  width: 100%;
  text-align: right !important;
}

body[dir="rtl"] .feature2 p {
  width: 100%;
  text-align: justify !important;
  direction: rtl;
}