/* Molecule — static replica of molecule.com.pk */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-700.woff2") format("woff2"); }

:root {
  --orange: #f48c1e;
  --orange-dark: #c26d13;
  --orange-deep: #9e5100;
  --brown: #813900;
  --ink: #1c1311;
  --nav: #324a6d;
  --light: #ececec;
  --whatsapp: #25d366;
  --header-h: 45px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #333;
  background: #fff;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: #fff; padding: 8px 16px; z-index: 1000;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center; gap: 35px;
  padding-left: 3%;
  background: #fff;
}
.site-header__logo img { width: 23px; height: 23px; }

.nav { font-family: "Poppins", sans-serif; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; }
.nav a {
  position: relative; display: block;
  padding: 5px 0;
  color: var(--nav); text-decoration: none;
  font-size: 15px; font-weight: 600; line-height: 15px;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--nav);
  transform: scaleX(0); transition: transform .3s;
}
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }

.nav-toggle {
  display: none; margin-left: auto; margin-right: 3%;
  background: none; border: 0; padding: 8px; cursor: pointer; color: var(--nav);
}
.nav-toggle svg { width: 22px; height: 22px; display: block; }

/* ---------- Hero ---------- */
.hero {
  min-height: calc(100vh - var(--header-h));
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 30px;
  padding: 40px 10px;
  background: linear-gradient(180deg, #fff 0%, #fff0df 100%);
  font-family: "Poppins", sans-serif;
  color: #000;
}
.hero__brand { display: flex; align-items: center; justify-content: center; gap: 20px; }
.hero__logo { width: 300px; height: 300px; }
.hero__titles { display: flex; flex-direction: column; gap: 15px; }
.hero__kicker { font-size: 32px; font-weight: 600; line-height: 1; }
.hero__name { font-size: 5.5rem; font-weight: 600; line-height: 1; }
.hero__tagline { font-size: 35px; font-weight: 400; line-height: 1; letter-spacing: 3px; }
.hero__sub { font-size: 18px; font-weight: 400; line-height: 1; letter-spacing: 3px; }

.partners { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; width: 100%; max-width: 840px; }
.partners__group { flex: 1 1 0; min-width: 213px; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.partners__label { font-size: 20px; font-weight: 600; line-height: 1; color: rgba(0, 0, 0, .7); }
.partners__logos { display: flex; justify-content: center; gap: 10px; }
.partners__logos img { height: 75px; width: auto; max-width: 213px; object-fit: contain; }

.hero__actions { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 27px;
  font-family: "Poppins", sans-serif; font-size: 15px; font-weight: 500; line-height: 15px;
  color: #fff; text-decoration: none;
  transition: transform .3s, filter .3s;
}
.btn:hover { transform: translateY(-4px); filter: brightness(1.05); }
.btn--orange { background: var(--orange); }
.btn--whatsapp { background: var(--whatsapp); }
.btn svg { width: 15px; height: 15px; fill: currentColor; }

/* ---------- Section bands ---------- */
.band {
  min-height: 150px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 10px;
  font-family: "Poppins", sans-serif;
}
.band h2 { font-size: 48px; font-weight: 700; line-height: 1; letter-spacing: 2.5px; text-align: center; }
.band--orange { background: var(--orange); color: #000; }
.band--white { background: #fff; color: var(--ink); border-radius: 0 0 20px 20px; position: relative; z-index: 1; }

/* ---------- Service providers ---------- */
.services { padding: 50px 25px; }
.services__grid {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.sp-card {
  --alpha-ink: rgba(var(--ink), var(--ink-a));
  min-height: 540px;
  display: flex; flex-direction: column; gap: 20px;
  padding: 25px; border-radius: 15px;
  background: var(--bg);
  font-family: "Poppins", sans-serif;
  color: var(--alpha-ink);
  transition: background-color .3s;
}
.sp-card:hover { background: var(--bg-hover); }
.sp-card--wide { grid-column: span 2; }
.sp-card__logo { height: var(--logo-h); width: auto; max-width: 100%; object-fit: contain; margin: 0 auto; }
.sp-card__title { font-size: 25px; font-weight: 600; line-height: 1; color: rgb(var(--ink)); }
.sp-card__tag { display: block; font-size: 11px; line-height: 1.2; margin-top: 2px; }
.sp-card__subtitle { font-size: var(--sub-size); font-weight: 600; line-height: 30px; margin: -10px 0; }
.sp-card__text { font-size: 16px; line-height: 20px; }

.price-list { list-style: none; margin: 0; padding: 0; }
.price-list li { margin-bottom: 10px; }
.price-list__head { display: flex; align-items: center; font-size: 16px; font-weight: 600; line-height: 24px; }
.price-list__title { flex-shrink: 1; }
.price-list__sep { flex-grow: 1; margin: 0 10px; border-bottom: 1px dotted currentColor; height: 0; }
.price-list__price { flex-shrink: 0; }
.price-list__desc { font-size: 12px; font-weight: 500; line-height: 18px; margin-top: 4px; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 25px 0;
  padding: 25px; background: var(--orange);
}
.gallery figure { margin: 0; overflow: hidden; border-radius: 20px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; }
.gallery .g1, .gallery .g2 { grid-column: span 6; height: 800px; }
.gallery .g1 { margin-right: 25px; }
.gallery .g3 { grid-column: span 12; height: 600px; }
.gallery .g4 { grid-column: span 8; height: 600px; margin-right: 25px; }
.gallery .g5 { grid-column: span 4; height: 600px; }

/* ---------- Contact ---------- */
.contact {
  position: relative;
  display: flex; min-height: 650px;
  background: var(--orange); border-radius: 20px 20px 0 0;
}
.contact__side { flex: 0 0 35%; position: relative; }
.contact__side img { width: 100%; height: 100%; object-fit: cover; border-radius: 20px 0 0 0; }
.contact__circle {
  position: absolute; top: 78px; left: 20%; width: 250px; height: 250px;
  pointer-events: none; z-index: 2;
}
.contact__form-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 80px 20px; }

.form { width: 100%; max-width: 530px; display: flex; flex-direction: column; gap: 20px; font-family: "Poppins", sans-serif; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.form input, .form select, .form textarea {
  width: 100%; min-height: 59px;
  padding: 7px 20px;
  background: var(--orange-dark); color: var(--ink);
  border: 1px solid var(--orange-deep); border-radius: 5px;
  font: 600 15px/1.5 "Poppins", sans-serif;
}
.form textarea { min-height: 184px; resize: vertical; padding-top: 16px; }
.form ::placeholder { color: var(--ink); opacity: .75; }
.form select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%231c1311'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 20px center; background-size: 10px;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.form button {
  height: 47px; border: 0; border-radius: 5px; cursor: pointer;
  background: var(--brown); color: var(--light);
  font: 500 16px "Poppins", sans-serif;
  transition: transform .3s, background-color .3s;
}
.form button:hover { background: var(--ink); color: var(--light); transform: translateY(-8px); }
.form__note { font-size: 13px; color: var(--ink); min-height: 1em; }

/* ---------- Cookie notice ---------- */
.cookie {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap;
  padding: 10px 20px;
  background: rgba(50, 50, 58, .95); color: #fff; font-size: 13px;
}
.cookie[hidden] { display: none; }
.cookie button {
  border: 0; border-radius: 3px; padding: 8px 16px; cursor: pointer;
  background: #00a99d; color: #fff; font-size: 13px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery .g1, .gallery .g2 { height: 600px; }
}

@media (max-width: 767px) {
  .site-header { min-height: 50px; height: 50px; justify-content: space-between; }
  :root { --header-h: 50px; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-radius: 0 0 10px 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, .08);
    display: none;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { padding: 15px 30px; }
  .nav a::after { display: none; }

  .hero { margin-top: 0; padding: 30px 0 60px; gap: 15px; }
  .hero__brand { flex-direction: column; gap: 15px; }
  .hero__logo { width: 200px; height: 200px; }
  .hero__titles { gap: 5px; text-align: center; padding: 0 2px; }
  .hero__kicker { font-size: 25px; }
  .hero__name { font-size: 3.5rem; }
  .hero__tagline, .hero__sub { font-size: 15px; }
  .partners { gap: 15px; }
  .partners__group { gap: 5px; }
  .partners__logos img { width: auto; max-width: 200px; }

  .band h2 { font-size: 2.5rem; }
  .services { padding: 10px; }
  .services__grid { grid-template-columns: 1fr; gap: 30px; }
  .sp-card--wide { grid-column: auto; }
  .sp-card { min-height: 0; }

  .gallery { grid-template-columns: 1fr; padding: 10px; gap: 10px; }
  .gallery figure { grid-column: auto !important; height: auto !important; margin: 0 !important; }
  .gallery img { height: auto; }

  .contact { flex-direction: column; }
  .contact__side { display: none; }
  .contact__circle { display: none; }
  .contact__form-wrap { padding: 40px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .form button { transition: none; }
}
