/* AppWT Brand Colors for aparis.us */
:root {
    --forest: #1B4332;
    --gold: #F4A261;
    --platinum: #F8F9FA;
    --obsidian: #0D2818;
    --white: #FFFFFF;
    --light-gray: #E9ECEF;
    --dark-gray: #495057;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--obsidian);
    background-color: var(--white);
}

img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

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

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

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    overflow-x: hidden;
}

/* Header & Navigation */
header {
    background-color: var(--obsidian);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-nav {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    display: block;
}

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

.nav-links a {
    color: var(--platinum);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--obsidian) 0%, var(--forest) 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    color: var(--gold);
}

.hero .subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    margin-bottom: 1.5rem;
    color: var(--platinum);
}

.hero-intro {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

/* Page Header */
.page-header {
    background-color: var(--forest);
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 0.5rem;
    color: var(--gold);
}

.page-header .subtitle {
    font-size: 1.2rem;
    color: var(--platinum);
}

/* Buttons */
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    min-width: 150px;
    transition: all 0.3s ease;
    white-space: normal;
}

.btn-primary {
    background-color: var(--gold);
    color: var(--obsidian);
}

.btn-primary:hover {
    background-color: var(--forest);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--forest);
    border: 2px solid var(--gold);
}

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

/* Secondary buttons in dark sections need white text */
.hero .btn-secondary,
.appwt .btn-secondary {
    color: var(--white);
}

/* Sections */
section {
    padding: 4rem 0;
}

section h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 2rem;
    color: var(--forest);
    text-align: center;
}

section h3 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin-bottom: 1rem;
    color: var(--forest);
}

/* Credentials Section */
.credentials {
    background-color: var(--platinum);
}

.credentials-summary {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    font-size: 1.1rem;
}

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

.credential-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.credential-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.credential-card h3 {
    color: var(--gold);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

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

.expertise-item {
    padding: 1.5rem;
    background-color: var(--platinum);
    border-radius: 8px;
    border-left: 4px solid var(--gold);
}

/* AppWT Section */
.appwt {
    background-color: var(--obsidian);
    color: var(--white);
}

.appwt h2 {
    color: var(--gold);
}

.company-highlights {
    max-width: 600px;
    margin: 2rem auto;
    list-style: none;
}

.company-highlights li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--forest);
    font-size: 1.1rem;
}

.company-highlights li:last-child {
    border-bottom: none;
}

/* Contact Info Section */
.contact-info,
.contact-methods {
    background-color: var(--platinum);
}

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

.contact-item,
.contact-card {
    text-align: center;
    padding: 2rem;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.contact-item h3,
.contact-card h3 {
    color: var(--forest);
    margin-bottom: 1rem;
}

.contact-note {
    font-size: 0.9rem;
    color: var(--dark-gray);
    margin-top: 0.5rem;
}

/* About Page Specific */
.bio,
.credentials-section,
.expertise-detail,
.philosophy,
.recognition,
.employment-history,
.skills-section,
.education-section,
.volunteering-section {
    padding: 3rem 0;
}

/* Employment Timeline */
.employment-history {
    background-color: var(--platinum);
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gold);
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    padding-left: 25px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -36px;
    top: 5px;
    width: 14px;
    height: 14px;
    background: var(--gold);
    border-radius: 50%;
    border: 3px solid var(--forest);
}

.timeline-content {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.timeline-content h3 {
    color: var(--forest);
    margin-bottom: 0.3rem;
    text-align: left;
}

.timeline-company {
    font-weight: 600;
    color: var(--gold);
    font-size: 1.05rem;
    margin-bottom: 0.3rem;
}

.timeline-date {
    color: var(--dark-gray);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.timeline-location {
    color: var(--dark-gray);
    font-size: 0.85rem;
    font-style: italic;
    margin-bottom: 0.8rem;
}

/* Cert Date */
.cert-date {
    display: block;
    font-size: 0.85rem;
    color: var(--dark-gray);
    font-weight: 400;
    margin-top: 0.2rem;
}

/* Skills Section */
.skills-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: var(--platinum);
    padding: 1.5rem;
    border-radius: 8px;
    border-top: 3px solid var(--gold);
}

.skill-category h3 {
    text-align: left;
    margin-bottom: 1rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: var(--white);
    color: var(--forest);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid var(--light-gray);
    white-space: normal;
}

/* Education Section */
.education-section {
    background-color: var(--platinum);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.education-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-bottom: 3px solid var(--gold);
}

.education-card h3 {
    color: var(--forest);
    margin-bottom: 0.5rem;
}

.education-field {
    color: var(--dark-gray);
    margin-bottom: 0.3rem;
}

.education-date {
    font-size: 0.9rem;
    color: var(--gold);
    font-weight: 600;
}

/* Volunteering Section */
.volunteering-section {
    background-color: var(--platinum);
}

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

.volunteer-card {
    background: var(--white);
    padding: 1.2rem;
    border-radius: 8px;
    border-left: 3px solid var(--gold);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.volunteer-card h3 {
    font-size: 1rem;
    color: var(--forest);
    margin-bottom: 0.3rem;
    text-align: left;
}

.volunteer-role {
    font-weight: 600;
    color: var(--obsidian);
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.volunteer-cause {
    font-size: 0.85rem;
    color: var(--dark-gray);
    font-style: italic;
}

.bio-summary p,
.philosophy p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.credentials-detail {
    margin-bottom: 3rem;
}

.credentials-detail ul {
    list-style: none;
    max-width: 600px;
    margin: 1rem auto;
}

.credentials-detail li {
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    background-color: var(--platinum);
    border-left: 3px solid var(--gold);
}

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

.expertise-category {
    padding: 1.5rem;
    background-color: var(--platinum);
    border-radius: 8px;
}

blockquote {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--forest);
    border-left: 4px solid var(--gold);
    padding-left: 2rem;
    margin: 2rem 0;
}

/* Resume Download */
.resume-download {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--light-gray);
}

.resume-download h3 {
    margin-bottom: 0.5rem;
}

.recognition-list {
    list-style: none;
    max-width: 600px;
    margin: 0 auto;
}

.recognition-list li {
    padding: 1rem;
    margin-bottom: 0.5rem;
    background-color: var(--platinum);
    border-left: 4px solid var(--gold);
}

/* Contact Page Specific */
.contact-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
}

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

.office-address,
.office-hours {
    padding: 2rem;
    background-color: var(--platinum);
    border-radius: 8px;
}

.areas-list,
.consultation-topics {
    max-width: 600px;
    margin: 1.5rem auto;
    line-height: 2;
}

.cta-section {
    background-color: var(--platinum);
    text-align: center;
}

/* Footer */
footer {
    background-color: var(--obsidian);
    color: var(--platinum);
    padding: 2rem 0;
    text-align: center;
}

footer a {
    color: var(--gold);
}

footer p {
    margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
    }

    section, .section, .container {
        max-width: 100vw;
        overflow-x: hidden;
    }

    h1, h2, h3, h4, h5, h6, p, li, span, a {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .credentials-grid,
    .expertise-grid,
    .contact-grid,
    .contact-cards,
    .expertise-list,
    .office-details,
    .skills-categories,
    .education-grid,
    .volunteer-grid {
        grid-template-columns: 1fr;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }

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

@media (max-width: 480px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .logo {
        margin-bottom: 1rem;
    }
}
