/*
Theme Name: Junaid Malik Digital
Theme URI: https://junaidmalikdigital.com
Author: Junaid Malik
Author URI: https://junaidmalikdigital.com
Description: A lightweight, professional, Elementor-compatible WordPress theme built for the Junaid Malik Digital marketing portfolio and freelance services website. Designed to be fully editable with Elementor Free — no page builder lock-in, no bloat.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jmd
Tags: blog, portfolio, e-commerce, one-column, two-columns, right-sidebar, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* =========================================================
   1. GLOBAL DESIGN TOKENS (Global Colors / Fonts)
   Edit these variables to rebrand the whole site instantly.
   In Elementor: Site Settings > Global Colors / Global Fonts
   mirror these same values so both stay in sync.
   ========================================================= */
:root {
  --jmd-primary: #1454F2;      /* Brand blue — buttons, links, accents */
  --jmd-primary-dark: #0E3FC4;
  --jmd-secondary: #0B1B3A;    /* Deep navy — headings, header/footer bg */
  --jmd-accent: #16C79A;       /* Teal accent — highlights, icons */
  --jmd-light: #F5F7FB;        /* Section background */
  --jmd-white: #FFFFFF;
  --jmd-text: #2B2F3A;
  --jmd-text-light: #6B7280;
  --jmd-border: #E5E8F0;

  --jmd-font-heading: 'Poppins', 'Segoe UI', sans-serif;
  --jmd-font-body: 'Inter', 'Segoe UI', sans-serif;

  --jmd-radius: 14px;
  --jmd-shadow: 0 10px 30px rgba(11, 27, 58, 0.08);
  --jmd-shadow-hover: 0 16px 40px rgba(11, 27, 58, 0.14);
  --jmd-container: 1200px;
  --jmd-transition: all 0.25s ease;
}

/* =========================================================
   2. RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--jmd-font-body);
  color: var(--jmd-text);
  line-height: 1.7;
  margin: 0;
  background: var(--jmd-white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--jmd-primary); text-decoration: none; transition: var(--jmd-transition); }
a:hover { color: var(--jmd-primary-dark); }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--jmd-font-heading);
  color: var(--jmd-secondary);
  line-height: 1.25;
  margin: 0 0 16px;
  font-weight: 600;
}
h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 700; }
h2 { font-size: clamp(26px, 4vw, 38px); }
h3 { font-size: clamp(20px, 3vw, 24px); }
p { margin: 0 0 16px; color: var(--jmd-text-light); }
ul { padding-left: 20px; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px,1px,1px,1px); white-space: nowrap;
}
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--jmd-primary);
  color: #fff; padding: 10px 16px; z-index: 10000;
}
.skip-link:focus { left: 10px; top: 10px; }

/* =========================================================
   3. LAYOUT / CONTAINER
   ========================================================= */
.jmd-container {
  max-width: var(--jmd-container);
  margin: 0 auto;
  padding: 0 24px;
}
.jmd-section { padding: 90px 0; }
.jmd-section--tight { padding: 60px 0; }
.jmd-section--light { background: var(--jmd-light); }
.jmd-section--dark { background: var(--jmd-secondary); color: #fff; }
.jmd-section--dark h2, .jmd-section--dark h3, .jmd-section--dark p { color: #fff; }
.jmd-section--dark p { color: rgba(255,255,255,0.75); }

.jmd-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--jmd-primary);
  background: rgba(20, 84, 242, 0.08);
  padding: 6px 14px;
  border-radius: 30px;
  margin-bottom: 16px;
}
.jmd-section-head { max-width: 640px; margin: 0 auto 50px; text-align: center; }
.jmd-section-head p { font-size: 17px; }

/* =========================================================
   4. BUTTONS (Global Buttons — edit once, apply everywhere)
   ========================================================= */
.jmd-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--jmd-transition);
}
.jmd-btn--primary {
  background: var(--jmd-primary);
  color: #fff;
}
.jmd-btn--primary:hover {
  background: var(--jmd-primary-dark);
  color: #fff;
  transform: translateY(-2px);
}
.jmd-btn--outline {
  background: transparent;
  border-color: var(--jmd-border);
  color: var(--jmd-secondary);
}
.jmd-btn--outline:hover {
  border-color: var(--jmd-primary);
  color: var(--jmd-primary);
  transform: translateY(-2px);
}
.jmd-btn--outline-light {
  background: transparent;
  border-color: rgba(255,255,255,0.35);
  color: #fff;
}
.jmd-btn--outline-light:hover { border-color: #fff; }
.jmd-btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* =========================================================
   5. HEADER / NAVIGATION
   ========================================================= */
.jmd-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--jmd-border);
}
.jmd-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--jmd-container);
  margin: 0 auto;
}
.jmd-logo { font-family: var(--jmd-font-heading); font-weight: 700; font-size: 22px; color: var(--jmd-secondary); }
.jmd-logo span { color: var(--jmd-primary); }
.jmd-logo img { max-height: 42px; }

