/* ==================================================
   GLOBAL STYLES
   ================================================== */

:root {
    --color-white: #FFFFFF;
    --color-lightbrown: #a47a62;
    --color-darkgrey: #353B41;
    --color-midgrey: #434a52;
    --color-deepgrey: #2a2f34;
    --color-footer-link-hover: #a8dadc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    height: 100%;
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
    color: var(--color-white);
    background-image: url(bg3.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

/* ==================================================
   MAIN
   ================================================== */

main {
    flex: 1;
    padding: 20px;
    text-align: center;
    margin-top: 65px;
    color: black;
}

/* ==================================================
   TYPOGRAPHY
   ================================================== */

h1 {
    font-size: 30px;
    padding-bottom: 2rem;
    color: var(--color-lightbrown);
}

h2 {
    font-size: 25px;
    font-weight: 100;
    padding-bottom: 1rem;
}

h3 {
    font-size: 20px;
    padding-bottom: 1rem;
}

p {
    font-size: 20px;
    padding-bottom: 2rem;
}

/* ==================================================
   HEADER + NAVIGATION
   ================================================== */

header {
    background: var(--color-darkgrey);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    padding: 20px 30px;
    height: 120px;
    display: flex;
    align-items: center;
}

.lft {
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    height: 100%;
    flex-shrink: 0;
}

.nav-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
}

.logo img {
    height: 80px;
    width: auto;
    max-width: 100%;
    border-radius: 20px;
}

.title {
    font-size: 45px;
    padding-bottom: 2rem;
    color: var(--color-lightbrown);
}

nav {
    display: flex;
    margin: auto;
    align-items: center;
    justify-content: space-between;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 15px;
}

nav ul li {
    position: relative;
}

nav a,
nav ul li a {
    color: var(--color-white);
    text-decoration: none;
    font-size: 1rem;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s, color 0.3s;
    display: block;
}

nav ul li a:hover {
    background: var(--color-midgrey);
    color: var(--color-white);
}

nav ul li a::after {
    content: '';
    display: block;
    height: 3px;
    background-color: var(--color-lightbrown);
    width: 100%;
    transform: scaleX(0);
    transition: transform 0.3s ease-in-out;
    transform-origin: bottom right;
}

nav ul li a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

nav ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-deepgrey);
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 100;
    opacity: 0;
    transform: scaleY(0);
    transform-origin: top;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

nav ul li:hover ul {
    display: block;
    opacity: 1;
    transform: scaleY(1);
}

nav ul li ul li a {
    padding: 10px 15px;
    white-space: nowrap;
}

nav ul li ul li a:hover {
    background: #3b434b;
}

/* ==================================================
   LINKS
   ================================================== */

a {
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
}

a:link,
a:visited {
    color: var(--color-white);
}

a:hover {
    color: var(--color-lightbrown);
}

/* ==================================================
   SECTION BLOCKS
   ================================================== */

section {
    padding: 100px 20px;
    min-height: 10vh;
}

#home,
#services,
#about,
#contact {
    font-family: Arial, sans-serif;
    background-color: rgba(67, 74, 82, 0.9);
    width: 85%;
    padding: 20px;
    margin: auto;
    text-align: center;
    border-radius: 10px;
    color: white;
    margin-top: 100px;
}

/* ==================================================
   MOBILE LOGO
   ================================================== */

.logomobile {
    display: flex;
    justify-content: center;
}

.logomobile img {
    height: 0px;
    width: auto;
    max-width: 100%;
    border-radius: 20px;
}

@media (max-aspect-ratio: 1/1) {
    .logo img {
        height: 0px;
    }

    header {
        align-items: center;
        padding: 15px 20px;
        align-content: center;
    }

    .logomobile img {
        height: 80px;
    }
}

/* ==================================================
   FOOTER
   ================================================== */

footer {
    background: var(--color-darkgrey);
    color: var(--color-white);
    padding: 40px 20px;
    font-size: 0.9rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 15px;
    color: var(--color-white);
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--color-white);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--color-lightbrown);
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    font-size: 1.5rem;
    color: var(--color-white);
    transition: transform 0.3s, color 0.3s;
}

.social-icons a:hover {
    color: var(--color-footer-link-hover);
    transform: scale(1.2);
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    font-size: 0.8rem;
    color: var(--color-white);
}

/* ==================================================
   IMAGES
   ================================================== */

img {
    transition: transform 0.3s, color 0.3s;
}

img:hover {
    transform: scale(1.1);
}

/* ==================================================
   SCROLL TO TOP BUTTON
   ================================================== */

#scroll-to-top {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background-color: #3b434b;
    color: var(--color-white);
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease,
        transform 0.3s ease,
        background-color 0.5s ease;
}

#scroll-to-top:hover {
    background-color: var(--color-lightbrown);
    transform: scale(1.1);
}

#scroll-to-top:active {
    transform: scale(1);
}

body.scrolled #scroll-to-top {
    opacity: 1;
    visibility: visible;
}
