/* D Carelli & Companies - Main Stylesheet */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-accent: #a90008;
    --color-text: #2d2d2d;
    --color-gray: #666;
    --color-light-bg: #fafafa;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--color-text);
    line-height: 1.7;
    font-size: 16px;
}

/* Header */
header {
    background: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 0;
}

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

.logo img {
    height: 34px;
    width: auto;
}

.banner img {
    height: 60px;
    width: auto;
}

/* Navigation */
nav {
    background: white;
    border-bottom: 3px solid var(--color-accent);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    list-style: none;
    display: flex;
    gap: 40px;
}

nav a {
    display: block;
    padding: 18px 0;
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

nav a:hover,
nav a.active {
    color: var(--color-accent);
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 30px 80px;
}

/* Home Page Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
}

h1 {
    font-size: 32px;
    color: var(--color-accent);
    margin-bottom: 24px;
    font-weight: 600;
    line-height: 1.3;
}

p {
    margin-bottom: 20px;
    color: var(--color-text);
}

/* Sidebar */
aside {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-image {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid #ddd;
}

.testimonial {
    background: var(--color-light-bg);
    padding: 30px;
    border-left: 4px solid var(--color-accent);
}

.testimonial h2 {
    font-size: 20px;
    color: var(--color-accent);
    margin-bottom: 16px;
    font-weight: 600;
}

.testimonial em {
    font-style: italic;
    color: var(--color-gray);
    line-height: 1.7;
}

.testimonial-author {
    margin-top: 12px;
    font-size: 14px;
    color: var(--color-text);
}

/* Projects Page */
.page-title {
    font-size: 36px;
    color: var(--color-accent);
    margin-bottom: 50px;
    font-weight: 600;
}

.section-title {
    font-size: 24px;
    color: var(--color-text);
    margin-top: 50px;
    margin-bottom: 30px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-accent);
}

.project {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 30px;
    margin-bottom: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid #e0e0e0;
}

.project:last-child {
    border-bottom: none;
}

.project img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 1px solid #ddd;
}

.project-content h2 {
    font-size: 20px;
    color: var(--color-accent);
    margin-bottom: 12px;
    font-weight: 600;
}

.project-content h3 {
    font-size: 20px;
    color: var(--color-accent);
    margin-bottom: 12px;
    font-weight: 600;
}

.project-content p {
    color: var(--color-text);
    margin: 0;
}

.project.no-image {
    grid-template-columns: 1fr;
}

.apartment-list {
    margin-left: 40px;
}

.apartment-list ul {
    list-style: disc;
}

.apartment-list li {
    padding: 5px 0;
}

.apartment-list li:before {
    content: none;
}

/* Marketing Page */
main h2 {
    font-size: 22px;
    color: var(--color-accent);
    margin-top: 40px;
    margin-bottom: 16px;
    font-weight: 600;
}

main ul {
    list-style: none;
    margin-bottom: 30px;
}

main ul li {
    padding: 8px 0 8px 24px;
    position: relative;
    color: var(--color-text);
}

main ul li:before {
    content: "•";
    color: var(--color-accent);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 20px;
}

.services-list {
    list-style: none;
}

.services-list li {
    padding: 8px 0 8px 24px;
    position: relative;
}

.services-list li:before {
    content: "•";
    color: var(--color-accent);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 20px;
}

/* Contact Page */
.contact-main {
    max-width: 700px;
    margin: 0 auto;
    padding: 80px 30px 100px;
    text-align: center;
}

.subtitle {
    font-size: 18px;
    color: var(--color-gray);
    margin-bottom: 50px;
}

.contact-info {
    background: var(--color-light-bg);
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.contact-item {
    margin-bottom: 25px;
}

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

.contact-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-gray);
    margin-bottom: 8px;
    font-weight: 600;
}

.contact-value {
    font-size: 18px;
    color: var(--color-text);
}

.contact-value a {
    color: var(--color-accent);
    text-decoration: none;
    transition: opacity 0.2s;
}

.contact-value a:hover {
    opacity: 0.7;
}

.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 50px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    color: var(--color-text);
    text-decoration: none;
    transition: all 0.2s;
}

.social-link:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: translateY(-2px);
}

.social-link svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Footer */
footer {
    background: #888;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 900px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
    }

    h1 {
        font-size: 28px;
    }

    .page-title {
        font-size: 30px;
    }

    main h2 {
        font-size: 20px;
    }
}

@media (max-width: 600px) {
    main {
        padding: 40px 20px 60px;
    }

    .header-content {
        padding: 0 20px;
    }

    nav ul {
        padding: 0 20px;
        gap: 15px;
    }

    nav a {
        padding: 15px 0;
        font-size: 13px;
    }

    h1 {
        font-size: 24px;
    }

    .page-title {
        font-size: 26px;
        margin-bottom: 35px;
    }

    main h2 {
        font-size: 18px;
        margin-top: 30px;
    }

    .project {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
        padding-bottom: 40px;
    }

    .project img {
        width: 100%;
        height: auto;
        max-width: 300px;
    }

    .contact-info {
        padding: 30px 20px;
    }

    .contact-value {
        font-size: 16px;
    }
}