/* =========================================================
   PORTFOLIO SITE STYLES
   Palette: ink navy + paper white + gold accent
   Type: Space Grotesk (headings) + Inter (body)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
    --ink: #14161F;
    --ink-soft: #2B2E3B;
    --paper: #F6F5F1;
    --paper-dim: #EBE9E2;

    /* Brand colors, taken from the Sandesh Poudel logo (orange -> pink gradient) */
    --brand-orange: #F7941D;
    --brand-pink: #EE1E79;
    --brand-gradient: linear-gradient(90deg, var(--brand-orange), var(--brand-pink));

    /* Kept as aliases so the rest of the stylesheet (buttons, links, nav
       underline, footer hovers) automatically picks up the new brand look. */
    --gold: var(--brand-pink);
    --teal: var(--brand-orange);

    --line: #DEDBD2;
    --text-muted: #6B6E7A;
    --radius: 4px;
    --max-width: 1080px;
    --max-width-lg: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 600;
    line-height: 1.15;
    margin: 0 0 0.5em;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; max-width: 68ch; }

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; border-radius: var(--radius); }

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

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

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    padding-bottom: 18px;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--ink);
}
.logo:hover { text-decoration: none; }
.logo-img { height: 42px; width: auto; display: block; }

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-nav a {
    color: var(--ink-soft);
    font-weight: 500;
    font-size: 0.95rem;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
}

.site-nav a:hover { text-decoration: none; border-bottom-color: var(--gold); }
.site-nav a.active { color: var(--ink); border-bottom-color: var(--gold); }

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

/* ---------- Dropdown nav (Services / Case Study / Resources) ---------- */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { display: flex; align-items: center; gap: 4px; cursor: pointer; }
.nav-dropdown-toggle .caret { font-size: 0.7em; }

.nav-dropdown-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(20,22,31,0.12);
    padding: 14px;
    min-width: 300px;
    z-index: 60;
    gap: 4px;
}
.nav-dropdown:hover .nav-dropdown-panel { display: flex; flex-direction: column; }

.nav-dropdown-item {
    display: flex;
    flex-direction: column;
    padding: 10px 14px;
    border-radius: 6px;
    border-bottom: none !important;
}
.nav-dropdown-item:hover { background: var(--paper-dim); text-decoration: none !important; }
.nav-dropdown-item-title { font-weight: 600; color: var(--ink); font-size: 0.92rem; }
.nav-dropdown-item-desc { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }

.btn-quick-inquiry {
    background: var(--gold);
    color: var(--ink) !important;
    padding: 9px 20px;
    border-radius: 999px;
    font-weight: 600;
    border-bottom: none !important;
    white-space: nowrap;
}
.btn-quick-inquiry:hover { background: #c9126a; text-decoration: none !important; }

/* ---------- New footer ---------- */
.site-footer-new { background: var(--ink); color: #C9CAD4; padding-top: 48px; font-size: 0.92rem; }
.footer-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; padding-bottom: 32px; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: #C9CAD4; }
.footer-col a:hover { color: var(--gold); text-decoration: none; }
.footer-connect p { margin: 0 0 8px; color: #C9CAD4; }
.footer-connect a { color: #C9CAD4; }

.footer-legal { border-top: 1px solid #2B2E3B; padding: 18px 0; text-align: center; font-size: 0.85rem; }
.footer-legal a { color: #C9CAD4; }
.footer-legal a:hover { color: var(--gold); text-decoration: none; }
.footer-legal-sep { margin: 0 10px; color: #4A4D5C; }

.footer-bottom-bar { background: #0E0F16; padding: 16px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom-inner p { margin: 0; color: #8A8D9A; font-size: 0.85rem; }
.footer-socials a { margin-left: 14px; color: #C9CAD4; font-size: 0.85rem; }
.footer-socials a:first-child { margin-left: 0; }
.footer-socials a:hover { color: var(--gold); }

/* ---------- Hero (Home) ---------- */
.hero {
    background: #fff;
    color: var(--ink);
    padding: 70px 0 60px;
    border-bottom: 1px solid var(--line);
}

.hero .container {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 48px;
    align-items: center;
    max-width: var(--max-width-lg);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--paper-dim);
    border: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
}
.hero-badge::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand-gradient);
    display: inline-block;
}

.hero h1 { color: var(--ink); }
.hero h1 .grad-text {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p.lede {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 52ch;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 22px 0 20px; }

.btn-outline-dark {
    background: transparent;
    border: 1.5px solid var(--ink);
    color: var(--ink);
    font-weight: 600;
}
.btn-outline-dark:hover { background: var(--ink); color: #fff; text-decoration: none; }

.trust-line { display: flex; flex-wrap: wrap; gap: 18px; }
.trust-line span { font-size: 0.88rem; color: var(--text-muted); }
.trust-line span::before { content: '✓ '; color: var(--brand-orange); font-weight: 700; }

/* Rating / social-proof card on the right of the hero */
.hero-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 18px 40px rgba(20,22,31,0.08);
}
.hero-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.hero-card-rating { display: flex; align-items: center; gap: 10px; }
.hero-card-rating .stars { color: var(--brand-orange); letter-spacing: 1px; }
.hero-card-rating .score { font-weight: 700; font-size: 1.1rem; }
.hero-card-rating .note { font-size: 0.78rem; color: var(--text-muted); display: block; }
.hero-card-tag {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--brand-pink);
    background: rgba(238,30,121,0.08);
    padding: 4px 10px;
    border-radius: 999px;
}
.hero-card-sub { font-size: 0.82rem; color: var(--text-muted); margin: 0 0 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.hero-card-clients { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.hero-card-clients span {
    display: block;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--ink-soft);
    background: var(--paper-dim);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 4px;
}
.hero-card-stats { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 16px; }
.hero-card-stats div { text-align: center; }
.hero-card-stats strong { display: block; font-size: 1.3rem; font-family: 'Space Grotesk', sans-serif; }
.hero-card-stats strong .grad-text {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-card-stats span { font-size: 0.76rem; color: var(--text-muted); }

/* ---------- Marquee strip ---------- */
.marquee-strip {
    background: var(--paper-dim);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    padding: 14px 0;
}
.marquee-track {
    display: flex;
    width: max-content;
    gap: 60px;
    animation: marquee 28s linear infinite;
}
.marquee-track span {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-soft);
    white-space: nowrap;
}
@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ---------- Stats band ---------- */
.stats-band {
    background: var(--brand-gradient);
    padding: 44px 0;
}
.stats-band .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 24px;
    text-align: center;
}
.stats-band strong { display: block; color: #fff; font-size: clamp(1.7rem, 3vw, 2.2rem); font-family: 'Space Grotesk', sans-serif; }
.stats-band span { color: rgba(255,255,255,0.9); font-size: 0.9rem; font-weight: 600; }

/* ---------- Section heading kicker ---------- */
.kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--brand-pink);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.kicker::before { content: ''; width: 26px; height: 2px; background: var(--brand-gradient); display: inline-block; }
.section-intro { max-width: 62ch; color: var(--text-muted); margin-bottom: 32px; }

/* ---------- Why choose us / feature cards ---------- */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
}
.why-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 26px;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.why-card:hover { border-color: var(--brand-pink); box-shadow: 0 14px 30px rgba(238,30,121,0.10); }
.why-card-icon {
    width: 46px; height: 46px;
    border-radius: 10px;
    background: var(--paper-dim);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 16px;
}
.why-card h3 { margin-bottom: 8px; font-size: 1.1rem; }
.why-card p { font-size: 0.92rem; color: var(--text-muted); margin: 0; }

/* ---------- Highlight callout band ---------- */
.highlight-band {
    background: var(--ink);
    border-radius: 16px;
    padding: 36px 32px;
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
    color: #fff;
}
.highlight-band .highlight-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.2rem, 5vw, 3rem);
    font-weight: 700;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-align: center;
    min-width: 130px;
}
.highlight-band .highlight-number small { display: block; font-size: 0.85rem; font-weight: 600; color: #C9CAD4; -webkit-text-fill-color: #C9CAD4; }
.highlight-band-text { flex: 1; min-width: 240px; }
.highlight-band-text h3 { color: #fff; margin-bottom: 6px; }
.highlight-band-text p { color: #C9CAD4; margin: 0; }

/* ---------- Service cards (Home) ---------- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 22px;
}
.service-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 24px;
}
.service-card-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: var(--brand-gradient);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 14px;
}
.service-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.service-card p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

/* ---------- Process steps ---------- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
}
.process-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 24px;
    position: relative;
}
.process-num {
    position: absolute;
    top: 16px; right: 20px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--paper-dim);
}
.process-card-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: rgba(238,30,121,0.08);
    color: var(--brand-pink);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 14px;
}
.process-card h3 { font-size: 1rem; margin-bottom: 6px; }
.process-card p { font-size: 0.88rem; color: var(--text-muted); margin: 0; }

/* ---------- Testimonials ---------- */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}
.testimonial-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 26px;
}
.testimonial-quote { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 18px; }
.testimonial-person strong { display: block; font-size: 0.92rem; }
.testimonial-person span { font-size: 0.8rem; color: var(--text-muted); }

/* ---------- FAQ accordion ---------- */
.faq-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.faq-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 4px 20px;
}
.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 16px 24px 16px 0;
    font-weight: 600;
    position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 0; top: 14px;
    font-size: 1.3rem;
    color: var(--brand-pink);
}
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { font-size: 0.9rem; color: var(--text-muted); padding-bottom: 16px; margin: 0; }

/* ---------- Final CTA band (gradient) ---------- */
.cta-band {
    background: linear-gradient(120deg, var(--ink) 0%, #2a1330 55%, var(--brand-pink) 130%);
    color: #fff;
    text-align: center;
    padding: 64px 24px;
    border-radius: 0;
}
.cta-band .kicker { justify-content: center; color: #ffd1e8; }
.cta-band .kicker::before { background: #fff; }
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band h2 .grad-text { background: linear-gradient(90deg,#ffd18a,#ff9ac6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cta-band p { color: #D8D6E8; max-width: 56ch; margin: 0 auto 26px; }
.cta-band .hero-actions { justify-content: center; }
.cta-band .btn-outline-dark { border-color: #fff; color: #fff; }
.cta-band .btn-outline-dark:hover { background: #fff; color: var(--ink); }
.cta-band .cta-note { display: block; margin-top: 16px; font-size: 0.8rem; color: #C9CAD4; }

.hero-photo img {
    border-radius: 6px;
    aspect-ratio: 4/5;
    object-fit: cover;
    width: 100%;
}

.hero-photo-placeholder {
    aspect-ratio: 4/5;
    background: var(--ink-soft);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.9rem;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 12px 26px;
    background: var(--gold);
    color: var(--ink);
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}
.btn:hover { background: #c9126a; text-decoration: none; }

.btn-outline {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--ink);
}
.btn-outline:hover { border-color: var(--ink); background: transparent; }

/* ---------- Sections ---------- */
.section {
    padding: 64px 0;
    border-bottom: 1px solid var(--line);
}

.section-title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 28px;
}

.section-title-row .view-all { font-weight: 500; }

/* ---------- Services / skills list ---------- */
.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.pill-list li {
    background: var(--paper-dim);
    border: 1px solid var(--line);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.9rem;
}

/* ---------- CTA band ---------- */
.cta-band {
    background: var(--paper-dim);
    text-align: center;
    padding: 56px 24px;
}
.cta-band h2 { margin-bottom: 18px; }

/* ---------- About page ---------- */
.about-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 48px;
    padding: 56px 0;
}

.about-photo-placeholder {
    aspect-ratio: 3/4;
    background: var(--paper-dim);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.about-body h2 { margin-top: 1.2em; }

/* ---------- Blog listing ---------- */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
    padding: 56px 0;
}

.post-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.post-card-img {
    aspect-ratio: 16/10;
    background: var(--paper-dim);
    overflow: hidden;
}
.post-card-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }

.post-card-body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }

.post-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.post-card h3 { margin-bottom: 8px; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--teal); }

.post-excerpt { color: var(--text-muted); font-size: 0.95rem; flex: 1; }

.read-more { font-weight: 600; margin-top: 12px; }

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

/* ---------- Single blog post ---------- */
.post-hero { padding: 56px 0 24px; }
.post-hero .post-meta { margin-bottom: 14px; }
.post-featured-img { margin: 24px 0; }
.post-content { padding-bottom: 56px; }
.post-content p, .post-content li { max-width: 72ch; }
.post-content img { margin: 20px 0; }
.post-content h2 { margin-top: 1.4em; }

.back-link { display: inline-block; margin-bottom: 24px; font-weight: 500; }

/* ---------- Contact page ---------- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 56px 0;
}

.contact-info-item {
    margin-bottom: 20px;
}
.contact-info-item .label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-muted);
    display: block;
    margin-bottom: 4px;
}

form .field { margin-bottom: 18px; }
form label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 0.92rem;
}
form input[type="text"],
form input[type="email"],
form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.95rem;
    background: #fff;
    color: var(--ink);
}
form input:focus, form textarea:focus {
    outline: 2px solid var(--gold);
    outline-offset: 1px;
}
form textarea { min-height: 140px; resize: vertical; }

.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 22px;
    font-size: 0.95rem;
}
.alert-success { background: #E4F1EA; color: #1F6F5C; border: 1px solid #BEE0CE; }
.alert-error { background: #FBE7E4; color: #A4341F; border: 1px solid #F2C2BA; }

/* ---------- Simple content pages (Pricing, My Work, Case Studies, Training) ---------- */
.simple-page { padding: 56px 0; max-width: 780px; }
.simple-page-image { max-width: 100%; border-radius: 6px; margin: 20px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 780px) {
    .hero .container, .about-layout, .contact-layout {
        grid-template-columns: 1fr;
    }
    .hero-photo { order: -1; max-width: 220px; }

    .nav-toggle { display: block; }
    .site-nav {
        display: none;
        flex-direction: column;
        align-items: stretch;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        padding: 12px 24px 20px;
        gap: 14px;
    }
    .site-nav.open { display: flex; }
    .btn-quick-inquiry { text-align: center; }

    /* On mobile, dropdowns open on tap instead of hover */
    .nav-dropdown-panel {
        display: none;
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 4px 0 4px 14px;
        min-width: 0;
    }
    .nav-dropdown:hover .nav-dropdown-panel { display: none; }
    .nav-dropdown.open .nav-dropdown-panel { display: flex; }

    .hero-card-clients { grid-template-columns: repeat(2, 1fr); }
    .highlight-band { flex-direction: column; text-align: center; }
    .stats-band .container { grid-template-columns: repeat(2, 1fr); }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
