/* Mid-century Modern Theme for Piecewise Insurance */

:root {
    --bg-color: #f5eddc;
    --green: #387144;
    --yellow: #ea9e1c;
    --orange: #d75a18;
    --blue: #174957;
    --text-color: #1a1a1a;
    --white: #ffffff;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Jost', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    /* Subtle noise texture */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

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

/* Header */
header {
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 40px;
    /* Adjust based on actual logo aspect ratio */
    width: auto;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
    color: var(--blue);
}

.brand-name {
    font-family: 'DM Serif Display', serif;
    font-size: 2rem;
}

.brand-suffix {
    font-family: 'Jost', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

nav a {
    font-weight: 500;
    color: var(--blue);
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

nav a:hover {
    color: var(--orange);
}

.btn {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    /* Pill shape */
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--orange);
    color: var(--white);
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.1);
    background-color: #e86b25;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--blue);
    color: var(--blue);
}

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

/* Hero Section */
.hero {
    padding: 4rem 0 6rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 4rem;
    color: var(--blue);
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: #4a4a4a;
    max-width: 500px;
}

.hero-image {
    position: relative;
}

.hero-image-img {
    width: 400px;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

/* Abstract shapes for hero image placeholder/decoration */
.hero-shape {
    width: 100%;
    height: 400px;
    background-color: var(--green);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    opacity: 0.9;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.2);
    font-size: 5rem;
}

.hero-shape::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background-color: var(--yellow);
    border-radius: 50%;
    z-index: -1;
}

.hero-shape::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 150px;
    height: 150px;
    background-color: var(--blue);
    border-radius: 50%;
    z-index: -1;
}

/* Features Section */
.features {
    padding: 6rem 0;
    background-color: rgba(255, 255, 255, 0.4);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    color: var(--green);
    margin-bottom: 1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.feature-card {
    background-color: var(--bg-color);
    padding: 2.5rem;
    border-radius: 1rem;
    border: 2px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--yellow);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: var(--yellow);
    border-radius: 50%;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

.feature-card:nth-child(2) .feature-icon {
    background-color: var(--green);
}

.feature-card:nth-child(3) .feature-icon {
    background-color: var(--orange);
}

.feature-card:nth-child(4) .feature-icon {
    background-color: var(--blue);
}

.feature-card h3 {
    font-size: 1.5rem;
    color: var(--blue);
    margin-bottom: 1rem;
}



/* Footer */
footer {
    padding: 4rem 0;
    border-top: 2px solid rgba(23, 73, 87, 0.1);
    color: var(--blue);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    font-weight: 500;
}

.copyright {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
        max-width: 100%;
    }

    .container:has(.hero) {
        position: relative;
    }

    .container:has(.hero)::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: url('puzzles.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        opacity: 0.1;
        z-index: 0;
        pointer-events: none;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 0.5rem 0 2rem;
        gap: 2rem;
        min-height: 100vh;
        align-items: center;
        justify-content: center;
    }

    header {
        align-items: center;
    }

    .hero-content {
        text-align: left;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
        text-align: left;
        width: 75%;
    }

    .hero-content p {
        margin-bottom: 2rem;
        text-align: left;
        width: 75%;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        align-items: center;
    }

    .hero-buttons .btn-secondary {
        display: none;
    }

    .hero-content p {
        margin-bottom: 7rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .industry-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    .industry-card {
        padding: 1.5rem;
        font-size: 1.1rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    nav ul {
        gap: 1rem;
    }

    nav ul li:first-child {
        display: none;
    }

    .hero-image {
        display: none;
    }

    .hero {
        position: relative;
    }

    .hero-content {
        position: relative;
        z-index: 1;
    }

    header,
    main {
        position: relative;
        z-index: 1;
    }

    .hero-shape {
        height: 300px;
    }

    .hero-shape::before,
    .hero-shape::after {
        display: none;
    }

    .feature-card {
        padding: 2rem;
    }

    .quote-form {
        padding: 2rem;
    }

    .features,
    .industry-section,
    .quote-section {
        padding: 4rem 0;
    }
}

/* Extra small devices (iPhone SE and similar) */
@media (max-width: 375px) {
    .container {
        padding: 0 0.75rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .industry-card {
        padding: 1.25rem;
        font-size: 1rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .quote-form {
        padding: 1.5rem;
    }

    .brand-name {
        font-size: 1.5rem;
    }
}

/* Industry Section */
.industry-section {
    padding: 6rem 0;
}

.industry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.industry-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--blue);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.industry-card:hover {
    transform: translateY(-5px);
    border-color: var(--orange);
    color: var(--orange);
}

/* Quote Section */
.quote-section {
    padding: 6rem 0;
    background-color: var(--green);
    color: var(--white);
}

.quote-container {
    max-width: 600px;
    margin: 0 auto;
}

.quote-section .section-header h2 {
    color: var(--white);
}

.quote-section .section-header p {
    color: rgba(255, 255, 255, 0.9);
}

.quote-form {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--blue);
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 0.5rem;
    font-family: 'Jost', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--orange);
}

.quote-form button {
    width: 100%;
    margin-top: 1rem;
}