:root {
    --primary: rgba(101, 28, 83, 1);
    --secondary: rgba(151, 121, 147, 1);
    --accent: rgba(217, 119, 6, 1);
    --surface: rgba(253, 252, 253, 1);
    --neutral: rgba(42, 16, 36, 1);
    --white: rgba(255, 255, 255, 1);

    --font-serif: "Crimson Pro", serif;
    --font-sans: "Inter", sans-serif;

    --fs-small: 0.75rem;
    --fs-medium: 1rem;
    --fs-large: 1.5rem;
    --fs-xlarge: 2rem;
    --fs-xxl: 2.5rem;
    --fs-xxxl: 3.5rem;

    --transition-smooth: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

@layer reset {
    *,
    *::before,
    *::after {
        box-sizing: border-box;
    }

    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    p,
    ul,
    ol,
    figure {
        margin: 0;
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        font-weight: 500;
    }

    h1,
    h3 {
        font-family: var(--font-serif);
    }

    img {
        display: block;
    }

    body {
        font-family: var(--font-sans);
        background-color: var(--surface);
        color: var(--neutral);
        line-height: 1.6;
        -webkit-font-smoothing: antialiased;
    }
}

/* --- REUSABLE COMPONENTS --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;

    h2.tagline {
        text-transform: uppercase;
        letter-spacing: 0.3em;
        font-size: var(--fs-small);
        font-weight: 700;
        color: var(--accent);
        margin-bottom: 1.5rem;
        display: block;
    }

    h3 {
        font-size: var(--fs-xxxl);
        color: var(--primary);
        margin-bottom: 2rem;
        line-height: 1.1;
    }

    h3 > em {
        font-style: italic;
        font-weight: 400;
    }

    .center {
        text-align: center;
    }
}

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

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 4rem;

    img {
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.divider {
    width: 60px;
    height: 1px;
    background-color: var(--accent);
    opacity: 0.4;
    margin: 2rem auto;
}

.profile-divider {
    width: 100%;
    height: 1px;
    background-color: var(--primary);
    opacity: 0.25;
    margin: 1em 0;
}

.margin-top-5 {
    margin-top: 5rem;
}

/* --- HERO SECTION --- */
.hero {
    min-height: 100vh;
    background:
        linear-gradient(rgba(42, 16, 36, 0.25), rgba(42, 16, 36, 0.9)),
        url("./assets/images/office.png");
    background-size: cover;
    background-position: center;
    color: var(--white);
    display: flex;
    flex-direction: column;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2em 4em;
    z-index: 1000;
    background: linear-gradient(rgba(42, 16, 36, 0.3), rgba(42, 16, 36, 0));
}

.scrolled {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    padding: 1rem 4rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);

    .nav-links a {
        color: var(--neutral);
    }
}

.scrolled .btn-outline {
    border: var(--primary);
    color: var(--primary) !important;
}

.scrolled .btn-outline:hover {
    background-color: var(--primary);
    color: var(--white) !important;
}

.logo {
    width: 300px;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 3rem;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: color 0.3s;

    &:hover {
        color: var(--secondary);
    }
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary) !important;
}

.hero-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 4rem;

    h1 {
        font-size: 5rem;
        line-height: 1.1;
        margin-bottom: 3rem;
    }

    h2 {
        font-size: 3rem;
        line-height: 1.1;
        margin-bottom: 3rem;
    }

    em {
        font-style: italic;
        font-weight: 400;
        opacity: 0.9;
    }
}

.hero-content p {
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 2rem;
}

.btn-hero {
    display: flex;
    align-items: center;
    width: fit-content;
    text-decoration: none;
    color: var(--white);
    background: rgba(250, 250, 250, 0.15);
    border: 1px solid rgba(250, 250, 250, 1);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.2s ease-in-out;

    &:hover {
        background: rgba(101, 28, 83, 0.6);
        border-color: rgba(101, 28, 83, 1);
    }

    span {
        margin-left: 1rem;
        background: var(--primary);
        padding: 0.2rem 0.5rem;
        border-radius: 50%;
    }
}

