/* ==========================================================================
   Redwan Rahman & Co. — Home page
   Rebuilt from the Hostinger Website Builder design (1224px grid).
   ========================================================================== */

:root {
  --c-heading: #1d1e20;
  --c-text: #56585e;
  --c-ink: #0d141a;
  --c-white: #ffffff;
  --c-card-blue: #d6eaf8;
  --c-footer: #1c2833;
  --c-footer-btn: #5d6d7e;
  --c-whatsapp: #1ca64c;

  --f-heading: 'Outfit', sans-serif;
  --f-body: 'Inter', sans-serif;
  --f-base: 'DM Sans', sans-serif;
  --f-footer: 'Roboto', sans-serif;

  --container: 1224px;
  --header-h: 70px;
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--f-base);
  font-size: 16px;
  color: var(--c-heading);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; border: 0; background: none; cursor: pointer; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 32px);
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Type ---------- */
.h1, .h3, .h5, .h6 { font-family: var(--f-heading); font-weight: 600; color: var(--c-heading); }
.h1 { font-size: 64px; line-height: 1.3; }
.h3 { font-size: 48px; line-height: 1.3; }
.h5 { font-size: 26px; line-height: 1.3; }
.h6 { font-size: 18px; line-height: 1.3; color: var(--c-ink); }
.body { font-family: var(--f-body); font-size: 16px; line-height: 1.5; color: var(--c-text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 194px;
  height: 56px;
  font-family: var(--f-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--c-ink);
  text-decoration: none;
  border: 1px solid var(--c-ink);
  border-radius: 28px;
  background: transparent;
  transition: background-color .25s ease, color .25s ease, opacity .25s ease;
}
.btn:hover { opacity: .8; }
.btn--light { color: var(--c-white); border-color: var(--c-white); }
.btn--sm { width: 129px; height: 32px; font-size: 13px; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--c-white);
}
.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 10px 16px;
}
.site-header__menu { display: contents; }
.site-header__logo img { width: 253px; height: 50px; object-fit: contain; object-position: left center; }

.nav { display: flex; align-items: center; gap: 31px; list-style: none; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex;
  align-items: center;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 24px;
  color: var(--c-ink);
  text-decoration: none;
  text-underline-offset: 7px;
}
.nav__link:hover,
.nav__link.is-active { text-decoration: underline; }
.nav__caret { margin: 2px 6.5px; transition: transform .3s; }
.nav__item--dropdown:hover .nav__caret,
.nav__item--dropdown:focus-within .nav__caret { transform: rotate(180deg); }

.nav__dropdown-area {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  padding: 8px 16px 48px 0;
  z-index: 5;
}
.nav__item--dropdown:hover .nav__dropdown-area,
.nav__item--dropdown:focus-within .nav__dropdown-area { display: block; }
.nav__dropdown {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 24px;
  list-style: none;
  white-space: nowrap;
  background: var(--c-white);
  border-radius: 5px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .1);
}

.socials { display: flex; justify-content: flex-end; align-items: center; gap: 16px; }
.socials a { display: flex; color: #000; }
.socials svg { width: 20px; height: 20px; }

.burger { display: none; width: 32px; height: 32px; position: relative; color: var(--c-ink); }
.burger span {
  position: absolute; left: 4px; right: 4px; height: 2px;
  background: currentColor; border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.burger span:nth-child(1) { top: 9px; }
.burger span:nth-child(2) { top: 15px; }
.burger span:nth-child(3) { top: 21px; }
.site-header.is-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header.is-open .burger span:nth-child(2) { opacity: 0; }
.site-header.is-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  color: var(--c-white);
  text-align: center;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; clip-path: inset(0); z-index: 0; }
.hero__bg img {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  object-fit: cover;
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--c-heading);
  opacity: .45;
}
.hero .container { position: relative; z-index: 1; padding-top: 80px; padding-bottom: 108px; }
.hero__title { max-width: 811px; margin: 0 auto; color: var(--c-white); }
.hero__text { max-width: 502px; margin: 18px auto 0; color: var(--c-white); }
.hero__cta { margin-top: 32px; }

.hero__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
  margin-top: 65px;
}
.hero-card {
  min-height: 169px;
  padding: 39px 52px 30px;
  background: rgba(255, 255, 255, .1);
}
.hero-card .h6 { color: var(--c-white); text-align: center; }
.hero-card .body { margin-top: 17px; color: var(--c-white); text-align: center; }

/* ==========================================================================
   About / Trusted partner
   ========================================================================== */
.intro { padding: 12px 0 53px; }

.intro__row { display: grid; align-items: start; }
.intro__row--top { grid-template-columns: 612fr 611fr; }
.intro__row--bottom { grid-template-columns: 721fr 503fr; margin-top: 154px; }

