@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Inter:wght@300;400;500;600&family=Manrope:wght@500;600;700;800&display=swap");

:root {
    --bg: #efefef;
    --text: #181818;
    --muted: #4b4b4b;
    --line: #d3d3d3;
    --accent: #1d4f91;
    --max-width: 1140px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 7.2rem;
}

body {
    margin: 0;
    color: var(--text);
    font-family: "Inter", Arial, sans-serif;
    line-height: 1.6;
    background:
        radial-gradient(circle at 90% 10%, rgba(157, 184, 221, 0.2), transparent 24%),
        radial-gradient(circle at 12% 26%, rgba(29, 79, 145, 0.1), transparent 22%),
        var(--bg);
}

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

.site-header {
    position: fixed;
    top: 0.8rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: min(var(--max-width), 92vw);
    margin: 0;
    padding: 0.7rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    background: rgba(239, 239, 239, 0.9);
    backdrop-filter: blur(6px);
}

#logo {
    margin: 0;
    font-size: 1.05rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    font-family: "Manrope", "Inter", Arial, sans-serif;
    font-weight: 700;
}

#top-menu {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 0.35rem;
}

#top-menu a {
    display: inline-block;
    padding: 0.52rem 0.8rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    color: #383838;
    transition: all 0.2s ease;
    white-space: nowrap;
}

#top-menu a:hover,
#top-menu li.active a {
    background: #ffffff;
    border-color: #d9d9d9;
    color: #121212;
}

#top-menu a:focus-visible,
.mission-linkedin:focus-visible,
.project-text a:focus-visible,
.contact-form button:focus-visible,
.contact-form input:focus-visible,
.contact-form textarea:focus-visible,
.contact-item a:focus-visible {
    outline: 2px solid #4f76aa;
    outline-offset: 2px;
}

main {
    width: min(var(--max-width), 92vw);
    margin: 0 auto;
    padding-top: 5.8rem;
}

.section {
    padding: 4.2rem 0;
    border-top: 1px solid var(--line);
    scroll-margin-top: 7.2rem;
}

.section:first-of-type {
    border-top: none;
}

.section h2 {
    margin: 0 0 1.7rem;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.03;
}
.section-website-services {
    background: rgba(255, 255, 255, 0.76);
    border-radius: 18px;
    padding: 2rem 2rem 1.8rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}


.services-header {
    display: grid;
    gap: 0.8rem;
    max-width: 720px;
}

.services-label {
    margin: 0;
    font-size: 0.82rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #555;
}

.services-copy {
    margin: 0;
    font-size: 1.08rem;
    color: #222;
}

.services-price {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}

.services-description {
    margin: 0;
    color: #3b3b3b;
    line-height: 1.7;
}

.service-package-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 1rem;
    margin: 2rem 0 1.8rem;
}

.service-card {
    background: linear-gradient(180deg, #fbfbfb, #f7f7f7);
    border: 1px solid #d6d6d6;
    border-radius: 14px;
    padding: 1.1rem 1rem;
    min-height: 130px;
}

.service-card h3 {
    margin: 0 0 0.45rem;
    font-family: "Cormorant Garamond", serif;
    font-size: 1.4rem;
    color: var(--text);
}

.service-card p {
    margin: 0;
    color: #2f2f2f;
    font-size: 0.95rem;
    line-height: 1.6;
}

.service-card .highlight {
    color: var(--accent);
    font-weight: 600;
}

.services-package,
.services-process,
.services-cta {
    margin-bottom: 1.8rem;
}

.services-package h3,
.services-process h3 {
    margin: 0 0 1rem;
    font-size: 1.5rem;
}

.package-pages,
.process-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.95rem;
}

.package-pages li,
.process-steps li {
    background: #fff;
    border: 1px solid #d7dde6;
    border-radius: 12px;
    padding: 1rem 1rem 1rem 1rem;
    display: grid;
    gap: 0.5rem;
}

.package-pages li strong {
    display: block;
    font-size: 1rem;
}

.package-pages li span,
.process-steps li span:last-child {
    color: #4c5667;
    font-size: 0.95rem;
    line-height: 1.6;
}

.process-steps li {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 1rem;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--line);
    color: var(--muted);
    font-weight: 600;
    font-size: 0.95rem;
}

.services-cta {
    padding: 1rem;
    background: #fafafa;
    border: 1px solid #d8d8d8;
    border-radius: 12px;
}

.cta-title {
    margin: 0 0 0.65rem;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
}

.cta-copy,
.cta-contact,
.services-note {
    margin: 0;
    color: #2f2f2f;
    line-height: 1.7;
}

