/* Claire Kerper Pet Portraits - Main Stylesheet */

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

:root {
    --primary-color: #1F466D;
    --secondary-color: #77806D;
    --accent-color: #BCC6B1;
    --forest-green: #434A39;
    --text-color: #333;
    --light-gray: #EBE8E5;
    --lighter-gray: #F1F0ED;
    --lightest-gray: #F8F7F6;
    --border-color: #ddd;
    --white: #ffffff;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--lightest-gray);
}

/* Dark background for portfolio page only */
body.portfolio-page {
    background-color: var(--light-gray);
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 300;
    text-align: center;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 2rem;
    font-weight: 300;
    margin-top: 2rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-top: 1.5rem;
}

.tagline {
    text-align: center;
    font-size: 1.2rem;
    font-style: italic;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: underline;
}

a:hover {
    text-decoration: none;
}

/* Header and Navigation */
header {
    background-color: var(--primary-color);
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-title {
    text-align: center;
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.site-title a {
    color: var(--white);
    text-decoration: none;
}

.site-title a:hover {
    opacity: 0.9;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

nav li {
    position: relative;
}

nav a {
    color: var(--white);
    text-decoration: none;
    padding: 0.5rem 1rem;
    display: block;
    transition: background-color 0.3s ease;
    border-radius: 4px;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

nav a.active {
    background-color: var(--secondary-color);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--primary-color);
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border-radius: 4px;
    top: 100%;
    left: 0;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    padding: 0.75rem 1rem;
    border-radius: 0;
}

.dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Main Content Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.content {
    max-width: 900px;
    margin: 0 auto;
}

/* Home Page Styles */
.hero {
    text-align: center;
    padding: 3rem 1rem;
    background-color: var(--light-gray);
    margin-bottom: 2rem;
    border-radius: 8px;
}

.main-links {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 3rem 0;
    justify-content: center;
}

.link-card {
    display: block;
    background-color: var(--white);
    padding: 2rem;
    text-align: center;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    flex: 0 1 300px;
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.link-card h2 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    font-weight: 500;
    margin: 0 0 1rem 0;
}

.link-card p {
    color: var(--text-color);
    margin: 0;
}

/* Portfolio Grid - Masonry Style */
.portfolio-grid {
    column-count: 2;
    column-gap: 2rem;
    margin: 2rem 0;
}

/* Use regular grid for small collections (like human portraits) */
.portfolio-grid.small-collection {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-count: unset;
}

.portfolio-item {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    display: inline-block;
    width: 100%;
    margin-bottom: 2rem;
    break-inside: avoid;
}

.portfolio-item h3 {
    margin-top: 1rem;
    color: var(--secondary-color);
    font-size: 1.3rem;
}

.portfolio-item .details {
    color: #666;
    font-size: 0.95rem;
    margin: 0.5rem 0;
}

/* Portfolio Images - Stacked with portrait featured */
.portfolio-images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Force column break for manual column control */
.portfolio-item.start-new-column {
    break-before: column;
}

.portfolio-images .portrait-image {
    width: 100%;
}

.portfolio-images .pet-photo {
    width: 100%;
}

.portfolio-images img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

.portfolio-item > img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 1rem;
    display: block;
}

.portfolio-item .image-placeholder {
    width: 100%;
    height: 200px;
    background-color: var(--light-gray);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-style: italic;
    font-size: 0.9rem;
    text-align: center;
    padding: 0.5rem;
}

/* Awards Section */
.awards {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.awards h3 {
    margin-top: 0;
}

.awards ul {
    list-style: none;
    padding-left: 1rem;
}

.awards li {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.awards li:before {
    content: "★";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* Pricing Section (Prints Page) */
.pricing-section {
    display: flex;
    gap: 3rem;
    margin: 2rem 0;
    align-items: center;
}

.pricing-description {
    flex: 1;
}

.pricing-table {
    max-width: 250px;
    flex-shrink: 0;
}

/* Pricing Table */
.pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background-color: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Commissions pricing table - wider to accommodate more columns */
.commissions-pricing-table {
    max-width: 100%;
}

.pricing-table th,
.pricing-table td {
    padding: 0.5rem 1rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.pricing-table th {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 500;
}

.pricing-table tr:hover {
    background-color: var(--light-gray);
}

/* Step-by-Step Process */
.process-step {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: var(--light-gray);
    border-left: 4px solid var(--accent-color);
    border-radius: 4px;
}

.process-step h3 {
    margin-top: 0;
    color: var(--forest-green);
}

.process-step ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.process-step li {
    margin: 0.5rem 0;
}

/* Note/Alert Boxes */
.note {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
}

/* Call-to-Action Buttons */
.cta-container {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-size: 1.1rem;
    text-align: center;
}

.btn:hover {
    background-color: var(--forest-green);
    transform: translateY(-2px);
}

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

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

/* Events List */
.event {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.event h3 {
    margin-top: 0;
    color: var(--secondary-color);
}

.event-details {
    margin: 0.5rem 0;
    color: #666;
}

.event-details strong {
    color: var(--primary-color);
}

/* Contact Page */
.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 3rem 0;
    justify-content: center;
}

/* Testimonials Page */
.testimonials-grid {
    /* Two-column layout - commented out for single column */
    /* display: grid; */
    /* grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); */
    /* gap: 2rem; */

    /* Single column layout */
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 2rem 0;
}

.testimonial {
    background-color: var(--white);
    border-left: 4px solid var(--secondary-color);
    padding: 2rem;
    margin: 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-style: normal;
    color: var(--text-color);
}

.testimonial p {
    margin: 0.5rem 0;
}

.testimonial p:first-child {
    margin-top: 0;
}

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

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 4rem;
}

footer p {
    margin: 0.5rem 0;
}

footer a {
    color: var(--white);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .site-title {
        font-size: 1.4rem;
    }

    nav ul {
        gap: 0.25rem;
    }

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

    .portfolio-grid {
        column-count: 1;
    }

    .portfolio-grid.small-collection {
        grid-template-columns: 1fr;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        margin-left: 1rem;
    }

    .dropdown:hover .dropdown-content {
        display: none;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    .pricing-section {
        flex-direction: column;
        align-items: center;
    }

    .pricing-table {
        font-size: 0.9rem;
        max-width: 250px;
        margin: 1rem auto 2rem;
    }

    /* Commissions table should use full width on mobile */
    .commissions-pricing-table {
        max-width: 100%;
    }

    .pricing-table th,
    .pricing-table td {
        padding: 0.5rem;
    }

    .pricing-description {
        text-align: left;
        width: 100%;
    }

    .cta-container {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

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

    h1 {
        font-size: 1.6rem;
    }

    nav a {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }

    .commissions-pricing-table {
        font-size: 0.85rem;
        max-width: 100%;
    }

    .commissions-pricing-table th,
    .commissions-pricing-table td {
        padding: 0.4rem 0.5rem;
    }
}

/* Landscape mode on mobile - hide header title to save vertical space */
@media (max-height: 500px) {
    .site-title {
        display: none;
    }

    header {
        padding: 0.5rem 0;
    }
}
