
/* ========================================
   1. GENERAL
======================================== */

body {
    background: #f8f8fa url("/images/bg.gif") repeat-x scroll left top;
    color: #6f6f6f;
    font-family: Tahoma, sans-serif;
    margin: 4rem;
}

p {
    font-size: large;
    line-height: 1.7;
}


/* ========================================
   2. HEADER
======================================== */

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    margin: 4rem 0;
}

.logo {
    z-index: 150;
    width: 30%;
}

.logo a {
    text-decoration: none;
}

.logo img {
    float: left;
    margin-right: 2rem;
}

.name {
    color: #000;
}

.name2 {
    color: #D61E20;
    font-size: 150%;
}

nav {
    position: relative;
}

nav ul.menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul.menu li {
    display: inline-block;
    margin-left: 1.5rem;
}

nav ul.menu li a {
    color: #000;
    text-decoration: none;
}

nav ul.menu li a:hover {
    text-decoration: underline;
}

.menu-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
}


/* ========================================
   3. MAIN INTRO
======================================== */

.main-intro {
    display: grid;
    grid-template-columns: 1fr 2fr;
    grid-template-areas: "photo text";
    gap: 8rem;
    align-items: center;
    padding: 2rem 0;
}

.hero-photo {
    grid-area: photo;
    justify-self: end;
}

.hero-photo img {
    display: block;
    max-width: 80%;
}

.main-intro-text {
    grid-area: text;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 2rem;
    font-size: xx-large;
    line-height: 1.3;
}

.main-intro-text h1 {
    margin: 0;
    color: #000;
    font-size: xx-large;
    font-weight: normal;
}

.main-intro-text p {
    font-size: xx-large;
}


/* ========================================
   4. PRACTICE
======================================== */

.main-text {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem;
    margin: 5rem 0;
}

.practice {
    padding: 2.5rem 3rem;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
}

.practice h2 {
    margin: 0 0 1.5rem;
    color: #000;
    font-weight: normal;
}

.practice p {
    margin: 0 0 1.5rem;
    line-height: 1.7;
}

.practice a {
    display: inline-block;
    margin-top: 0.5rem;
    color: #1A4D8F;
    text-decoration: none;
}

.practice a:hover {
    text-decoration: underline;
}

.main-about {
    margin: 5rem 0;
}


/* ========================================
   5. SERVICES
======================================== */

/* Services intro */

.servicies-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    padding: 4rem 0 5rem;
    margin: 2rem 0 3rem;
    border-bottom: 1px solid #dedee2;
}

.servicies-intro-left {
    position: relative;
    max-width: 1050px;
    padding-left: 2rem;
    border-left: 4px solid #1A4D8F;
}

.servicies-intro-left h1 {
    margin: 0 0 1.5rem;
    color: #171717;
    font-size: clamp(2rem, 2.5vw, 2.8rem);
    font-weight: normal;
    line-height: 1.2;
}

.servicies-intro-left p {
    max-width: 950px;
    margin: 0;
    color: #44464a;
    font-size: clamp(1.25rem, 1.7vw, 1.65rem);
    font-weight: normal;
    line-height: 1.65;
}


/* Services main */

.servicies-main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 5rem;
    margin: 5rem 0;
    align-items: start;
}

.servicies-main-left {
    position: sticky;
    top: 3rem;
}

.servicies-main-left h2 {
    margin: 0;
    color: #171717;
    font-size: clamp(1.8rem, 2.2vw, 2.4rem);
    font-weight: normal;
    line-height: 1.3;
}

.servicies-main-right {
    display: flex;
    flex-direction: column;
}

.servicies-main-right h3 {
    margin: 0 0 0.8rem;
    color: #171717;
    font-size: 1.35rem;
    font-weight: normal;
    line-height: 1.4;
}

.servicies-main-right p {
    margin: 0 0 2.5rem;
    color: #555;
    font-size: 1.1rem;
    line-height: 1.7;
}


/* Services steps */

