/* ================================
   Ryan Dolley — Personal Site
   ================================ */

:root {
    --color-bg: #ffffff;
    --color-bg-alt: #f7f8fa;
    --color-text: #1a1a2e;
    --color-text-muted: #555b6e;
    --color-primary: #2563eb;
    --color-primary-dark: #1d4ed8;
    --color-accent: #0f172a;
    --color-border: #e2e8f0;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --max-width: 1100px;
    --section-padding: 5rem 0;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* ================================
   Header / Nav
   ================================ */

/* ================================
   Announcement Bar
   ================================ */

.announcement-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--color-accent);
    z-index: 101;
    padding: 0.5rem 0;
    text-align: center;
}

.announcement-bar a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.announcement-bar a:hover {
    color: #fff;
}

.announcement-bar strong {
    color: #fff;
}

.site-header {
    position: fixed;
    top: 2.25rem;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    z-index: 100;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--color-text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--color-text);
}

.nav-cta {
    background: var(--color-primary);
    color: #fff !important;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    transition: background 0.2s !important;
}

.nav-cta:hover {
    background: var(--color-primary-dark) !important;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: 0.3s;
}

/* ================================
   Hero
   ================================ */

.hero {
    padding: 10rem 0 4rem;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.hero-content {
    flex: 1;
}

.hero h1 {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 520px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

.hero-image {
    flex-shrink: 0;
}

/* Buttons */
.btn {
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    border-color: var(--color-text-muted);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
}

/* Placeholder images */
.headshot-placeholder,
.video-placeholder {
    width: 280px;
    height: 280px;
    border-radius: 12px;
    background: var(--color-bg-alt);
    border: 2px dashed var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.video-placeholder {
    width: 100%;
    max-width: 480px;
    height: 270px;
}

/* ================================
   Credibility Bar
   ================================ */

.credibility-bar {
    background: var(--color-accent);
    padding: 2.5rem 0;
}

.credibility-items {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    text-align: center;
}

.credibility-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.credibility-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.credibility-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ================================
   Client Logos
   ================================ */

.logos-section {
    padding: 3rem 0;
    border-bottom: 1px solid var(--color-border);
}

.logos-label {
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1.5rem;
}

.logos-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3.5rem;
    flex-wrap: wrap;
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--color-text-muted);
    opacity: 0.5;
    transition: opacity 0.2s;
}

.logo-item:hover .logo-text {
    opacity: 0.8;
}

/* ================================
   Hero Eyebrow
   ================================ */

.hero-eyebrow {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
}

.hero-eyebrow em {
    font-style: normal;
}

/* ================================
   The Book
   ================================ */

.book-content {
    display: flex;
    align-items: center;
    gap: 3.5rem;
}

.book-cover {
    flex-shrink: 0;
}

.book-placeholder {
    width: 220px;
    height: 320px;
    border-radius: 8px;
    background: var(--color-accent);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    box-shadow: 8px 8px 24px rgba(0, 0, 0, 0.15);
}

.book-text {
    flex: 1;
}

.book-text p {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.book-text .btn {
    margin-top: 0.5rem;
}

/* ================================
   Who I Work With
   ================================ */

.audience-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.audience-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 2.5rem;
}

.audience-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.audience-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.audience-list {
    list-style: none;
    padding: 0;
}

.audience-list li {
    position: relative;
    padding-left: 1.25rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.audience-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-primary);
}

/* ================================
   Sections
   ================================ */

.section {
    padding: var(--section-padding);
}

.section-alt {
    background: var(--color-bg-alt);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.section-intro {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

/* Services Detail (below audience cards) */
.services-detail {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 2rem;
    transition: box-shadow 0.2s;
    position: relative;
}

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

.service-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Featured card */
.featured-card {
    border-color: var(--color-primary);
    border-width: 2px;
}

.card-badge {
    position: absolute;
    top: -0.7rem;
    left: 1.5rem;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
}

/* ================================
   SDB Section
   ================================ */

.sdb-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.sdb-text {
    flex: 1;
}

.sdb-text p {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.sdb-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.sdb-stat {
    display: flex;
    flex-direction: column;
}

.sdb-stat-number {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
}

.sdb-stat-label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.sdb-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.sdb-video {
    flex-shrink: 0;
}

.sdb-video iframe {
    border-radius: 10px;
    max-width: 100%;
}

/* ================================
   Articles / Latest Thinking
   ================================ */

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.article-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 1.75rem;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.article-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border-color: var(--color-primary);
}

.article-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary);
    background: rgba(37, 99, 235, 0.08);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.article-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.article-card p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ================================
   About
   ================================ */

.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-text {
    flex: 1;
}

.about-text p {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.about-image {
    flex-shrink: 0;
}

/* ================================
   Contact
   ================================ */

.contact-container {
    text-align: center;
    max-width: 600px;
}

.contact-actions {
    margin-top: 1rem;
}

.contact-alt {
    margin-top: 1rem;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.contact-alt a {
    color: var(--color-primary);
    text-decoration: none;
}

.contact-alt a:hover {
    text-decoration: underline;
}

/* ================================
   Footer
   ================================ */

.site-footer {
    border-top: 1px solid var(--color-border);
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
}

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

/* ================================
   Responsive
   ================================ */

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 4rem;
        left: 0;
        right: 0;
        background: var(--color-bg);
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
        border-bottom: 1px solid var(--color-border);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero {
        padding: 8rem 0 3rem;
    }

    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        max-width: 100%;
    }

    .hero-cta {
        justify-content: center;
        flex-wrap: wrap;
    }

    .credibility-items {
        flex-wrap: wrap;
    }

    .credibility-item {
        flex: 1 1 40%;
    }

    .logos-grid {
        gap: 2rem;
    }

    .audience-grid {
        grid-template-columns: 1fr;
    }

    .services-detail {
        grid-template-columns: 1fr;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .book-content,
    .sdb-content,
    .about-content {
        flex-direction: column;
    }

    .book-content {
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
