/* offers.asico.ae - ASICO Property Management landing page.
   Values are taken from the previous Elementor build and named once as tokens. */

/* --- Fonts ---------------------------------------------------------------- */

@font-face {
  font-family: "Figtree";
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/figtree.woff2") format("woff2");
}
@font-face {
  font-family: "Maxima Nouva";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/maxima-nouva-semibold.woff2") format("woff2");
}

/* --- Tokens ---------------------------------------------------------------- */

:root {
  --navy:        #18253a;
  --gold:        #f2b966;
  --mint:        #f4fafa;
  --white:       #fff;
  --text-muted:  #7a7a7a;
  --field-line:  #746c6c;
  --rule:        rgba(24, 37, 58, 0.08);
  --error:       #d63638;

  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-label: "Maxima Nouva", var(--font);

  --gutter: 40px;            /* page padding on wide screens */
  --section-y: 100px;        /* vertical rhythm between sections */

  --h1: 58px;  --h1-lh: 69.6px;
  --h2: 48px;  --h2-lh: 57.6px;
  --h3: 32px;  --h3-lh: 40px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 1024px) {
  :root { --gutter: 20px; --h1: 44px; --h1-lh: 52.8px; --h2: 34px; --h2-lh: 40.8px; --h3: 28px; --h3-lh: 35px; }
}
@media (max-width: 767px) {
  :root { --section-y: 50px; --h1: 32px; --h1-lh: 38.4px; --h2: 26px; --h2-lh: 31.2px; --h3: 21px; --h3-lh: 26.25px; }
}

/* --- Base ------------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--navy);
  background: var(--white);
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.icon { display: inline-block; width: 1em; height: 1em; fill: currentColor; flex: none; vertical-align: -0.125em; }

.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }

/* --- Shared bits ------------------------------------------------------------ */

.badge {
  display: block;
  width: fit-content;
  margin-bottom: 13.6px;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--gold);
  color: var(--white);
  font-size: 12px;
  font-weight: 500;
  line-height: 17.28px;
  text-transform: uppercase;
}
.badge--strong { font-weight: 700; line-height: 21px; margin-bottom: 10px; }

.title {
  margin-bottom: 12px;
  font-size: var(--h2);
  font-weight: 300;
  line-height: var(--h2-lh);
  letter-spacing: 1px;
}
.title em { color: var(--gold); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 20px 30px;
  border: 0;
  background: var(--gold);
  color: var(--white);
  font: 500 16px/16px var(--font);
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn .icon { font-size: 14px; }
.btn:hover { background: var(--navy); }
.btn--light { background: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--gold); color: var(--white); }

/* --- Hero --------------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 100px 10px 110px;   /* 10px more below: the original sits 5px above centre */
  text-align: center;
  color: var(--white);
  overflow: hidden;
  background: var(--navy);
}
@supports (height: 100svh) { .hero { min-height: 100svh; } }
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero::after {               /* brand-navy scrim over the video */
  content: ""; position: absolute; inset: 0;
  background: rgba(24, 37, 58, 0.5);
}
.hero__inner { position: relative; z-index: 1; width: 100%; max-width: 682px; }
@media (max-width: 1024px) { .hero__cta { margin-top: 68px; } }
.hero h1 {
  margin-bottom: 12px;
  font-size: var(--h1);
  font-weight: 300;
  line-height: var(--h1-lh);
  letter-spacing: 1px;
}
.hero h1 em { color: var(--gold); }
.hero__cta {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 20px;
  margin-top: 79px;
}
@media (max-width: 767px) { .hero__cta { margin-top: 69px; } .hero { padding: 60px 10px 70px; } }

/* --- Why choose ASICO ---------------------------------------------------------- */

.why {
  padding: 104px 0 var(--section-y);
  background: var(--mint) url("../img/pattern.svg") no-repeat 100% 0 / auto;
}
.why__intro {
  display: grid;
  grid-template-columns: 574px 1fr;
  align-items: start;
}
.why__intro > p { margin-top: 6px; padding-right: 40px; font-size: 18px; line-height: 31.5px; }
.why__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  margin-top: 54px;
}

