/* ========================================
   MODERN PROFESSIONAL MINIMALIST DESIGN
   Dylan Silver - Austin Real Estate Expert
   ======================================== */

/* ========== ROOT & TYPOGRAPHY ========== */

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #0066cc;
    --accent-color: #ff6b35;
    --light-bg: #f8f9fa;
    --border-color: #e0e0e0;
    --text-primary: #2c3e50;
    --text-secondary: #666;
    --white: #ffffff;
    --spacing-unit: 1rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--white);
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    color: var(--primary-color);
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

/* ========== CONTAINER & LAYOUT ========== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ========== NAVIGATION ========== */

.navbar {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

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

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

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

.nav-links .btn-cta {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
}

.nav-links .btn-cta:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

/* Keep the Contact CTA button's text white when it's the active page
   (otherwise .nav-links a.active turns it blue-on-blue and disappears). */
.nav-links a.active.btn-cta,
.nav-links a.btn-cta:hover {
    color: var(--white);
}

/* ========== HAMBURGER MENU ========== */

.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    gap: 0.4rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .navbar .container {
        position: relative;
        flex-direction: row;
        gap: 1rem;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        margin: 0;
        padding: 0;
    }

    .nav-links.active {
        max-height: 400px;
    }

    .nav-links li {
        border-bottom: 1px solid var(--border-color);
        list-style: none;
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 1rem;
        font-size: 1rem;
    }
}

/* ========== HERO SECTION ========== */

.hero {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    text-align: center;
}

/* Video-backed hero variant */
.hero-video {
    position: relative;
    overflow: hidden;
    background: #0a1a2f;
    padding: 8rem 0;
}

.hero-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(10, 26, 47, 0.75) 0%,
        rgba(0, 102, 204, 0.55) 100%);
    z-index: 1;
}

.hero-video > .container {
    position: relative;
    z-index: 2;
}

