/*
Theme Name: Moe Nawaz
Theme URI: https://moenawaz.com
Author: Duke Brothers Ltd
Author URI: https://moenawaz.com
Description: Custom-coded editorial theme for moenawaz.com — strategic advisory site for Moe Nawaz. Dark-background, photography-led, editorial press style. No page builder, no bundled forms plugin.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: moe-nawaz
*/

/* ==========================================================================
   Design tokens — from brand corporate guidelines (BrandPromise, 2016) and
   the client-approved reference build. NOTE: the corporate guidelines PDF's
   colour picker swatch for the logo's mid-bar grey reads #6E7071, while the
   client-approved reference build (and this theme) use the lighter #8B9091.
   Kept as approved in the reference file — flagged for the client to confirm
   which is correct; see DEPLOYMENT.md.
   ========================================================================== */
:root {
  --ink:      #F3EFE6; /* off-white foreground text, on dark backgrounds */
  --paper:    #181C1E; /* true near-black background — exact brand colour */
  --paper-dim:#202527;
  --brass:    #D1947C; /* exact brand accent — dusty terracotta */
  --midbar:   #8B9091; /* grey for the logo's middle bars, on dark bg */
  --stone:    #9FA3A3; /* secondary/muted text on dark bg */
  --line:     #2E3234; /* hairline dividers on dark bg */
  --max:      1180px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, .serif {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}

a { color: inherit; text-decoration: none; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 20px;
  z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; }

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

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */
header.site-header {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--paper);
  z-index: 50;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mono-text {
  font-family: 'Archivo Expanded', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.mono-text .bar { color: var(--midbar); }

.word-nawaz {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--stone);
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 34px;
}

nav.main-nav a {
  font-size: 0.92rem;
  color: var(--ink);
  opacity: 0.8;
  transition: opacity 0.15s ease;
}

nav.main-nav a:hover,
nav.main-nav .current-menu-item > a { opacity: 1; }

.nav-cta {
  border: 1px solid var(--ink);
  padding: 10px 20px;
  font-size: 0.88rem;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-cta:hover { background: var(--ink); color: var(--paper); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--ink);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
.mobile-nav.is-open { display: block; }
.mobile-nav ul { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.mobile-nav a { font-size: 1rem; }

/* ==========================================================================
   TICKER
   ========================================================================== */
.ticker-bar {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}

.ticker-track {
  display: inline-block;
  padding: 10px 0;
  animation: ticker-scroll 32s linear infinite;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.ticker-track span {
  margin-right: 60px;
  opacity: 0.9;
}

.ticker-track span b { color: var(--brass); font-weight: 600; }

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* ==========================================================================
   HERO — full bleed photo
   ========================================================================== */
.hero-photo {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background-size: cover;
  background-position: center 25%;
}

.hero-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(24,28,30,0.5) 0%, rgba(24,28,30,0.78) 60%, rgba(24,28,30,0.97) 100%);
  z-index: 1;
}

.hero-photo-content {
  position: relative;
  z-index: 2;
  padding: 90px 0 70px;
  width: 100%;
}

.hero-quote {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  color: var(--brass);
  max-width: 30ch;
  margin-bottom: 26px;
}

h1.headline {
  font-size: clamp(2.3rem, 4.4vw, 3.8rem);
  line-height: 1.08;
  max-width: 17ch;
  color: #FBF9F4;
  margin-bottom: 30px;
}

.hero-credential {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 34px;
}

.hero-credential .rule { width: 34px; height: 1px; background: var(--brass); }

.hero-actions .btn-primary { background: var(--brass); border-color: var(--brass); color: #181C1E; }
.hero-actions .btn-primary:hover { background: transparent; color: var(--brass); }
.hero-actions .btn-secondary { color: #FBF9F4; border-bottom-color: rgba(255,255,255,0.5); }

/* ==========================================================================
   BUTTONS (shared)
   ========================================================================== */
.btn-primary {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  padding: 14px 26px;
  font-size: 0.92rem;
  border: 1px solid var(--ink);
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-primary:hover { background: transparent; color: var(--ink); }

.btn-secondary {
  display: inline-block;
  margin-left: 20px;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}

/* ==========================================================================
   BIO STRIP
   ========================================================================== */
.bio-strip { padding: 70px 0; border-bottom: 1px solid var(--line); }
.bio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.bio-grid p { font-size: 1.02rem; color: var(--stone); }
.bio-grid p.lead { font-family: 'Fraunces', serif; font-size: 1.25rem; color: var(--ink); font-style: normal; }

/* ==========================================================================
   PULL QUOTE
   ========================================================================== */
.pullquote {
  padding: 70px 0;
  border-bottom: 1px solid var(--line);
}

.pullquote blockquote {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 400;
  font-style: italic;
  max-width: 22ch;
  line-height: 1.35;
  position: relative;
  padding-left: 10px;
}

.pullquote .mark {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 5rem;
  font-style: normal;
  color: var(--brass);
  line-height: 0.6;
  margin-bottom: 6px;
  opacity: 0.85;
}

/* ==========================================================================
   STATS
   ========================================================================== */
.stats {
  padding: 60px 0;
  border-bottom: 1px solid var(--line);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.stat {
  padding: 0 40px;
  border-left: 1px solid var(--line);
}

.stat:first-child { border-left: none; padding-left: 0; }

.stat .num {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  color: var(--brass);
  line-height: 1;
  margin-bottom: 10px;
}

.stat .label {
  font-size: 0.92rem;
  color: var(--stone);
  max-width: 20ch;
}

/* ==========================================================================
   SECTION HEADER PATTERN (reused)
   ========================================================================== */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 48px;
  gap: 40px;
}

.section-head .kicker {
  font-size: 0.85rem;
  color: var(--brass);
  margin-bottom: 8px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  max-width: 14ch;
}

.section-head p {
  color: var(--stone);
  max-width: 34ch;
  font-size: 0.98rem;
}

/* ==========================================================================
   ROUTES — photographic tiles
   ========================================================================== */
.routes {
  padding: 90px 0;
  border-bottom: 1px solid var(--line);
}

.routes-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.route {
  position: relative;
  aspect-ratio: 3 / 4;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 26px;
  overflow: hidden;
}

.route::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(24,28,30,0.1) 0%, rgba(24,28,30,0.92) 82%);
  z-index: 1;
}

.route .route-inner { position: relative; z-index: 2; }

.route .kicker-line { width: 26px; height: 2px; background: var(--brass); margin-bottom: 14px; }

.route h3 {
  font-size: 1.2rem;
  color: #FBF9F4;
  margin-bottom: 10px;
}

.route p {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
}

.route:hover .route-inner { transform: translateY(-2px); }
.route .route-inner { transition: transform 0.2s ease; }

/* ==========================================================================
   CONTACT PAGE — enquiry route cards (text-only variant of .route, used
   on the Contact Me page template rather than the homepage's photographic
   tiles)
   ========================================================================== */
.contact-routes-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.contact-route-card {
  border: 1px solid var(--line);
  padding: 30px 26px;
}

.contact-route-card .kicker-line { width: 26px; height: 2px; background: var(--brass); margin-bottom: 14px; }
.contact-route-card .kicker { font-size: 0.8rem; color: var(--brass); margin-bottom: 10px; }
.contact-route-card h3 { font-size: 1.15rem; margin-bottom: 12px; }
.contact-route-card p { color: var(--stone); font-size: 0.92rem; margin-bottom: 16px; }
.contact-route-card ul { list-style: none; margin-bottom: 20px; }
.contact-route-card li {
  color: var(--stone);
  font-size: 0.85rem;
  padding-left: 16px;
  position: relative;
  margin-bottom: 8px;
}
.contact-route-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 1px;
  background: var(--brass);
}
.contact-route-card .read {
  font-size: 0.85rem;
  border-bottom: 1px solid var(--ink);
  white-space: nowrap;
}

@media (max-width: 860px) {
  .contact-routes-row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   IN THE ROOM — documentary photo essay
   ========================================================================== */
.in-room { padding: 90px 0; border-bottom: 1px solid var(--line); }

.room-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.room-shot { position: relative; }

.room-shot .frame {
  aspect-ratio: 4 / 5;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.room-shot .caption {
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--stone);
}

.room-shot .caption b { color: var(--ink); font-weight: 500; }

/* ==========================================================================
   EDITORIAL TWO COL
   ========================================================================== */
.editorial {
  padding: 90px 0;
  border-bottom: 1px solid var(--line);
}

.editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 70px;
}

.editorial h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.15;
}

.editorial-body p {
  margin-bottom: 20px;
  font-size: 1rem;
}

.editorial-body p.lead {
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  color: var(--ink);
}

/* ==========================================================================
   INSIGHTS LIST
   ========================================================================== */
.insights { padding: 90px 0; border-bottom: 1px solid var(--line); }

.insight-row {
  display: grid;
  grid-template-columns: 1fr 3fr auto;
  gap: 30px;
  align-items: baseline;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  transition: opacity 0.15s ease;
}

.insight-row:hover { opacity: 0.8; }

.insight-row:last-child { border-bottom: 1px solid var(--line); }

.insight-row .idx {
  font-family: 'Fraunces', serif;
  color: var(--brass);
  font-size: 0.95rem;
}

.insight-row h3 {
  font-size: 1.15rem;
  font-weight: 500;
}

.insight-row a.read {
  font-size: 0.88rem;
  border-bottom: 1px solid var(--ink);
  white-space: nowrap;
}

.insights-empty { color: var(--stone); padding: 26px 0; border-top: 1px solid var(--line); }

/* ==========================================================================
   CTA BAND
   ========================================================================== */
.cta-band {
  padding: 90px 0;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.cta-inner {
  max-width: 560px;
}

.cta-inner .kicker { color: var(--brass); font-size: 0.85rem; margin-bottom: 14px; }

.cta-inner h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 20px;
}

.cta-inner p { color: var(--stone); margin-bottom: 30px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer.site-footer { padding: 60px 0 40px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

footer .wordmark { margin-bottom: 16px; }

.logo-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 20px;
}

.logo-stack .mono-text { font-size: 2.1rem; }
.logo-stack .word-nawaz { font-size: 0.78rem; }

footer .disclaimer {
  color: var(--stone);
  font-size: 0.85rem;
  max-width: 40ch;
}

footer h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--stone);
  margin-bottom: 16px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

footer ul { list-style: none; }

footer li { margin-bottom: 10px; font-size: 0.92rem; }
footer li a:hover { color: var(--brass); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  font-size: 0.82rem;
  color: var(--stone);
  display: flex;
  justify-content: space-between;
}

/* ==========================================================================
   GENERIC EDITORIAL PAGE (About Us, The Practice, etc.)
   ========================================================================== */
.page-hero {
  padding: 70px 0 50px;
  border-bottom: 1px solid var(--line);
}
.page-hero .kicker { color: var(--brass); font-size: 0.85rem; margin-bottom: 14px; }
.page-hero h1 { font-size: clamp(2rem, 3.6vw, 3rem); max-width: 18ch; }

.page-content { padding: 70px 0; }
.page-content-inner { max-width: 760px; }
.page-content-inner p { margin-bottom: 22px; font-size: 1.02rem; color: var(--stone); }
.page-content-inner p.lead { font-family: 'Fraunces', serif; font-size: 1.3rem; color: var(--ink); margin-bottom: 34px; }
.page-content-inner h2 { font-size: 1.6rem; margin: 40px 0 18px; }
.page-content-inner ul, .page-content-inner ol { margin: 0 0 22px 22px; color: var(--stone); }
.page-content-inner a { border-bottom: 1px solid var(--brass); color: var(--ink); }
.page-content-inner img { margin: 30px 0; }

/* ==========================================================================
   INSIGHT SINGLE / ARCHIVE
   ========================================================================== */
.insight-hero { padding: 70px 0 40px; border-bottom: 1px solid var(--line); }
.insight-hero .kicker { color: var(--brass); font-size: 0.85rem; margin-bottom: 14px; }
.insight-hero h1 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); max-width: 20ch; margin-bottom: 20px; }
.insight-meta { color: var(--stone); font-size: 0.9rem; }

