:root {
    --primary-color: #3B3C4A;
    --secondary-color: #8D8F6A;
    --highlight-color: #DAA06D;
    --background-color: #FDF6ED;
    --base-ui: #D9D2C1;
    --text-color: #3B3C4A;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    background: var(--background-color);
    background-image: linear-gradient(rgba(59, 60, 74, 0.18), rgba(59, 60, 74, 0.18)), url("resources/PageBackground.png");
    background-repeat: repeat;
    background-size: 100vh auto;
    color: var(--text-color);
    margin: 0 15vw;
    padding-top: 40vh;
    font-size: clamp(1rem, 2vw, 1.2rem);
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 40vh;
    background-color: var(--base-ui);
    color: var(--primary-color);
    border-radius: 0 0 5px 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition:
        height 0.35s cubic-bezier(.4,0,.2,1),
        font-size 0.25s cubic-bezier(.4,0,.2,1),
        padding 0.25s cubic-bezier(.4,0,.2,1),
        gap 0.25s cubic-bezier(.4,0,.2,1),
        background 0.25s cubic-bezier(.4,0,.2,1),
        box-shadow 0.25s cubic-bezier(.4,0,.2,1);
    padding: 0;
    gap: 0.5rem;
}

header.shrink {
    height: 10vh;
    font-size: 0.8em;
    padding: 0.5rem 0;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    transition:
        height 0.4s cubic-bezier(.4,2,.6,1),
        font-size 0.3s cubic-bezier(.4,2,.6,1),
        padding 0.3s cubic-bezier(.4,2,.6,1),
        gap 0.3s cubic-bezier(.4,2,.6,1),
        background 0.3s cubic-bezier(.4,2,.6,1),
        box-shadow 0.3s cubic-bezier(.4,2,.6,1);
}

.site-logo {
    height: 80px;
    width: auto;
    margin: 2rem auto 0.5rem auto;
    display: block;
    padding-top: 5%;
    transition: height 0.3s, margin 0.3s, padding 0.3s;
}

header.shrink .site-logo {
    height: 40px;
    margin: 0 1rem 0 0;
    padding-top: 0;
}

header h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2.2rem;
    display: block;
    text-align: center;
}

.main-nav {
    flex: 1 1 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    margin: 0 0 1rem 0;
    height: 25%;
    transition: margin-top 0.3s, font-size 0.3s;
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    margin-top: 0.5rem;
    padding-bottom: 2rem;
}

@media (min-width: 601px) {
    .main-nav {
        margin: auto 0;
    }
}

header.shrink .main-nav {
    flex: 3 1 0;
    font-size: clamp(0.7rem, 1.5vw, 1rem);
}

header.shrink .site-logo {
    height: 40px;
    margin-bottom: 0;
    padding-left: 1rem;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 2rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 600;
    transition: color 0.2s;
}

.main-nav a:hover {
    color: var(--highlight-color);
    text-decoration: underline;
}

button,
.carousel-btn,
.show-more-btn,
.ai-help-btn {
    background: var(--secondary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    transition: background 0.2s, box-shadow 0.2s;
}

button:hover,
.carousel-btn:hover,
.show-more-btn:hover,
.ai-help-btn:hover {
    background: var(--highlight-color);
    color: #fff;
}

.featured {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: linear-gradient(135deg, #fffbe9 80%, #fabb85ec 100%);
    border-radius: 22px;
    margin-top: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.13);
    padding: 2.5rem 2rem 2rem 2rem;
    max-width: 900px;
    width: 100%;
    min-height: 220px;
    position: relative;
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border: 1.5px solid rgba(217, 210, 193, 0.18);
    transition: box-shadow 0.2s, background 0.2s;
    scroll-margin-top: 6.5rem;
    overflow: hidden;
    color: #3B3C4A;
}

.featured h2 {
    color: #8D8F6A; /* secondary color for headings */
    font-size: 2.1rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    letter-spacing: 0.01em;
    text-align: center;
}

.featured p {
    color: #3B3C4A; /* primary color for text */
    font-size: 1.08rem;
    margin-bottom: 1.2em;
    text-align: center;
    line-height: 1.7;
}

.Services, .Contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--base-ui);
    color: var(--primary-color);
    border-radius: 10px;
    margin-top: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: auto;
    min-width: 0;
    min-height: 0;
    padding: 1.5rem 2rem;
    box-sizing: border-box;
    scroll-margin-top: 6.5rem;
}

.info-wide {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    background: none;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 0;
}

.about-why-wrapper {
    display: flex;
    gap: 2.5rem;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
}