.hero-video .hero-content h1 {
    color: var(--white);
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.hero-video .hero-subtitle {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.hero-video .hero-description {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.hero-video .btn-secondary {
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--secondary-color);
    border-color: var(--white);
}

.hero-video .btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
}

@media (prefers-reduced-motion: reduce) {
    .hero-video-bg {
        display: none;
    }
    .hero-video {
        background:
            linear-gradient(135deg, rgba(10, 26, 47, 0.7), rgba(0, 102, 204, 0.5)),
            url('../videos/austin-skyline-poster.jpg') center/cover no-repeat;
    }
    .hero-overlay {
        display: none;
    }
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

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

/* ========== BUTTONS ========== */

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    font-size: 1rem;
    text-align: center;
}

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

.btn-primary:hover {
    background-color: var(--accent-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

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

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

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

/* ========== LEAD CAPTURE ========== */

.lead-capture {
    background-color: var(--light-bg);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 3rem 0;
}

.lead-capture-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.lead-capture-text h2 {
    margin-bottom: 0.75rem;
}

.lead-capture-text p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

.lead-capture-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.lead-capture-row input {
    flex: 1;
    min-width: 160px;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.lead-capture-row input:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.lead-capture-fine {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ========== BOOK A CALL ========== */

.book-call {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 3.5rem 0;
    scroll-margin-top: 90px;
}

.book-call-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 768px) {
    .book-call-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .book-call-action {
        width: 100%;
    }
    .book-call-action .btn-primary {
        display: block;
        width: 100%;
    }
}

.book-call-text h2 {
    color: var(--white);
    margin-bottom: 0.75rem;
}

.book-call-text p {
    color: rgba(255,255,255,0.85);
    margin-bottom: 1rem;
}

.book-call-bullets {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
}

.book-call-bullets li {
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
}

.book-call-bullets li::before {
    content: "✓ ";
    font-weight: 700;
}

.book-call-action {
    text-align: center;
    flex-shrink: 0;
}

.book-call-action .btn-primary {
    background-color: var(--white);
    color: var(--secondary-color);
    border-color: var(--white);
    white-space: nowrap;
}

.book-call-action .btn-primary:hover {
    background-color: var(--accent-color);
    color: var(--white);
    border-color: var(--accent-color);
}

.book-call-note {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.65);
}

/* ========== CTA BUTTONS ========== */

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

/* ========== SECTIONS ========== */

section {
    padding: 4rem 0;
}

.page-header {
    padding: 3rem 0;
    background-color: var(--light-bg);
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.2rem;
    margin-bottom: 0;
}

/* ========== SERVICES OVERVIEW ========== */

.services-overview h2,
.credentials h2,
.why-work h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    border-top: 4px solid transparent;
}

/* Whole-card clickability is only active in the highlighted state.
   Desktop: when hovered. Mobile: when .in-view (closest to viewport center). */
.service-card.is-clickable:hover,
.service-card.is-clickable.in-view,
.resource-card.is-clickable:hover,
.resource-card.is-clickable.in-view {
    cursor: pointer;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 1rem;
}

.service-card p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.link-arrow {
    display: inline-block;
    font-weight: 600;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}

.link-arrow:hover {
    transform: translateX(4px);
}

/* ========== CREDENTIALS ========== */

.credentials {
    background-color: var(--light-bg);
}

.credentials-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.credential {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 4px;
    border-left: 4px solid var(--secondary-color);
}

.credential-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* ========================================
   BOX HIGHLIGHT SYSTEM
   Desktop (>=769px): solid blue fill on :hover only
   Mobile  (<=768px): solid blue fill on .in-view
                      (.in-view is toggled by JS on scroll,
                       since hover is not available on touch)
   ======================================== */

/* Smooth transition for every highlightable content card */
.service-card,
.credential-link,
.credential-btn,
.credential-item,
.expertise-item,
.disclosure-item,
.why-card,
.resource-card,
.podcast-card,
.philosophy-card,
.expertise-block,
.project-card,
.github-card,
.contact-method,
.area-card,
.faq-item,
.bio-card,
.intro-card {
    transition: background-color 0.3s ease, color 0.3s ease,
                border-color 0.3s ease, transform 0.3s ease,
                box-shadow 0.3s ease;
}

/* --- Desktop: highlight on hover only --- */
@media (min-width: 769px) {
    .service-card:hover,
    .credential-link:hover,
    .credential-btn:hover,
    .credential-item:hover,
    .expertise-item:hover,
    .disclosure-item:hover,
    .why-card:hover,
    .resource-card:hover,
    .podcast-card:hover,
    .philosophy-card:hover,
    .expertise-block:hover,
    .project-card:hover,
    .github-card:hover,
    .contact-method:hover,
    .area-card:hover,
    .faq-item:hover,
    .bio-card:hover,
    .intro-card:hover,
    .service-block:hover {
        background-color: var(--secondary-color);
        border-color: var(--secondary-color);
        border-top-color: var(--secondary-color);
        border-left-color: var(--secondary-color);
        color: var(--white);
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0, 102, 204, 0.25);
    }

    .service-card:hover *,
    .credential-link:hover *,
    .credential-btn:hover *,
    .credential-item:hover *,
    .expertise-item:hover *,
    .disclosure-item:hover *,
    .why-card:hover *,
    .resource-card:hover *,
    .podcast-card:hover *,
    .philosophy-card:hover *,
    .expertise-block:hover *,
    .project-card:hover *,
    .github-card:hover *,
    .contact-method:hover *,
    .area-card:hover *,
    .faq-item:hover *,
    .bio-card:hover *,
    .intro-card:hover *,
    .service-block:hover * {
        color: var(--white);
    }

    .podcast-card:hover .podcast-features li:before {
        color: var(--white);
    }

    /* Buttons inside a highlighted card invert to white bg + blue text
       so they don't blend into the new blue background. */
    .service-card:hover .btn,
    .credential-link:hover .btn,
    .credential-item:hover .btn,
    .expertise-item:hover .btn,
    .disclosure-item:hover .btn,
    .why-card:hover .btn,
    .resource-card:hover .btn,
    .podcast-card:hover .btn,
    .philosophy-card:hover .btn,
    .expertise-block:hover .btn,
    .project-card:hover .btn,
    .github-card:hover .btn,
    .contact-method:hover .btn,
    .area-card:hover .btn,
    .faq-item:hover .btn,
    .bio-card:hover .btn,
    .intro-card:hover .btn,
    .service-block:hover .btn {
        background-color: var(--white);
        color: var(--secondary-color);
        border-color: var(--white);
    }
}

/* --- Mobile: highlight on scroll-into-view only --- */
@media (max-width: 768px) {
    .service-card.in-view,
    .credential-link.in-view,
    .credential-btn.in-view,
    .credential-item.in-view,
    .expertise-item.in-view,
    .disclosure-item.in-view,
    .why-card.in-view,
    .resource-card.in-view,
    .podcast-card.in-view,
    .philosophy-card.in-view,
    .expertise-block.in-view,
    .project-card.in-view,
    .github-card.in-view,
    .contact-method.in-view,
    .area-card.in-view,
    .faq-item.in-view,
    .bio-card.in-view,
    .intro-card.in-view,
    .service-block.in-view {
        background-color: var(--secondary-color);
        border-color: var(--secondary-color);
        border-top-color: var(--secondary-color);
        border-left-color: var(--secondary-color);
        color: var(--white);
        box-shadow: 0 8px 24px rgba(0, 102, 204, 0.25);
    }

    .service-card.in-view *,
    .credential-link.in-view *,
    .credential-btn.in-view *,
    .credential-item.in-view *,
    .expertise-item.in-view *,
    .disclosure-item.in-view *,
    .why-card.in-view *,
    .resource-card.in-view *,
    .podcast-card.in-view *,
    .philosophy-card.in-view *,
    .expertise-block.in-view *,
    .project-card.in-view *,
    .github-card.in-view *,
    .contact-method.in-view *,
    .area-card.in-view *,
    .faq-item.in-view *,
    .bio-card.in-view *,
    .intro-card.in-view *,
    .service-block.in-view * {
        color: var(--white);
    }

    .podcast-card.in-view .podcast-features li:before {
        color: var(--white);
    }

    /* Buttons inside a highlighted card invert to white bg + blue text */
    .service-card.in-view .btn,
    .credential-link.in-view .btn,
    .credential-item.in-view .btn,
    .expertise-item.in-view .btn,
    .disclosure-item.in-view .btn,
    .why-card.in-view .btn,
    .resource-card.in-view .btn,
    .podcast-card.in-view .btn,
    .philosophy-card.in-view .btn,
    .expertise-block.in-view .btn,
    .project-card.in-view .btn,
    .github-card.in-view .btn,
    .contact-method.in-view .btn,
    .area-card.in-view .btn,
    .faq-item.in-view .btn,
    .bio-card.in-view .btn,
    .intro-card.in-view .btn,
    .service-block.in-view .btn {
        background-color: var(--white);
        color: var(--secondary-color);
        border-color: var(--white);
    }
}

.credential strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* ========== CTA SECTION ========== */

.cta-section {
    background-color: var(--light-bg);
    text-align: center;
    padding: 5rem 0;
}

.cta-section h2 {
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

/* ========== SERVICE DETAILS ========== */

.service-detail {
    padding: 4rem 0;
}

.service-detail.alternate {
    background-color: var(--light-bg);
}

.service-detail-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
}

.service-detail-text h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.service-detail-text h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-features {
    list-style: none;
    margin-bottom: 2rem;
}

.service-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    line-height: 1.7;
}

