:root {
    --bg-clr: #050522;
    --cnt-clr: #aaa;
    --hdr-clr: #ffdd00;

    --cnt-wmax: 1200px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

img {
    width: 100%;
    height: auto;
}

.content {
    max-width: var(--cnt-wmax);
    padding: 0 2em;
    margin: 0 auto;
    color: var(--cnt-clr);
}

@media screen and (max-width: 400px) {
    .content {
        padding: 0 0.2em;
    }
}

html, body {
    background-color: var(--bg-clr);
}

.page-header {
    background-color: var(--hdr-clr);
    color: black;
    padding: 1em 0;
    text-align: center;
}

.page-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-header-content>* {
    flex: 1;
}

.page-header-nav,
.page-header-right {
    display: flex;
    gap: 1em;
    justify-content: center;
    align-items: center;
}

.page-header-nav a {
    text-decoration: none;
    font-weight: normal;
    padding: 5%;
    border-radius: 5px;
    color: black;
    font-size: large;
}

.page-header-right-btn {
    font-weight: bolder;
    text-decoration: none;
    font-size: large;
    padding: 5%;
    border-radius: 5px;
}

.page-header-title {
    font-size: 3em;
    font-weight: bolder;
}

.page-header-title a {
    text-decoration: none;
    padding: 2%;
    border-radius: 20px;
}

.page-header a { transition: all ease-in-out 0.3s; }
.page-header a:hover {
    background-color: #ddd;
}

@media screen and (max-width: 800px) {
    .page-header-content {
        flex-direction: column;
        gap: 1em;
    }

    .page-header-content>* {
        flex: unset;
    }

    .page-header-nav {
        flex-wrap: wrap;
        width: 100%;
        gap: 0.5em;
    }
    /* Make buttons full width on small screens */
    .page-header-nav a, .page-header-right-btn {
        flex: 1 1 100%;
        text-align: center;
        padding: 10px 0;
        font-size: 1.2em;
        border-radius: 10px;
        margin: 0 auto;
    }
}

.hero {
    width: 100%;
}

.hero-image {
    margin: 0 auto;
}

.hero-image-background {
    background-image: url('../img/ba8.jpeg');
    background-size: cover;
    background-position: center;
    width: 100%;
    margin: 0 auto;
}

.hero-section {
    padding: 5%;
    color: white;
    
    text-align: center;
    text-shadow: 0 0 5px 5px #0006;
    width: 100%;
    height: 100%;
    background-color: #000a;

    display: flex;
    justify-content: center;
    align-items: center;

}

.hero-title {
    font-size: 4em;
    margin-bottom: 0.5em;
}

.hero-subtitle {
    font-weight: normal;
    font-size: 2em;
}

@media screen and (max-width: 800px) {
    .hero-title {
        font-size: 2.5em;
    }

    .hero-subtitle {
        font-size: 1.2em;
    }

}

.intro {
    padding: 5% 10%;
    text-align: center;
}

.intro-title {
    font-weight: normal;
    font-size: 2em;
    margin-bottom: 0.5em;
}

.images {
    padding: 5% 10%;
    text-align: center;
    display: flex;
    flex-direction: row;
    gap: 2em;
    justify-content: center;
    align-items: center;
}

@media screen and (max-width: 500px) {
    .images {
        flex-direction: column;
        padding: 5% 2%;
    }

    .intro-title,
    .hero-title,
    .page-header-title {
        font-size: 1.5em;
    }
}

@media screen and (max-width: 300px) {
    .page-header-title {
        font-size: 1.2em;
    }
}

.book-img {
    background-image: url('../img/wre.jpg');
    background-size: cover;
    background-position: center;
    width: 100%;
}

.book-img a {
    color: unset;
}

.book {
    padding: 15% 5%;
    margin: 0 auto;
    color: white;
    text-shadow: 1px 1px #000a;
    width: 100%;
    height: 100%;
    background-color: #0006;
    font-weight: 500;
}

.book-outer,
.book-img,
.book {
    border-top-left-radius: 2em;
    border-top-right-radius: 2em;
}

.book-outer {
    border-bottom-left-radius: 2em;
    border-bottom-right-radius: 2em;

    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    align-items: center;

    gap: 2em;
    padding-bottom: 2em;
    margin: 2em auto;

    box-shadow: 5px 5px 15px #0008;

    width: 30%;
}

.book-title {
    font-size: 1.5em;
    margin-bottom: 0.5em;
}

@media screen and (max-width: 800px) {
    .book-outer {
        width: 95%;
    }

    .book {
        padding: 10% 5%;
    }

    .book-title {
        font-size: 1.2em;
    }

    .book-text {
        font-size: 0.9em;

        padding-left: 5%;
        padding-right: 5%;
    }



}

.profile-container {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: stretch;
    gap: 2em; 
}

.profile {
    flex: 1 0 auto;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2em;
    padding: 2%;

    justify-content: center;
    align-items: center;

    width: 40%;
    height: 100%;

    margin: 0 auto;

    border: 2px solid #0003;
    border-radius: 2em;
}

@media screen and (max-width: 900px) {
    .profile {
        width: min(80%, 300px);
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;

        padding: 5%;
    }
}

.page-footer {
    background-color: #222220;
    color: white;
    padding: 1em 0;
    margin-top: 2em;
}  

.page-footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5em;
}   

