
/* 全局樣式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft JhengHei', Arial, sans-serif;
}

/* Define Modena 1948 font (unused but kept for potential future use) */
@font-face {
    font-family: 'Modena 1948';
    src: url('https://department.hk/lp10/fonts/Modena1948.woff2') format('woff2'),
         url('https://department.hk/lp10/fonts/Modena1948.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

html {
    scroll-behavior: smooth;
}

:root {
    --sea-blue: #0077be;
    --main-color: #966D4D;
    --border-width: 20px;
}

body.menu-open .mobile-menu {
    display: flex;
}

header {
    position: relative;
    background-color: white;
    height: calc(100vh - 162px);
    min-height: 540px;
    width: 90%;
    margin: 20px auto 60px;
    overflow: hidden;
}

.intro-image{
	width:100%;
    max-width:1440px;
	height:auto;
    margin:0px auto;
	padding:15px 0px;
}

#disclaimer-modal p{
	font-size:12px;
}

#bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 2;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

#logo {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    transform: translate(-50%, -50%);
    width: 130px;
    opacity: 0.9;
    padding: 10px;
    background: ghostwhite;
}

.seagulls {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(59deg);
    z-index: 2;
}

.seagull {
    position: absolute;
    width: 20px;
    height: 20px;
    background: url('https://department.hk/lp10/images/seagull.png') no-repeat center/cover;
    display: none;
}

@media (max-width: 768px) {
    .seagull-12, .seagull-13, .seagull-14, .seagull-15, .seagull-16,
    .seagull-17, .seagull-18, .seagull-19, .seagull-20 {
        display: none;
    }
}

.seagull-1 { top: 15%; left: 5%; }
.seagull-2 { top: 25%; left: 15%; }
.seagull-3 { top: 35%; left: 25%; }
.seagull-4 { top: 45%; left: 35%; }
.seagull-5 { top: 55%; left: 45%; }
.seagull-6 { top: 65%; left: 55%; }
.seagull-7 { top: 20%; left: 65%; }
.seagull-8 { top: 30%; left: 75%; }
.seagull-9 { top: 40%; left: 85%; }
.seagull-10 { top: 50%; left: 10%; }
.seagull-11 { top: 60%; left: 20%; }
.seagull-12 { top: 70%; left: 30%; }
.seagull-13 { top: 22%; left: 40%; }
.seagull-14 { top: 32%; left: 50%; }
.seagull-15 { top: 42%; left: 60%; }
.seagull-16 { top: 52%; left: 70%; }
.seagull-17 { top: 62%; left: 80%; }
.seagull-18 { top: 28%; left: 90%; }
.seagull-19 { top: 38%; left: 12%; }
.seagull-20 { top: 48%; left: 22%; }

nav {
    background-color: #FFFFFF;
    padding: 10px 17px;
    height: 55px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-lang {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 10px;
}

.nav-lang li {
    color: var(--main-color);
    cursor: pointer;
}

.nav-lang li a {
    color: var(--main-color);
    text-decoration: none;
}

.nav-lang li a:hover {
    text-decoration: underline;
}

.nav-logo {
    text-align: center;
    flex-grow: 1;
}

.nav-logo img {
    width: 80px;
    height: auto;
    padding-top:15px;
}

.nav-links {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links li {
    color: var(--main-color);
    cursor: pointer;
}

.nav-links li a {
    color: var(--main-color);
    text-decoration: none;
}

.nav-links li a:hover {
    text-decoration: underline;
}

.music-toggle {
    color: #FFFFFF;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

.music-toggle.off {
    color: #808080;
}

.menu-toggle {
    color: #FFFFFF;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--main-color);
    z-index: 999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #FFFFFF;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

.mobile-menu ul {
    list-style-type: none;
    padding: 0;
    text-align: center;
}

.mobile-menu li {
    margin: 20px 0;
}

.mobile-menu li a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 24px;
}

.mobile-menu li a:hover {
    text-decoration: underline;
}

main {
    display: flex;
    flex-direction: column;
    background-color: var(--main-color);
}

.tall-section {
    width: 100%;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

#section1 {
    color: white;
}

#section2 {
    color: var(--main-color);
    background-color: rgba(255,255,255,1);
    position: relative;
}

#section2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#section2 > * {
    position: relative;
    z-index: 1;
}

#section3 {
    color: white;
    background-color: #966D4D;
}