.jmd-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.jmd-nav-toggle span { width: 26px; height: 3px; background: var(--jmd-secondary); border-radius: 2px; transition: var(--jmd-transition); }

.jmd-primary-menu { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.jmd-primary-menu li a {
  color: var(--jmd-text);
  font-weight: 500;
  font-size: 15.5px;
}
.jmd-primary-menu li a:hover { color: var(--jmd-primary); }
.jmd-header-cta { display: flex; align-items: center; gap: 18px; }

@media (max-width: 880px) {
  .jmd-nav-toggle { display: flex; }
  .jmd-primary-menu {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--jmd-border);
    display: none;
  }
  .jmd-primary-menu.is-open { display: flex; }
  .jmd-header-cta .jmd-btn span.jmd-btn-text-full { display: none; }
}

/* =========================================================
   6. HERO
   ========================================================= */
.jmd-hero { padding: 100px 0 80px; background: linear-gradient(180deg, var(--jmd-light) 0%, #fff 100%); }
.jmd-hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.jmd-hero h1 { margin-bottom: 22px; }
.jmd-hero p.lead { font-size: 18px; max-width: 520px; margin-bottom: 34px; }
.jmd-hero-visual {
  background: linear-gradient(135deg, var(--jmd-primary), var(--jmd-accent));
  border-radius: 24px;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--jmd-shadow-hover);
  position: relative;
  overflow: hidden;
}
.jmd-hero-visual svg { width: 60%; height: 60%; }
.jmd-hero-stats { display: flex; gap: 30px; margin-top: 40px; flex-wrap: wrap; }
.jmd-hero-stats div strong { display: block; font-size: 26px; color: var(--jmd-secondary); font-family: var(--jmd-font-heading); }
.jmd-hero-stats div span { font-size: 13.5px; color: var(--jmd-text-light); }

@media (max-width: 880px) {
  .jmd-hero-grid { grid-template-columns: 1fr; }
  .jmd-hero-visual { max-width: 380px; margin: 0 auto; }
}

/* =========================================================
   7. CARDS (Services / Portfolio / Skills / Blog)
   ========================================================= */
.jmd-grid { display: grid; gap: 28px; }
.jmd-grid--3 { grid-template-columns: repeat(3, 1fr); }
.jmd-grid--4 { grid-template-columns: repeat(4, 1fr); }
.jmd-grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .jmd-grid--3, .jmd-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .jmd-grid--2, .jmd-grid--3, .jmd-grid--4 { grid-template-columns: 1fr; } }

.jmd-card {
  background: #fff;
  border: 1px solid var(--jmd-border);
  border-radius: var(--jmd-radius);
  padding: 34px 28px;
  transition: var(--jmd-transition);
}
.jmd-card:hover { box-shadow: var(--jmd-shadow-hover); transform: translateY(-4px); border-color: transparent; }
.jmd-card-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(20,84,242,0.08);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.jmd-card-icon svg { width: 26px; height: 26px; stroke: var(--jmd-primary); }
.jmd-card h3 { margin-bottom: 10px; font-size: 19px; }
.jmd-card p { font-size: 15px; margin-bottom: 18px; }
.jmd-card-link { font-weight: 600; font-size: 14.5px; display: inline-flex; align-items: center; gap: 6px; }

/* Portfolio */
.jmd-portfolio-card { overflow: hidden; padding: 0; }
.jmd-portfolio-thumb {
  height: 190px;
  background: linear-gradient(135deg, var(--jmd-secondary), var(--jmd-primary));
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.jmd-portfolio-thumb span.jmd-tag {
  position: absolute; top: 14px; left: 14px;
  background: rgba(255,255,255,0.15);
  color: #fff; font-size: 12px; font-weight: 600;
  padding: 5px 12px; border-radius: 30px;
  backdrop-filter: blur(4px);
}
.jmd-portfolio-body { padding: 24px 26px 28px; }
.jmd-portfolio-body p.jmd-label { color: var(--jmd-accent); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }

/* Skills */
.jmd-skill { margin-bottom: 22px; }
.jmd-skill-top { display: flex; justify-content: space-between; margin-bottom: 8px; font-weight: 600; color: var(--jmd-secondary); font-size: 15px; }
.jmd-skill-bar { height: 8px; background: var(--jmd-border); border-radius: 10px; overflow: hidden; }
.jmd-skill-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--jmd-primary), var(--jmd-accent)); border-radius: 10px; }

