@charset "utf-8";

body {
    font-family: Verdana, Geneva, sans-serif;
    color: rgb(91, 91, 91);
    background-color: ivory;
    margin: 0;
    padding: 0;
}

header {
    text-align: center;
    padding: 20px;
}

header img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    background-color: #000000;
    display: block;
}

h1, h2 {
    text-shadow: 4px 6px 5px gray;
}

h2 {
    font-size: 1.3em;
    color: #4b1ea3;
    margin-top: 20px;
}

h3 {
    color: #733cda;
    margin-top: 15px;
}

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

nav a {
    text-decoration: none;
    display: block;
    background-color: #733cda;
    line-height: 2.8em;
    text-align: center;
    color: #ffffff;
    transition: background-color 0.5s ease-in 0.2s, color 0.5s ease-in 0.2s, font-size 1s ease;
}

nav a:hover {
    background-color: #5527a6;
    color: #ffeb3b;
    font-size: 1.2em;
}

nav a#navicon {
    display: none;
}

main {
    padding: 20px;
    margin-top: 70px;
}

main p {
    line-height: 1.6em;
    font-size: 0.98em;
    margin-bottom: 14px;
}

hr {
    clear: both;
    margin: 30px 0 20px 0;
    border: none;
    border-top: 1px solid #d3c2ce;
}

ul.service-list, ol.process-list {
    line-height: 1.8em;
    padding-left: 25px;
}

table.pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px auto;
    background-color: #ffffff;
    border: 2px solid #733cda;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

table.pricing-table caption {
    font-size: 1.4em;
    font-weight: bold;
    padding: 10px;
    color: #733cda;
    caption-side: top;
}

table.pricing-table th,
table.pricing-table td {
    padding: 12px 15px;
    border: 1px solid #d3c2ce;
    text-align: left;
}

table.pricing-table thead th {
    background-color: #733cda;
    color: #ffffff;
    font-size: 1.05em;
    letter-spacing: 0.5px;
}

table.pricing-table tbody tr:nth-child(even) {
    background-color: #f7f3fd;
}

table.pricing-table tbody tr:hover {
    background-color: #eee6fb;
}

table.pricing-table tfoot td {
    background-color: #f1eafc;
    font-style: italic;
    text-align: center;
    font-weight: bold;
    color: #4b1ea3;
    padding: 12px;
}

div.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    margin: 25px 0;
}