.servicies-step {
    display: grid;
    grid-template-columns: 3rem 1fr;
    column-gap: 1.2rem;
    padding: 0 0 2rem;
}

.servicies-step + .servicies-step {
    padding-top: 2rem;
    border-top: 1px solid #dedee2;
}

.servicies-step-number {
    color: #1A4D8F;
    font-size: 1.7rem;
    font-weight: normal;
    line-height: 1.4;
    font-variant-numeric: tabular-nums;
}

.servicies-step h3 {
    margin-top: 0;
}

.servicies-step p {
    margin-bottom: 0;
}


/* Services advantages */

.servicies-advantages {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 5rem;
    margin: 5rem 0;
    align-items: start;
}

.servicies-advantages-left {
    position: sticky;
    top: 3rem;
}

.servicies-advantages-left h2 {
    margin: 0;
    color: #171717;
    font-size: clamp(1.8rem, 2.2vw, 2.4rem);
    font-weight: normal;
    line-height: 1.3;
}

.servicies-advantages-right {
    display: flex;
    flex-direction: column;
}

.servicies-advantages-right h3 {
    margin: 0 0 0.8rem;
    color: #171717;
    font-size: 1.35rem;
    font-weight: normal;
    line-height: 1.4;
}

.servicies-advantages-right p {
    margin: 0;
    color: #555;
    font-size: 1.1rem;
    line-height: 1.7;
}

.servicies-advantages-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 3rem;
    row-gap: 2.5rem;
}

.servicies-advantage-item {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #dedee2;
}

.servicies-advantage-item h3 {
    margin-top: 0;
}

.servicies-advantage-item p {
    margin-bottom: 0;
}


/* Services how */

.servicies-how {
    gap: 5rem;
    margin: 5rem 0;
}

.servicies-how h2 {
    margin: 0;
    color: #171717;
    font-size: clamp(1.8rem, 2.2vw, 2.4rem);
    font-weight: normal;
    line-height: 1.3;
}

.servicies-how p {
    margin: 3rem 0;
    color: #555;
    font-size: 1.1rem;
    line-height: 1.7;
}


/* ========================================
   6. ABOUT
======================================== */

/* About intro */

.about-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "text photo";
    gap: clamp(2rem, 6vw, 8rem);
    align-items: center;
    padding: 2rem 0;
}

.about-intro-left {
    grid-area: text;
    min-width: 0;
}

.about-intro-left h1 {
    margin: 0 0 1.5rem;
    color: #171717;
    font-size: clamp(2rem, 2.5vw, 2.8rem);
    font-weight: normal;
    line-height: 1.2;
}

.about-intro-left p {
    margin: 0;
    color: #44464a;
    font-size: clamp(1.25rem, 1.7vw, 1.65rem);
    line-height: 1.55;
}

.about-intro-right {
    grid-area: photo;
    justify-self: end;
    min-width: 0;
}

.about-intro-right img {
    display: block;
    width: 100%;
    max-width: 28rem;
    height: auto;
}


/* About main */

.about-main {
    margin: 5rem 0;
}

.about-main h2 {
    margin: 3rem 0 1.25rem;
    color: #171717;
    font-size: clamp(1.8rem, 2.2vw, 2.4rem);
    font-weight: normal;
    line-height: 1.3;
}

.about-main h2:first-child {
    margin-top: 0;
}

.about-main p {
    max-width: 75rem;
    margin: 0 0 1.5rem;
    color: #555;
    font-size: 1.1rem;
    line-height: 1.7;
}

.about-main a {
    color: #1A4D8F;
    text-decoration: none;
}

.about-main a:hover {
    text-decoration: underline;
}


/* ========================================
   7. REQUEST BUTTON
======================================== */

.request-float {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 3rem;
    background: #1A4D8F;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.request-float:hover {
    background: #163f75;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.22);
}

.request-float-icon {
    width: 1.3rem;
    height: 1.3rem;
    flex-shrink: 0;
}

.form-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ========================================
   8. REQUEST MODAL
