/*
Theme Name: iamrameez
Theme URI: https://www.iamrameez.com/
Author: Mirza Rameez Baig
Description: Lightweight dark premium theme for Mirza Rameez Baig, eCommerce Growth Consultant. No page builder required.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: iamrameez
*/

/* Layout: one dark column, max 1180px, sections alternate ink / graphite; hero split text + "weekly metrics" panel */
:root {
  --ink: #0b0d12;          /* page ground */
  --graphite: #12151d;     /* alternate sections */
  --panel: #171b25;        /* raised surfaces */
  --line: #262b38;         /* soft borders */
  --fg: #eef0f4;           /* primary text */
  --muted: #9aa1b2;        /* secondary text, slight blue bias */
  --gold: #d6b06a;         /* the one accent: champagne gold */
  --gold-soft: rgba(214,176,106,.12);
  --navy-glow: rgba(56,84,150,.28);
  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --radius: 14px;
  --wrap: 1180px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--fg); font-family: var(--f-body); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 20px; }
section { padding-block: 96px; }
section.alt { background: var(--graphite); border-block: 1px solid var(--line); }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h2 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 600; }
h3 { font-size: 20px; font-weight: 600; }
p { margin: 0; }
.eyebrow { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.lede { color: var(--muted); font-size: 18px; max-width: 62ch; }
.head { display: grid; gap: 14px; margin-bottom: 48px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; font: 600 15.5px/1 var(--f-body); padding: 15px 22px; border-radius: 999px; text-decoration: none; border: 1px solid var(--line); transition: transform .2s ease, background .2s ease, border-color .2s ease; cursor: pointer; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold); color: #17130b; border-color: var(--gold); }
.btn-primary:hover { background: #e2c083; }
.btn-ghost { background: transparent; color: var(--fg); }
.btn-ghost:hover { border-color: var(--gold); }
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(3px); }
.textlink { color: var(--gold); text-decoration: none; font-weight: 600; font-size: 15px; display: inline-flex; gap: 6px; }
.textlink:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Header */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(11,13,18,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--gold); display: grid; place-items: center; font: 600 14px var(--f-display); color: var(--gold); }
.brand-name { font: 600 17px var(--f-display); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--fg); }
.nav .btn { color: #17130b; padding: 11px 18px; font-size: 14.5px; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--fg); border-radius: 10px; padding: 9px 12px; font: 500 14px var(--f-body); }

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: 88px 96px; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px; background: radial-gradient(closest-side, var(--navy-glow), transparent 70%); animation: drift 18s ease-in-out infinite alternate; pointer-events: none; }
.hero::after { content: ""; position: absolute; left: -200px; bottom: -260px; width: 560px; height: 560px; background: radial-gradient(closest-side, var(--gold-soft), transparent 70%); pointer-events: none; }
@keyframes drift { to { transform: translate(-80px, 60px); } }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 70px); font-weight: 600; margin-block: 18px 22px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lede { font-size: 19px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-social { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 30px; color: var(--muted); font-size: 14.5px; }
.hero-social a { text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.hero-social a:hover { color: var(--fg); border-color: var(--gold); }

/* Metrics panel: the formulas he manages every week */
.panel { background: linear-gradient(180deg, rgba(23,27,37,.92), rgba(18,21,29,.92)); border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: 0 30px 80px -40px rgba(0,0,0,.8); }
.panel-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.panel-top span { font: 500 12px var(--f-mono); color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.metric { display: grid; grid-template-columns: 72px 1fr; gap: 14px; padding-block: 14px; border-bottom: 1px dashed var(--line); align-items: baseline; }
.metric:last-of-type { border-bottom: 0; }
.metric b { font: 500 15px var(--f-mono); color: var(--gold); }
.metric div { min-width: 0; }
.metric code { font: 13.5px var(--f-mono); color: var(--fg); }
.metric small { display: block; color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.panel-foot { margin-top: 10px; font-size: 13px; color: var(--muted); }

/* Expertise strip */
.strip { padding-block: 26px; border-block: 1px solid var(--line); background: var(--graphite); }
.strip ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; }
.strip li { font: 500 13.5px var(--f-mono); color: var(--muted); padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; }
.strip li.key { color: var(--fg); border-color: rgba(214,176,106,.45); }

/* About */
.about-grid { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: start; }
.portrait { aspect-ratio: 4/5; max-width: 100%; border-radius: 18px; border: 1px dashed rgba(214,176,106,.5); background: radial-gradient(circle at 30% 20%, var(--navy-glow), transparent 60%), var(--panel); display: grid; place-items: center; text-align: center; padding: 20px; }
.portrait .ini { font: 600 34px var(--f-display); color: var(--gold); line-height: 1.15; }
.portrait .ph { margin-top: 12px; font: 500 12px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.about-copy { display: grid; gap: 18px; min-width: 0; }
.about-copy p { color: var(--muted); max-width: 64ch; }
.about-copy p strong { color: var(--fg); font-weight: 600; }
.timeline { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 0; border-left: 1px solid var(--line); }
.timeline li { position: relative; padding: 0 0 22px 24px; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); border: 1.5px solid var(--gold); }
.timeline .when { font: 12.5px var(--f-mono); color: var(--gold); letter-spacing: .04em; }
.timeline .what { font-weight: 600; }
.timeline .where { color: var(--muted); font-size: 15px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; }
.facts span { font-size: 14px; color: var(--muted); padding: 7px 12px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); }
.facts span b { color: var(--fg); font-weight: 600; }

/* Services */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.svc { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; display: flex; flex-direction: column; gap: 14px; transition: border-color .25s ease, transform .25s ease; }
.svc:hover { border-color: rgba(214,176,106,.5); transform: translateY(-3px); }
.svc .tag { font: 500 11.5px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.svc p { color: var(--muted); font-size: 15px; }
.svc ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; font-size: 14.5px; }
.svc li { padding-left: 18px; position: relative; }
.svc li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 1.5px; background: var(--gold); }
.svc .textlink { margin-top: auto; padding-top: 6px; }

/* Problems */
.problems { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.prob { padding: 20px; border-radius: 12px; border: 1px solid var(--line); background: var(--ink); display: grid; gap: 6px; }
.prob b { font-weight: 600; font-size: 15.5px; }
.prob span { color: var(--muted); font-size: 14px; line-height: 1.5; }
.turn { margin-top: 44px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 30px; border-radius: 16px; border: 1px solid rgba(214,176,106,.35); background: linear-gradient(100deg, var(--gold-soft), transparent 70%); }
.turn h3 { font-size: 24px; }

/* Process */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; counter-reset: step; }
.process::before { content: ""; position: absolute; top: 27px; left: 10%; right: 10%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .55; }
.step { position: relative; padding: 0 14px; text-align: center; display: grid; gap: 10px; justify-items: center; }
.step .n { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); border: 1px solid var(--gold); font: 500 15px var(--f-mono); color: var(--gold); position: relative; z-index: 1; }
.step p { color: var(--muted); font-size: 15px; max-width: 24ch; }
.step .out { font: 12px var(--f-mono); color: var(--fg); background: var(--panel); border: 1px solid var(--line); padding: 4px 9px; border-radius: 6px; }

