/* Park Circus Dream House - Main Stylesheet */
/* Inspired by Substack aesthetic with warm cream background and Lora typography */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;1,400&display=swap');

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

html {
    font-size: 16px;
    line-height: 1.6;
}

body {
    font-family: 'Lora', 'Georgia', serif;
    color: #333;
    background-color: rgb(255, 233, 219);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Lora', 'Georgia', serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #2c2c2c;
    text-wrap: balance;
}

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

h2 {
    font-size: 2rem;
    margin-bottom: 1.25rem;
}

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

p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

a {
    color: #8B4513;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #654321;
    text-decoration: underline;
}

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

.main-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Header and Navigation */
.header {
    background-color: rgb(255, 233, 219);
    border-bottom: 1px solid rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c2c2c;
    text-decoration: none;
    font-family: 'Lora', 'Georgia', serif;
}

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

.nav-menu a {
    color: #2c2c2c;
    font-size: 1rem;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    border-bottom-color: #8B4513;
    text-decoration: none;
}

/* Hero Section */
.hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)), url('../images/main_bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.hero-content {
    max-width: 600px;
    padding: 2rem;
}

.hero h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.25rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Placeholder Images */
.img-placeholder {
    background-color: #f0f0f0;
    border: 2px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-style: italic;
    min-height: 200px;
}

/* Homepage Project Grid */
.homepage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 3rem 0 1rem;
}

.homepage-card {
    display: block;
    text-decoration: none;
    color: #2c2c2c;
}

.homepage-card:hover {
    text-decoration: none;
}

.homepage-card img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}

.homepage-card span {
    display: block;
    padding: 0.75rem 0;
    font-size: 1rem;
    font-weight: 500;
    color: #2c2c2c;
}

.homepage-card:hover span {
    color: #8B4513;
}

/* Project Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.project-card {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    overflow: hidden;
}

.project-card img,
.project-card .img-placeholder {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

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

.project-card h3 {
    margin-bottom: 0.5rem;
}

.project-card p {
    color: #666;
    font-size: 0.9rem;
}

/* Project Details */
.project-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.1);
}

.project-info h4 {
    color: #8B4513;
    margin-bottom: 0.5rem;
}

.project-info ul {
    list-style-position: inside;
    margin-left: 1rem;
}

.project-info li {
    margin-bottom: 0.5rem;
    color: #666;
}

/* Image Gallery — photography-led masonry style */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.gallery-item {
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}

.gallery-item.full-width {
    grid-column: 1 / -1;
}

.gallery-item.full-width img {
    aspect-ratio: 16/9;
}

.gallery-item .img-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Project page hero */
.project-hero {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 2rem;
    padding: 0 1rem;
}

.project-hero img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}

/* Contact Section */
.contact-info {
    background-color: rgba(255, 255, 255, 0.6);
    padding: 3rem 2rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.1);
}

.profile-image {
    width: 250px;
    height: auto;
    border-radius: 8px;
    margin: 0 auto 2rem;
    display: block;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-links a {
    padding: 0.75rem 1.5rem;
    background-color: #8B4513;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: #654321;
}

/* Testimonials */
.testimonial {
    background-color: rgba(255, 255, 255, 0.6);
    padding: 2rem;
    border-left: 4px solid #8B4513;
    margin: 2rem 0;
    font-style: italic;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.1);
}

.testimonial-author {
    font-weight: bold;
    margin-top: 1rem;
    font-style: normal;
    color: #8B4513;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #8B4513;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    margin: 0.5rem 0;
}

.btn:hover {
    background-color: #654321;
    color: white;
    text-decoration: none;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid #8B4513;
    color: #8B4513;
}

.btn-secondary:hover {
    background-color: #8B4513;
    color: white;
}

/* Footer */
.footer {
    background-color: #2c2c2c;
    color: #ccc;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

.footer p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .project-details {
        grid-template-columns: 1fr;
    }

    .homepage-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .container,
    .nav-container {
        padding: 0 1rem;
    }
    
    .social-links {
        flex-direction: column;
        align-items: center;
    }
    
    /* About page two-column layout becomes single column on mobile */
    .about-two-column {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .about-two-column img {
        max-width: 250px !important;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 50vh;
        min-height: 300px;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
    }

    .homepage-grid {
        grid-template-columns: 1fr;
    }
    
    .image-gallery {
        grid-template-columns: 1fr;
    }
}