/* ============================================
   Phil Tinsley Consulting — Global Stylesheet
   ============================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --navy: #1B365D;
    --navy-light: #2A4A7A;
    --navy-dark: #0F1F3A;
    --white: #FFFFFF;
    --off-white: #F7F8FA;
    --grey-light: #E8EBF0;
    --grey-mid: #C5CAD3;
    --grey-text: #5A6577;
    --text-dark: #1A1A2E;
    --accent: #3B82C4;
    --accent-light: #EBF3FB;
    --max-width: 960px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--navy); }

img { max-width: 100%; height: auto; display: block; }

/* ===== NAVIGATION ===== */
nav {
    background: var(--navy);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
/* v2 */

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
}

.nav-logo .monogram {
    width: 34px;
    height: 34px;
    border: 1.5px solid rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.nav-links { display: flex; gap: 1.75rem; list-style: none; }

.nav-links a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    transition: color 0.2s;
    padding: 0.25rem 0;
}

.nav-links a:hover,
.nav-links a.active { color: var(--white); }

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

/* ===== HERO SECTIONS ===== */
.hero {
    background: var(--navy);
    color: var(--white);
    padding: 4rem 2rem 3.5rem;
}

.hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.5px;
    max-width: 700px;
}

.hero .subtitle {
    font-size: 1.05rem;
    font-weight: 300;
    opacity: 0.8;
    margin-top: 0.75rem;
    max-width: 600px;
    line-height: 1.6;
}

.hero .services-line {
    font-size: 0.85rem;
    font-weight: 300;
    opacity: 0.6;
    margin-top: 1.5rem;
}

.hero-cta {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ===== PAGE HERO (smaller, for inner pages) ===== */
.page-hero {
    background: var(--navy);
    color: var(--white);
    padding: 2.5rem 2rem 2rem;
}

.page-hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.page-hero h1 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.page-hero p {
    font-size: 1rem;
    font-weight: 300;
    opacity: 0.8;
    margin-top: 0.5rem;
    max-width: 580px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 0.7rem 1.6rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

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

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

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.4);
}

.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); color: var(--white); }

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

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

/* ===== SECTIONS ===== */
.section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3.5rem 2rem;
}

.section-alt { background: var(--off-white); }

.section-heading {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.section-sub {
    color: var(--grey-text);
    margin-bottom: 2rem;
    max-width: 600px;
}

/* ===== GRID LAYOUTS ===== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2rem; }

/* ===== CARDS ===== */
.card {
    background: var(--white);
    border: 1px solid var(--grey-light);
    border-radius: 6px;
    padding: 1.75rem;
    transition: box-shadow 0.2s;
}

.card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); }

.card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.card p { color: var(--grey-text); font-size: 0.92rem; }

.card .price {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
}

/* ===== SERVICE CARDS ===== */
.service-card {
    background: var(--white);
    border: 1px solid var(--grey-light);
    border-radius: 8px;
    padding: 2rem;
}

.service-card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.service-card-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy);
}

.service-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    white-space: nowrap;
}

.service-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.service-card p {
    color: var(--grey-text);
    font-size: 0.92rem;
    margin-bottom: 0.5rem;
}

.service-card .btn {
    margin-top: 1.5rem;
}

.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.4rem;
    color: var(--grey-text);
    font-size: 0.9rem;
}

.service-features li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 600;
}

/* ===== SERVICE ITEMS (left-border style) ===== */
.service-item {
    padding-left: 1.25rem;
    border-left: 3px solid var(--grey-light);
    margin-bottom: 1.5rem;
}

.service-item:hover { border-left-color: var(--accent); }

.service-item h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}

.service-item p { color: var(--grey-text); font-size: 0.92rem; }

/* ===== PAIN POINTS ===== */
.pain-points { list-style: none; padding: 0; }

.pain-points li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.65rem;
    color: var(--grey-text);
    font-size: 0.95rem;
}

.pain-points li::before {
    content: "\2014";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 600;
}

/* ===== SECTOR TAGS ===== */
.sector-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.sector-tag {
    background: var(--off-white);
    color: var(--navy);
    padding: 0.35rem 0.85rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--grey-light);
}

/* ===== STATS BAR ===== */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 2rem 0;
}

.stat { text-align: center; }
.stat .number { font-size: 2rem; font-weight: 700; color: var(--navy); }
.stat .label { font-size: 0.82rem; color: var(--grey-text); margin-top: 0.25rem; }

/* ===== TESTIMONIAL ===== */
.testimonial {
    background: var(--accent-light);
    border-left: 4px solid var(--accent);
    padding: 1.5rem 1.75rem;
    border-radius: 0 6px 6px 0;
    margin: 2rem 0;
}