figure.veil-card {
    flex: 1 1 30%;
    max-width: 31%;
    margin: 0;
    background-color: #ffffff;
    border: 1px solid #d3c2ce;
    border-radius: 6px;
    padding: 10px;
    box-sizing: border-box;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

figure.veil-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

figure.veil-card figcaption {
    font-weight: bold;
    color: #733cda;
    margin-top: 12px;
    font-size: 1.05em;
}

figure.veil-card p {
    font-size: 0.9em;
    margin: 6px 0 0 0;
    color: #555;
}

form {
    background-color: #ffffff;
    border-radius: 6px;
}

fieldset {
    border: 2px solid #733cda;
    border-radius: 5px;
}

legend {
    font-weight: bold;
    color: #733cda;
    padding: 0 8px;
    font-size: 1.1em;
}

input:focus, select:focus, textarea:focus {
    background-color: rgb(255, 255, 204);
}

input:valid, select:valid, textarea:valid {
    background-color: rgb(230, 255, 230);
}

input:invalid:not(:focus) {
    background-color: rgb(255, 230, 230);
}

input[type="submit"], input[type="reset"] {
    background-color: #733cda;
    color: #ffffff;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    font-family: inherit;
}

input[type="submit"]:hover, input[type="reset"]:hover {
    background-color: #5527a6;
    color: #ffeb3b;
}

body > footer {
    clear: both;
    background-color: #733cda;
    color: rgba(255, 255, 255, 0.85);
    font-weight: bold;
    font-size: 0.9em;
    line-height: 3em;
    text-align: center;
    margin-top: 25px;
    padding: 10px;
}

body > footer a {
    color: inherit;
}

@media only screen and (min-width: 769px) {
    html {
        background-image: url('bg.jpg');
        background-repeat: no-repeat;
        background-position: center center;
        background-attachment: fixed;
        background-size: cover;
    }

    body {
        width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    nav li {
        float: left;
        width: 33.33%;
        display: block;
    }

   figure.profile-figure {
        float: right;
        width: 310px;
        max-width: 35%;
        margin: 5px 0 25px 30px;
        text-align: center;
    }

    figure.profile-figure img {
        width: 100%;
        height: 390px;
        object-fit: cover;
        border-radius: 8px;
        display: block;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    }

    figure.profile-figure figcaption {
        font-size: 0.9em;
        font-style: italic;
        color: #733cda;
        margin-top: 8px;
        font-weight: bold;
    }
    form {
        width: 90%;
    }

    fieldset {
        width: 90%;
        padding: 15px;
        margin-right: 10px;
        margin-bottom: 10px;
    }

    input, select {
        display: block;
        position: relative;
        left: 30%;
        padding: 5px;
        height: auto;
        width: 60%;
        box-sizing: border-box;
    }

    label {
        display: block;
        position: absolute;
        padding: 5px;
        width: 30%;
        box-sizing: border-box;
    }

    input[type="radio"], input[type="checkbox"] {
        display: inline;
        position: inherit;
        left: 0;
        width: auto;
    }

    label.inline-label {
        display: inline;
        position: inherit;
        width: auto;
        padding-right: 15px;
    }

    input[type="submit"], input[type="reset"] {
        display: block;
        float: left;
        left: 0;
        text-align: center;
        width: 40%;
        padding: 10px;
        margin-left: 5%;
        margin-right: 5%;
        margin-bottom: 10px;
    }
}

@media only screen and (max-width: 768px) {
    body {
        width: 100%;
        margin: 0;
    }

    figure.veil-card {
        flex: 1 1 100%;
        max-width: 100%;
    }

    nav a#navicon {
        display: block;
        font-size: 2em;
        text-align: right;
        padding-right: 20px;
        color: #ffffff;
        background-color: #733cda;
        text-decoration: none;
        line-height: 1.6em;
        cursor: pointer;
    }

    nav ul {
        display: none;
    }

    nav:hover ul {
        display: block;
    }

    nav li {
        float: none;
        width: 100%;
        font-size: x-large;
        display: block;
    }

    nav a {
        border-bottom: 1px solid black;
    }

    table.pricing-table,
    table.pricing-table thead,
    table.pricing-table tbody,
    table.pricing-table tfoot,
    table.pricing-table tr,
    table.pricing-table th,
    table.pricing-table td {
        display: block;
    }

    table.pricing-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    table.pricing-table tr {
        border: 1px solid #733cda;
        margin-bottom: 15px;
        background-color: #ffffff;
        border-radius: 4px;
    }

    table.pricing-table td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%;
        text-align: right;
    }

    table.pricing-table td:last-child {
        border-bottom: none;
    }

    table.pricing-table td::before {
        position: absolute;
        top: 12px;
        left: 15px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: bold;
        text-align: left;
        color: #733cda;
        content: attr(data-label);
    }

    table.pricing-table tfoot td {
        padding-left: 15px;
        text-align: center;
    }

    table.pricing-table tfoot td::before {
        content: "";
    }

    figure.profile-figure {
        float: none;
        width: 90%;
        margin: 0 auto 20px auto;
        text-align: center;
    }

    figure.profile-figure img {
        width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
    }

    figure.profile-figure figcaption {
        font-size: 0.9em;
        font-style: italic;
        color: #733cda;
        margin-top: 8px;
        font-weight: bold;
    }

    form {
        width: 100%;
        font-size: large;
    }

    fieldset {
        width: 100%;
        padding: 5px;
        margin: 0;
        box-sizing: border-box;
    }

    input, select {
        position: inherit;
        display: block;
        height: 50px;
        padding: 5px;
        width: 90%;
        box-sizing: border-box;
    }

    label {
        position: inherit;
        display: block;
        height: 50px;
        width: 90%;
        box-sizing: border-box;
    }

    input[type="radio"], input[type="checkbox"] {
        display: inline;
        width: auto;
        height: auto;
    }

    label.inline-label {
        display: inline;
        width: auto;
        height: auto;
    }

    input[type="submit"], input[type="reset"] {
        float: none;
        width: 90%;
        margin: 10px auto;
        font-size: 1.2em;
        display: block;
        height: auto;
        padding: 10px;
    }
}