.hero-footer {
    max-width: 1500px;
    margin: 2rem auto 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    padding: 4rem;
    background: rgba(42, 16, 36, 0.1);
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-footer-item {
    text-align: center;

    :nth-child(1) {
        font-family: var(--font-serif);
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    p {
        font-size: 0.85rem;
        color: rgba(255, 255, 255, 0.6);
    }
}

/* --- SECTIONS --- */
section {
    padding: 8rem 0;

    > p {
        padding: 0.5em 0;
    }
}

.testimonials {
    padding: 8rem 0;
    background-color: rgba(101, 28, 83, 0.03);

    .quote-box {
        background-color: var(--surface);
        padding: 2.5rem;
        border-radius: 1rem;
    }

    .gold-quote {
        color: var(--accent);
        opacity: 0.4;
    }

    svg {
        width: 2.5rem;
        height: 2.5rem;
    }

    .quote-text {
        font-style: italic;
        font-family: var(--font-serif);
        font-size: 1.5rem;
        line-height: 2rem;
        margin: 2rem 0;
    }

    .quote-footer {
        margin-top: 2rem;
        border-top: 1px solid var(--accent);
        padding-top: 1.5rem;
    }

    .quote-name {
        font-weight: 700;
        font-size: 0.875rem;
        line-height: 1.25rem;
        letter-spacing: 0.025rem;
    }

    .quote-location {
        font-size: 0.875rem;
    }
}

.narrative {
    p {
        color: var(--secondary);
        font-size: var(--fs-medium);
        margin-bottom: 1.5rem;
    }

    .signature {
        font-family: var(--font-serif);
        font-style: italic;
        border-top: 1px solid var(--surface);
        padding-top: 2rem;
        color: var(--primary) !important;
    }

    ul {
        color: var(--secondary);
    }

    li {
        margin: 1rem 0;
    }
}

.philosophy {
    p {
        font-size: var(--fs-xxl);
        text-align: center;
        font-family: var(--font-serif);
        line-height: 1.2;
        font-style: italic;
    }
}

.image-block img {
    width: 100%;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.15);
    border-radius: 1rem;
}

.pillars {
    background-color: var(--neutral);
    color: var(--white);
    text-align: center;

    .h3-alt {
        color: var(--surface);
    }

    h4 {
        font-size: 2em;
    }

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

.section-header h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.pillar-card {
    text-align: left;
    padding: 1rem;

    svg {
        width: 2rem;
    }
}

.icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    border-radius: 4px;
    border: 1px solid rgba(250, 250, 250, 0.5);
}

.pillar-card {
    h4 {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }

    h5 {
        font-size: var(--fs-large);
        font-family: var(--font-serif);
    }

    p {
        font-size: var(--fs-medium);
        color: rgba(255, 255, 255, 0.7);
    }

    .sub-tag {
        font-size: var(--fs-small);
        color: var(--accent);
        text-transform: uppercase;
        font-weight: 700;
        letter-spacing: 0.2em;
        margin-bottom: 0.5rem;
    }
}

.services-intro {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 5rem;
}

.intro-left h2 {
    font-size: 4rem;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 2rem;
}
.intro-left p {
    max-width: 500px;
    color: var(--secondary);
    margin: 1rem 0;
}

.service-text {
    margin: 0 0 5rem 0;

    p {
        color: var(--secondary);
    }
}

.btn-solid {
    border-radius: 0.5rem;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    padding: 1.2rem 2.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 700;
    transition: all 0.2s ease-in-out;

    &:hover {
        background: var(--accent);
        transform: translateY(-5px);
    }
}

.service-card {
    border-radius: 1rem;
    background: var(--white);
    padding: 4rem;
    box-shadow: 0 40px 60px -15px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease-in-out;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.05);

    .service-header {
        display: flex;
        align-items: center;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    svg {
        width: 2rem;
        height: 2rem;
        color: var(--primary);
    }

    &:hover {
        box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.15);
        transition:
            box-shadow 0.5s ease-in-out,
            transform 0.5s ease-in-out;
    }

    .service-list {
        list-style: none;
        margin: 2rem 0;
        font-size: var(--fs-small);
        color: var(--primary);
    }

    .service-list li::before {
        content: "•";
        color: var(--accent);
        margin-right: 0.5rem;
    }

    .link-more {
        text-decoration: none;
        color: var(--primary);
        font-weight: 700;
        text-transform: uppercase;
        font-size: var(--fs-small);
        letter-spacing: 0.1em;
    }

    h4 {
        font-family: var(--font-serif);
        font-size: var(--fs-large);
    }
}