======================================== */

.request-modal[hidden] {
    display: none !important;
}

.request-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.request-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.request-modal-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 34rem;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem;
    border-radius: 0.5rem;
    background: #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.request-modal-content h2 {
    margin: 0 2rem 1rem 0;
    color: #171717;
    font-size: 1.8rem;
    font-weight: normal;
}

.request-modal-content > p {
    margin: 0 0 1.8rem;
    color: #6f6f6f;
    font-size: 1rem;
    line-height: 1.6;
}

.request-modal-close {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    padding: 0;
    border: none;
    background: none;
    color: #777;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.request-modal-form {
    display: flex;
    flex-direction: column;
}

.request-modal-form label {
    margin: 0 0 0.5rem;
    color: #333;
    font-size: 1rem;
}

.request-modal-form input,
.request-modal-form textarea {
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 1.3rem;
    padding: 0.8rem 1rem;
    border: 1px solid #d5d5d5;
    border-radius: 0.25rem;
    background: #fff;
    color: #333;
    font: inherit;
}

.request-modal-form textarea {
    resize: vertical;
}

.request-modal-form input:focus,
.request-modal-form textarea:focus {
    outline: none;
    border-color: #1A4D8F;
}

.request-modal-form button {
    align-self: flex-start;
    padding: 0.9rem 1.8rem;
    border: none;
    border-radius: 0.25rem;
    background: #1A4D8F;
    color: #fff;
    font: inherit;
    cursor: pointer;
}

.request-modal-form button:hover {
    background: #163f75;
}


/* ========================================
   9. FOOTER
======================================== */

footer {
    margin: 4rem 0;
    text-align: center;
}


/* ========================================
   10. MOBILE VERSION
======================================== */

/* Tablets and smaller screens */

@media (max-width: 850px) {

    /* General */

    body {
        margin: 1rem 2rem;
    }


    /* Mobile navigation */

    nav ul.menu {
        display: block;
        position: fixed;
        left: 0;
        width: 100%;
        background: #f8f8fa;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
        transform: scaleY(0);
        transform-origin: top;
        transition: transform 0.3s ease;
        z-index: 999;
    }

    nav ul.menu.open {
        transform: scaleY(1);
    }

    nav ul.menu li {
        display: block;
        margin: 0;
        border-bottom: 1px solid #ddd;
    }

    nav ul.menu li:last-child {
        border-bottom: none;
    }

    nav ul.menu li a {
        display: block;
        width: 100%;
        padding: 1rem 2rem;
        color: #000;
        font-size: 1.2rem;
    }

    .menu-toggle {
        display: block;
    }

}


/* Mobile screens */

