/* ============================================================
   Qalam AI — Main Stylesheet
   Design: Professional consulting/publishing aesthetic
   Author: Qalam AI Dev
   ============================================================ */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* --- CSS Custom Properties --- */
:root {
    --navy:       #0D1B2A;
    --navy-light: #162236;
    --gold:       #B8860B;
    --gold-light: #D4A017;
    --gold-pale:  #FDF6E3;
    --white:      #FFFFFF;
    --gray-50:    #F8F9FA;
    --gray-100:   #F1F3F5;
    --gray-200:   #E9ECEF;
    --gray-400:   #9CA3AF;
    --gray-600:   #4A5568;
    --gray-800:   #1F2937;
    --text:       #2D3748;
    --border:     #E2E8F0;

    --font-head:  'Montserrat', sans-serif;
    --font-body:  'Inter', sans-serif;

    --radius:     4px;
    --radius-md:  8px;
    --shadow-sm:  0 1px 3px rgba(0,0,0,0.08);
    --shadow-md:  0 4px 16px rgba(0,0,0,0.10);
    --shadow-lg:  0 8px 32px rgba(0,0,0,0.12);

    --max-width:  1200px;
    --transition: 0.22s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }
ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    color: var(--navy);
    line-height: 1.25;
    font-weight: 700;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }

p { margin-bottom: 1rem; color: var(--gray-600); }
p:last-child { margin-bottom: 0; }

/* --- Layout Utilities --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-pad { padding: 80px 0; }
.section-pad-sm { padding: 56px 0; }

/* --- Editorial Section Eyebrow --- */
/* Signature element: gold left-border eyebrow label */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-head);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}

.eyebrow::before {
    content: '';
    display: block;
    width: 28px;
    height: 2px;
    background: var(--gold);
    flex-shrink: 0;
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2.125rem);
    color: var(--navy);
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--gray-600);
    max-width: 600px;
    line-height: 1.65;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-head);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 12px 28px;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    text-decoration: none;
}

.btn-primary {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

.btn-primary:hover {
    background: var(--navy-light);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}

.btn-outline:hover {
    background: var(--navy);
    color: var(--white);
}

.btn-gold {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}

.btn-gold:hover {
    background: var(--gold-light);
    color: var(--white);
    transform: translateY(-1px);
}

.btn-outline-gold {
    background: transparent;
    color: var(--gold);
    border-color: var(--gold);
}

.btn-outline-gold:hover {
    background: var(--gold);
    color: var(--white);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.8125rem;
}

.btn-lg {
    padding: 15px 36px;
    font-size: 0.9375rem;
}

/* --- Navigation --- */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.nav-brand-mark {
    width: 38px;
    height: 38px;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
}

.nav-brand-mark span {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1rem;
    color: var(--gold);
}

.nav-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.nav-brand-name {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1rem;
    color: var(--navy);
    letter-spacing: -0.01em;
}

.nav-brand-tagline {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 500;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-menu a {
    font-family: var(--font-head);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gray-600);
    padding: 8px 14px;
    border-radius: var(--radius);
    letter-spacing: 0.02em;
    transition: all var(--transition);
    text-decoration: none;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--navy);
    background: var(--gray-50);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-head);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--navy);
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.cart-badge:hover {
    border-color: var(--navy);
    color: var(--navy);
    background: var(--gray-50);
}

.cart-count {
    background: var(--gold);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
}

.nav-hamburger span {
    width: 22px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: all var(--transition);
    display: block;
}

/* --- Hero Section --- */
.hero {
    background: var(--navy);
    padding: 96px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gold);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-head);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
    background: rgba(184, 134, 11, 0.12);
    padding: 6px 14px;
    border-radius: 2px;
    border-left: 3px solid var(--gold);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-title span {
    color: var(--gold);
    display: block;
}

.hero-desc {
    font-size: 1.0625rem;
    color: rgba(255,255,255,0.72);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-stat-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 24px;
    border-left: 3px solid var(--gold);
}

.hero-stat-card h4 {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-bottom: 10px;
    font-family: var(--font-head);
}

.hero-stat-card p {
    color: rgba(255,255,255,0.88);
    font-size: 0.9375rem;
    line-height: 1.55;
    margin: 0;
}

/* --- Trust Strip --- */
.trust-strip {
    background: var(--gray-50);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
}

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

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-head);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--gray-600);
    text-transform: uppercase;
}