.about-us,
.why-us {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border-radius: 16px;
    color: #2d2e36;
    min-width: 260px;
    max-width: 400px;
    flex: 1 1 320px;
    padding: 2.2rem 2rem 2rem 2rem;
    box-sizing: border-box;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.1rem;
    border: 1.5px solid rgba(217, 210, 193, 0.18);
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s, background 0.3s;
    position: relative;
    scroll-margin-top: 6.5rem;
}

.about-us:hover,
.why-us:hover {
    box-shadow: 0 12px 36px rgba(218,160,109,0.13);
    border-color: #DAA06D;
    transform: translateY(-4px) scale(1.02);
}

.about-us h2,
.why-us h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3B3C4A;
    margin: 0 0 0.3rem 0;
    letter-spacing: 0.01em;
}

.about-us p,
.why-us p {
    font-size: 1.08rem;
    color: #444a3a;
    margin: 0;
    line-height: 1.7;
}

.icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fdf6ed;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 8px rgba(218,160,109,0.08);
}

@media (max-width: 900px) {
    .main-nav {
        font-size: clamp(0.85rem, 2.5vw, 1.1rem);
    }

    .about-why-wrapper {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    .about-us,
    .why-us {
        max-width: 98vw;
        width: 100%;
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 600px) {
    body {
        margin: 0 1rem;
    }

    .info-wide {
        flex-direction: column;
        align-items: center;
    }

    .about-us,
    .why-us {
        width: 95vw;
        min-width: unset;
        max-width: 100vw;
        margin: 0.5rem 1rem;
        padding: 1rem 1.2rem;
        min-height: 120px;
        box-shadow: 0 1px 2px rgba(0,0,0,0.08);
    }
    .about-us {
        margin-bottom: 1rem;
    }

    .main-nav {
        display: none;
        font-size: clamp(0.9rem, 4vw, 1.1rem);
    }
    .main-nav.mobile-active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 4rem;
        left: 50%;
        transform: translateX(-50%);
        background: #e3f2fd;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
        padding: 1rem 2rem;
        z-index: 1500;
        gap: 1rem;
        min-width: 200px;
        max-width: 90vw;
        align-items: center;
    }
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: absolute;
        top: 1rem;
        right: 1.5rem;
        width: 2rem;
        height: 2rem;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 2000;
        padding: 0;
    }
    .hamburger span {
        display: block;
        width: 2rem;
        height: 0.25rem;
        margin: 0.2rem 0;
        background: #333;
        border-radius: 2px;
        transition: 0.3s;
    }
}

footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    padding: 1rem 0;
    background: transparent;
}

.carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: 1rem auto;
    overflow: hidden;
    background: rgba(255,255,255,0.85);
    border-radius: 12px;
    padding: 0.5rem 0;
    margin-bottom: 1.5rem;
}

.carousel-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(.4,2,.6,1);
    width: 100%;
}

.carousel-card {
    min-width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: linear-gradient(135deg, #fdf6ed 70%, #fabb85ec 100%);
    border-radius: 18px;
    box-shadow: 0 6px 32px rgba(59,60,74,0.10);
    padding: 2.2rem 1.5rem 1.7rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s, background 0.3s;
    border: 1.5px solid rgba(217, 210, 193, 0.18);
    margin: 0;
    position: relative;
    overflow: hidden;
}

.carousel-card:hover {
    background: linear-gradient(135deg, #fffbe9 60%, #e08a2e 100%);
    box-shadow: 0 16px 48px rgba(218,160,109,0.15);
    border-color: #DAA06D;
    transform: translateY(-4px) scale(1.025);
}

.carousel-card img {
    width: 180px;
    height: 110px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.carousel-btn {
    background: #8D8F6A;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 2.6rem;
    height: 2.6rem;
    font-size: 1.35rem;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    opacity: 1;
    transition: background 0.2s, opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 2px 8px rgba(52,152,219,0.12);
}

.carousel-btn svg,
.carousel-btn i {
    display: block;
    margin: 0 auto;
    font-size: 1.35rem;
    width: 1.35em;
    height: 1.35em;
    vertical-align: middle;
}

.carousel-btn.left {
    left: 0.5rem;
    right: auto;
}

.carousel-btn.right {
    right: 0.5rem;
    left: auto;
}

.carousel-btn:hover {
    background: #2176b6;
    opacity: 1;
}

.Services {
    background: #fabb85ec;
    border-radius: 18px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.12);
    padding: 2.5rem 2rem 2rem 2rem;
    margin: 2.5rem auto 1.5rem auto;
    max-width: 700px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    border: 1.5px solid rgba(217, 210, 193, 0.28);
    position: relative;
    color: #2d2e36; /* dark text for orange bg */
}

.Services h2 {
    color: #2d2e36; /* strong contrast on orange */
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.2em;
    letter-spacing: 0.01em;
}

.Services p {
    color: #3b3c4a; /* dark, readable on orange */
    font-size: 1.08rem;
    margin-bottom: 0.8em;
}

.Services ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem 2rem;
    width: 100%;
    padding: 0;
    margin: 0;
    list-style: none;
}

.Services li {
    background: #fff; /* white for best contrast */
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(218, 160, 109, 0.07);
    padding: 1.2rem 1rem 1.2rem 1.2rem;
    color: #2d2e36; /* dark text on white */
    font-size: 1.08rem;
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    border-left: 5px solid var(--highlight-color);
    transition: box-shadow 0.2s, border-color 0.2s;
}

.Services li::before {
    content: "✔";
    color: #e08a2e; /* deeper orange for contrast */
    font-size: 1.1em;
    margin-right: 0.5em;
    flex-shrink: 0;
}

.Services li:hover {
    box-shadow: 0 4px 16px rgba(218, 160, 109, 0.13);
    border-left: 5px solid var(--secondary-color);
    background: #f5f0e6;
    color: #2d2e36;
}

.Contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-color: var(--base-ui);
    color: var(--primary-color);
    border-radius: 18px;
    margin: 1.5rem auto 2rem auto;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.12);
    width: 100%;
    max-width: 700px;
    min-width: 0;
    min-height: 0;
    padding: 2.5rem 2rem 2rem 2rem;
    box-sizing: border-box;
    scroll-margin-top: 6.5rem;
    border: 1.5px solid rgba(217, 210, 193, 0.18);
    transition: box-shadow 0.2s, border-color 0.2s, background 0.3s;
    z-index: 1;
}

