/* ===== Claremont AI Site Styles ===== */

/* ===== Root Variables ===== */
:root {
    --primary-color: #12344d;
    --secondary-color: #1e5fa3;
    --accent-color: #f39200;
    --light-bg: #f5f7fa;
    --border-color: #ddd;
    --text-color: #333;
    --light-text: #666;
    --success-bg: #d4edda;
    --error-bg: #f8d7da;
}

/* ===== Global Styles ===== */
:root {
    --max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

/* ===== Links (Accessibility) ===== */
a {
    color: #0056b3;
    text-decoration: underline;
    transition: color 0.3s ease;
}

a:hover {
    color: #003d82;
    text-decoration: none;
}

a:focus {
    outline: 2px solid #f39200;
    outline-offset: 2px;
}

/* ===== Container ===== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ===== Header & Navigation ===== */
.site-header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
}

.brand:hover {
    opacity: 0.9;
}

.brand img {
    width: 48px;
    height: 48px;
    border-radius: 4px;
}

.site-nav {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    align-items: center;
}

.site-nav a {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    transition: opacity 0.3s ease;
    position: relative;
}

.site-nav a:hover {
    opacity: 0.8;
}

.site-nav a:focus {
    outline: 2px solid #f39200;
    outline-offset: 2px;
}

.site-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--accent-color);
}

.nav-cta {
    background-color: var(--accent-color);
    color: white;
    padding: 8px 16px !important;
    border-radius: 4px;
    font-weight: 600;
}

.nav-cta:hover {
    opacity: 0.9;
}

/* ===== Breadcrumbs ===== */
.breadcrumb-nav {
    background-color: var(--light-bg);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: '/';
    margin-left: 10px;
    color: var(--light-text);
}

.breadcrumb a {
    color: #003d82;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb li[aria-current="page"] {
    color: var(--light-text);
}

/* ===== Page Header ===== */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.page-header .lead {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* ===== Main Sections ===== */
.section {
    padding: 80px 20px;
}

.section-alt {
    background-color: var(--light-bg);
}

.section h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 2rem;
}

.section .lead {
    font-size: 1.1rem;
    color: var(--light-text);
    margin-bottom: 30px;
}

/* ===== Cards ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-card p {
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--light-text);
}

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 80px 20px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero .eyebrow {
    font-size: 0.9rem;
    opacity: 0.95;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.hero .lead {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.hero-points {
    list-style: none;
    padding: 0;
    line-height: 1.8;
    opacity: 0.95;
}

.hero-points li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
}

.hero-points li::before {
    content: '✓';
    position: absolute;
    left: 0;
    font-weight: bold;
}

.hero-card {
    position: relative;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.hero-card img {
    display: block;
    width: 100%;
    height: auto;
}

.hero-card-copy {
    padding: 25px;
}

.hero-card-copy h2 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.hero-card-copy p {
    color: var(--light-text);
    line-height: 1.7;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn:focus {
    outline: 2px solid #f39200;
    outline-offset: 2px;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-color);
}

.btn-secondary {
    background-color: var(--accent-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #d87c00;
}

.primary-cta {
    background-color: var(--accent-color);
    color: white;
    padding: 15px 32px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.primary-cta:hover {
    background-color: #d87c00;
}

.primary-cta:focus {
    outline: 2px solid #003d82;
    outline-offset: 2px;
}

.secondary-cta {
    background-color: transparent;
    color: white;
    padding: 15px 32px;
    border: 2px solid white;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.secondary-cta:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.secondary-cta:focus {
    outline: 2px solid #f39200;
    outline-offset: 2px;
}

/* ===== Footer ===== */
.site-footer {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 20px 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.site-footer h4 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.site-footer p {
    line-height: 1.7;
    opacity: 0.9;
    font-size: 0.95rem;
}

.site-footer ul {
    list-style: none;
    padding: 0;
}

.site-footer ul li {
    margin-bottom: 10px;
}

.site-footer a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: #e8e8e8;
    text-decoration: underline;
}

.site-footer small {
    opacity: 0.8;
    font-size: 0.85rem;
}

/* ===== Forms ===== */
.contact-form {
    max-width: 500px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(30, 95, 163, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

#form-message {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: none;
}

#form-message.success {
    background-color: var(--success-bg);
    color: #155724;
    border: 1px solid #c3e6cb;
}

#form-message.error {
    background-color: var(--error-bg);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ===== Utilities ===== */
.img-fluid {
    max-width: 100%;
    height: auto;
}

/* ===== Responsive Grids ===== */
.about-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-details-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.constrained-img {
    max-width: 100%;
    max-height: 400px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.quote-card {
    background: #f5f7fa;
    padding: 30px;
    border-radius: 10px;
    border-left: 4px solid #1e5fa3;
}

/* ===== Responsive Design ===== */

/* Tablet */
@media (max-width: 768px) {
    .site-header {
        padding: 12px 0;
    }

    .header-inner {
        flex-direction: column;
        gap: 15px;
    }

    .site-nav {
        width: 100%;
        justify-content: center;
        gap: 15px;
    }

    .site-nav a {
        font-size: 0.85rem;
    }

    .nav-cta {
        padding: 6px 12px !important;
        font-size: 0.85rem;
    }

    .page-header {
        padding: 40px 20px;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .page-header .lead {
        font-size: 1rem;
    }

    .hero {
        padding: 40px 20px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .primary-cta,
    .secondary-cta {
        width: 100%;
        text-align: center;
    }

    .section {
        padding: 50px 20px;
    }

    .section h2 {
        font-size: 1.6rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .about-details-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 30px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .brand span {
        display: none;
    }

    .site-nav {
        gap: 10px;
        font-size: 0.8rem;
    }

    .site-nav a {
        font-size: 0.75rem;
        padding: 5px 8px;
    }

    .page-header {
        padding: 30px 15px;
    }

    .page-header h1 {
        font-size: 1.4rem;
    }

    .page-header .lead {
        font-size: 0.9rem;
    }

    .hero {
        padding: 30px 15px;
    }

    .hero h1 {
        font-size: 1.4rem;
    }

    .hero .lead {
        font-size: 0.95rem;
    }

    .hero-actions {
        gap: 10px;
    }

    .section {
        padding: 30px 15px;
    }

    .section h2 {
        font-size: 1.4rem;
    }

    .breadcrumb {
        gap: 5px;
        font-size: 0.85rem;
    }

    .breadcrumb li:not(:last-child)::after {
        margin-left: 5px;
    }

    .constrained-img {
        max-height: 300px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== Print Styles ===== */
@media print {
    .site-header,
    .site-footer,
    .breadcrumb-nav {
        display: none;
    }

    body {
        color: black;
        background: white;
    }

    a {
        color: black;
        text-decoration: underline;
    }

    .btn,
    .primary-cta,
    .secondary-cta {
        border: 1px solid black;
    }
}