.services { padding: 10px 78px 0 10px; }
.services li {
  display: grid;
  grid-template-columns: 60px 1fr;
  column-gap: 15px;
  min-height: 70px;
  margin-bottom: 20px;
}
.services li:last-child { margin-bottom: 0; }
.services .icon { width: 60px; height: 60px; color: var(--gold); margin-top: 5px; }
.services h3 { font-size: 25px; font-weight: 300; line-height: 40px; }
.services p { color: var(--text-muted); line-height: 25.6px; }

.card {
  display: flex;
  flex-direction: column;
  justify-content: center;   /* the card stretches to the list's height; content stays centred */
  max-width: 680px;
  padding: 50px;
  background: var(--white);
}
.card h3 {
  margin-bottom: 12px;
  font-size: var(--h3);
  font-weight: 300;
  line-height: var(--h3-lh);
  letter-spacing: -0.027em;
}
.card > p { line-height: 28px; }

/* Tablet and phone: same structure, tighter type (values from the original build) */
@media (max-width: 1024px) {
  .why__intro { grid-template-columns: 248px 1fr; }
  .why__intro > p { margin-top: -4px; padding-right: 0; }
  .why__body { margin-top: 41px; }
  .services { padding-right: 49px; }
  .services p { font-size: 14px; line-height: 22.5px; }
  .card > p { font-size: 14px; line-height: 24.5px; }
  .field input, .field textarea { font-size: 14px; line-height: 14px; }
}
@media (max-width: 767px) {
  .why { padding-top: 50px; }
  .why__intro, .why__body { grid-template-columns: 1fr; }
  .why__intro > p { margin-top: -2px; }
  .why__body { margin-top: 30px; }
  .services { padding-right: 10px; }
  .card { padding: 40px 20px 20px; margin-top: 30px; max-width: none; }
}

/* --- Form -------------------------------------------------------------------------- */