.service-features li:last-child {
    border-bottom: none;
}

.service-features strong {
    color: var(--primary-color);
}

.service-cta-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.service-block {
    background-color: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    width: 100%;
}

/* ========== ABOUT SECTIONS ========== */

.about-bio {
    padding: 4rem 0;
}

.bio-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.bio-card {
    background-color: var(--light-bg);
    padding: 2.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
    cursor: pointer;
}

.bio-card h2,
.bio-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.bio-card p {
    line-height: 1.8;
    margin-bottom: 1rem;
}

.bio-card p:last-child {
    margin-bottom: 0;
}

.bio-header {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 2rem;
}

.bio-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.bio-header h2 {
    margin: 0;
}

.bio-content p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

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

.credentials-detail {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.credential-item {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    border-top: 4px solid var(--secondary-color);
    cursor: pointer;
}

.credential-item h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.credential-item p {
    margin-bottom: 1rem;
    font-weight: 500;
}

.credential-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.professional-focus {
    padding: 4rem 0;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.expertise-item {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

.expertise-item h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.expertise-item p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========== PODCAST SECTION ========== */

.featured-podcast,
.investor-fuel {
    padding: 4rem 0;
}

.featured-podcast {
    background-color: var(--light-bg);
}

.podcast-card {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.podcast-card.featured {
    border-top: 6px solid var(--secondary-color);
}

.podcast-header h2 {
    margin-bottom: 0.5rem;
}

.podcast-host {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 2rem;
}

.podcast-description p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.podcast-features {
    list-style: none;
    margin: 1.5rem 0;
}

.podcast-features li {
    padding: 0.75rem 0 0.75rem 2rem;
    position: relative;
    color: var(--text-secondary);
}

.podcast-features li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.podcast-cta {
    margin-top: 2rem;
}

.why-podcasting {
    text-align: center;
}

.why-podcasting p {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.why-card {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}

.why-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* ========== FEATURED CONTENT ========== */

.featured-content {
    padding: 4rem 0;
    background-color: var(--light-bg);
}

.featured-content h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.resource-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
    text-align: center;
}

.resource-card h3 {
    margin-bottom: 1rem;
}

.resource-card p {
    margin-bottom: 1.5rem;
}

/* ========== DEVELOPER SECTION ========== */

.developer-intro {
    padding: 4rem 0;
}

.intro-card {
    background-color: var(--light-bg);
    padding: 2.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
    cursor: pointer;
}

.intro-card h2 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.intro-card p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.intro-card p:last-child {
    margin-bottom: 0;
}

.tech-stack {
    margin-top: 3rem;
    padding: 2rem;
    background-color: var(--light-bg);
    border-radius: 8px;
}

.tech-stack h3 {
    margin-bottom: 0.5rem;
    text-align: center;
}

.tech-stack-hint {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.skill {
    background-color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 20px;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.2s ease, color 0.2s ease,
                transform 0.2s ease, box-shadow 0.2s ease;
}

.skill:hover,
.skill:focus-visible {
    background-color: var(--secondary-color);
    color: var(--white);
    outline: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.25);
}

.skill.is-active {
    background-color: var(--secondary-color);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.skill-info {
    margin-top: 1.5rem;
    padding: 1.25rem 1.5rem;
    background-color: var(--white);
    border-left: 4px solid var(--secondary-color);
    border-radius: 6px;
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 0.95rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.skill-info[hidden] {
    display: none;
}

.skill-info strong {
    color: var(--secondary-color);
    display: block;
    margin-bottom: 0.4rem;
    font-size: 1rem;
}

.github-section {
    padding: 4rem 0;
    background-color: var(--light-bg);
}

.github-section > .container > p {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.github-card {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-align: center;
    border-top: 6px solid var(--secondary-color);
}

.github-card h3 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.github-desc {
    line-height: 1.8;
    margin-bottom: 2rem;
}

.github-cta {
    margin-top: 2rem;
}

/* ========== PROJECT PHILOSOPHY ========== */

.project-philosophy {
    padding: 4rem 0;
}

.project-philosophy h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.philosophy-card {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

.philosophy-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* ========== EXPERTISE AREAS ========== */

.expertise-areas {
    padding: 4rem 0;
    background-color: var(--light-bg);
}

.expertise-areas h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.expertise-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.expertise-block {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    border-top: 4px solid var(--secondary-color);
}

.expertise-block h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* ========== FEATURED PROJECTS ========== */

.featured-projects {
    padding: 4rem 0;
}

.featured-projects > .container > p {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

.project-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* ========== CONNECT & FOLLOW SECTION ========== */

.connect-follow {
    padding: 4rem 0;
    background-color: var(--light-bg);
}

.connect-follow h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.connect-follow > .container > p {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.social-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.social-group {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-top: 4px solid var(--secondary-color);
}

.social-group h3 {
    margin-bottom: 2rem;
    text-align: center;
    color: var(--primary-color);
}

.social-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background-color: var(--light-bg);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-link:hover {
    background-color: var(--white);
    border-color: var(--secondary-color);
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 102, 204, 0.15);
}

.social-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
}

.social-label {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
}

/* ========== CONTACT SECTION ========== */

.contact-info {
    padding: 4rem 0;
}

.contact-info h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.contact-method {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    border-top: 4px solid var(--secondary-color);
}

.contact-method h3 {
    margin-bottom: 1rem;
}

.contact-link {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-top: 0.5rem;
}

.contact-link:hover {
    color: var(--accent-color);
}

/* ========== CONTACT FORM ========== */

.contact-form-section {
    padding: 4rem 0;
    background-color: var(--light-bg);
}

.contact-form-section h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.contact-form-section > .container > p {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
}

.form-group select {
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232c3e50' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
    line-height: 1.5;
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
    min-width: 18px;
    min-height: 18px;
    cursor: pointer;
}

.form-group input[type="checkbox"] + label {
    display: inline;
    margin-left: 0;
    cursor: pointer;
}

.form-note {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 1rem;
    text-align: center;
}

/* ========== RESPONSE TIME ========== */

.response-time {
    padding: 3rem 0;
    background-color: var(--light-bg);
}

.response-time h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.response-info {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.response-info p {
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* ========== SERVICE AREAS ========== */

.service-areas {
    padding: 4rem 0;
}

.service-areas > .container > p {
    text-align: center;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.area-card {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    border-left: 4px solid var(--secondary-color);
}

.area-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* ========== FAQ ========== */

.contact-faq {
    padding: 4rem 0;
    background-color: var(--light-bg);
}

.contact-faq h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.faq-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.faq-item {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

.faq-item h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========== FOOTER SOCIAL LINKS ========== */

.footer-social {
    background-color: var(--primary-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
}

.footer-social-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.footer-social-group h4 {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--white);
}

.footer-social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    text-decoration: none;
    color: var(--white);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.footer-social-link:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* ========== FOOTER ========== */

.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 4rem 0 2rem;
    margin-top: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    margin-bottom: 1.5rem;
    color: var(--white);
}

.footer-section p {
    margin-bottom: 0.75rem;
    color: #ccc;
}

.footer-section a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: #999;
    font-size: 0.9rem;
}

/* ========== DISCLOSURES ========== */

.disclosures {
    padding: 4rem 0;
}

.disclosures h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.disclosures > .container > p {
    text-align: center;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.disclosure-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.disclosure-item {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    border-left: 4px solid var(--secondary-color);
}

.disclosure-item h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* ========== RESPONSIVE DESIGN ========== */

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    body {
        font-size: 15px;
    }

    .bio-header {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
        text-align: center;
    }

    .bio-photo {
        width: 150px;
        height: 150px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.4rem;
    }

    .navbar .container {
        padding: 1rem 2rem;
    }

    .nav-brand {
        font-size: 1.3rem;
    }

    .nav-links {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 0.75rem 1rem;
        border-radius: 4px;
        font-size: 0.9rem;
    }

    .nav-links .btn-cta {
        width: 100%;
        padding: 0.75rem 1rem;
    }

    .hero {
        padding: 3rem 0;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

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

    .btn,
    .btn-primary,
    .btn-secondary {
        width: 100%;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
    }

    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    section {
        padding: 2.5rem 0;
    }

    /* Form improvements */
    .contact-form {
        padding: 1.5rem;
    }

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

    .form-group label {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        min-height: 44px;
        font-size: 16px;
        padding: 0.875rem;
        -webkit-appearance: none;
        appearance: none;
        border-radius: 4px;
    }

    .form-group select {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232c3e50' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 0.75rem center;
        padding-right: 2.5rem;
    }

    .form-group textarea {
        min-height: 130px;
        line-height: 1.5;
    }

    .form-group input[type="checkbox"] {
        min-width: 18px;
        min-height: 18px;
        cursor: pointer;
    }

    .form-group label {
        cursor: pointer;
    }

    /* Grid adjustments */
    .services-grid,
    .credentials-list,
    .expertise-grid,
    .why-grid,
    .philosophy-grid,
    .contact-methods,
    .areas-grid,
    .faq-items,
    .disclosure-links,
    .credentials-detail {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Social links */
    .social-links {
        gap: 1rem;
    }

    .social-link {
        padding: 0.75rem;
        font-size: 0.95rem;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }

    .social-icon {
        font-size: 1.5rem;
    }

    /* Contact info cards */
    .contact-method {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }

    .contact-info h2 {
        margin-bottom: 2rem;
    }

    /* CTA buttons */
    .cta-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    /* Service cards */
    .service-card {
        padding: 1.5rem;
    }

    .service-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    /* Page header */
    .page-header {
        padding: 2rem 0;
    }

    .page-header h1 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }

    .page-header p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    body {
        font-size: 14px;
    }

    h1 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }

    h2 {
        font-size: 1.4rem;
        margin-bottom: 1.2rem;
    }

    h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    h4 {
        font-size: 1rem;
    }

    .hero {
        padding: 2rem 0;
    }

    .hero-content h1 {
        font-size: 1.6rem;
        margin-bottom: 0.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .nav-brand {
        font-size: 1rem;
        font-weight: 700;
    }

    .navbar .container {
        padding: 0.75rem 1rem;
    }

    .nav-links {
        gap: 0.5rem;
    }

    .nav-links a {
        font-size: 0.8rem;
        padding: 0.65rem 0.75rem;
    }

    .nav-links .btn-cta {
        padding: 0.65rem 0.75rem;
        font-size: 0.8rem;
    }

    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        min-height: 44px;
        border-radius: 4px;
    }

    .btn-large {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }

    section {
        padding: 1.75rem 0;
    }

    /* Form optimizations for small screens */
    .contact-form {
        padding: 1rem;
    }

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

    .form-group label {
        font-size: 0.9rem;
        display: block;
        margin-bottom: 0.4rem;
        font-weight: 600;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        width: 100%;
        font-size: 16px;
        min-height: 44px;
        padding: 0.75rem;
        border: 1px solid var(--border-color);
        border-radius: 4px;
        -webkit-appearance: none;
        appearance: none;
    }

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

    .form-note {
        font-size: 0.8rem;
        margin-top: 1rem;
    }

    /* Service cards */
    .service-card {
        padding: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .service-icon {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    .service-card h3 {
        font-size: 1.05rem;
        margin-bottom: 0.75rem;
    }

    .service-card p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    /* Page header */
    .page-header {
        padding: 1.5rem 0;
    }

    .page-header h1 {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }

    .page-header p {
        font-size: 0.95rem;
    }

    /* Social links */
    .social-link {
        padding: 0.5rem;
        font-size: 0.85rem;
        min-height: 40px;
        gap: 0.4rem;
    }

    .social-icon {
        font-size: 1.25rem;
    }

    .social-label {
        display: none;
    }

    /* Contact section */
    .contact-method h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .contact-method {
        padding: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .contact-link {
        font-size: 0.95rem;
    }

    /* CTA section */
    .cta-section {
        padding: 2.5rem 0;
    }

    .cta-section h2 {
        font-size: 1.4rem;
        margin-bottom: 0.75rem;
    }

    .cta-section p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    .cta-buttons .btn {
        width: 100%;
        font-size: 0.9rem;
    }

    /* Footer */
    .footer-section h4 {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }

    .footer-section p,
    .footer-section a {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }

    .footer-bottom {
        font-size: 0.8rem;
        padding: 1.5rem 0;
    }

    /* Responsive images */
    img {
        max-width: 100%;
        height: auto;
    }
}

/* Extra small devices (360px and below) */
@media (max-width: 360px) {
    .container {
        padding: 0 0.75rem;
    }

    h1 {
        font-size: 1.4rem;
        margin-bottom: 0.75rem;
    }

    h2 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    h3 {
        font-size: 1rem;
    }

    .hero-content h1 {
        font-size: 1.4rem;
    }

    .nav-brand {
        font-size: 0.9rem;
    }

    .nav-links a {
        font-size: 0.75rem;
        padding: 0.5rem 0.5rem;
    }

    .social-link {
        padding: 0.4rem;
        font-size: 0.8rem;
        min-height: 38px;
    }

    .btn {
        padding: 0.65rem 1rem;
        font-size: 0.85rem;
        min-height: 42px;
    }

    .lead-capture-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .lead-capture-row {
        flex-direction: column;
    }

    .lead-capture-row input {
        min-width: 100%;
    }

    .book-call-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .book-call-bullets {
        justify-content: center;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* ========== CREDENTIAL BUTTON (SSFR box) ========== */

.credential-btn {
    appearance: none;
    -webkit-appearance: none;
    background: none;
    border: 1px solid var(--border-color);
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    text-align: left;
    width: 100%;
}

/* ========== INLINE CERT LINK (services list) ========== */

.cert-link-btn {
    appearance: none;
    -webkit-appearance: none;
    background: none;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    padding: 0;
    text-decoration: underline;
}

.cert-link-btn:hover {
    color: var(--primary-color);
}

/* ========== SFR CERTIFICATE MODAL ========== */

.sfr-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9000;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.sfr-modal-overlay.is-open {
    display: flex;
}

.sfr-modal-box {
    position: relative;
    background: var(--white);
    border-radius: 12px;
    max-width: 720px;
    width: 100%;
    padding: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.sfr-modal-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.sfr-modal-close {
    position: absolute;
    top: -0.75rem;
    right: -0.75rem;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.sfr-modal-close:hover {
    background: var(--accent-color);
}

/* ========== CREDENTIAL BUTTON (SSFR box) ========== */

.credential-btn {
    appearance: none;
    -webkit-appearance: none;
    background: none;
    border: 1px solid var(--border-color);
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    text-align: left;
    width: 100%;
}

.credential-btn:hover {
    background: var(--light-bg);
    border-color: var(--primary-color);
    color: inherit;
}

/* ========== INLINE CERT LINK (services list) ========== */

.cert-link-btn {
    appearance: none;
    -webkit-appearance: none;
    background: none;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    padding: 0;
    text-decoration: underline;
}

.cert-link-btn:hover {
    color: var(--primary-color);
}

/* ========== SFR CERTIFICATE MODAL ========== */

.sfr-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9000;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.sfr-modal-overlay.is-open {
    display: flex;
}

.sfr-modal-box {
    position: relative;
    background: var(--white);
    border-radius: 12px;
    max-width: 720px;
    width: 100%;
    padding: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.sfr-modal-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.sfr-modal-close {
    position: absolute;
    top: -0.75rem;
    right: -0.75rem;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.sfr-modal-close:hover {
    background: var(--accent-color);
}