/* Results + case studies */
.results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 22px; }
.res { padding: 26px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); display: grid; gap: 8px; }
.res .big { font: 600 48px/1 var(--f-display); color: var(--gold); font-variant-numeric: tabular-nums; }
.res p { color: var(--muted); font-size: 15px; }
.src { font-size: 13px; color: var(--muted); margin-bottom: 44px; }
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.case { border-radius: var(--radius); border: 1px dashed var(--line); padding: 26px; display: grid; gap: 16px; background: rgba(23,27,37,.4); }
.case .soon { font: 500 11.5px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.case ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.case li { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--muted); padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.case li i { font-style: normal; font-family: var(--f-mono); font-size: 12.5px; color: #5f6678; }

/* Why */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.why div { background: var(--graphite); padding: 28px; display: grid; gap: 8px; align-content: start; }
.why p { color: var(--muted); font-size: 15px; }

/* Platforms */
.plats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.plat { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); display: grid; gap: 6px; }
.plat b { font: 600 22px var(--f-display); }
.plat span { color: var(--muted); font-size: 14px; }

/* Hire */
.hire { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.hire-card { padding: 28px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); display: grid; gap: 12px; align-content: start; }
.hire-card p { color: var(--muted); font-size: 15px; }
.hire-card .btn { justify-self: start; margin-top: 6px; }

/* Insights */
.topics { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.topics span { padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
.ins-card { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 22px; padding: 30px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); }
.ins-card p { color: var(--muted); max-width: 60ch; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 880px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--ink); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 22px/1 var(--f-mono); color: var(--gold); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; color: var(--muted); font-size: 15.5px; max-width: 72ch; }

/* Final CTA */
.final { text-align: center; position: relative; overflow: hidden; }
.final::before { content: ""; position: absolute; left: 50%; top: 50%; width: 900px; height: 500px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, var(--navy-glow), transparent 70%); pointer-events: none; }
.final .wrap { position: relative; display: grid; justify-items: center; gap: 20px; }
.final h2 { max-width: 18ch; }
.final .lede { text-align: center; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.contact-side { display: grid; gap: 22px; min-width: 0; }
.cline { display: grid; gap: 4px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.cline span { font: 12px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cline b { font-weight: 600; user-select: all; overflow-wrap: anywhere; }
.copy { justify-self: start; margin-top: 4px; background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 8px; padding: 5px 10px; font: 12.5px var(--f-mono); cursor: pointer; }
.copy:hover { color: var(--fg); border-color: var(--gold); }
form { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
label { font-size: 13.5px; font-weight: 600; color: var(--muted); }
input, select, textarea { width: 100%; font: 15.5px var(--f-body); color: var(--fg); background: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
textarea { min-height: 120px; resize: vertical; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--fg); padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--ink); cursor: pointer; font-size: 14px; }
.checks input { width: auto; accent-color: var(--gold); }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.form-foot small { color: var(--muted); font-size: 13px; }
.notice { grid-column: 1 / -1; padding: 14px 16px; border-radius: 10px; background: var(--gold-soft); border: 1px solid rgba(214,176,106,.4); font-size: 14.5px; }

/* Footer */
footer { padding-block: 56px 40px; border-top: 1px solid var(--line); background: var(--graphite); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.foot-grid p { color: var(--muted); font-size: 14.5px; margin-top: 8px; }
.foot-grid h4 { margin: 0 0 12px; font: 500 12px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-grid a { text-decoration: none; font-size: 15px; }
.foot-grid a:hover { color: var(--gold); }
.copyline { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

.preview-note { background: var(--gold); color: #17130b; font-size: 13.5px; text-align: center; padding: 8px 16px; font-weight: 600; }

/* Responsive */
@media (max-width: 1040px) {
  .services, .problems { grid-template-columns: repeat(2, 1fr); }
  .plats { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: 1fr; gap: 26px; }
  .process::before { top: 0; bottom: 0; left: 27px; right: auto; width: 1px; height: auto; background: linear-gradient(180deg, transparent, var(--gold), transparent); }
  .step { grid-template-columns: 54px 1fr; text-align: left; justify-items: start; column-gap: 18px; padding: 0; }
  .step .n { grid-row: span 3; }
  .step p { max-width: none; }
}
@media (max-width: 880px) {
  section { padding-block: 72px; }
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-grid .portrait { max-width: 240px; }
  .results, .cases, .why, .hire { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
  .menu-btn { display: inline-block; }
  .nav { display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--ink); border-bottom: 1px solid var(--line); padding: 8px 20px 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; justify-content: center; border-bottom: 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .services, .problems, .plats { grid-template-columns: 1fr; }
  form { grid-template-columns: 1fr; padding: 22px; }
  .hero { padding-block: 56px 72px; }
  .hero-ctas .btn { flex: 1 1 100%; justify-content: center; }
  .metric { grid-template-columns: 60px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Inner pages */
.page-hero { position: relative; overflow: hidden; padding-block: 80px 64px; border-bottom: 1px solid var(--line); }
.page-hero::before { content: ""; position: absolute; right: -160px; top: -200px; width: 620px; height: 620px; background: radial-gradient(closest-side, var(--navy-glow), transparent 70%); pointer-events: none; }
.page-hero .wrap { position: relative; display: grid; gap: 16px; }
.page-hero h1 { font-size: clamp(36px, 5vw, 58px); font-weight: 600; }
.crumbs { font: 12.5px var(--f-mono); color: var(--muted); letter-spacing: .06em; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--gold); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.prose { max-width: 72ch; color: var(--muted); display: grid; gap: 16px; }
.prose h2, .prose h3 { color: var(--fg); }
.prose a { color: var(--gold); }
.prose img { height: auto; border-radius: 12px; }
.svc-wide { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 12px; align-content: start; }
.svc-wide p { color: var(--muted); font-size: 15.5px; }
.svc-wide ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 15px; }
.svc-wide li { padding-left: 18px; position: relative; }
.svc-wide li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 1.5px; background: var(--gold); }
.notice.ok { background: rgba(80,170,120,.14); border-color: rgba(80,170,120,.5); }
.notice.err { background: rgba(220,90,80,.14); border-color: rgba(220,90,80,.5); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--gold); color: #17130b; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 12px; }
.admin-bar .site-head { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-head { top: 46px; } }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }
