/* === GOOGLE FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Abril+Fatface&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* === ROOT VARIABLES === */
:root {
    /* BRAND */
    --primary: #FFECBD;
    --secondary: #470000;
    --tertiary: #899064;

    /* BACKGROUND */
    --normal: #FFECBD;
    --dark: #F4E3B4;
    --light: #FFFFF0;

    /* BUTTON */
    --pri-default: #470000;
    --pri-hover: #822E2E;
    --pri-active: #2B0000;
    --sec-default: #899064;
    --sec-hover: #BAC389;
    --sec-active: #585F33;
    --ter-default: #fffff0;
    --ter-hover: #FFECBD;
    --ter-active: #F4E3B4;

    /* NEUTRALS */
    --black: #1D1D1D;
    --grey-dark: #858178;
    --grey-light: #CDC4BC;
    --white: #FFFFF0;

    /* TRANSPARENT */
    --black-60: #1D1D1D99;
    --black-50: #1D1D1D80;
    --white-20: #FFFFF033;

    /* OTHERS */
    --dark-brown: #D8C799;
    --light-brown: #FFF6DE;

    /* FONTS */
    --heading: "Abril Fatface", serif;
    --text: "Poppins", sans-serif;
}

/* === RESET / NORMALIZE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--black);
    background-color: var(--light);
}

.wrapper {
    padding: clamp(50px, 7vw, 100px) clamp(20px, 12vw, 170px);
    border-radius: 30px;
}

.dark {
    background-color: var(--dark);
}

.normal {
    background-color: var(--normal);
}

img {
    max-width: 100%;
}

button {
    border: none;
}

a {
    text-decoration: none;
    color: inherit;
}

/* === GLOBAL TYPOGRAPHY  === */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--heading);
    color: var(--black);
    font-weight: 400;
}

body,
p {
    font-family: var(--text);
    color: var(--grey-dark);
    font-weight: 400;
}

h1 {
    font-size: clamp(48px, 6.7vw, 96px);
    line-height: clamp(57.6px, 13vh, 115.2px);
}

h2 {
    font-size: clamp(40px, 4.5vw, 64px);
    line-height: clamp(48px, 9vh, 76.8px);
}

h3 {
    font-size: clamp(32px, 3.4vw, 48px);
    line-height: clamp(38.4px, 7vh, 57.6px);
}

h4 {
    font-size: clamp(28px, 2.8vw, 40px);
    line-height: clamp(33.6px, 6vh, 48px);
}

h5 {
    font-size: clamp(24px, 2.2vw, 32px);
    line-height: clamp(28.8px, 5vh, 38.4px);
}

h6 {
    font-size: clamp(20px, 1.7vw, 24px);
    line-height: clamp(24px, 4vh, 28.8px);
}

p.price {
    font-size: clamp(18px, 2vw, 40px);
    line-height: clamp(28px, 4vh, 56px);
}

p.subtitle {
    font-size: clamp(18px, 1.4vw, 20px);
    line-height: clamp(25.2px, 4vh, 28px);
}

p {
    font-size: 16px;
    line-height: 22.4px;
}

p.bold {
    font-size: 16px;
    line-height: 22.4px;
    font-weight: 700;
}

p.small {
    font-size: 14px;
    line-height: 19.6px;
}

/* === SITEWIDE ELEMENTS  === */
/* LOGO */
.logo {
    min-width: 120px;
    width: clamp(150px, 15vw, 212px);
    transition: transform 0.3s;
}

.logo:hover {
    transform: scale(1.03);
}

/* HEADER */
header {
    display: flex;
    align-items: center;
    background-color: var(--black-50);
    padding: 15px clamp(5px, 2vw, 50px);
    width: 100%;
    position: fixed;
    top: 0;
    color: var(--white);
    white-space: nowrap;
    z-index: 1000;
}

.nav-left {
    margin-right: clamp(15px, 2vw, 40px);
}

.nav-center {
    margin-left: auto;
    margin-right: clamp(5px, 3vw, 80px);
    display: flex;
    align-items: center;
    gap: clamp(0px, 1.5vw, 35px);
}

.item {
    text-transform: uppercase;
    padding: 12px clamp(2px, 0.5vw, 10px) 12px clamp(2px, 1vw, 15px);
    font-size: clamp(12px, 1.1vw, 16px);
    pointer-events: none;
}

.menu-item.home .item {
    padding: 12px clamp(2px, 1vw, 15px);
    pointer-events: auto;
}

.submenu a:hover {
    color: var(--normal);
}

.item:hover {
    color: var(--normal);
}

.item img {
    transition: transform 0.2s;
}

.item img:hover {
    transform: rotate(180deg);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: clamp(8px, 2.5vw, 15px);
}