.trust-item i {
    color: var(--gold);
    font-size: 0.875rem;
}

/* --- Product Cards --- */
.product-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: var(--gray-200);
}

.product-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card-img-placeholder {
    width: 100%;
    height: 200px;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
}

.product-card-img-placeholder i {
    font-size: 2.5rem;
    color: var(--gold);
    opacity: 0.7;
}

.product-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category-tag {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    background: var(--gold-pale);
    padding: 3px 10px;
    border-radius: 2px;
    margin-bottom: 10px;
}

.product-card-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
    line-height: 1.35;
}

.product-card-desc {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.product-price {
    font-family: var(--font-head);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
}

.product-price sup {
    font-size: 0.7rem;
    font-weight: 600;
    vertical-align: super;
}

/* --- Why Choose Cards --- */
.why-card {
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--white);
    transition: border-color var(--transition);
    position: relative;
}

.why-card:hover {
    border-color: var(--gold);
}

.why-icon {
    width: 48px;
    height: 48px;
    background: var(--gold-pale);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.why-icon i {
    color: var(--gold);
    font-size: 1.25rem;
}

.why-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
}

.why-card p {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin: 0;
    line-height: 1.6;
}

/* --- Consulting Section --- */
.consulting-section {
    background: var(--navy);
    padding: 80px 0;
}

.consulting-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.consulting-content .eyebrow {
    color: var(--gold);
}

.consulting-content .eyebrow::before {
    background: var(--gold);
}

.consulting-content h2 {
    color: var(--white);
    margin-bottom: 16px;
}

.consulting-content p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 28px;
}

.consulting-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.consulting-feature {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.consulting-feature-icon {
    width: 32px;
    height: 32px;
    background: rgba(184,134,11,0.15);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.consulting-feature-icon i {
    color: var(--gold);
    font-size: 0.875rem;
}

.consulting-feature h5 {
    font-family: var(--font-head);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 4px;
}

.consulting-feature p {
    font-size: 0.85rem;
    margin: 0;
    color: rgba(255,255,255,0.58);
    line-height: 1.55;
}

.consulting-packages {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.consulting-package {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: all var(--transition);
}

.consulting-package:hover {
    border-color: var(--gold);
    background: rgba(184,134,11,0.06);
}

.consulting-package h4 {
    color: var(--white);
    font-size: 0.9375rem;
    margin-bottom: 6px;
}

.consulting-package p {
    color: rgba(255,255,255,0.6);
    font-size: 0.8125rem;
    margin-bottom: 12px;
    line-height: 1.5;
}

.pkg-price {
    font-family: var(--font-head);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gold);
}

/* --- Testimonials --- */
.testimonial-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px;
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    font-size: 4rem;
    color: var(--gold);
    opacity: 0.3;
    position: absolute;
    top: 16px;
    left: 24px;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-text {
    font-size: 0.9375rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 20px;
    padding-top: 24px;
    font-style: italic;
}

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

.testimonial-avatar {
    width: 40px;
    height: 40px;
    background: var(--navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--gold);
    flex-shrink: 0;
}

.testimonial-author-info h5 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 2px;
}

.testimonial-author-info span {
    font-size: 0.75rem;
    color: var(--gray-400);
}

.star-rating {
    color: var(--gold);
    font-size: 0.75rem;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

/* --- FAQ --- */
.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    cursor: pointer;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--navy);
    transition: color var(--transition);
    user-select: none;
    gap: 16px;
}

.faq-question:hover { color: var(--gold); }

.faq-toggle {
    width: 28px;
    height: 28px;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition);
    font-size: 0.875rem;
    color: var(--gray-600);
}

.faq-item.open .faq-toggle {
    background: var(--gold);
    color: var(--white);
    transform: rotate(45deg);
}

.faq-answer {
    display: none;
    padding: 0 0 20px;
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.7;
}

.faq-item.open .faq-answer { display: block; }

/* --- Contact CTA --- */
.cta-section {
    background: var(--gold-pale);
    border-top: 3px solid var(--gold);
    padding: 72px 0;
    text-align: center;
}

.cta-section h2 {
    margin-bottom: 16px;
}

.cta-section p {
    max-width: 520px;
    margin: 0 auto 32px;
}