.cta-contact a {
    color: var(--accent);
    text-decoration: underline;
}

.services-note {
    margin-top: 0.85rem;
    font-size: 0.92rem;
}

.no-js-warning {
    padding: 1.5rem;
    background: #fff5e8;
    border: 1px solid #f2d4b4;
    border-radius: 12px;
}

.services-case-studies {
    margin-bottom: 1.8rem;
}

.services-case-studies h3 {
    margin: 0 0 1rem;
    font-size: 1.5rem;
}

.case-study {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 1.5rem;
    align-items: start;
    background: linear-gradient(180deg, #fbfbfb, #f7f7f7);
    border: 1px solid #d6d6d6;
    border-radius: 14px;
    padding: 1.5rem;
}

.case-study-content {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.case-study-content h4 {
    margin: 0;
    font-family: "Cormorant Garamond", serif;
    font-size: 1.8rem;
    color: var(--text);
}

.case-study-desc {
    margin: 0;
    color: #2f2f2f;
    font-size: 0.98rem;
    line-height: 1.6;
}

.case-study-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: #111;
    color: #fff;
    border: 1px solid #222;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
    width: fit-content;
}

.case-study-link:hover {
    background: #2d2d2d;
    transform: translateY(-1px);
}

.case-study-preview {
    position: relative;
    width: 100%;
    height: 400px;
    border: 1px solid #d6d6d6;
    border-radius: 12px;
    overflow: hidden;
    background: #f9f9f9;
}

.case-study-preview iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 980px) {
    .case-study {
        grid-template-columns: 1fr;
    }

    .case-study-preview {
        height: 300px;
    }
}

@media (max-width: 640px) {
    .case-study {
        padding: 1rem;
    }

    .case-study-content h4 {
        font-size: 1.5rem;
    }

    .case-study-preview {
        height: 250px;
    }
}

/* Layout for How It Works: horizontal on large screens, vertical on small screens */
@media (min-width: 981px) {
    .process-steps {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
        align-items: stretch;
    }

    .process-steps li {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.6rem;
        padding: 1rem;
        background: #fff;
        border: 1px solid #d7dde6;
        border-radius: 12px;
    }

    .process-steps li .step-number {
        width: 2.6rem;
        height: 2.6rem;
        font-size: 1rem;
        border: 1px solid var(--line);
        color: var(--text);
        background: transparent;
        font-weight: 600;
    }
}

/* Make the package-pages display horizontally on wide screens and stack on small screens */
@media (min-width: 981px) {
    .package-pages {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
        align-items: stretch;
    }

    .package-pages li {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.6rem;
        padding: 1rem;
        background: #fff;
        border: 1px solid #d7dde6;
        border-radius: 12px;
    }

    .package-pages li strong {
        font-size: 1.05rem;
    }
}

/* Unified services page theme (subtle in hero) */
.service-callout {
    display: grid;
    gap: 0.6rem;
    padding: 1rem;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    align-self: start;
    justify-self: end;
    max-width: 360px;
}

.service-callout h2,
.services-header h2 {
    margin: 0;
    font-size: clamp(1.25rem, 2.4vw, 1.6rem);
    line-height: 1.1;
    color: var(--muted);
    font-weight: 600;
}

