/* ============================================
   ABRAR FAHAD — meetabrar.com
   Design system: grayscale, bold display type,
   minimal corporate-clean aesthetic
   ============================================ */

   
/* ---- Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700;9..144,900&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ---- Tokens ---- */
:root {
  --bg: #F4F4F2;
  --bg-alt: #EBEBE7;
  --ink: #111110;
  --ink-soft: #6B6B68;
  --line: #DCDCD8;
  --line-strong: #b9b9b4;
  --paper: #FFFFFF;

  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --container: 1180px;
  --radius: 2px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Reset ---- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---- Eyebrow / label style (mono, tracked out) ---- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.eyebrow::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--ink-soft);
}

/* ---- Headings ---- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.section-title {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  font-weight: 600;
  max-width: 14ch;
}

.section-head { margin-bottom: 56px; }

.section-head p {
  font-family: var(--font-body);
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 48ch;
  margin-top: 18px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 15px 26px;
  border-radius: var(--radius);
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}

.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover {
  background: #000;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}

.btn-ghost { border: 1px solid var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); background: var(--paper); }

.btn svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(244, 244, 242, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.site-header.scrolled { border-bottom-color: var(--line); }

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo .dot {
  width: 7px; height: 7px;
  background: var(--ink);
  border-radius: 50%;
  display: inline-block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-links a {
  position: relative;
  padding: 4px 0;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--ink);
  transition: width 0.25s var(--ease);
}
.nav-links a:hover::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 24px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 200;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--ink);
  transition: all 0.3s var(--ease);
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   HERO (Universally Responsive Viewport Fit)
   ============================================ */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: 80px;
  padding-bottom: 20px;
  display: flex;
  align-items: center;
  position: relative;
  box-sizing: border-box;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
  width: 100%;
}

.hero-copy .eyebrow {
  margin-bottom: clamp(12px, 2vh, 28px);
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 3.8vw, 3.8rem);
  line-height: 1.05;
  margin-bottom: clamp(12px, 2vh, 24px);
}

.hero-copy h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--ink-soft);
}

.hero-copy .lede {
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: clamp(16px, 3vh, 36px);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: clamp(20px, 3.5vh, 44px);
}

.hero-meta {
  display: flex;
  gap: clamp(20px, 3vw, 40px);
  padding-top: clamp(16px, 2vh, 28px);
  border-top: 1px solid var(--line);
}

.hero-meta div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-meta .num {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 600;
}

.hero-meta .label {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* Hero photo dynamic sizing */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: clamp(320px, 35vw, 440px);
  max-height: 68vh;
  margin: 0 auto;
}

.hero-visual .ring {
  position: absolute;
  width: 108%;
  height: 108%;
  border: 1px solid var(--line-strong);
  border-radius: 50% / 42%;
  z-index: 0;
}

.hero-visual .backdrop {
  position: absolute;
  width: 92%;
  height: 92%;
  background: var(--bg-alt);
  border-radius: 50% / 42%;
  z-index: 0;
}

.hero-visual .photo-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1 / 1.25;
  max-height: 62vh;
  border-radius: 50% / 42%;
  overflow: hidden;
  background: var(--bg-alt);
}

.hero-visual .photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
}

.hero-visual .tag {
  position: absolute;
  bottom: 3%;
  right: -2%;
  z-index: 2;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 10px 16px;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.hero-visual .tag strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 2px;
}

/* ============================================
   TRUST STRIP
   ============================================ */
.trust-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 0; }

.trust-strip .container { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }

.trust-strip .trust-label { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-soft); white-space: nowrap; }

.trust-strip .trust-items { display: flex; gap: 36px; flex-wrap: wrap; color: var(--ink-soft); font-size: 0.92rem; }

/* ============================================
   SECTION BASE
   ============================================ */
section { padding: 120px 0; }
section.alt { background: var(--bg-alt); }

/* ============================================
   ABOUT
   ============================================ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }

.about-lede { font-family: var(--font-display); font-size: 1.7rem; font-weight: 500; line-height: 1.35; }

.about-body p { color: var(--ink-soft); margin-bottom: 20px; }
.about-body p:last-child { margin-bottom: 0; }

.about-facts { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.about-facts .fact { border-top: 1px solid var(--line); padding-top: 14px; }

.about-facts .fact .k {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.about-facts .fact .v { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; margin-top: 4px; }

/* ============================================
   SERVICES
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-card { background: var(--bg); padding: 44px 40px; transition: background 0.25s ease; }
.service-card:hover { background: var(--paper); }

.service-card .idx { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-soft); margin-bottom: 22px; display: block; }
.service-card h3 { font-size: 1.35rem; margin-bottom: 14px; }
.service-card p { color: var(--ink-soft); font-size: 0.98rem; }

/* ============================================
   POST CARDS (tips / audits previews + index)
   ============================================ */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.post-card {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: all 0.3s var(--ease);
  height: 100%;
}

.post-card:hover {
  border-color: var(--ink);
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.08);
}

.post-card .post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.post-card h3 { font-size: 1.2rem; line-height: 1.3; }
.post-card p { color: var(--ink-soft); font-size: 0.92rem; flex-grow: 1; }