/* Why choose me */
.jmd-feature { display: flex; gap: 16px; align-items: flex-start; }
.jmd-feature-icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px;
  background: rgba(22,199,154,0.12);
  display: flex; align-items: center; justify-content: center;
}
.jmd-feature-icon svg { width: 22px; height: 22px; stroke: var(--jmd-accent); }
.jmd-feature h3 { font-size: 17px; margin-bottom: 6px; }
.jmd-feature p { font-size: 14.5px; margin-bottom: 0; }

/* =========================================================
   8. CTA BAND
   ========================================================= */
.jmd-cta-band {
  background: linear-gradient(120deg, var(--jmd-secondary), var(--jmd-primary));
  border-radius: 24px;
  padding: 60px;
  text-align: center;
  color: #fff;
}
.jmd-cta-band h2 { color: #fff; }
.jmd-cta-band p { color: rgba(255,255,255,0.8); max-width: 520px; margin-left: auto; margin-right: auto; }
.jmd-cta-band .jmd-btn-row { justify-content: center; }

/* =========================================================
   9. BLOG
   ========================================================= */
.jmd-blog-card { overflow: hidden; padding: 0; }
.jmd-blog-thumb { height: 190px; background: var(--jmd-light); overflow: hidden; }
.jmd-blog-thumb img { width: 100%; height: 100%; object-fit: cover; }
.jmd-blog-body { padding: 24px 26px 28px; }
.jmd-blog-meta { font-size: 13px; color: var(--jmd-text-light); margin-bottom: 10px; }
.jmd-blog-body h3 a { color: var(--jmd-secondary); }
.jmd-blog-body h3 a:hover { color: var(--jmd-primary); }

/* Blog archive / single */
.jmd-content-wrap { max-width: var(--jmd-container); margin: 0 auto; padding: 60px 24px; display: grid; grid-template-columns: 2.2fr 1fr; gap: 50px; }
@media (max-width: 900px) { .jmd-content-wrap { grid-template-columns: 1fr; } }
.jmd-page-header { background: var(--jmd-light); padding: 60px 0 40px; text-align: center; }
.jmd-single-title { max-width: 800px; margin: 0 auto; }
article.jmd-post { margin-bottom: 60px; }
article.jmd-post .entry-content p { color: var(--jmd-text); }
.jmd-widget { background: var(--jmd-light); border-radius: var(--jmd-radius); padding: 26px; margin-bottom: 26px; }
.jmd-widget h3 { font-size: 16px; margin-bottom: 16px; }
.jmd-pagination { display: flex; gap: 10px; margin-top: 20px; }
.jmd-pagination a, .jmd-pagination span { padding: 8px 14px; border: 1px solid var(--jmd-border); border-radius: 8px; font-size: 14px; }

/* =========================================================
   10. CONTACT
   ========================================================= */
.jmd-contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 50px; align-items: flex-start; }
@media (max-width: 900px) { .jmd-contact-grid { grid-template-columns: 1fr; } }
.jmd-contact-info-item { display: flex; gap: 16px; margin-bottom: 26px; align-items: flex-start; }
.jmd-form-group { margin-bottom: 18px; }
.jmd-form-group label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--jmd-secondary); }
.jmd-form-group input, .jmd-form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--jmd-border);
  border-radius: 10px;
  font-family: var(--jmd-font-body);
  font-size: 15px;
  background: #fff;
}
.jmd-form-group input:focus, .jmd-form-group textarea:focus { outline: none; border-color: var(--jmd-primary); }
.jmd-social-row { display: flex; gap: 12px; margin-top: 10px; }
.jmd-social-row a {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--jmd-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--jmd-secondary);
}
.jmd-social-row a:hover { background: var(--jmd-primary); color: #fff; }

/* =========================================================
   11. FOOTER
   ========================================================= */
.jmd-footer { background: var(--jmd-secondary); color: rgba(255,255,255,0.75); padding: 70px 0 24px; }
.jmd-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; margin-bottom: 50px; }
@media (max-width: 900px) { .jmd-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .jmd-footer-grid { grid-template-columns: 1fr; } }
.jmd-footer h4 { color: #fff; font-size: 15px; margin-bottom: 18px; }
.jmd-footer ul { list-style: none; padding: 0; margin: 0; }
.jmd-footer ul li { margin-bottom: 10px; }
.jmd-footer ul li a { color: rgba(255,255,255,0.7); font-size: 14.5px; }
.jmd-footer ul li a:hover { color: #fff; }
.jmd-footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13.5px; }

/* =========================================================
   12. UTILITIES / ANIMATIONS
   ========================================================= */
.jmd-fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.jmd-fade-up.is-visible { opacity: 1; transform: translateY(0); }
.jmd-text-center { text-align: center; }

/* Elementor compatibility: keep Elementor's own containers untouched */
.elementor-widget-container, .elementor-element { max-width: 100%; }
