/* MD Hannan Nur Technical & Cleaning Services */

:root {
  --ground: #EDEDEA;
  --band: #F7F7F5;
  --surface: #FFFFFF;
  --ink: #131416;
  --ink-2: #4E5157;
  --ink-3: #6A6D72;
  --line: #D4D4CF;
  --line-2: #C9C9C3;
  --card-line: #DCDCD7;
  --red: #D7261E;
  --red-press: #B91F18;
  --red-on-dark: #E5463E;
  --dark: #131416;
  --dark-2: #1C1E21;
  --dark-line: #2E3034;
  --on-dark: #EDEDEA;
  --on-dark-2: #A9ACB1;
  --ok: #3FBF6B;

  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease-out: cubic-bezier(.22, .61, .36, 1);
  --pad-x: clamp(20px, 5vw, 80px);
  --section-y: clamp(64px, 8vw, 128px);
  --radius: 18px;
  --radius-lg: 22px;
  --header-h: 71px;

  --logo-ink: var(--ink);
  --logo-gap: var(--ground);
  --logo-red: var(--red);

  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
a, button { touch-action: manipulation; }

:focus-visible {
  outline: 2.5px solid var(--red);
  outline-offset: 3px;
  border-radius: 6px;
}

.icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.tnum { font-variant-numeric: tabular-nums; }

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--on-dark);
  border-radius: 10px;
  font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding-inline: var(--pad-x);
}
.section { padding-block: var(--section-y); }

.band {
  background: var(--band);
  border-block: 1px solid var(--line);
}
.band-clip { overflow: hidden; }

.dark {
  background: var(--dark);
  color: var(--on-dark);
  --logo-ink: var(--on-dark);
  --logo-gap: var(--dark);
  --logo-red: var(--red-on-dark);
}

/* The double red line from the logo, used as the section marker */
.rule {
  width: 44px;
  height: 10px;
  border-block: 3px solid var(--red);
  margin-bottom: 24px;
}
.rule-light { border-color: var(--red-on-dark); }

h1 {
  font-size: clamp(46px, 7.4vw, 108px);
  line-height: .94;
  font-weight: 750;
  font-stretch: 116%;
  letter-spacing: -.035em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(36px, 4.8vw, 68px);
  line-height: 1;
  font-weight: 750;
  font-stretch: 115%;
  letter-spacing: -.03em;
  text-wrap: balance;
}

.sub {
  max-width: 28em;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
}
.dark .sub { color: var(--on-dark-2); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-size: 16px;
  font-weight: 650;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
  transition: transform .16s var(--ease-out), background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:active { transform: scale(.97); }
.btn-sm { height: 44px; padding: 0 16px; font-size: 15px; }
.btn-lg { height: 56px; padding: 0 26px; font-size: 17px; }
.btn-red { background: var(--red); color: #FFFFFF; }
.btn-ghost { border-color: var(--ink); }
.btn-ghost-dark { border-color: #3A3D42; color: var(--on-dark); }

@media (hover: hover) {
  .btn-red:hover { background: var(--red-press); }
  .btn-ghost:hover { background: var(--ink); color: var(--ground); }
  .btn-ghost-dark:hover { border-color: var(--on-dark); }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(237, 237, 234, .86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px -18px rgba(19, 20, 22, .45); }

.header-row {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-block: 14px;
}

.brand {
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: 12px;
  flex-grow: 1;
  min-width: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-size: 19px; font-weight: 750; font-stretch: 118%; letter-spacing: -.02em; white-space: nowrap; }
.brand-sub { font-size: 12.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }

.nav { display: flex; gap: 30px; font-size: 15px; font-weight: 550; }
.nav a { padding: 10px 0; transition: color .15s ease; }
@media (hover: hover) { .nav a:hover { color: var(--red); } }

.header-actions { display: flex; align-items: center; gap: 8px; }

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  position: relative;
  padding: 0;
}
.menu-btn span {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s var(--ease-out);
}
.menu-btn span:first-child { top: 18px; }
.menu-btn span:last-child { top: 24px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

.menu {
  display: flex;
  flex-direction: column;
  padding: 8px var(--pad-x) 20px;
  border-top: 1px solid var(--line);
  transform-origin: top;
  animation: menu-in .18s var(--ease-out);
}
.menu[hidden] { display: none; }
.menu a {
  padding: 14px 0;
  font-size: 20px;
  font-weight: 650;
  font-stretch: 112%;
  border-bottom: 1px solid var(--line);
}
.menu a:last-child { border-bottom: 0; }
@keyframes menu-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* Hero */
.hero { padding-top: clamp(40px, 6vw, 96px); padding-bottom: clamp(48px, 6vw, 88px); }
.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: clamp(36px, 5vw, 72px);
  align-items: end;
}
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.hero-copy .rule { width: 56px; margin-bottom: 0; }
.lead { max-width: 34em; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: var(--ink-2); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px; }

.hero-media {
  position: relative;
  height: clamp(380px, 44vw, 620px);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.hero-media > .ph, .hero-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.owner-chip {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--dark);
  color: var(--on-dark);
  border-radius: 14px;
}
.owner-avatar {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 999px;
  background: #2A2C30;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 750;
  font-stretch: 118%;
}
.owner-text { display: flex; flex-direction: column; gap: 2px; flex-grow: 1; min-width: 0; }
.owner-text strong { font-size: 16px; font-weight: 650; }
.owner-text span { font-size: 13.5px; color: var(--on-dark-2); }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 999px; background: var(--ok); }

.facts {
  margin-top: clamp(48px, 6vw, 88px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  border-top: 1px solid var(--line-2);
}
.facts li { padding: 24px 24px 0 0; display: flex; flex-direction: column; gap: 6px; }
.facts strong { font-size: 18px; font-weight: 700; font-stretch: 112%; }
.facts span { font-size: 15px; color: var(--ink-2); }

/* Photo placeholders (remove once real photos are in) */
.ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: repeating-linear-gradient(135deg, #D9D9D4 0 1px, transparent 1px 16px), #E2E2DE;
}
.ph-dark { background: repeating-linear-gradient(135deg, #24262A 0 1px, transparent 1px 16px), var(--dark-2); }
.ph-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 550;
  text-align: center;
  padding: 0 16px;
}
.ph-dark .ph-label { color: var(--on-dark-2); }

/* Section heads */
.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: clamp(32px, 4vw, 56px);
}

/* Services */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 228px), 1fr));
  gap: 14px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 250px;
  transition: transform .28s var(--ease-out), border-color .28s ease;
}
@media (hover: hover) {
  .card:hover { transform: translateY(-3px); border-color: var(--ink); }
}
.card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--on-dark);
  display: grid;
  place-items: center;
}
.card-icon .icon { stroke-width: 1.7; }
.card-icon-red { background: var(--red); color: #FFFFFF; }
.card-num { font-size: 13px; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.card h3 {
  margin-top: auto;
  font-size: 20px;
  line-height: 1.15;
  font-weight: 700;
  font-stretch: 112%;
  letter-spacing: -.01em;
}
.card p { font-size: 15px; color: var(--ink-2); }

/* How we work */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.work-intro { display: flex; flex-direction: column; gap: 28px; }
.work-intro .rule { margin-bottom: 0; }

.founder {
  margin-top: 8px;
  background: var(--dark);
  color: var(--on-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.founder .ph, .founder img { height: clamp(240px, 26vw, 360px); width: 100%; object-fit: cover; }
.founder figcaption {
  padding: 22px 24px 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}
.founder figcaption > span:first-child { display: flex; flex-direction: column; gap: 4px; }
.founder strong { font-size: 22px; font-weight: 700; font-stretch: 114%; }
.founder figcaption > span:first-child > span { font-size: 15px; color: var(--on-dark-2); }
.founder-years { font-size: 15px; font-weight: 600; }

.steps { display: flex; flex-direction: column; border-bottom: 1px solid var(--line-2); }
.steps li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  padding: 30px 0;
  border-top: 1px solid var(--line-2);
}
.step-num {
  font-size: 34px;
  line-height: 1;
  font-weight: 750;
  font-stretch: 118%;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}
.steps li > span:last-child { display: flex; flex-direction: column; gap: 8px; }
.steps strong { font-size: 23px; font-weight: 700; font-stretch: 112%; letter-spacing: -.01em; line-height: 1.2; }
.steps li > span:last-child > span { font-size: 16px; line-height: 1.55; color: var(--ink-2); }

/* Recent work carousel */
.carousel-nav { display: flex; gap: 10px; }
.icon-btn {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  transition: transform .16s var(--ease-out), background-color .2s ease, color .2s ease, opacity .2s ease;
}
.icon-btn:active:not(:disabled) { transform: scale(.94); }
.icon-btn:disabled { opacity: .3; cursor: default; }
.icon-btn .icon { stroke-width: 2; }
@media (hover: hover) {
  .icon-btn:hover:not(:disabled) { background: var(--ink); color: var(--ground); }
}

.track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  margin-right: calc(-1 * var(--pad-x));
  padding-right: var(--pad-x);
  padding-bottom: 4px;
}
.track::-webkit-scrollbar { display: none; }
.track:focus-visible { outline-offset: 6px; }

.shot {
  flex: 0 0 clamp(268px, 30vw, 420px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.shot > .ph, .shot > img {
  aspect-ratio: 4 / 5;
  height: auto;
  border-radius: var(--radius);
  overflow: hidden;
  object-fit: cover;
}
.tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--dark);
  color: var(--on-dark);
  font-size: 12.5px;
  font-weight: 600;
}
.caption { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.caption strong { font-weight: 650; }
.caption span { color: var(--ink-2); }

/* Areas */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
}
.areas-intro { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.areas-intro .rule { margin-bottom: 0; }
.areas {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 124px), 1fr));
  border-top: 1px solid var(--dark-line);
}
.areas li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 8px 18px 0;
  border-bottom: 1px solid var(--dark-line);
  font-size: 16px;
  font-weight: 550;
}
.areas li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--red-on-dark);
  flex-shrink: 0;
}

/* Contact */
.contact-title {
  max-width: 14em;
  font-size: clamp(36px, 5.4vw, 80px);
  line-height: .98;
  letter-spacing: -.035em;
  margin-bottom: clamp(36px, 4vw, 56px);
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 14px;
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 28px;
  min-height: 250px;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  transition: transform .28s var(--ease-out), background-color .2s ease, border-color .28s ease;
}
.contact-card:active { transform: scale(.98); }
.contact-wa { background: var(--red); color: #FFFFFF; }
.contact-call { background: var(--dark); color: var(--on-dark); }
.contact-mail { background: var(--surface); border-color: var(--card-line); }
.contact-top { display: flex; justify-content: space-between; align-items: flex-start; }
.contact-top .icon { stroke-width: 1.6; }
.contact-arrow { stroke-width: 2 !important; transition: transform .25s var(--ease-out); }
.contact-body { margin-top: auto; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.contact-label { font-size: 15px; font-weight: 600; }
.contact-wa .contact-label { opacity: .92; }
.contact-call .contact-label { color: var(--on-dark-2); }
.contact-mail .contact-label { color: var(--ink-2); }
.contact-value { font-size: clamp(22px, 2.2vw, 28px); font-weight: 700; font-stretch: 112%; }
.contact-email { font-size: clamp(18px, 1.45vw, 21px); font-stretch: 100%; overflow-wrap: anywhere; }
@media (hover: hover) {
  .contact-card:hover { transform: translateY(-3px); }
  .contact-card:hover .contact-arrow { transform: translate(2px, -2px); }
  .contact-wa:hover { background: var(--red-press); }
  .contact-mail:hover { border-color: var(--ink); }
}

.contact-meta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  font-size: 15px;
  color: var(--ink-2);
}
.contact-meta strong { color: var(--ink); font-weight: 650; margin-right: 4px; }

/* Footer */
.footer-inner { padding-block: 56px 36px; display: flex; flex-direction: column; gap: 40px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand > span { display: flex; flex-direction: column; gap: 4px; }
.footer-brand strong { font-size: 22px; font-weight: 750; font-stretch: 118%; letter-spacing: -.02em; line-height: 1.1; }
.footer-brand > span > span { font-size: 15px; color: var(--on-dark-2); }
.footer-mark { flex-shrink: 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 28px; font-size: 15px; font-weight: 550; }
.footer-nav a { padding: 10px 0; }
@media (hover: hover) { .footer-nav a:hover { color: var(--red-on-dark); } }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--dark-line);
  font-size: 14px;
  color: var(--on-dark-2);
}

/* Phone contact dock */
.dock { display: none; }

/* Scroll reveal: only when JS has run and motion is allowed */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
/* Cards keep their own hover transition once revealed */
.js .card[data-reveal].is-in {
  transition: transform .28s var(--ease-out), border-color .28s ease, opacity .5s var(--ease-out);
  transition-delay: 0ms;
}

/* Tablet and phone */
@media (max-width: 820px) {
  .nav, .hide-sm { display: none; }
  .menu-btn { display: block; }
  .header-row { gap: 12px; }
}

@media (max-width: 720px) {
  .dock {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 10px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(19, 20, 22, .94);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    transform: translateY(110%);
    transition: transform .3s var(--ease-out);
  }
  .dock.is-shown { transform: none; }
  .dock .btn { height: 50px; }
  .footer-inner { padding-bottom: calc(36px + 72px + env(safe-area-inset-bottom)); }
  .owner-chip .status { display: none; }
  .cta-row .btn { flex: 1 1 100%; }
  .steps li { grid-template-columns: 48px minmax(0, 1fr); padding: 24px 0; }
  .step-num { font-size: 28px; }
  .steps strong { font-size: 20px; }
  .card { min-height: 0; }
  .card h3 { margin-top: 12px; }
  .contact-card { min-height: 200px; }
}

@media (max-width: 520px) {
  .brand-sub { display: none; }
}

@media (max-width: 420px) {
  .header-actions .btn-label { display: none; }
  .header-actions .btn-red { width: 44px; padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0s !important;
    animation-duration: 0s !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}