.Contact h2 {
    color: #3B3C4A;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    letter-spacing: 0.01em;
    text-align: center;
}

.Contact p {
    color: #3b3c4a;
    font-size: 1.08rem;
    margin-bottom: 1.2em;
    text-align: center;
}

.Contact .contact-icons {
    display: flex;
    gap: 1.2rem;
    margin-top: 1.2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.Contact .contact-icon-btn,
.Contact .contact-btn {
    background: #fff;
    color: var(--secondary-color);
    border: 2px solid var(--highlight-color);
    border-radius: 50%;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 2px 8px rgba(218,160,109,0.08);
    transition:
        background 0.2s,
        color 0.2s,
        border-color 0.2s,
        box-shadow 0.2s,
        transform 0.25s cubic-bezier(.4,2,.6,1),
        width 0.2s,
        height 0.2s,
        font-size 0.2s;
    will-change: transform;
    cursor: pointer;
    outline: none;
}

@media (max-width: 600px) {
    .Contact .contact-icon-btn,
    .Contact .contact-btn {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

.show-more-btn, .show-less-btn {
    background: var(--highlight-color);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.18rem;
    font-weight: 600;
    padding: 0.85em 2.2em;
    margin: 1.2rem auto 0 auto;
    display: block;
    box-shadow: 0 4px 16px rgba(218,160,109,0.13);
    cursor: pointer;
    transition: 
        background 0.2s,
        color 0.2s,
        box-shadow 0.2s,
        transform 0.18s cubic-bezier(.4,2,.6,1);
}

.show-more-btn:hover,
.show-more-btn:focus,
.show-less-btn:hover,
.show-less-btn:focus {
    background: var(--secondary-color);
    color: #fff;
    box-shadow: 0 8px 32px rgba(141,143,106,0.18);
    transform: translateY(-2px) scale(1.06);
    outline: none;
}

.featured-cards,
#cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem 1.2rem;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

@media (max-width: 1000px) {
    .featured-cards,
    #cards-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 600px;
    }
}
@media (max-width: 600px) {
    .featured-cards,
    #cards-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
}

.featured-card,
#cards-grid .carousel-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(218, 160, 109, 0.08);
    padding: 0.7rem 0.6rem;
    color: #3B3C4A;
    font-size: 0.92rem;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    min-height: 70px;
    box-sizing: border-box;
    width: 100%;
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
    border: 1.5px solid rgba(217, 210, 193, 0.13);
}

#cards-grid .carousel-card img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

#cards-grid .carousel-card h3 {
    font-size: 1.05rem;
    margin: 0.3rem 0 0.2rem 0;
    color: #8D8F6A;
    font-weight: 700;
}

#cards-grid .carousel-card p {
    font-size: 0.95rem;
    color: #3B3C4A;
    margin: 0 0 0.2rem 0;
    line-height: 1.5;
}

#cards-grid {
    padding-bottom: 0;
    margin-bottom: 0;
}

/* Smooth scroll for anchor links */
html {
    scroll-behavior: smooth;
}