.nav-right p {
    font-size: clamp(12px, 1.2vw, 16px);
    font-weight: 700;
    line-height: 22.4px;
    color: var(--white);
    transition: transform 0.3s;
}

.nav-right p:hover {
    transform: scale(1.05);
}

.menu-toggle {
    display: none;
}

/* HEADER TITLE */
.title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: clamp(300px, 60vh, 490px);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    gap: clamp(10px, 2vw, 25px);
}

.title h3 {
    color: var(--white);
}

.breadcrumbs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.breadcrumbs .small {
    color: var(--white);
}

p.small.home {
    color: var(--grey-light);
}

/* FOOTER */
footer {
    background-color: var(--secondary);
    padding: clamp(30px, 3vw, 40px) clamp(20px, 12vw, 170px);
    position: relative;
}

footer a {
    transition: transform 0.3s;
}

footer a:hover {
    transform: scale(1.05);
}

.footer-top {
    display: flex;
    justify-content: space-between;
}

.footer-top h5 {
    color: var(--white);
    margin-right: clamp(20px, 4vw, 60px);
}

.footer-divider {
    border: none;
    border-top: 1px solid var(--tertiary);
    margin: 35px 0 45px 0;
}

.footer-content {
    display: flex;
    gap: clamp(30px, 7vw, 100px);
}

.footer-left {
    flex-direction: column;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.footer-contact p {
    color: var(--white);
}

.contact-item a {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-item img {
    width: 30px;
}

.footer-links {
    display: flex;
    gap: clamp(30px, 7vw, 100px);
}

.footer-column {
    display: flex;
    flex-direction: column;
    color: var(--white);
    font-size: 14px;
    line-height: 19.6px;
    gap: 15px;
}

.footer-socials {
    display: flex;
    gap: 12px;
    margin: 45px 0;
}

.footer-socials a {
    transition: transform 0.3s;
}

.footer-socials a:hover {
    transform: scale(1.1);
}

.footer-social-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    border: 1px solid var(--white-20);
}

.footer-bottom-left {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.footer-bottom-right {
    color: var(--tertiary);
    transform: rotate(-90deg);
    position: absolute;
    bottom: 90px;
    right: 0;
    transition: transform 0.3s;
}

.footer-bottom-right:hover {
    transform: rotate(-90deg) translateX(10px);
}

#join-team {
    scroll-margin-top: 24vh;
}

#FAQ {
    scroll-margin-top: 20vh;
}

/* BUTTONS */
button {
    white-space: nowrap;
    padding: 12px 30px;
    border-radius: 20px;
    font-family: var(--text);
    font-size: 16px;
    line-height: 22.4px;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--light);
    cursor: pointer;
    transition: transform 0.3s;
}

.tb {
    transition: transform 0.3s;
}

button:hover {
    transform: scale(1.03);
}

.tb:hover {
    transform: scale(1.03);
}

.b-brown {
    background-color: var(--pri-default);
}

.b-brown:hover {
    background-color: var(--pri-hover);
}

.b-brown:active {
    background-color: var(--pri-active);
}

.b-green {
    background-color: var(--sec-default);
}

.b-green:hover {
    background-color: var(--sec-hover);
}

.b-green:active {
    background-color: var(--sec-active);
}

.tb.white {
    color: var(--ter-default);
    font-weight: 700;
}

.tb.white:hover {
    color: var(--ter-hover);
}

.tb.white:active {
    color: var(--ter-active);
}

/* DARK SQUARE IMAGE */
.sqr-group {
    display: flex;
    justify-content: space-between;
}

.sqr-img {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: calc(33.33% - clamp(10px, 1.7vw, 20px));
    min-height: clamp(200px, 40vh, 290px);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    gap: 25px;
    border-radius: 20px;
    padding: 20px;
    transition: transform 0.3s;
}

.sqr-img:hover {
    transform: scale(1.05);
}

.sqr-img h4 {
    color: var(--white);
}

.sqr-img p {
    color: var(--white);
    min-height: 25%;
}

/* SEARCH BAR */
.search-bar {
    max-width: 430px;
    height: 44px;
    background: white;
    border-radius: 10px;
    border: 4px solid var(--grey-dark);
    display: flex;
    align-items: center;
}

.search-bar input {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    font-size: 16px;
    background: none;
    padding-left: 10px;
}

.search-bar img {
    cursor: pointer;
    margin-right: -13px;
}

/* FILL-UP FORM */
input {
    width: 100%;
    height: 44px;
    outline: none;
    font-family: var(--text);
    font-size: 14px;
    background-color: white;
    padding-left: 10px;
    border-radius: 10px;
    border: 4px solid var(--grey-dark);
}