.intro__text { max-width: 440px; }
.intro__row--top .intro__text { padding-top: 155px; }
.intro__row--bottom .intro__text { max-width: 448px; padding-top: 97px; }
.intro__text .body { max-width: 399px; margin-top: 24px; }
.intro__text .btn { margin-top: 48px; }
.intro__row--bottom .intro__text .btn { margin-top: 24px; }

.rounded-img { border-radius: 20px; overflow: hidden; }
.rounded-img img { width: 100%; height: 100%; object-fit: cover; }
.intro__photo { aspect-ratio: 611 / 464; }

.collage { position: relative; width: 100%; max-width: 594px; aspect-ratio: 594 / 540; }
.collage__office,
.collage__man { position: absolute; }
.collage__office { left: 2.69%;  top: 0;      width: 69.19%; height: 100%;   z-index: 1; }
.collage__man    { left: 46.63%; top: 18.15%; width: 53.37%; height: 70.56%; z-index: 2; }

/* ==========================================================================
   Quality makes the difference
   ========================================================================== */
.quality { padding: 80px 0 90px; text-align: center; }
.quality__lead { max-width: 605px; margin: 19px auto 0; }

.quality__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  margin-top: 70px;
  text-align: left;
}
.q-card { display: flex; flex-direction: column; background: var(--c-card-blue); }
.q-card__body { position: relative; height: 200px; padding: 40px 50px 0 55px; }
.q-card__body .body { max-width: 447px; margin-top: 13px; }
.q-card__body .btn { position: absolute; left: 50px; top: 154px; }
.q-card__img { aspect-ratio: 605 / 344; overflow: hidden; }
.q-card__img img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   Slideshow
   ========================================================================== */
.slideshow { position: relative; height: 428px; overflow: hidden; background: #000; }
.slideshow__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1);
  transition: opacity .8s ease, transform 6s linear;
}
.slideshow__slide.is-current { opacity: 1; transform: scale(1.01); }
.slideshow__nav {
  position: absolute;
  top: 0; bottom: 0;
  z-index: 2;
  padding: 0 56px;
  color: #000;
}
.slideshow__nav:hover { opacity: .8; }
.slideshow__nav--prev { left: 0; transform: rotate(180deg); }
.slideshow__nav--next { right: 0; }
.slideshow__dots {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 2;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}
.slideshow__dot { width: 10px; height: 10px; border-radius: 50px; background: #000; opacity: .5; }
.slideshow__dot.is-current { opacity: 1; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--c-footer); color: var(--c-white); padding: 31px 0 25px; }
.site-footer .h5 { color: var(--c-white); }
.footer__about { max-width: 328px; margin: 6px 0 0 3px; font-family: var(--f-body); font-size: 14px; line-height: 1.3; font-style: italic; }

.footer__grid {
  display: grid;
  grid-template-columns: 309px 227px 313px 1fr;
  margin-top: 41px;
}
.footer__heading {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.3;
  font-weight: 900;
  margin-bottom: 12px;
}
.footer__col--services .footer__heading { padding-left: 28px; }
.footer__col--pages .footer__heading { padding-left: 26px; }

.footer__list {
  font-family: var(--f-footer);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.81;
  padding-left: 28px;
}
.footer__list--plain { list-style: none; }
.footer__list--plain a { text-decoration: underline; }
.footer__list--bullets { padding-left: 46px; }
.footer__list a { text-decoration: none; }
.footer__list--plain a { text-decoration: underline; }
.footer__list a:hover { opacity: .75; }

.footer__contact { max-width: 264px; font-family: var(--f-footer); font-weight: 300; font-size: 16px; line-height: 1.5; }
.footer__contact p + p { margin-top: 0; }
.footer__contact a { text-decoration: none; }

.subscribe { display: flex; flex-direction: column; font-family: var(--f-body); }
.subscribe label { font-size: 16px; margin-bottom: 8px; }
.subscribe input {
  width: 100%;
  padding: 16px;
  font: 16px var(--f-body);
  color: var(--c-ink);
  background: var(--c-white);
  border: 1px solid #b8c0cc;
  border-radius: 10px;
  outline: none;
}
.subscribe input:focus { border-color: var(--c-ink); }
.subscribe button {
  align-self: flex-start;
  margin-top: 16px;
  padding: 16px 40px;
  font-size: 14px;
  color: var(--c-white);
  background: var(--c-footer-btn);
  border-radius: 50px;
}
.subscribe__msg { margin-top: 10px; font-size: 14px; }

.footer__bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-top: 72px;
  font-family: var(--f-footer);
  font-weight: 300;
  font-size: 14px;
}
.footer__socials { display: flex; gap: 33px; padding-left: 21px; }
.footer__socials a { display: flex; color: var(--c-white); }
.footer__socials svg { width: 24px; height: 24px; }
.footer__legal { justify-self: end; white-space: pre; }
.footer__legal a { text-decoration: none; }
.footer__legal a:hover { text-decoration: underline; }