.insight-body { padding: 60px 0 90px; }
.insight-body-inner { max-width: 720px; font-size: 1.05rem; }
.insight-body-inner p { margin-bottom: 24px; color: var(--stone); }
.insight-body-inner h2, .insight-body-inner h3 { margin: 40px 0 18px; }
.insight-body-inner blockquote {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.4rem;
  color: var(--ink);
  border-left: 2px solid var(--brass);
  padding-left: 24px;
  margin: 36px 0;
}
.insight-body-inner a { border-bottom: 1px solid var(--brass); color: var(--ink); }
.insight-body-inner img { margin: 30px 0; }

.insight-archive-list { padding: 70px 0 90px; }

/* ==========================================================================
   LANDING PAGE (funnel) — stripped chrome, single CTA
   ========================================================================== */
.landing-header {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.landing-header .wordmark { justify-content: center; display: flex; }

.landing-hero {
  padding: 80px 0 60px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.landing-hero .kicker { color: var(--brass); font-size: 0.85rem; margin-bottom: 16px; }
.landing-hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); max-width: 20ch; margin: 0 auto 24px; }
.landing-hero .sub { color: var(--stone); max-width: 56ch; margin: 0 auto; font-size: 1.05rem; }

.landing-body { padding: 60px 0; max-width: 720px; margin: 0 auto; }
.landing-body p { margin-bottom: 22px; color: var(--stone); font-size: 1.02rem; }