.services-label,
.service-callout .services-label {
    margin: 0;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.services-copy,
.service-callout-copy {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.services-price {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
}

.services-description {
    margin: 0;
    color: #3b3b3b;
    line-height: 1.7;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    color: #fff;
    background: #111;
    border: 1px solid #222;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.button:hover,
.button:focus-visible {
    background: #2d2d2d;
    transform: translateY(-1px);
}

.button-primary {
    background: #111;
}

.service-package-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 1rem;
    margin: 2rem 0 1.8rem;
}

.service-card {
    background: linear-gradient(180deg, #fbfbfb, #f7f7f7);
    border: 1px solid #d6d6d6;
    border-radius: 14px;
    padding: 1.1rem 1rem;
    min-height: 130px;
}

.service-card h3 {
    margin: 0 0 0.45rem;
    font-family: "Cormorant Garamond", serif;
    font-size: 1.4rem;
    color: var(--text);
}

.service-card p {
    margin: 0;
    color: #2f2f2f;
    font-size: 0.95rem;
    line-height: 1.6;
}

.service-card .highlight {
    color: var(--accent);
    font-weight: 600;
}

.section-home {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
    gap: 2.2rem;
    align-items: flex-start;
    position: relative;
}

.hero-content {
    min-width: 0;
}

.subtitle {
    margin: 0 0 1.1rem;
    font-size: 0.96rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #555;
}

.intro {
    margin: 0 0 1.1rem;
    font-size: 1rem;
    color: #222;
    text-wrap: pretty;
}

.mission {
    margin: 0;
    padding: 0.8rem 0.95rem;
    border-left: 3px solid #202020;
    background: rgba(255, 255, 255, 0.45);
    font-size: 0.98rem;
}

.mission-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: 0.55rem;
    padding: 0.24rem 0.55rem;
    border: 1px solid #c9c9c9;
    border-radius: 999px;
    background: #fff;
    color: #1d4f91;
    font-size: 0.9rem;
    vertical-align: middle;
}

.mission-linkedin:hover {
    border-color: #9db8dd;
    background: #f7fbff;
}

#skills .skills-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.7rem;
}

.skills-list li {
    background: #f9f9f9;
    border: 1px solid #d8d8d8;
    border-radius: 10px;
    padding: 0.68rem 0.72rem;
    font-size: 0.95rem;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
    align-items: stretch;
}

.project-card {
    grid-column: span 4;
    background: linear-gradient(180deg, #fbfbfb, #f7f7f7);
    border: 1px solid #d6d6d6;
    border-radius: 14px;
    min-height: 230px;
    padding: 1rem;
    position: relative;
    overflow: hidden;
    min-width: 0;
    display: flex;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.project-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #111, #4b4b4b);
    opacity: 0.1;
}

.project-card:hover {
    transform: translateY(-2px);
    border-color: #c7c7c7;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.project-text {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.project-text h3 {
    margin: 0;
    font-family: "Cormorant Garamond", serif;
    font-size: 1.75rem;
    line-height: 1;
    letter-spacing: 0.01em;
}

.project-text p {
    margin: 0;
    color: #2f2f2f;
    font-size: 0.94rem;
    line-height: 1.55;
}

.project-text a {
    text-decoration: none;
    color: var(--accent);
    border-bottom: 1px solid rgba(29, 79, 145, 0.35);
    transition: border-color 0.2s ease, color 0.2s ease;
}

.project-text a:hover {
    color: #12396d;
    border-color: rgba(18, 57, 109, 0.75);
}

#contact .section-contact-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1.8rem;
    align-items: start;
}

.contact-form {
    display: grid;
    gap: 0.8rem;
    padding: 1rem;
    background: #fafafa;
    border: 1px solid #d8d8d8;
    border-radius: 12px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    font: inherit;
    border: 1px solid #cfcfcf;
    border-radius: 10px;
    background: white;
    color: #171717;
    padding: 0.78rem 0.85rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #6e8db8;
    box-shadow: 0 0 0 3px rgba(157, 184, 221, 0.3);
}

.contact-form button {
    justify-self: start;
    border: 1px solid #222;
    border-radius: 999px;
    background: #111;
    color: #fff;
    padding: 0.7rem 1rem;
    font: inherit;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.contact-form button:hover {
    transform: translateY(-1px);
    background: #2d2d2d;
}

.contact-meta {
    padding: 0.4rem 0;
}

.contact-meta h3 {
    margin: 0 0 1rem;
    font-family: "Cormorant Garamond", serif;
    font-size: 2rem;
    line-height: 1;
}

.contact-item {
    margin-bottom: 1.3rem;
}

.contact-item .label {
    margin: 0 0 0.2rem;
    font-size: 0.78rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #555;
}

.contact-item p,
.contact-item a {
    margin: 0;
    font-size: 1.05rem;
    color: #1f1f1f;
    overflow-wrap: anywhere;
}

@media (max-width: 980px) {
    .section-home {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .service-callout {
        justify-self: start;
        width: 100%;
        max-width: none;
        padding: 1rem;
        background: transparent;
        border: 1px solid rgba(0,0,0,0.04);
    }

    .project-card {
        grid-column: span 6;
        min-height: 0;
    }

    .service-package-grid,
    .package-pages,
    .process-steps {
        grid-template-columns: 1fr;
    }

    #contact .section-contact-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 640px) {
    .site-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
        top: 0.5rem;
        padding: 0.65rem 0;
    }

    #top-menu {
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .section {
        padding: 2.9rem 0;
    }

    .project-card {
        grid-column: span 12;
        min-height: 0;
    }

    .project-text h3 {
        font-size: 1.7rem;
    }

    .contact-form {
        padding: 0.8rem;
    }

    main {
        padding-top: 7rem;
    }
}