.page-footer a {
    color: white;
}

.brands {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2em;
    padding: 2% 0;
}

.service {
    display: flex;
    flex-direction: column;
    margin: 2em 0;
    gap: 2em;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.opt {
    font-weight: normal;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1em;
    flex-wrap: wrap;
    max-width: 800px;
    justify-content: center;
}

.service-btn {
    background-color: white;
    border: 2px solid #222;
    border-radius: 2em;
    padding: 0.8em 1.5em;
    font-family: inherit;
    font-size: 0.9em;
    color: #222;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    outline: none;
}

.service-btn:disabled {
    cursor: not-allowed;
    background-color: #e0e0e0;
    color: #aaa;
    border-color: #aaa;
    box-shadow: none;
    transform: none;
}

.service-btn:hover:not(:disabled) {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.service-btn.selected {
    background-color: #222;
    color: white;
    border-color: #222;
}

.service-btn.selected:hover {
    background-color: #333;
    border-color: #333;
}

.selected-services {
    margin-top: 2em;
    padding: 1em;
    background-color: #f9f9f9;
    border-radius: 1em;
    border: 1px solid #ddd;
    max-width: 800px;
    text-align: center;
}

.selected-services p {
    margin: 0;
}

#selected-list {
    font-weight: normal;
    color: #666;
}

.opt-box {
    flex: 0 1 20%;
    display: block;
    border: 2px solid #222;
    border-radius: 1em;
    padding: 1em;
    margin: 1em 0;
    background-color: white;
    box-shadow: 5px 5px 15px #0002;
    max-width: 400px;
    width: 100%;

    text-decoration: none;

}

.form {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1em;
}

.form>div {
    margin: 0.5em 0;
}

.form>div:has(label) {
    align-items: center;
    display: flex;
    justify-content: right;
    text-align: right;
    gap: 1em;
}

.cf-normal {
    display: block;
    margin: 1em auto;
}

.cf-compact {
    display: none;
}

@media screen and (max-width: 700px) {
    .form {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form>div:has(label) {
        justify-content: center;
        text-align: center;
    }

    .cf-normal {
        display: none;
    }

    .cf-compact {
        display: block;
        margin: 1em auto;
    }
}


input {
    padding: 0.5em;
    border: 1px solid #ccc;
    border-radius: 0.5em;
    width: 100%;
    font-size: 1em;
}

textarea {
    padding: 0.5em;
    border: 1px solid #ccc;
    border-radius: 0.5em;
    width: 100%;
    font-size: 1em;
    resize: vertical;
    min-height: 100px;
}

.red, .error {
    color: red;
}

.success {
    color: rgb(0, 159, 106);
}

.cbrand {
    color: rgb(0, 221, 255);
}

.ibrand {
    color: rgb(10, 32, 83);
    font-style: italic;
}

/* Services List Collapsible Styles */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 1em;
    margin-top: 2em;
}

.service-item {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.service-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.service-header {
    padding: 1.5em;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    transition: background-color 0.3s ease;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 1em;
}

.service-header:hover {
    background-color: #f8f9fa;
}

.service-title {
    font-size: 1.2em;
    font-weight: bold;
    margin: 0;
}

.service-toggle {
    font-size: 1.5em;
    color: #666;
    transition: transform 0.3s ease;
    user-select: none;
}

.service-item.active .service-toggle {
    transform: rotate(45deg);
}

.service-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    background: #f9f9f9;
}

.service-item.active .service-content {
    max-height: 500px;
    padding: 1.5em;
}

.service-description {
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.service-features {
    margin-top: 1em;
    padding-left: 1.2em;
}

.service-features li {
    color: #666;
    margin-bottom: 0.5em;
    line-height: 1.4;
}

@media screen and (max-width: 600px) {
    .service-header {
        padding: 1em;
    }
    
    .service-item.active .service-content {
        padding: 1em;
    }
    
    .service-title {
        font-size: 1.1em;
    }
}

.rounded {
    border-radius: 2em;
    overflow: hidden;
    box-shadow: 5px 5px 15px #0008;
    margin: 2em auto;
    max-width: var(--cnt-wmax);
}