:root {
    --primary-color: #F5A083;
    --secondary-color: #000;
    --accent-color: #ecc94b;
    --light-color: #f7fafc;
    --dark-color: #1a202c;
    --gray-color: #718096;
    --warm-background: #fbf7f3;
    --muted-ink: #505865;
}

html {
    scroll-behavior: smooth;
}

main section[id],
.project-card[id] {
    scroll-margin-top: 100px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
}

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1.8rem;
}

.hero-section {
    background: var(--warm-background);
    padding: 145px 0 80px;
    border-bottom: 1px solid #e8ded7;
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 56px;
}

.eyebrow {
    display: block;
    margin: 0 0 16px;
    color: var(--muted-ink);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 0 0 24px;
    font-size: clamp(2.4rem, 3.7vw, 3.5rem);
    line-height: 1.16;
    letter-spacing: -0.035em;
}

.hero-copy h1 span {
    display: block;
}

.hero-intro {
    max-width: 34rem;
    margin-bottom: 20px;
    color: var(--muted-ink);
    font-size: 1.125rem;
    line-height: 1.75;
}

.hero-person {
    max-width: 31rem;
    margin-bottom: 28px;
    font-size: 0.9375rem;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.hero-actions .btn {
    max-width: 100%;
    white-space: normal;
}

.hero-work-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--dark-color);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
}

.hero-work-link:hover {
    color: #873a21;
}

.hero-project {
    min-width: 0;
    margin: 0;
    padding: 24px;
    border: 1px solid #dfc8ba;
    border-radius: 20px;
    background: #f1e1d6;
}

.hero-project-heading {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-project-image {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    background: #f8f8f8;
}

.hero-project-image img {
    display: block;
    width: 100%;
    height: auto;
}

.hero-project figcaption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 24px;
}

.hero-project figcaption .eyebrow {
    margin-bottom: 6px;
}

.hero-project figcaption p {
    max-width: 18rem;
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 1.375rem;
    line-height: 1.4;
}

.hero-project-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    height: 44px;
    border: 1px solid #9b8171;
    border-radius: 50%;
    color: var(--dark-color);
    font-size: 1.25rem;
}

.hero-project-link:hover {
    color: white;
    background: var(--dark-color);
    border-color: var(--dark-color);
}

.featured-projects {
    padding: 88px 0;
}

.portfolio-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
    margin-bottom: 40px;
}

.portfolio-heading h2 {
    margin: 0;
    font-size: clamp(2rem, 3vw, 2.75rem);
    letter-spacing: -0.025em;
}

.portfolio-heading > p {
    max-width: 23rem;
    margin: 0;
    color: var(--muted-ink);
}

.featured-project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.project-card {
    min-width: 0;
    border: 1px solid #e1e4e8;
    border-radius: 12px;
    background: white;
}

.project-image-link {
    position: relative;
    display: block;
    border-radius: 11px 11px 0 0;
    background: #f8f8f8;
}

.project-image-link img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    padding: 12px 12px 44px;
    object-fit: contain;
}

.project-image-hint {
    position: absolute;
    right: 16px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--dark-color);
    font-size: 0.75rem;
    font-weight: 600;
}

.project-image-link:hover .project-image-hint {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.project-copy {
    padding: 28px 24px;
    border-top: 1px solid #e1e4e8;
}

.project-copy .eyebrow {
    margin-bottom: 8px;
    font-size: 0.6875rem;
}

.project-copy h3 {
    margin: 0 0 24px;
    font-size: 1.875rem;
}

.project-facts {
    margin: 0;
    font-size: 0.9375rem;
}

.project-facts dt {
    margin-bottom: 4px;
    font-weight: 600;
}

.project-facts dd {
    margin: 0 0 18px;
    color: var(--muted-ink);
}

.project-facts dd:last-child {
    margin-bottom: 0;
}

.portfolio-next-step {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 36px;
}

.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 50px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

.service-card {
    border: none;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    background-color: var(--light-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.8rem;
}

.feature-icon {
    color: var(--secondary-color);
    font-size: 2rem;
    margin-bottom: 15px;
}

.portfolio-item {
    overflow: hidden;
    border-radius: 10px;
    height: 100%;
    background: white;
    border: 1px solid #e1e4e8;
}

.portfolio-img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: #f8f8f8;
}

.portfolio-overlay {
    padding: 24px;
    border-top: 1px solid #e1e4e8;
}

.portfolio-overlay p {
    margin-bottom: 0;
    color: var(--muted-ink);
    font-size: 0.9375rem;
}

.contact-section {
    background-color: var(--light-color);
}

.btn-primary {
    --bs-btn-color: var(--dark-color);
    --bs-btn-hover-color: #fff;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #1e2d47;
    --bs-btn-active-border-color: #1e2d47;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 12px 30px;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: #1e2d47;
    border-color: #1e2d47;
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    padding: 12px 30px;
    font-weight: 600;
}

.btn-secondary:hover {
    background-color: #9c2c2c;
    border-color: #9c2c2c;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid #214a76;
    outline-offset: 4px;
}

@media (max-width: 1199.98px) {
    .hero-layout {
        gap: 32px;
    }

    .featured-project-grid {
        gap: 20px;
    }

    .project-copy {
        padding: 24px 20px;
    }
}

@media (max-width: 991.98px) {
    .hero-section {
        padding: 120px 0 64px;
    }

    .hero-layout,
    .featured-project-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-layout {
        gap: 40px;
    }

    .hero-copy h1 {
        max-width: 38rem;
        font-size: clamp(2.4rem, 6vw, 3.5rem);
    }

    .hero-project {
        width: 100%;
        max-width: 38rem;
    }

    .portfolio-heading {
        display: block;
    }

    .portfolio-heading > p {
        max-width: 36rem;
        margin-top: 20px;
    }

    .project-card {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .project-image-link {
        display: flex;
        align-items: center;
        border-radius: 11px 0 0 11px;
    }

    .project-copy {
        border-top: 0;
        border-left: 1px solid #e1e4e8;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        padding-top: 110px;
    }

    .hero-copy h1 {
        font-size: clamp(2.125rem, 8.8vw, 2.75rem);
    }

    .hero-project {
        padding: 16px;
    }

    .hero-project figcaption p {
        font-size: 1.25rem;
    }

    .featured-projects {
        padding: 60px 0;
    }

    .project-card {
        display: block;
    }

    .project-image-link {
        display: block;
        border-radius: 11px 11px 0 0;
    }

    .project-copy {
        border-top: 1px solid #e1e4e8;
        border-left: 0;
    }

    .portfolio-next-step {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .service-card,
    .social-icons a {
        transition: none;
    }
}

footer {
    background-color: var(--dark-color);
    color: white;
}

.footer-links a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    color: white;
    transition: background-color 0.3s;
}

.social-icons a:hover {
    background-color: var(--secondary-color);
}

.stats-item {
    text-align: center;
    padding: 20px;
}

.stats-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stats-label {
    font-size: 1.1rem;
    color: var(--gray-color);
    font-weight: 500;
}
