/* Brand Colors */
:root {
    --navy: #1F3A4D;
    --peak-blue: #2F5F7A;
    --stone-white: #F4F1EC;
    --slate-gray: #6B7280;
    --charcoal: #2A2E32;
}

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

body {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    color: var(--charcoal);
    background-color: var(--stone-white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-weight: 700;
    color: var(--charcoal);
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
}

p {
    color: var(--slate-gray);
    font-size: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

/* Header */
.header {
    background-color: var(--stone-white);
    padding: 2rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(31, 58, 77, 0.1);
}

.logo h1 {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0;
    text-align: center;
}

.logo-descriptor {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--slate-gray);
    text-align: center;
    margin-top: 0.25rem;
}

/* Hero Section */
.hero-section {
    width: 100%;
    margin: 0;
    padding: 0;
}

.hero-container {
    display: flex;
    width: 100%;
    min-height: 60vh;
}

.hero-box {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 500px;
}

.hero-repair {
    background-image: url('assets/homeimprovement_hero.jpg');
}

.hero-design {
    background-image: url('assets/design_hero.jpg');
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(31, 58, 77, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    max-width: 500px;
}

.hero-title {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subline {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.125rem;
    color: white;
    margin-bottom: 2rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-button {
    display: inline-block;
    padding: 0.875rem 2rem;
    background-color: var(--peak-blue);
    color: white;
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-button:hover {
    background-color: var(--navy);
    transform: translateY(-2px);
    opacity: 1;
}

/* Content Sections */
.content-section {
    padding: 5rem 0;
    background-color: var(--stone-white);
}

.content-section-alt {
    background-color: white;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    width: 100%;
}

@media (min-width: 968px) {
    .content-grid {
        gap: 4rem;
    }
}

.content-grid > * {
    min-width: 0; /* Prevents grid items from overflowing */
}

.content-grid-reverse {
    direction: rtl;
}

.content-grid-reverse > * {
    direction: ltr;
}

.content-text {
    padding: 0;
    width: 100%;
    max-width: 100%;
}

.section-title {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 2rem;
}

.service-list {
    list-style: none;
    padding: 0;
}

.service-list li {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.125rem;
    color: var(--charcoal);
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    border-bottom: 1px solid rgba(107, 114, 128, 0.1);
}

.service-list li:last-child {
    border-bottom: none;
}

.service-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--peak-blue);
    font-size: 1.5rem;
    line-height: 1;
}

.content-image {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
}

/* Swiper Gallery Styles */
.gallery-main {
    width: 100%;
    max-width: 100%;
    flex: 1;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.gallery-main .swiper-slide {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    height: auto;
    box-sizing: border-box;
}

.gallery-item {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 4px 4px 0 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: block;
}

@media (min-width: 968px) {
    .gallery-item img {
        height: 320px;
    }
}

.gallery-item figcaption {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.875rem;
    color: var(--charcoal);
    padding: 0.75rem 1rem;
    background-color: white;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    line-height: 1.4;
    margin-top: -4px;
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 3rem;
}

/* Thumbnail Gallery */
.gallery-thumbs {
    width: 100%;
    height: 100px;
    padding: 0.5rem 0;
    background-color: var(--stone-white);
    border-top: 1px solid rgba(107, 114, 128, 0.1);
}

.gallery-thumbs .swiper-slide {
    width: 80px;
    height: 80px;
    opacity: 0.6;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
    border: 3px solid transparent;
    border-radius: 4px;
    overflow: hidden;
}

.gallery-thumbs .swiper-slide:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.gallery-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    border-color: var(--navy);
    box-shadow: 0 2px 8px rgba(31, 58, 77, 0.3);
}

.gallery-thumbs .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Custom Swiper Scrollbar */
.gallery-main .swiper-scrollbar {
    background: var(--stone-white);
    height: 8px;
    border-radius: 4px;
}

.gallery-main .swiper-scrollbar-drag {
    background: var(--peak-blue);
    border-radius: 4px;
}

/* Fallback for when images don't load */
.image-gallery::before {
    content: '';
    display: none;
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
    background-color: var(--navy);
    color: white;
}

.contact-title {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    text-align: center;
    margin-bottom: 1rem;
}

.contact-tagline {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin-bottom: 3rem;
    font-style: italic;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-text {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.contact-details {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

.contact-details p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.contact-details a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
}

.contact-details a:hover {
    color: white;
    opacity: 1;
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 2px;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--peak-blue);
    background-color: rgba(255, 255, 255, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.submit-button {
    padding: 0.875rem 2rem;
    background-color: var(--peak-blue);
    color: white;
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    align-self: flex-start;
}

.submit-button:hover {
    background-color: var(--peak-blue);
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background-color: var(--charcoal);
    color: rgba(255, 255, 255, 0.7);
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-container {
        flex-direction: column;
    }

    .hero-box {
        min-height: 400px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .content-grid-reverse {
        direction: ltr;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }

    .header {
        padding: 1.5rem 0;
    }

    .logo h1 {
        font-size: 1.75rem;
    }

    .hero-box {
        min-height: 350px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subline {
        font-size: 1rem;
    }

    .content-section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .service-list li {
        font-size: 1rem;
    }

    .contact-section {
        padding: 3rem 0;
    }

    .contact-title {
        font-size: 2rem;
    }

    .contact-tagline {
        font-size: 1.125rem;
    }

    .gallery-main .swiper-slide {
        width: 280px;
    }

    .gallery-item img {
        height: 240px;
    }

    .gallery-item figcaption {
        font-size: 0.8125rem;
        padding: 0.625rem 0.75rem;
        min-height: 2.5rem;
        height: 2.5rem;
    }

    .gallery-thumbs {
        height: 80px;
    }

    .gallery-thumbs .swiper-slide {
        width: 60px;
        height: 60px;
    }
}