textarea {
    width: 100%;
    outline: none;
    margin-bottom: 23px;
    border-radius: 6px;
    font-family: var(--text);
    font-size: 14px;
    padding: 7px 10px;
    border-radius: 10px;
    border: 4px solid var(--grey-dark);
}

/* CHECKBOX */
.checkbox {
    width: 25px;
    aspect-ratio: 1 / 1;
    border-width: 2px;
    border-radius: 5px;
    background-color: var(--grey-light);
}

/* DECORATIVE ELEMENTS */
.deco {
    position: absolute;
    z-index: 1;
}

/* TEXT GROUP */
.group {
    max-width: 500px;
}

.group .small {
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--tertiary);
}

.group h4 {
    margin-bottom: 30px;
}

.group p:not(.small) {
    margin-bottom: 80px;
}

/* STATS BAR */
.statsbar {
    display: flex;
    justify-content: space-between;
}

.stats {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    transition: transform 0.3s;
}

.stats:hover {
    transform: scale(1.1);
}

.stats h2 {
    color: var(--tertiary);
    line-height: .9;
}

.statstext {
    display: flex;
    flex-direction: column;
    font-size: clamp(12px, 0.9vw, 14px);
    line-height: clamp(16.8px, 2.5vh, 19.6px);
    font-weight: 700;
    color: var(--black);
    text-transform: uppercase;
}

/* COMPANIES */
.companies {
    margin-top: clamp(40px, 7vw, 100px);
    display: flex;
    justify-content: space-between;
}

.companies img {
    width: 100%;
    max-width: clamp(100px, 15vw, 180px);
    object-fit: contain;
    transition: transform 0.3s;
}

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

/* CHECKLIST */
.checklist {
    display: flex;
    flex-direction: column;
    gap: clamp(15px, 2vw, 30px);
}

.check {
    display: flex;
    align-items: center;
    gap: clamp(15px, 2vw, 30px);
}

.check-icon-wrapper {
    width: clamp(30px, 2.8vw, 40px);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.checklist .check p {
    margin: 0;
    width: 100%;
}

/* BANNER */
.banner {
    display: flex;
    flex-direction: row;
    background-color: var(--tertiary);
    gap: 5%;
    border-radius: 30px;
    margin-bottom: 100px;
}

.banner-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6%;
    width: 50%;
}

.banner h5,
.banner p {
    color: var(--white);
}

.banner-img {
    width: 30%;
    border-radius: 30px 0 0 30px;
}

.banner-img-container {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 30%;
    border-radius: 30px 0px 0px 30px;
}

.banner-text {
    display: flex;
    padding: 30px;
    gap: 10px;
}

/* WHITE CARDS */
.white-cards {
    display: flex;
    gap: 30px;
    justify-content: space-between;
}

.white-card {
    border-radius: 20px;
    border: 1px solid var(--tertiary);
    padding: 20px;
    background-color: var(--white);
    position: relative;
    transition: transform 0.3s;
    width: 33.33%;
}

.white-card:hover {
    transform: scale(1.03);
}

.white-card img {
    border-radius: 10px;
    object-fit: cover;
    width: 100%;
}

.white-card-text {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.green-sqr {
    position: absolute;
    background: var(--tertiary);
    padding: 10px 18px;
    border-radius: 15px;
    text-align: center;
    bottom: 25%;
    right: 10%;
}

/* QUOTATION MARK */
.quote::after {
    content: '”';
    /* 可以写在html 就是直接加在html 这个” 也可以这样做 就可以直接写可是唯一的缺点就是额不可以加很长的文字啊还是什么 不然变html了 */
    position: absolute;
    color: var(--tertiary);
    /* 使用common.css的绿色变量 */
    font-size: 96px;
    /* 大字体 */
    font-family: var(--heading);
    /* 使用common.css的标题字体变量，让引号更好看 */
}

/* ROUND PHONE ICON */
.inquiry-icon {
    background-color: var(--white);
    border-radius: 50%;
    width: 50px;
    aspect-ratio: 1 / 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    transition: transform 0.3s;
}

.inquiry-icon:hover {
    transform: scale(1.1);
}

.inquiry-icon img {
    width: 35px;
}

.green-sqr .price,
.green-sqr .subtitle {
    color: var(--white);
}

/* NEW TAB ICON */
.tab {
    max-width: 15px;
    margin-left: 3px;
}

/* ANIMATIONS */
.fade-in {
    animation: reveal 5s both;
    animation-timeline: view();
    animation-range: entry 10% cover 60%;
}

@keyframes reveal {

    0% {
        opacity: 0;
        transform: translateY(80px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }

}

/* DESKTOP */
@media screen and (min-width: 768px) {

    .submenu {
        display: none;
        flex-direction: column;
        position: absolute;
        padding: 12px 15px;
        gap: 15px;
        background-color: var(--tertiary);
        border-radius: 0 10px 10px 10px;
    }

    .menu-item:hover {
        .submenu {
            display: flex;
        }

        .item {
            background-color: var(--tertiary);
            border-radius: 10px 10px 0 0;
        }

        .arrow-down {
            transform: rotate(180deg);
        }
    }

    .menu-item.home:hover .item {
        border-radius: 10px;
        padding: 12px 15px;
    }
}

/* TABLET PORTRAIT & MOBILE */
@media screen and (max-width: 768px) {

    /* HEADER */
    header {
        justify-content: space-between;
        padding: clamp(5px, 1.5vw, 10px) clamp(15px, 4vw, 30px);
        background: transparent;
    }

    header::before {
        /* paint the ghost box Brown/Black, stretch it to fill the header size, and tuck it between the Logo and the Menu */
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: var(--black-50);
        z-index: -1;
    }

    .nav-center {
        display: none;
        flex-direction: column;
        background-color: var(--tertiary);
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        text-align: center;
        z-index: -2;
        padding: clamp(80px, 12vh, 100px) 0;
        height: 100vh;
        overflow-y: auto;
    }

    .nav-center.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
        cursor: pointer;
        font-size: 25px;
        z-index: 1001;
    }

    .nav-right p {
        display: none;
    }

    .arrow-down {
        display: none;
    }

    .item {
        color: var(--grey-light);
        margin-top: clamp(20px, 4vh, 30px);
        pointer-events: none;
    }

    .home .item {
        display: none;
    }

    .submenu {
        display: flex;
        flex-direction: column;
        position: static;
        gap: 5px;
    }

    body.no-scroll {
        overflow: hidden;
    }

    /* FOOTER */
    .footer-top {
        flex-direction: column;
        align-items: center;
        gap: clamp(20px, 4vh, 30px);
    }

    .footer-top h5 {
        margin: 0;
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        gap: clamp(30px, 5vh, 40px);
    }

    .footer-contact {
        justify-content: center;
        flex-direction: row;
        flex-wrap: wrap;
        white-space: nowrap;
    }

    .footer-socials {
        justify-content: center;
        margin: clamp(20px, 4vh, 30px);
    }

    .footer-links {
        flex-direction: column;
        margin-bottom: clamp(40px, 8vh, 60px);
        text-align: center;
    }

    .footer-bottom-left {
        flex-direction: column;
        align-items: center;
        gap: clamp(15px, 2vh, 20px);
    }

    /* DECORATIVE ELEMENTS */
    .deco {
        display: none;
    }

    /* DARK SQUARE IMAGE */
    .sqr-group {
        flex-direction: column;
        gap: clamp(15px, 2.5vw, 30px);
    }

    .sqr-img {
        width: 100%;
    }

    /* COMPANIES */
    .companies {
        flex-wrap: wrap;
        justify-content: space-around;
        gap: clamp(20px, 3vw, 40px);
    }

    /* STATS BAR */
    .statsbar {
        flex-wrap: wrap;
        justify-content: space-around;
        gap: clamp(30px, 3.5vw, 50px);
    }

    /* BANNER */
    .banner {
        display: flex;
        flex-direction: column;
    }

    .banner-img-container {
        width: 100% !important;
        height: 200px;
        border-radius: 30px 30px 0px 0px;
        background-size: cover;
        background-position: center;
    }

    .banner-text {
        width: 100%;
    }

    /* QUOTATION MARK */
    .quote::after {
        display: none;
    }

    /* WHITE CARDS */
    .white-card {
        flex-direction: column;
    }

    .in-white-card {
        flex-direction: column;
    }

    .white-card img {
        width: 100% !important;
        aspect-ratio: 2 / 1;
    }

    .white-card-text {
        margin-top: 10px;
    }

    .green-sqr {
        position: absolute !important;
        bottom: 20% !important;
        right: 6% !important;
        max-height: none;
    }

}

/* TABLET LANDSCAPE */
@media screen and (max-width: 1024px) {

    .sqr-img p {
        min-height: 35%;
    }

    .banner-img-container {
        width: 35%;
    }

    .banner-text h5 {
        font-size: 24px;
        line-height: 28.8px;
    }

    .white-cards {
        flex-direction: column;
    }

    .white-card {
        display: flex;
        gap: 30px;
        justify-content: space-between;
        width: 100%;
    }

    .in-white-card {
        display: flex;
        gap: 20px;
    }

    .white-card img {
        width: 30%;
    }

    .green-sqr {
        position: static;
        max-height: 80px;
    }

    .wrapper,
    footer {
        padding: clamp(30px, 8vw, 80px) clamp(15px, 6vw, 60px);
    }

    .footer-bottom-right {
        bottom: 150px;
    }

}