@media (max-width: 768px) {

    /* General */

    body {
        margin: 1rem;
    }

    p {
        font-size: 1rem;
    }


    /* Header */

    .site-header {
        gap: 1rem;
        margin: 1.5rem 0;
    }

    .logo {
        width: auto;
        max-width: 80%;
    }

    .logo img {
        max-width: 3rem;
        height: auto;
        margin-right: 0.8rem;
    }

    .name {
        font-size: 0.85rem;
    }

    .name2 {
        font-size: 1.1rem;
    }


    /* Main intro */

    .main-intro {
        grid-template-columns: 1fr;
        grid-template-areas:
            "photo"
            "text";
        gap: 2rem;
        padding: 1rem 0;
    }

    .hero-photo {
        justify-self: center;
    }

    .hero-photo img {
        max-width: 70%;
        margin: 0 auto;
    }

    .main-intro-text {
        padding: 0;
        font-size: 1.5rem;
        line-height: 1.4;
    }

    .main-intro-text h1 {
        font-size: 1.8rem;
        line-height: 1.25;
    }

    .main-intro-text p {
        font-size: 1.2rem;
    }


    /* Practice */

    .main-text {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 3rem 0;
    }

    .practice {
        padding: 1.5rem;
    }

    .practice h2 {
        font-size: 1.4rem;
    }

    .practice p {
        font-size: 1rem;
    }

    .main-about {
        margin: 3rem 0;
    }


    /* Services intro */

    .servicies-intro {
        padding: 2rem 0 3rem;
        margin: 1rem 0 2rem;
    }

    .servicies-intro-left {
        padding-left: 1.2rem;
    }

    .servicies-intro-left h1 {
        font-size: 1.8rem;
    }

    .servicies-intro-left p {
        font-size: 1.1rem;
    }


    /* Services main */

    .servicies-main {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin: 3rem 0;
    }

    .servicies-main-left {
        position: static;
    }

    .servicies-main-left h2 {
        font-size: 1.8rem;
    }

    .servicies-main-right h3 {
        font-size: 1.2rem;
    }

    .servicies-main-right p {
        margin-bottom: 1.5rem;
        font-size: 1rem;
    }


    /* Services steps */

    .servicies-step {
        grid-template-columns: 2.2rem 1fr;
        column-gap: 0.8rem;
        padding-bottom: 1.5rem;
    }

    .servicies-step + .servicies-step {
        padding-top: 1.5rem;
    }

    .servicies-step-number {
        font-size: 1.2rem;
    }


    /* Services advantages */

    .servicies-advantages {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin: 3rem 0;
    }

    .servicies-advantages-left {
        position: static;
    }

    .servicies-advantages-left h2 {
        font-size: 1.8rem;
    }

    .servicies-advantages-right h3 {
        font-size: 1.2rem;
    }

    .servicies-advantages-right p {
        margin: 0;
        font-size: 1rem;
    }

    .servicies-advantages-grid {
        grid-template-columns: 1fr;
        row-gap: 1.5rem;
    }

    .servicies-advantage-item {
        padding-bottom: 1.2rem;
    }


    /* Services how */

    .servicies-how {
        margin: 3rem 0;
    }

    .servicies-how h2 {
        font-size: 1.8rem;
    }

    .servicies-how p {
        margin: 1.5rem 0;
        font-size: 1rem;
    }


    /* About intro */

    .about-intro {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "text"
            "photo";
        gap: 2rem;
        padding: 1rem 0;
    }

    .about-intro-left h1 {
        margin-bottom: 1rem;
        font-size: 2rem;
    }

    .about-intro-left p {
        font-size: 1.2rem;
    }

    .about-intro-right {
        justify-self: start;
    }

    .about-intro-right img {
        max-width: 22rem;
    }


    /* About main */

    .about-main {
        margin: 3rem 0;
    }

    .about-main h2 {
        margin: 2.5rem 0 1rem;
        font-size: 1.8rem;
    }

    .about-main p {
        margin-bottom: 1.2rem;
        font-size: 1rem;
    }


    /* Footer */

    footer {
        margin: 3rem 0;
        font-size: 0.9rem;
    }


    /* Request button */

    .request-float {
        right: 1.2rem;
        bottom: 1.2rem;
        width: 3.5rem;
        height: 3.5rem;
        justify-content: center;
        padding: 0;
        border-radius: 50%;
    }

    .request-float span {
        display: none;
    }

    .request-float-icon {
        width: 1.5rem;
        height: 1.5rem;
    }


    /* Request modal */

    .request-modal-content {
        padding: 2rem 1.5rem;
    }

    .request-modal-content h2 {
        font-size: 1.5rem;
    }
}


/* Narrow mobile screens */

@media (max-width: 480px) {

    body {
        margin: 0.8rem;
    }

    .site-header {
        margin: 1rem 0;
    }

    .logo img {
        max-width: 2.5rem;
    }

    .name {
        font-size: 0.75rem;
    }

    .name2 {
        font-size: 1rem;
    }

    .main-intro-text h1 {
        font-size: 1.6rem;
    }

    .main-intro-text p {
        font-size: 1.1rem;
    }

    .practice {
        padding: 1.2rem;
    }

    .request-float {
        right: 1rem;
        bottom: 1rem;
    }
}