.landing-form-section { padding: 60px 0 90px; border-top: 1px solid var(--line); }
.landing-form-wrap { max-width: 480px; margin: 0 auto; text-align: center; }
.landing-form-wrap h2 { font-size: 1.7rem; margin-bottom: 16px; }
.landing-form-wrap p.form-sub { color: var(--stone); margin-bottom: 30px; }

.kit-form, .contact-form { text-align: left; }
.kit-form label,
.contact-form label {
  display: block;
  font-size: 0.85rem;
  color: var(--stone);
  margin-bottom: 8px;
}
.kit-form input[type="text"],
.kit-form input[type="email"],
.kit-form input[type="tel"],
.kit-form select,
.kit-form textarea,
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  background: var(--paper-dim);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 14px 16px;
  font-size: 0.98rem;
  font-family: 'Inter', sans-serif;
  margin-bottom: 18px;
  appearance: none;
}
.kit-form textarea,
.contact-form textarea { resize: vertical; }
.kit-form input:focus,
.kit-form select:focus,
.kit-form textarea:focus,
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brass);
}
.kit-form button[type="submit"],
.contact-form button[type="submit"] {
  width: 100%;
  background: var(--brass);
  border: 1px solid var(--brass);
  color: #181C1E;
  padding: 15px 26px;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.kit-form button[type="submit"]:hover,
.contact-form button[type="submit"]:hover { background: transparent; color: var(--brass); }
.kit-form button[type="submit"]:disabled,
.contact-form button[type="submit"]:disabled { opacity: 0.6; cursor: not-allowed; }

.kit-form-message {
  margin-top: 16px;
  font-size: 0.9rem;
  display: none;
}
.kit-form-message.is-success { display: block; color: var(--brass); }
.kit-form-message.is-error { display: block; color: #E08A7D; }

.landing-footer {
  padding: 30px 0;
  text-align: center;
  color: var(--stone);
  font-size: 0.82rem;
  border-top: 1px solid var(--line);
}

/* ==========================================================================
   MISC
   ========================================================================== */
.wp-pagenavi, .pagination {
  display: flex;
  gap: 16px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  margin-top: 20px;
}
.pagination a, .pagination span { font-size: 0.9rem; color: var(--stone); }
.pagination a:hover { color: var(--ink); }

.error-404 { padding: 120px 0; text-align: center; }
.error-404 h1 { font-size: 3rem; margin-bottom: 20px; }
.error-404 p { color: var(--stone); margin-bottom: 30px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 860px) {
  .room-grid { grid-template-columns: 1fr; }
  .wrap { padding: 0 22px; }
  nav.main-nav { display: none; }
  .nav-cta { display: none; }
  .menu-toggle { display: block; }
  .editorial-grid, .bio-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-photo { min-height: 520px; }
  .stats-row { grid-template-columns: 1fr; gap: 24px; }
  .stat { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 20px; }
  .stat:first-child { border-top: none; padding-top: 0; }
  .routes-row { grid-template-columns: 1fr; gap: 18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .insight-row { grid-template-columns: 1fr; gap: 8px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; }
}