.download-table {
    width: 100%;
    max-width: 600px;
    margin: 20px 0;
    border-collapse: collapse;
    background-color: rgba(255, 255, 255, 0.1);
}

.download-table th,
.download-table td {
    padding: 12px;
    text-align: left;
    width: 50%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.download-table th {
    font-weight: bold;
    font-size: 18px;
}

.download-table td {
    font-size: 16px;
}

.download-table .section-btn {
    width: 100%;
    justify-content: flex-start;
    padding: 8px 12px;
}

.intro-section h2{
	padding-top:50px;
}

#section2 h2{
	padding-top:50px;
}

.project-details h2{
	padding-top:50px;
	padding-bottom:15px;
}

.intro-section{
	margin-bottom:20px;
    max-width:1440px;
    width:100%;
}

.intro-section p{
	font-size:12px;
}

footer {
    background-color: var(--main-color);
    color: white;
    text-align: center;
    padding: 10px;
	font-size:14px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
}

.button-group {
    display: flex;
    flex-direction: row;
    gap: 10px;
    position: fixed;
    bottom: 5px;
    right: 20px;
    z-index: 1001;
}

/* Modal Confirm Button */
.confirm-btn {
    display: block;
    margin: 20px auto 10px;
    padding: 10px 20px;
    background-color: #000000;
    color: #ffffff;
	width:100%;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease;
}

.confirm-btn:hover {
    background-color: #333333;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    background-color: #25D366;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    gap: 8px;
}

.whatsapp-btn i {
    font-size: 20px;
}

.whatsapp-btn:hover {
    background-color: #20b858;
}

.section-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    background-color: #FFFFFF;
    color: var(--main-color);
    text-decoration: none;
    border: 2px solid var(--main-color);
    border-radius: 5px;
    font-size: 16px;
    gap: 8px;
}

.section-btn i {
    font-size: 20px;
    color: var(--main-color);
}

.section-btn:hover {
    background-color: #f5f5f5;
}

/* Slider Styles */
.slider-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    overflow: hidden;
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    flex: 0 0 100%;
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.slide.active {
    display: flex;
}

.slide img {
    width: 100%;
    max-width: 600px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

.slide-description {
    margin-top: 10px;
    font-size: 16px;
    color: var(--main-color);
    line-height: 1.5;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.slider-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.slider-btn.prev {
    left: 10px;
}

.slider-btn.next {
    right: 10px;
}

/* 項目詳情樣式 */
.project-details {
    width: 100%;
    max-width: 600px;
    margin: 20px 0;
    color: white;
}

.details-list {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 5px;
}

.details-list dt {
    font-weight: bold;
    font-size: 15px;
    padding: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.details-list dd {
    font-size: 13px;
    padding: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

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

.details-list ul li {
    margin-bottom: 5px;
}

.details-list ul ul {
    margin-left: 20px;
}

@media (max-width: 768px) {
    .button-group {
        flex-direction: column;
        align-items: flex-end;
    }
    .download-table {
        width: 100%;
        font-size: 12px;
    }
    .download-table th,
    .download-table td {
        padding: 8px;
        width: 50%;
    }
    .download-table .section-btn {
        padding: 6px 8px;
        font-size: 12px;
    }
    .download-table .section-btn i {
        font-size: 14px;
    }
    .slide img {
        max-width: 100%;
    }
    .slide-description {
        font-size: 14px;
    }
    .slider-btn {
        padding: 8px;
        font-size: 16px;
    }
    .details-list {
        grid-template-columns: 1fr;
        font-size: 14px;
    }
    .details-list dt,
    .details-list dd {
        padding: 6px;
    }
}