.post-card .read-more {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.post-card .read-more svg { width: 14px; height: 14px; transition: transform 0.25s var(--ease); }
.post-card:hover .read-more svg { transform: translateX(3px); }

.section-footer { margin-top: 48px; display: flex; justify-content: center; }

/* ============================================
   PROJECTS
   ============================================ */
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }

.project-card { border: 1px solid var(--line); background: var(--paper); overflow: hidden; transition: all 0.3s var(--ease); }
.project-card:hover { border-color: var(--ink); box-shadow: 0 16px 32px rgba(0,0,0,0.08); }

.project-thumb {
  aspect-ratio: 16/10;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  border-bottom: 1px solid var(--line);
}

.project-info { padding: 26px 28px; }

.project-info .post-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.project-info h3 { font-size: 1.25rem; margin-bottom: 10px; }
.project-info p { color: var(--ink-soft); font-size: 0.92rem; }

.project-card.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  border-style: dashed;
  color: var(--ink-soft);
  text-align: center;
  padding: 40px;
}

.project-card.placeholder p { font-family: var(--font-mono); font-size: 0.85rem; }

/* ============================================
   CONTACT
   ============================================ */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }

.contact-copy h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 20px; }
.contact-copy p { color: var(--ink-soft); max-width: 44ch; margin-bottom: 8px; }

.contact-box { border: 1px solid var(--line-strong); background: var(--paper); padding: 44px; }

.contact-box .email-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.email-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.email-row a { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; word-break: break-all; }

.copy-btn {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.copy-btn:hover { border-color: var(--ink); background: var(--bg-alt); }
.copy-btn svg { width: 16px; height: 16px; }
.copy-btn.copied { border-color: var(--ink); background: var(--ink); color: var(--bg); }

.contact-box .note { font-size: 0.9rem; color: var(--ink-soft); }

/* ============================================
   FOOTER
   ============================================ */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0; }

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links { display: flex; gap: 28px; font-size: 0.88rem; color: var(--ink-soft); }
.footer-links a:hover { color: var(--ink); }

.footer-note { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-soft); }

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ============================================
   POST PAGE (individual tip / audit article)
   ============================================ */
.post-header { padding: 160px 0 60px; border-bottom: 1px solid var(--line); }

.post-header .back-link {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
}
.post-header .back-link:hover { color: var(--ink); }
.post-header .back-link svg { width: 14px; height: 14px; }

.post-header .post-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}

.post-header h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); max-width: 16ch; }

.post-body { padding: 64px 0 120px; }
.post-body .container { max-width: 720px; }

.post-body p { color: var(--ink-soft); font-size: 1.08rem; margin-bottom: 24px; }
.post-body h2 { font-size: 1.7rem; margin: 48px 0 20px; }
.post-body h3 { font-size: 1.3rem; margin: 36px 0 16px; }

.post-body ul, .post-body ol { margin: 0 0 24px 0; padding-left: 22px; color: var(--ink-soft); }
.post-body li { margin-bottom: 10px; font-size: 1.05rem; }
.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }

.post-body blockquote {
  border-left: 2px solid var(--ink);
  padding-left: 24px;
  margin: 36px 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--ink);
}

.post-cta {
  margin-top: 56px;
  padding: 40px;
  border: 1px solid var(--line-strong);
  background: var(--bg-alt);
  text-align: center;
}

.post-cta p { color: var(--ink-soft); margin-bottom: 20px; }

/* ============================================
   PAGE HERO (for tips.html / audits.html index pages)
   ============================================ */
.page-hero { padding: 160px 0 80px; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); max-width: 14ch; margin-bottom: 20px; }
.page-hero p { color: var(--ink-soft); font-size: 1.1rem; max-width: 50ch; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 980px) {
  .hero {
    min-height: auto;
    padding: 120px 0 60px;
  }
  .hero .container { grid-template-columns: 1fr; gap: 48px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .services-grid { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 720px) {
  .container { padding: 0 22px; }

  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 28px;
    padding: 0 40px;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    box-shadow: -20px 0 40px rgba(0,0,0,0.08);
    z-index: 150;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.15rem; }

  .nav-toggle { display: flex; }
  .nav-cta .btn-primary.desktop-only { display: none; }

  .hero { padding: 100px 0 40px; }
  .hero-meta { gap: 24px; flex-wrap: wrap; }

  /* Hide hero portrait image on mobile */
  .hero-visual {
    display: none !important;
  }

  section { padding: 80px 0; }

  .post-grid { grid-template-columns: 1fr; }
  .about-facts { grid-template-columns: 1fr 1fr; }

  .contact-box { padding: 30px; }
  .email-row { flex-direction: column; align-items: flex-start; gap: 12px; }

  .site-footer .container { flex-direction: column; align-items: flex-start; }
}

/* Overlay behind mobile nav */
.nav-scrim {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.25);
  z-index: 140;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.nav-scrim.open { display: block; opacity: 1; }

/* ---- Architecture Project & Gallery Enhancements ---- */
.project-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-alt);
}

.project-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.project-card:hover .project-img-wrap img {
  transform: scale(1.04);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
