/*
Theme Name: DougBlauvelt Pro
Theme URI: https://www.dougblauvelt.net
Author: Doug Blauvelt
Author URI: https://www.dougblauvelt.net
Description: A clean, professional portfolio and client portal theme.
Version: 1.0
*/

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
    color: #1e293b;
    background: #ffffff;
    line-height: 1.6;
}

a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* =============================================
   LAYOUT
   ============================================= */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section { padding: 5rem 0; }
.section-alt { background: #f8fafc; }

/* =============================================
   HEADER & NAV
   ============================================= */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

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

.site-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.02em;
}

.site-logo span { color: #2563eb; }

.site-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.site-nav a {
    color: #475569;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.site-nav a:hover, .site-nav a.active {
    color: #2563eb;
    text-decoration: none;
}

.nav-portal-btn {
    background: #2563eb;
    color: #ffffff !important;
    padding: 0.45rem 1.1rem;
    border-radius: 6px;
    transition: background 0.2s !important;
}

.nav-portal-btn:hover {
    background: #1d4ed8 !important;
    color: #fff !important;
}

/* =============================================
   HERO
   ============================================= */
.hero {
    background: linear-gradient(135deg, #1e293b 0%, #1e3a5f 100%);
    color: #ffffff;
    padding: 7rem 0 6rem;
    text-align: center;
}

.hero-eyebrow {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #93c5fd;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.hero h1 span { color: #60a5fa; }

.hero-sub {
    font-size: 1.15rem;
    color: #cbd5e1;
    max-width: 560px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

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

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

.btn-primary {
    background: #2563eb;
    color: #ffffff;
}
.btn-primary:hover { background: #1d4ed8; color: #fff; text-decoration: none; }

.btn-outline {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline:hover { border-color: #fff; color: #fff; text-decoration: none; }

/* =============================================
   SECTION HEADINGS
   ============================================= */
.section-heading {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-heading h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.section-heading p {
    color: #64748b;
    font-size: 1.05rem;
    max-width: 520px;
    margin: 0 auto;
}

.section-divider {
    width: 48px;
    height: 4px;
    background: #2563eb;
    border-radius: 2px;
    margin: 0.75rem auto 0;
}

/* =============================================
   ABOUT
   ============================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}

.about-avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #1e3a5f);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    margin: 0 auto;
}

.about-text h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.about-text p {
    color: #475569;
    margin-bottom: 1rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.tag {
    background: #eff6ff;
    color: #2563eb;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid #bfdbfe;
}

/* =============================================
   PORTFOLIO GRID
   ============================================= */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.75rem;
}

.project-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.project-card-header {
    background: linear-gradient(135deg, #1e293b, #1e3a5f);
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.project-card-body { padding: 1.5rem; }

.project-card-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.project-card-body p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.project-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-top: 1px solid #f1f5f9;
    background: #f8fafc;
}

.project-tag {
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: #2563eb;
}

/* =============================================
   CLIENT PORTAL CTA
   ============================================= */
.portal-cta {
    background: linear-gradient(135deg, #1e293b 0%, #1e3a5f 100%);
    color: #ffffff;
    text-align: center;
    padding: 5rem 0;
}

.portal-cta h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.portal-cta p {
    color: #cbd5e1;
    font-size: 1.05rem;
    margin-bottom: 2rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* =============================================
   CONTACT
   ============================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-info p {
    color: #475569;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: #475569;
    font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    margin-bottom: 1rem;
    transition: border-color 0.2s;
    background: #fff;
    color: #1e293b;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.contact-form textarea { height: 140px; resize: vertical; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 2.5rem 0;
    text-align: center;
    font-size: 0.9rem;
}

.site-footer a { color: #60a5fa; }
.site-footer a:hover { color: #93c5fd; }

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

/* =============================================
   CLIENT PORTAL PAGE
   ============================================= */
.portal-header {
    background: linear-gradient(135deg, #1e293b 0%, #1e3a5f 100%);
    color: #fff;
    padding: 4rem 0 3rem;
    text-align: center;
}

.portal-header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.portal-header p { color: #cbd5e1; }

.download-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 8px rgba(0,0,0,0.07);
}

.download-table th {
    background: #f8fafc;
    padding: 1rem 1.25rem;
    text-align: left;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    border-bottom: 1px solid #e2e8f0;
}

.download-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.95rem;
    color: #475569;
}

.download-table tr:last-child td { border-bottom: none; }
.download-table tr:hover td { background: #f8fafc; }

.download-table .file-name {
    font-weight: 600;
    color: #1e293b;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #eff6ff;
    color: #2563eb;
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.2s;
}

.download-btn:hover {
    background: #dbeafe;
    text-decoration: none;
}

/* =============================================
   WORDPRESS PASSWORD FORM OVERRIDE
   ============================================= */
.post-password-form {
    max-width: 420px;
    margin: 5rem auto;
    padding: 2.5rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    text-align: center;
}

.post-password-form p:first-child {
    font-size: 1rem;
    color: #475569;
    margin-bottom: 1.5rem;
}

.post-password-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: left;
    color: #1e293b;
}

.post-password-form input[type=password] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-family: inherit;
}

.post-password-form input[type=submit] {
    width: 100%;
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.post-password-form input[type=submit]:hover { background: #1d4ed8; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
    .site-nav ul { gap: 1rem; }
    .footer-inner { flex-direction: column; text-align: center; }
    .portfolio-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
    .site-nav { display: none; }
    .hero { padding: 4rem 0; }
}