/* ---------- WhatsApp bubble ---------- */
.whatsapp {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 60;
  display: flex;
  border-radius: 100px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}

/* ---------- Reveal on scroll (matches builder "slide" animation) ---------- */
.js .reveal { opacity: 0; transform: translateY(20%); transition: opacity .65s ease .1s, transform .65s ease .1s; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .slideshow__slide { transition: opacity .3s; transform: none !important; }
}

/* ==========================================================================
   Small desktop / tablet
   ========================================================================== */
@media (max-width: 1200px) {
  .h1 { font-size: 56px; }
  .h3 { font-size: 42px; }
  .footer__grid { grid-template-columns: 1.1fr .8fr 1fr 1.3fr; gap: 24px; }
}

/* ==========================================================================
   Mobile (builder switches layouts at 920px)
   ========================================================================== */
@media (max-width: 920px) {
  :root { --header-h: 96px; }
  .container { padding: 0 31px; }

  .site-header__inner { grid-template-columns: 1fr auto; padding: 0 23px; }
  .site-header__logo img { width: 230px; height: 46px; }
  .burger { display: block; }
  .site-header__menu {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0; bottom: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    padding: 40px 24px;
    overflow-y: auto;
    background: var(--c-white);
  }
  .site-header.is-open .site-header__menu { display: flex; }
  .nav { flex-direction: column; gap: 24px; }
  .nav__item { text-align: center; }
  .nav__link { font-size: 18px; }
  .nav__dropdown-area { position: static; display: none; padding: 12px 0 0; }
  .nav__item--dropdown:hover .nav__dropdown-area { display: none; }
  .nav__item--dropdown.is-open .nav__dropdown-area { display: block; }
  .nav__item--dropdown.is-open .nav__caret { transform: rotate(180deg); }
  .nav__dropdown { box-shadow: none; padding: 0; align-items: center; gap: 12px; }
  .socials { justify-content: center; }

  .h1 { font-size: 40px; }
  .h3 { font-size: 32px; }
  .h5 { font-size: 20px; }

  .hero .container { padding-top: 80px; padding-bottom: 1px; }
  .hero__text { margin-top: 12px; }
  .hero__cta { margin-top: 48px; width: 164px; }
  .hero__cards { grid-template-columns: 1fr; gap: 42px; margin-top: 80px; margin-bottom: 0; }
  .hero-card { min-height: 160px; padding: 40px 16px 30px; }
  .hero-card .body { margin-top: 11px; }

  .intro { padding: 40px 0 0; }
  .intro__row--top,
  .intro__row--bottom { grid-template-columns: 1fr; margin-top: 0; }
  .intro__row .intro__text { max-width: none; padding-top: 0; }
  .intro__text .body { max-width: none; margin-top: 21px; }
  .intro__text .btn,
  .intro__row--bottom .intro__text .btn { margin-top: 55px; width: 163px; }
  .intro__photo { margin-top: 177px; aspect-ratio: 327 / 224; }
  .intro__row--bottom { margin-top: 24px; }
  .intro__row--bottom .collage { order: 2; margin-top: 15px; }
  .collage { max-width: none; aspect-ratio: 327 / 289; }
  /* on mobile the man-writing photo leads and the office photo sits in front */
  .collage__man    { left: 0;     top: 0;     width: 62.7%; height: 100%;  z-index: 1; }
  .collage__office { left: 47.4%; top: 13.5%; width: 52.3%; height: 73.7%; z-index: 2; }

  .quality { padding: 40px 0 97px; }
  .quality__lead { margin-top: 22px; }
  .quality__grid { grid-template-columns: 1fr; gap: 80px; margin-top: 36px; }
  .q-card__body { height: auto; min-height: 216px; padding: 40px 17px 24px; }
  .q-card__body .btn { position: static; margin-top: 12px; width: auto; height: 24px; font-size: 16px; border: 0; justify-content: flex-start; }
  .q-card__img { aspect-ratio: 327 / 240; }

  .slideshow { height: 300px; }
  .slideshow__nav { padding: 28px; }

  .site-footer { padding: 38px 0 40px; }
  .footer__about { margin: 16px 0 0; max-width: none; font-size: 16px; line-height: 1.5; }
  .footer__grid { grid-template-columns: 1fr; gap: 48px; margin-top: 48px; }
  .footer__col--services .footer__heading,
  .footer__col--pages .footer__heading { padding-left: 0; }
  .footer__list { padding-left: 0; }
  .footer__list--bullets { padding-left: 20px; }
  .footer__contact { max-width: none; }
  .footer__bottom { grid-template-columns: 1fr; justify-items: center; gap: 16px; margin-top: 60px; text-align: center; }
  .footer__socials { order: -1; padding-left: 0; }
  .footer__legal { justify-self: center; }
}