/* --- Footer --- */
.site-footer {
    background: var(--navy);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand-text {
    font-family: var(--font-head);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.footer-desc {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.55);
    margin-bottom: 8px;
}

.footer-contact-item i {
    color: var(--gold);
    margin-top: 2px;
    flex-shrink: 0;
}

.footer-col h5 {
    font-family: var(--font-head);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin-bottom: 18px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
    transition: color var(--transition);
    text-decoration: none;
}

.footer-links a:hover { color: var(--gold); }

.footer-bottom {
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.35);
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-legal a {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.35);
    transition: color var(--transition);
    text-decoration: none;
}

.footer-legal a:hover { color: var(--gold); }

/* --- Alert / Flash Messages --- */
.flash-msg {
    padding: 14px 20px;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 20px;
    border-left: 4px solid transparent;
}

.flash-success {
    background: #F0FDF4;
    color: #15803D;
    border-left-color: #15803D;
}

.flash-error {
    background: #FEF2F2;
    color: #DC2626;
    border-left-color: #DC2626;
}

.flash-info {
    background: #EFF6FF;
    color: #1D4ED8;
    border-left-color: #1D4ED8;
}

.flash-warning {
    background: #FFFBEB;
    color: #B45309;
    border-left-color: #B45309;
}

/* --- Forms --- */
.form-group { margin-bottom: 20px; }

.form-label {
    display: block;
    font-family: var(--font-head);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
}

.form-label span { color: #DC2626; }

.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--text);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(13,27,42,0.08);
}

.form-control::placeholder { color: var(--gray-400); }

textarea.form-control { resize: vertical; min-height: 120px; }

.form-hint {
    font-size: 0.75rem;
    color: var(--gray-400);
    margin-top: 4px;
}

/* --- Page Header (inner pages) --- */
.page-header {
    background: var(--navy);
    padding: 56px 0 48px;
    border-bottom: 3px solid var(--gold);
}

.page-header h1 {
    color: var(--white);
    margin-bottom: 8px;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.page-header p {
    color: rgba(255,255,255,0.65);
    font-size: 1rem;
    margin: 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.45);
    margin-bottom: 12px;
}

.breadcrumb a {
    color: rgba(255,255,255,0.45);
    transition: color var(--transition);
}

.breadcrumb a:hover { color: var(--gold); }

.breadcrumb-sep { color: rgba(255,255,255,0.25); }

/* --- Cart & Checkout --- */
.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th {
    font-family: var(--font-head);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray-600);
    padding: 12px 16px;
    border-bottom: 2px solid var(--border);
    text-align: left;
}

.cart-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    vertical-align: middle;
}

.cart-table tr:hover td { background: var(--gray-50); }

.cart-summary {
    background: var(--gray-50);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--gray-600);
    border-bottom: 1px solid var(--border);
}

.cart-summary-row:last-of-type {
    border-bottom: none;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.0625rem;
    color: var(--navy);
    padding-top: 14px;
    margin-top: 6px;
}

/* --- Status Badges --- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-family: var(--font-head);
}

.badge-pending { background: #FEF3C7; color: #B45309; }
.badge-received { background: #DBEAFE; color: #1D4ED8; }
.badge-completed { background: #D1FAE5; color: #065F46; }
.badge-cancelled { background: #FEE2E2; color: #991B1B; }

/* --- UPI Payment Panel --- */
.upi-panel {
    background: var(--gray-50);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px;
    text-align: center;
}

.upi-qr {
    width: 180px;
    height: 180px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin: 0 auto 16px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.upi-id-display {
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    background: var(--white);
    border: 1px solid var(--border);
    padding: 10px 20px;
    border-radius: var(--radius);
    display: inline-block;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

/* --- Product Detail --- */
.product-detail-img {
    width: 100%;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--navy);
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.deliverables-list {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.deliverables-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--gray-600);
}

.deliverables-list li:last-child { border-bottom: none; }

.deliverables-list i {
    color: var(--gold);
    font-size: 0.875rem;
    flex-shrink: 0;
}

/* --- Insights / Blog --- */
.insight-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition);
}

.insight-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.insight-card-body {
    padding: 24px;
}

.insight-date {
    font-family: var(--font-head);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 8px;
}

.insight-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.4;
    margin-bottom: 8px;
}

.insight-card-excerpt {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 16px;
}