.testimonial blockquote {
    font-size: 1rem;
    color: var(--text-dark);
    font-style: italic;
    line-height: 1.7;
}

.testimonial cite {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--grey-text);
    font-style: normal;
}

/* ===== CONTACT BAR ===== */
.contact-bar {
    background: var(--navy-dark);
    border-top: 1px solid rgba(255,255,255,0.08);
}

.contact-bar-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.6rem 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.82rem;
}

.contact-bar a { color: rgba(255,255,255,0.75); text-decoration: none; }
.contact-bar a:hover { color: var(--white); }

/* ===== CONTACT METHOD ===== */
.contact-method {
    padding: 1.25rem;
    border: 1px solid var(--grey-light);
    border-radius: 6px;
    margin-bottom: 1rem;
}

.contact-method h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.contact-method p, .contact-method a {
    font-size: 0.9rem;
    color: var(--grey-text);
}

/* ===== CTA FOOTER ===== */
.cta-footer {
    background: var(--navy);
    color: var(--white);
    padding: 3.5rem 2rem;
    text-align: center;
}

.cta-footer h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.cta-footer p {
    color: rgba(255,255,255,0.7);
    max-width: 500px;
    margin: 0 auto 2rem;
}

.cta-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; }

/* ===== SITE FOOTER ===== */
.site-footer {
    background: var(--navy-dark);
    color: rgba(255,255,255,0.45);
    padding: 2rem;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
}

.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: rgba(255,255,255,0.45); text-decoration: none; font-size: 0.78rem; }
.footer-links a:hover { color: rgba(255,255,255,0.8); }

/* ===== ARTICLE STYLES (for insights/blog) ===== */
.articles-list { display: flex; flex-direction: column; gap: 0; }

.article-card {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--grey-light);
}

.article-card h2 { font-size: 1.15rem; font-weight: 700; color: var(--navy); margin-bottom: 0.3rem; }
.article-card h2 a { color: var(--navy); text-decoration: none; }
.article-card h2 a:hover { color: var(--accent); }
.article-date { font-size: 0.8rem; color: var(--grey-mid); display: block; margin-bottom: 0.35rem; }
.article-card p { color: var(--grey-text); font-size: 0.92rem; }
.read-more { font-size: 0.85rem; font-weight: 600; margin-top: 0.5rem; display: inline-block; }

/* ===== ARTICLE PAGE ===== */
.article-page { padding: 0; }
.article-header { margin-bottom: 2rem; }
.article-header h1 { font-size: 1.8rem; font-weight: 700; color: var(--navy); line-height: 1.3; }
.article-meta { font-size: 0.85rem; color: var(--grey-mid); margin-top: 0.5rem; }
.back-link { font-size: 0.85rem; color: var(--accent); display: inline-block; margin-bottom: 1rem; }
.back-link:hover { color: var(--navy); }
.article-footer { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--grey-light); }

/* ===== ARTICLE BODY ===== */
.article-body h2 { font-size: 1.3rem; font-weight: 700; color: var(--navy); margin: 2rem 0 0.75rem; }
.article-body h3 { font-size: 1.1rem; font-weight: 600; color: var(--text-dark); margin: 1.5rem 0 0.5rem; }
.article-body p { color: var(--grey-text); margin-bottom: 1rem; }
.article-body ul, .article-body ol { color: var(--grey-text); margin-bottom: 1rem; padding-left: 1.5rem; }
.article-body li { margin-bottom: 0.4rem; }
.article-body strong { color: var(--text-dark); }

/* ===== CONTACT FORM ===== */
.contact-form { max-width: 480px; }

.form-group { margin-bottom: 1.25rem; }

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.35rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--grey-light);
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color 0.2s;
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group textarea { resize: vertical; min-height: 100px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero h1 { font-size: 1.7rem; }
    .grid-2 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr; }
    .stats-bar { grid-template-columns: 1fr; gap: 1rem; }
    .nav-links { display: none; }
    .nav-toggle { display: block; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        background: var(--navy);
        padding: 1rem 2rem;
        gap: 0.75rem;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    .hero { padding: 3rem 1.5rem 2.5rem; }
    .section { padding: 2.5rem 1.5rem; }
    .footer-inner { flex-direction: column; gap: 1rem; text-align: center; }
    .cta-links { flex-direction: column; align-items: center; }
    .hero-cta { flex-direction: column; }
    .hero-cta .btn { text-align: center; }
    .service-card-header { flex-direction: column; }
}