/* Secondary Pages */

.alt-hero {
    background-color: var(--neutral);
}

.alt-hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;

    h1 {
        font-size: 5rem;
        color: var(--surface);
    }

    p {
        color: var(--secondary);
        padding: 0.5rem 0;
        font-size: var(--fs-large);
    }
}

.alt-hero-content nav {
    display: flex;
    gap: 0.5rem;
    font-size: var(--fs-medium);
}

.breadcrumb-nav {
    color: var(--surface);

    a {
        color: var(--accent);
    }
}

.our-story-container {
    h2 {
        color: var(--primary);
    }
}

.profile-content {
    display: flex;
    flex-direction: row;
    gap: 8rem;

    h2 {
        font-family: var(--font-serif);
        font-size: var(--fs-xxxl);
    }

    p {
        padding: 0.5em 0;
    }

    .profile-title {
        color: var(--primary);
        font-weight: 700;
    }

    .profile-img {
        max-width: 350px;
        max-height: 520px;
    }
}

@media (max-width: 890px) {
    .profile-content {
        flex-direction: column;
        gap: 2rem;
    }
}

.profile-img {
    position: relative;
    display: inline-block;

    img {
        display: block;
        position: relative;
        z-index: 2;
    }
}

.profile-img::before {
    content: "Founder";
    position: absolute;
    bottom: -20px;
    right: -10px;
    padding: 1em 2em;
    background-color: var(--neutral);
    color: var(--surface);
    z-index: 3;
    word-spacing: 1;
}

.profile-img::after {
    content: "";
    position: absolute;
    top: 40px;
    left: 40px;
    min-width: 350px;
    min-height: 525px;
    border: 2px solid var(--accent);
    z-index: 1;
    opacity: 0.25;
}

.reverse {
    flex-direction: row-reverse;

    @media (max-width: 890px) {
        flex-direction: column;
    }
}

.profile-quote {
    text-align: center;
    font-size: var(--fs-xxxl);
    font-family: var(--font-serif);
    padding: 3rem 0;

    em {
        color: var(--primary);
    }
}

.services-container h3 {
    font-size: var(--fs-large);
    margin: 0;
}

.service-btn {
    margin-top: 2em;
    display: inline-block;
}

/* Contact Form */
.form-header {
    padding: 2em 0 0;
}

.form-page-wrapper {
    display: flex;
    justify-content: space-between;
}

.contact-info p:has(a) {
    padding: 1rem 0;
}

/* --- Form Container & Progress --- */
.form-container {
    background: white;
    width: 100%;
    max-width: 800px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(101, 28, 83, 0.08);
    border: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
}

.progress-bar-container {
    background: var(--secondary);
    height: 8px;
    width: 100%;
    position: relative;
    margin-top: 1em;
}
.progress-fill {
    background: var(--primary);
    height: 100%;
    width: 20%;
    transition: width 0.5s ease;
}

.step-indicator {
    padding: 30px 40px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--accent);
}
.step-text {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--neutral);
}