/* --- Admin Panel --- */
.admin-wrap {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 240px;
    background: var(--navy);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 100;
}

.admin-sidebar-logo {
    padding: 24px 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.admin-sidebar-logo span {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1rem;
    color: var(--white);
}

.admin-sidebar-logo small {
    display: block;
    font-size: 0.7rem;
    color: var(--gold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 2px;
}

.admin-nav {
    padding: 16px 0;
    flex: 1;
}

.admin-nav-section {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.25);
    padding: 12px 20px 4px;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255,255,255,0.65);
    transition: all var(--transition);
    text-decoration: none;
}

.admin-nav a:hover, .admin-nav a.active {
    color: var(--white);
    background: rgba(255,255,255,0.07);
    border-left: 3px solid var(--gold);
}

.admin-nav a i {
    width: 18px;
    text-align: center;
    font-size: 0.875rem;
}

.admin-main {
    margin-left: 240px;
    flex: 1;
    background: var(--gray-50);
    min-height: 100vh;
}

.admin-topbar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0 28px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}

.admin-topbar h1 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
}

.admin-content { padding: 28px; }

.stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    border-top: 3px solid transparent;
}

.stat-card.gold-top { border-top-color: var(--gold); }
.stat-card.navy-top { border-top-color: var(--navy); }
.stat-card.green-top { border-top-color: #059669; }
.stat-card.red-top { border-top-color: #DC2626; }

.stat-label {
    font-family: var(--font-head);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: 8px;
}

.stat-value {
    font-family: var(--font-head);
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0;
}

.admin-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.admin-card-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-card-header h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--navy);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.admin-table th {
    font-family: var(--font-head);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray-400);
    padding: 12px 20px;
    text-align: left;
    background: var(--gray-50);
    border-bottom: 1px solid var(--border);
}

.admin-table td {
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
    color: var(--gray-600);
    vertical-align: middle;
}

.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--gray-50); }

/* --- Invoice Print Styles --- */
@media print {
    .no-print, .site-nav, .site-footer, .admin-sidebar, .admin-topbar { display: none !important; }
    .invoice-page { margin: 0; padding: 0; }
    .invoice-container { box-shadow: none; border: none; }
}

.invoice-container {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 48px;
    max-width: 860px;
    margin: 0 auto;
    box-shadow: var(--shadow-md);
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--navy);
}

.invoice-company h2 {
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 4px;
}

.invoice-company address {
    font-style: normal;
    font-size: 0.8rem;
    color: var(--gray-600);
    line-height: 1.6;
}

.invoice-meta {
    text-align: right;
}

.invoice-number {
    font-family: var(--font-head);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--gold);
    margin-bottom: 4px;
}

.invoice-date {
    font-size: 0.8rem;
    color: var(--gray-600);
}

.invoice-items-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}

.invoice-items-table th {
    background: var(--navy);
    color: var(--white);
    font-family: var(--font-head);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 10px 16px;
    text-align: left;
}

.invoice-items-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
    color: var(--gray-600);
}

.invoice-items-table tfoot td {
    font-weight: 600;
    color: var(--navy);
    font-family: var(--font-head);
    border-bottom: none;
    border-top: 2px solid var(--border);
}

.invoice-items-table tfoot tr:last-child td {
    font-size: 1rem;
    color: var(--gold);
}

.invoice-footer-text {
    text-align: center;
    font-size: 0.75rem;
    color: var(--gray-400);
    padding-top: 24px;
    border-top: 1px solid var(--border);
    margin-top: 24px;
    font-style: italic;
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-right { display: none; }
    .consulting-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 767px) {
    .section-pad { padding: 56px 0; }
    .nav-menu, .nav-actions .btn { display: none; }
    .nav-hamburger { display: flex; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .admin-sidebar { width: 100%; position: relative; }
    .admin-main { margin-left: 0; }
    .admin-wrap { flex-direction: column; }
    .invoice-container { padding: 24px; }
    .invoice-header { flex-direction: column; gap: 20px; }
    .invoice-meta { text-align: left; }
}

/* Mobile nav drawer */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    z-index: 1000;
    padding: 24px;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-nav-drawer.open { right: 0; }
.mobile-nav-overlay.open { display: block; }

.mobile-nav-drawer a {
    display: block;
    font-family: var(--font-head);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--navy);
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
}

.mobile-nav-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--navy);
}
