/*
Theme Name: CIQ Connect
Theme URI: https://ciqconnect.com/
Author: CIQ Connect
Author URI: https://ciqconnect.com/
Description: A custom WordPress theme for CIQ Connect — a business skills institute in Islamabad, Pakistan. Editorial single-page design in a green-and-white palette. Phone, email, WhatsApp and Facebook URLs are editable in Appearance → Customize.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ciq-connect
Tags: business, education, training, single-page, custom-logo, custom-menu
*/

  :root {
    --green: #223035;
    --green-deep: #131A1C;
    --green-soft: #E0E5E6;
    --green-wash: #F0F3F3;
    --ink: #0E0E0E;
    --ink-soft: #2A2A2A;
    --paper: #FAFAF6;
    --paper-warm: #F5F2EA;
    --line: #1A1A1A;
    --muted: #6B6B6B;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }

  body {
    font-family: 'Manrope', system-ui, sans-serif;
    background: var(--paper);
    color: var(--ink);
    line-height: 1.55;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }

  /* Subtle paper grain */
  body::before {
    content: '';
    position: fixed; inset: 0;
    background-image:
      radial-gradient(rgba(0,0,0,0.025) 1px, transparent 1px);
    background-size: 3px 3px;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: multiply;
  }

  .display { font-family: 'Fraunces', Georgia, serif; font-variation-settings: "opsz" 144, "SOFT" 30; }
  .mono { font-family: 'JetBrains Mono', monospace; }

  /* ============ NAVIGATION ============ */
  .nav {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 18px 36px;
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(250, 250, 246, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: padding .3s ease;
  }
  .nav.scrolled { padding: 12px 36px; }

  .nav-brand {
    display: flex; align-items: center; gap: 12px;
    text-decoration: none; color: var(--ink);
  }
  .nav-brand img {
    height: 48px; width: auto; display: block;
  }

  .nav-links {
    display: flex; gap: 32px;
    list-style: none;
  }
  .nav-links a {
    color: var(--ink);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    padding: 4px 0;
  }
  .nav-links a::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 1.5px;
    background: var(--green);
    transition: width .3s ease;
  }
  .nav-links a:hover::after { width: 100%; }

  .nav-cta {
    background: var(--green);
    color: var(--paper);
    padding: 11px 22px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all .25s ease;
    display: inline-flex; align-items: center; gap: 8px;
  }
  .nav-cta:hover {
    background: var(--green-deep);
    transform: translateY(-1px);
  }
  .nav-cta::after {
    content: '→';
    transition: transform .25s ease;
  }
  .nav-cta:hover::after { transform: translateX(3px); }

  .menu-toggle { display: none; }

  /* ============ HERO ============ */
  .hero {
    position: relative;
    min-height: 100vh;
    padding: 140px 36px 80px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    overflow: hidden;
  }

  .hero-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
  }
  .hero-meta-dot {
    width: 8px; height: 8px;
    background: var(--green);
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
  }
  @keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
  }

  .hero-headline {
    font-family: 'Fraunces', serif;
    font-variation-settings: "opsz" 144, "SOFT" 50, "wght" 500;
    font-size: clamp(54px, 9vw, 140px);
    line-height: 0.92;
    letter-spacing: -0.035em;
    color: var(--ink);
    margin: 0;
  }
  .hero-headline .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px);
    animation: word-rise .9s cubic-bezier(.2,.8,.2,1) forwards;
  }
  .hero-headline .word.w1 { animation-delay: .1s; }
  .hero-headline .word.w2 { animation-delay: .25s; }
  .hero-headline .word.w3 { animation-delay: .4s; }
  .hero-headline .word.w4 { animation-delay: .55s; }
  .hero-headline .word.w5 { animation-delay: .7s; }
  .hero-headline .word.w6 { animation-delay: .85s; }
  .hero-headline .accent {
    color: var(--green);
    font-style: italic;
    font-variation-settings: "opsz" 144, "SOFT" 100, "wght" 400;
  }
  @keyframes word-rise {
    to { opacity: 1; transform: translateY(0); }
  }

  .hero-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 48px;
    align-items: end;
  }

  .hero-lead {
    font-size: 19px;
    line-height: 1.55;
    color: var(--ink-soft);
    max-width: 520px;
    opacity: 0;
    animation: fade-up 1s ease-out forwards;
    animation-delay: 1.1s;
  }
  .hero-lead strong {
    color: var(--ink);
    font-weight: 700;
  }

  .hero-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fade-up 1s ease-out forwards;
    animation-delay: 1.3s;
  }

  .btn-primary {
    background: var(--green);
    color: white;
    padding: 18px 32px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.01em;
    display: inline-flex; align-items: center; gap: 10px;
    transition: all .25s ease;
    box-shadow: 0 8px 24px rgba(34, 48, 53, 0.22);
  }
  .btn-primary:hover {
    background: var(--green-deep);
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(34, 48, 53, 0.32);
  }
  .btn-secondary {
    color: var(--ink);
    padding: 18px 0;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border-bottom: 1.5px solid var(--ink);
    transition: color .25s ease, border-color .25s ease;
  }
  .btn-secondary:hover {
    color: var(--green);
    border-color: var(--green);
  }

  @keyframes fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* Decorative hero element — floating logo mark */
  .hero-mark {
    position: absolute;
    right: 6%;
    top: 24%;
    width: 360px;
    height: 142px;
    opacity: 0.92;
    animation: float-rotate 14s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
  }
  .hero-mark img {
    width: 100%; height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 14px 36px rgba(34, 48, 53, 0.18));
  }
  @keyframes float-rotate {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-18px) rotate(3deg); }
  }

  /* Vertical spine line */
  .hero-spine {
    position: absolute;
    left: 36px;
    top: 140px;
    bottom: 80px;
    width: 1px;
    background: var(--ink);
    opacity: 0.08;
    z-index: 0;
  }
  .hero-spine::before {
    content: '01 / 06';
    position: absolute;
    top: 0;
    left: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--muted);
  }

  /* ============ MARQUEE ============ */
  .marquee {
    background: var(--green);
    color: var(--paper);
    padding: 22px 0;
    overflow: hidden;
    white-space: nowrap;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .marquee-track {
    display: inline-flex;
    gap: 50px;
    animation: scroll 38s linear infinite;
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: 28px;
    font-weight: 400;
    align-items: center;
  }
  .marquee-item {
    display: inline-flex; align-items: center; gap: 50px;
  }
  .marquee-dot {
    width: 8px; height: 8px;
    background: rgba(255,255,255,0.55);
    border-radius: 50%;
  }
  @keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }

  /* ============ POSITIONING / ABOUT ============ */
  .section {
    padding: 120px 36px;
    position: relative;
    z-index: 2;
  }

  .section-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 24px;
    font-weight: 500;
  }
  .section-label::before {
    content: '';
    width: 32px; height: 1.5px;
    background: var(--green);
  }

  .about-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 80px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: start;
  }

  .about-h2 {
    font-family: 'Fraunces', serif;
    font-variation-settings: "opsz" 144, "SOFT" 40, "wght" 500;
    font-size: clamp(36px, 4.5vw, 64px);
    line-height: 1.02;
    letter-spacing: -0.025em;
  }
  .about-h2 em {
    color: var(--green);
    font-variation-settings: "opsz" 144, "SOFT" 100, "wght" 400;
  }

  .about-body p {
    font-size: 18px;
    line-height: 1.65;
    color: var(--ink-soft);
    margin-bottom: 24px;
  }
  .about-body p:first-child::first-letter {
    font-family: 'Fraunces', serif;
    font-size: 92px;
    line-height: 0.85;
    float: left;
    margin: 6px 14px 0 -2px;
    color: var(--green);
    font-weight: 600;
  }

  .about-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 32px;
  }
  .about-pill {
    border: 1.5px solid var(--ink);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    transition: all .2s ease;
  }
  .about-pill:hover {
    background: var(--green);
    color: white;
    border-color: var(--green);
    transform: translateY(-2px);
  }

  /* ============ SERVICES / TRACKS ============ */
  .tracks {
    background: var(--green);
    color: var(--paper);
    padding: 120px 36px;
    position: relative;
    z-index: 2;
  }
  .tracks .section-label { color: rgba(255,255,255,0.65); }
  .tracks .section-label::before { background: rgba(255,255,255,0.45); }
  .tracks-h2 {
    font-family: 'Fraunces', serif;
    font-variation-settings: "opsz" 144, "SOFT" 30, "wght" 400;
    font-size: clamp(40px, 5.5vw, 86px);
    line-height: 1;
    letter-spacing: -0.03em;
    max-width: 14ch;
    margin-bottom: 80px;
  }
  .tracks-h2 em {
    color: #ffffff;
    font-variation-settings: "opsz" 144, "SOFT" 100, "wght" 400;
  }

  .track-list {
    max-width: 1400px;
    margin: 0 auto;
  }

  .track {
    display: grid;
    grid-template-columns: 100px 1fr 2fr 100px;
    gap: 40px;
    padding: 36px 0;
    border-top: 1px solid rgba(255,255,255,0.12);
    align-items: start;
    cursor: pointer;
    transition: padding .35s ease;
    position: relative;
  }
  .track:last-child { border-bottom: 1px solid rgba(255,255,255,0.12); }

  .track:hover {
    padding-left: 24px;
  }
  .track:hover .track-arrow {
    transform: translate(8px, -8px) rotate(0deg);
    color: #ffffff;
  }
  .track:hover .track-name {
    color: #ffffff;
  }

  .track::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.5) 0%, transparent 60%);
    opacity: 0;
    transition: opacity .35s ease;
    pointer-events: none;
    z-index: -1;
    margin-left: -36px;
  }
  .track:hover::before {
    opacity: 0.08;
  }

  .track-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.5);
    padding-top: 8px;
  }

  .track-name {
    font-family: 'Fraunces', serif;
    font-variation-settings: "opsz" 144, "SOFT" 30, "wght" 500;
    font-size: clamp(28px, 3vw, 44px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    transition: color .3s ease;
  }
  .track-name em {
    color: #ffffff;
    font-variation-settings: "opsz" 144, "SOFT" 100, "wght" 400;
  }

  .track-courses {
    color: rgba(255,255,255,0.7);
    font-size: 15px;
    line-height: 1.7;
    padding-top: 12px;
  }
  .track-courses span {
    color: var(--paper);
    font-weight: 500;
  }

  .track-arrow {
    font-family: 'Fraunces', serif;
    font-size: 36px;
    color: rgba(255,255,255,0.3);
    transform: rotate(-45deg);
    transition: transform .35s ease, color .35s ease;
    text-align: right;
    padding-top: 4px;
  }

  /* ============ STATS ============ */
  .stats {
    padding: 80px 36px;
    background: var(--paper);
  }
  .stats-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
    border-top: 1px solid rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding: 60px 0;
  }
  .stat {
    border-left: 2px solid var(--green);
    padding-left: 24px;
  }
  .stat-num {
    font-family: 'Fraunces', serif;
    font-variation-settings: "opsz" 144, "SOFT" 50, "wght" 400;
    font-size: clamp(48px, 5vw, 72px);
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--ink);
    display: block;
  }
  .stat-num small {
    color: var(--green);
    font-size: 0.6em;
  }
  .stat-label {
    margin-top: 12px;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.4;
  }

  /* ============ FEATURED COURSES ============ */
  .featured {
    padding: 120px 36px;
    background: var(--paper-warm);
  }
  .featured-head {
    max-width: 1400px;
    margin: 0 auto 64px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: end;
  }
  .featured-h2 {
    font-family: 'Fraunces', serif;
    font-variation-settings: "opsz" 144, "SOFT" 40, "wght" 500;
    font-size: clamp(36px, 4.5vw, 64px);
    line-height: 1.02;
    letter-spacing: -0.025em;
  }
  .featured-h2 em {
    color: var(--green);
    font-variation-settings: "opsz" 144, "SOFT" 100, "wght" 400;
  }
  .featured-sub {
    color: var(--ink-soft);
    font-size: 17px;
    line-height: 1.6;
  }

  .courses-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .course-card {
    background: white;
    border-radius: 18px;
    padding: 32px 28px;
    border: 1px solid rgba(0,0,0,0.06);
    transition: all .35s cubic-bezier(.2,.8,.2,1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
  }
  .course-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--green);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s ease;
  }
  .course-card:hover {
    transform: translateY(-6px);
    border-color: var(--green);
    box-shadow: 0 24px 48px -12px rgba(34,48,53,0.16);
  }
  .course-card:hover::before {
    transform: scaleX(1);
  }

  .course-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--green);
    font-weight: 500;
  }

  .course-title {
    font-family: 'Fraunces', serif;
    font-variation-settings: "opsz" 144, "SOFT" 30, "wght" 500;
    font-size: 26px;
    line-height: 1.15;
    letter-spacing: -0.015em;
    margin: 14px 0 18px;
  }

  .course-desc {
    font-size: 14.5px;
    color: var(--muted);
    line-height: 1.55;
    margin-bottom: 24px;
  }

  .course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 18px;
    border-top: 1px solid rgba(0,0,0,0.06);
    font-size: 12.5px;
  }
  .course-meta span:first-child {
    color: var(--ink);
    font-weight: 600;
  }
  .course-meta span:last-child {
    color: var(--muted);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
  }

  /* ============ MISSION / QUOTE ============ */
  .quote-section {
    padding: 140px 36px;
    background: var(--green);
    color: white;
    position: relative;
    overflow: hidden;
  }
  .quote-section::before {
    content: '"';
    position: absolute;
    font-family: 'Fraunces', serif;
    font-size: 720px;
    line-height: 0.7;
    color: white;
    opacity: 0.08;
    top: -40px;
    right: 60px;
    pointer-events: none;
    font-style: italic;
    font-weight: 400;
  }
  .quote-content {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
  }
  .quote-section .section-label { color: white; }
  .quote-section .section-label::before { background: white; }

  .quote-text {
    font-family: 'Fraunces', serif;
    font-variation-settings: "opsz" 144, "SOFT" 60, "wght" 400;
    font-style: italic;
    font-size: clamp(32px, 4vw, 56px);
    line-height: 1.18;
    letter-spacing: -0.02em;
  }
  .quote-attr {
    margin-top: 40px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.9;
  }

  /* ============ CTA / CONTACT ============ */
  .cta {
    padding: 140px 36px 100px;
    background: var(--paper);
    position: relative;
  }
  .cta-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 80px;
    align-items: end;
  }

  .cta-h2 {
    font-family: 'Fraunces', serif;
    font-variation-settings: "opsz" 144, "SOFT" 30, "wght" 500;
    font-size: clamp(48px, 7vw, 110px);
    line-height: 0.95;
    letter-spacing: -0.035em;
  }
  .cta-h2 em {
    color: var(--green);
    font-variation-settings: "opsz" 144, "SOFT" 100, "wght" 400;
  }

  .cta-info {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }
  .cta-block {
    border-top: 1px solid rgba(0,0,0,0.15);
    padding-top: 18px;
  }
  .cta-block-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
  }
  .cta-block-value {
    font-size: 17px;
    color: var(--ink);
    font-weight: 500;
    text-decoration: none;
  }
  .cta-block-value:hover {
    color: var(--green);
  }

  .cta-button-row {
    margin-top: 16px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
  }

  /* ============ FOOTER ============ */
  .footer {
    background: var(--green);
    color: var(--paper);
    padding: 60px 36px 30px;
    position: relative;
    z-index: 2;
  }
  .footer-top {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .footer-brand img {
    height: 64px;
    width: auto;
    margin-bottom: 18px;
    background: white;
    padding: 10px 14px;
    border-radius: 10px;
    display: block;
  }
  .footer-brand p {
    color: rgba(255,255,255,0.6);
    font-size: 14.5px;
    line-height: 1.55;
    max-width: 320px;
  }
  .footer-col h4 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    font-weight: 500;
    margin-bottom: 18px;
  }
  .footer-col ul { list-style: none; }
  .footer-col li { margin-bottom: 10px; }
  .footer-col a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 14.5px;
    transition: color .2s ease;
  }
  .footer-col a:hover { color: #ffffff; }

  .footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 12.5px;
    color: rgba(255,255,255,0.5);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.05em;
  }

  /* ============ RESPONSIVE ============ */
  @media (max-width: 960px) {
    .hero-bottom { grid-template-columns: 1fr; gap: 32px; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .featured-head { grid-template-columns: 1fr; gap: 24px; }
    .courses-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .cta-grid { grid-template-columns: 1fr; gap: 50px; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
    .track { grid-template-columns: 60px 1fr 60px; gap: 20px; }
    .track-courses { display: none; }
    .hero-mark { width: 220px; height: 86px; right: 4%; top: 14%; opacity: 0.45; }
    .nav-links { display: none; }
    .menu-toggle {
      display: flex; flex-direction: column; gap: 5px;
      background: none; border: none; cursor: pointer; padding: 8px;
    }
    .menu-toggle span {
      width: 24px; height: 2px; background: var(--ink);
    }
  }
  @media (max-width: 640px) {
    .nav { padding: 14px 20px; }
    .hero { padding: 120px 20px 60px; }
    .hero-spine { left: 20px; }
    .section, .tracks, .featured, .quote-section, .cta { padding-left: 20px; padding-right: 20px; }
    .stats { padding: 60px 20px; }
    .stats-grid { grid-template-columns: 1fr; padding: 40px 0; gap: 28px; }
    .courses-grid { grid-template-columns: 1fr; }
    .footer { padding: 50px 20px 24px; }
    .footer-top { grid-template-columns: 1fr; }
    .nav-cta { padding: 9px 16px; font-size: 12px; }
    .nav-brand img { height: 40px; }
  }