/* --- Form Steps Logic --- */
.form-step {
    display: none;
    padding: 40px;
    animation: fadeIn 0.4s ease forwards;
}
.form-step.active {
    display: block;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-title {
    font-family: "Playfair Display", serif;
    font-size: 1.8rem;
    color: var(--primary-plum);
    margin-bottom: 8px;
}
.step-subtitle {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 0.95rem;
}

/* --- Input Styling --- */
.input-group {
    margin-bottom: 24px;
}
.input-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--neutral);
}
.form-control {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--primary);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
    background: #fafafa;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(101, 28, 83, 0.1);
}
textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* --- Custom Radio/Checkbox "Cards" --- */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.options-grid-1col {
    grid-template-columns: 1fr;
}
.options-grid-2col {
    grid-template-columns: 1fr 1fr;
}
.options-grid-3col {
    grid-template-columns: 1fr 1fr 1fr;
}

.option-label {
    display: block;
    position: relative;
    cursor: pointer;
}
.option-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.option-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: white;
    border: 2px solid var(--primary);
    border-radius: 8px;
    transition: var(--transition-smooth);
    font-weight: 500;
    color: var(--neutral);
}

.option-label:hover .option-card {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--white);
}

/* Checked State */
.option-label input:checked ~ .option-card {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}
.option-label input:focus-visible ~ .option-card {
    outline: 3px solid var(--secondary);
    outline-offset: 2px;
}
.option-label input:checked ~ .option-card::after {
    background-color: white;
    border-color: white;
    /* Plum colored SVG checkmark */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23651c53' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
}

/* Checkmark / Radio Indicator */
.option-card::after {
    content: "";
    display: block;
    width: 20px;
    height: 20px;
    margin-left: 12px;
    flex-shrink: 0;
    border: 2px solid var(--primary);
    border-radius: 50%; /* Circle for radio buttons */
    transition: all var(--transition-smooth);
    background-color: var(--white);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 12px;
}

/* Square indicator for checkboxes */
.option-label input[type="checkbox"] ~ .option-card::after {
    border-radius: 4px;
}

/* --- Form Footer Buttons --- */
.form-footer {
    padding: 30px 40px;
    background: var(--surface);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn {
    padding: 14px 32px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-prev {
    background: transparent;
    color: var(--text-muted);
    border: 2px solid var(--accent);
}
.btn-prev:hover {
    background: #f0f0f0;
    color: var(--primary);
}

.btn-next {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgba(101, 28, 83, 0.2);
}
.btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(101, 28, 83, 0.3);
    background-color: #4d153f;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

@media (max-width: 600px) {
    .form-step {
        padding: 30px 20px;
    }
    .form-footer {
        padding: 20px;
        flex-direction: column-reverse;
        gap: 16px;
    }
    .btn {
        width: 100%;
        justify-content: center;
    }
    .options-grid {
        grid-template-columns: 1fr;
    }

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

/*--Footer--*/
footer {
    padding: 5em 0;
    background-color: var(--neutral);
    margin: 10em 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    color: var(--surface);

    > :first-child {
        grid-column: span 2 / span 2;
    }

    .footer-logo {
        max-width: 200px;
        padding: 1rem;
        background-color: rgba(255, 255, 255, 0.1);
        margin-bottom: 2rem;
    }

    p.footer-text {
        font-style: italic;
        line-height: 1.8;
        color: var(--surface);
    }
}

.footer-title {
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: 0.1rem;
    font-weight: 700;
    font-size: var(--fs-small);
}

.footer-nav-list {
    list-style: none;
    margin: 1rem 0;
    font-size: var(--fs-medium);

    li::before {
        content: "•";
        color: var(--accent);
        margin-right: 0.5rem;
    }

    a {
        color: var(--surface);
        text-decoration: none;
    }

    a:hover {
        color: var(--accent);
        text-decoration: underline;
    }
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }
    .hero-footer {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }
    .navbar {
        flex-direction: column;
    }

    .nav-links {
        padding-top: 2rem;
    }

    .services-intro {
        flex-direction: column;
        align-items: start;
    }

    .intro-left p {
        max-width: 100%;
    }

    .btn-solid {
        margin-top: 3rem;
    }

    .form-page-wrapper {
        flex-direction: column-reverse;
    }
}

@media (max-width: 725px) {
    .nav-links {
        justify-content: center;
        flex-wrap: wrap;
        padding-top: 2rem;
    }
}