.form { margin-top: 20px; }
.field { margin-bottom: 20px; }
.field label { display: block; margin-bottom: 5px; font-size: 14px; font-weight: 500; line-height: 17px; color: var(--navy); }
.field .req { color: var(--error); margin-left: 4px; }
.field input, .field textarea {
  display: block; width: 100%;
  padding: 11px 15px;
  border: 1px solid var(--field-line);
  border-radius: 0;
  background: var(--white);
  font: 16px/16px var(--font);
  color: #606266;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input { height: 50px; }
.field textarea { height: 90px; line-height: 20px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #8d8d92; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(242, 185, 102, 0.35); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--error); }
.field .err { display: none; margin-top: 5px; font-size: 13px; line-height: 18px; color: var(--error); }
.field.is-invalid .err { display: block; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form .submit {
  width: 100%; height: 50px;
  padding: 8px 20px;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid var(--gold);
  border-radius: 1px;
  font-size: 16px; line-height: 24px;
}
.form .submit:hover { background: var(--navy); border-color: var(--navy); }
.form .submit[disabled] { opacity: 0.7; cursor: progress; }
.form-status { margin-top: 14px; font-size: 15px; line-height: 22px; color: var(--error); }
.form-status:empty { display: none; }

/* intl-tel-input, matched to the other fields */
.iti { display: block; width: 100%; }
.iti input[type="tel"] { padding-left: 108px; }

/* --- Tab strip ------------------------------------------------------------------------ */

.tabs { padding-block: 10px; background: var(--white); border-bottom: 1px solid var(--rule); }
.tabs ul { display: flex; max-width: 1240px; margin-inline: auto; }
.tabs li { flex: 1; }
.tabs a {
  display: block;
  padding: 21px 0;
  text-align: center;
  font-size: 18px; font-weight: 300; line-height: 28px;
  color: var(--navy);
  box-shadow: inset 0 -2px 0 transparent;
  transition: box-shadow 0.3s var(--ease), color 0.3s var(--ease);
}
.tabs a.is-active { box-shadow: inset 0 -2px 0 var(--navy); color: #353535; }
.tabs a:hover { color: var(--gold); }
@media (max-width: 767px) { .tabs { display: none; } }

/* --- Feature sections -------------------------------------------------------------------- */

.feature { padding-block: var(--section-y); border-bottom: 1px solid var(--rule); scroll-margin-top: 70px; }
.feature .wrap {
  display: grid;
  grid-template-columns: 47fr 53fr;
  align-items: stretch;
}
.feature__text > p:not(.badge) { max-width: 420px; line-height: 28px; margin-bottom: 28px; }
.feature__text > p:last-of-type { margin-bottom: 25px; }
.feature__text .title { max-width: 549px; margin-bottom: 22px; }
.feature__media { display: flex; align-items: center; padding: 50px; background: var(--mint); }
.feature__media img { width: 100%; }

@media (max-width: 1024px) {
  .feature .wrap { grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .feature__text > p:not(.badge) { max-width: none; }
  .feature__media { padding: 20px; }
}
@media (max-width: 767px) {
  .feature { padding-block: 58px; }
  #section1 { padding-top: 30px; }
  #section3 { padding-bottom: 30px; }
  .feature .wrap { grid-template-columns: 1fr; text-align: center; padding-inline: 10px; }
  .feature__text { display: contents; }
  .feature__text .badge { justify-self: center; }
  .feature__text .title { max-width: none; margin-bottom: 0; }
  .feature__media { order: 1; margin: 21px 10px 20px; }
  .feature__text > *:nth-child(n+3) { order: 2; }
  .feature__text > p:not(.badge), .feature__text .btn { justify-self: center; }
  .feature__text > p:not(.badge) { margin-bottom: 0; }
  .feature__text > .btn { margin-top: 20px; }
}

/* --- Insights ------------------------------------------------------------------------------ */

.insights { padding: var(--section-y) 0 90px; background: var(--mint); }
@media (max-width: 1024px) { .insights { padding-bottom: 80px; } .insights__head > p { font-size: 16px; line-height: 28px; } }
@media (max-width: 767px) { .insights { padding-top: 50px; padding-bottom: 30px; } }
.insights__head { display: grid; grid-template-columns: 1fr 963px; column-gap: 10px; align-items: start; margin-bottom: 30px; }
.insights__head > p { margin-top: 13px; font-size: 18px; line-height: 31.5px; }
.mockup { position: relative; max-width: 1380px; margin-inline: -10px; }
.mockup > img { width: 100%; }

.hotspot { position: absolute; transform: translate(-50%, -50%); z-index: 2; }
.hotspot__dot {
  position: relative;
  display: block; width: 34px; height: 34px;
  padding: 0; border-radius: 50%;
  border: 1px solid #e2e6f0;
  background: var(--navy);
  cursor: pointer;
}
.hotspot__dot::before {       /* the little gold pip */
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 10px; height: 10px; border-radius: 50%; background: var(--gold);
}
.hotspot__dot::after {        /* pulse */
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  border: 1px solid var(--gold);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(2); opacity: 0; } }
.hotspot__tip {
  position: absolute; left: 50%; bottom: calc(100% + 24px);
  width: max-content; max-width: 350px;
  padding: 20px;
  background: var(--gold);
  color: var(--navy);
  font: 600 20px/28.8px var(--font-label);
  letter-spacing: 1.5px;
  transform: translate(-50%, 8px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.hotspot.is-open .hotspot__tip { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (max-width: 767px) {
  .insights__head { grid-template-columns: 1fr; }
  .hotspot__tip { font-size: 15px; line-height: 22px; padding: 12px 16px; max-width: 200px; }
  .hotspot__dot { width: 26px; height: 26px; }
}
@media (max-width: 1024px) { .insights__head { grid-template-columns: 1fr; } .mockup { margin-inline: calc(var(--gutter) * -1); } }

/* --- Footer ------------------------------------------------------------------------------------ */

.footer { padding: 91px 0 90px; background: var(--navy); color: var(--white); }
.footer .wrap { max-width: 1240px; display: grid; grid-template-columns: 427fr 376fr 397fr; padding-inline: 20px; }
.footer .wrap > div:nth-child(1) { padding-right: 109px; }
.footer .wrap > div:nth-child(2) { padding-right: 30px; }
.footer__logo { width: 200px; margin-bottom: 20px; }
.footer p { line-height: 28px; }
.footer h4 { margin-bottom: 20px; font-size: 18px; font-weight: 700; line-height: 25.92px; letter-spacing: -0.486px; }
.contact-list li { position: relative; padding-left: 33px; margin-bottom: 5px; line-height: 26px; }
.contact-list .icon { position: absolute; left: 0; top: 4px; font-size: 18px; color: var(--gold); }
.socials { display: flex; gap: 6px; margin-top: 30px; }
.socials a {
  display: grid; place-items: center;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--gold); color: var(--white); font-size: 16px;
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.socials a:hover { background: var(--white); color: var(--navy); transform: translateY(-3px); }
.hours { padding: 20px; background: var(--white); color: var(--navy); box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1); }
.hours li { display: flex; justify-content: space-between; gap: 20px; line-height: 23px; padding-block: 10px; letter-spacing: -0.432px; }
.hours li + li { border-top: 1px solid var(--rule); }
.hours span:last-child { color: #4a5568; }
@media (max-width: 1024px) {
  .footer { padding: 81px 0 80px; }
  .footer .wrap { grid-template-columns: 256fr 250fr 274fr; padding-inline: 20px; }
  .footer .wrap > div:nth-child(1), .footer .wrap > div:nth-child(2) { padding-right: 30px; }
  .footer p { font-size: 14px; line-height: 24.5px; }
  .socials { flex-wrap: wrap; }
}
@media (max-width: 767px) {
  .footer { padding: 51px 0 30px; }
  .footer .wrap { grid-template-columns: 1fr; row-gap: 40px; }
  .footer .wrap > div { padding-right: 0 !important; }
  .hours li { flex-direction: column; gap: 4px; padding-block: 18px; }
}

/* --- Back to top ---------------------------------------------------------------------------------- */

.to-top {
  position: fixed; right: 25px; bottom: 25px; z-index: 30;
  display: grid; place-items: center;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--white); color: var(--navy);
  box-shadow: inset 0 0 0 2px rgba(159, 159, 159, 0.3), 0 4px 14px rgba(0, 0, 0, 0.08);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
  cursor: pointer; border: 0; padding: 0;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; }

/* --- Scroll reveal ---------------------------------------------------------------------------------- */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* --- Thank-you page ----------------------------------------------------------------------------------- */

.thanks { display: grid; place-items: center; min-height: 100vh; padding: 60px 20px; text-align: center; }
.thanks__inner { width: 100%; max-width: 1240px; }
.thanks .icon--check { width: 34px; height: 34px; color: var(--gold); margin-bottom: 26px; }
.thanks h1 { font-size: 48px; font-weight: 500; line-height: 57.6px; letter-spacing: -1.296px; margin-bottom: 20px; }
.thanks p { font-size: 14px; line-height: 24px; }
.thanks__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 1200px; margin: 50px auto 0; align-items: start; }
.thanks h2 { font-size: 30px; font-weight: 500; line-height: 36px; letter-spacing: -0.81px; margin-bottom: 20px; }
.thanks__social { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px 30px; padding-top: 54px; }
.thanks__social a { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); transition: color 0.3s; }
.thanks__social a:hover { color: var(--navy); }
.btn--outline { width: 100%; justify-content: center; padding: 20px 30px; line-height: 18px; border: 1px solid var(--gold); border-radius: 10px; background: transparent; color: var(--gold); font-weight: 500; text-transform: uppercase; }
.btn--outline:hover { background: var(--gold); color: var(--white); }
@media (max-width: 767px) { .thanks h1 { font-size: 34px; line-height: 40px; } .thanks__cols { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hotspot__dot::after { animation: none; }
}

/* --- Legal bar under the footer columns --------------------------------------------------------------------------------- */
.footer__legal { max-width: 1240px; margin: 49px auto 0; padding: 25px 20px 0; border-top: 1px solid rgba(255,255,255,.14); display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; font: 400 14px/25px var(--body); }
.footer__legal p { margin: 0; line-height: 25px; }
.footer__legal a { color: var(--white); margin-left: 22px; text-underline-offset: 3px; }
.footer__legal p:last-child a:first-child { margin-left: 0; }
.footer__legal a:hover { color: var(--gold); text-decoration: underline; }
@media (max-width: 767px) { .footer__legal { flex-direction: column; margin-top: 30px; } }
