:root {
    --clr-primary: #0b7a75;
    --clr-primary-dark: #065a56;
    --clr-accent: #c9a84c;
    --clr-accent-light: #e2ca7e;
    --clr-dark: #1a1a2e;
    --clr-dark-alt: #16213e;
    --clr-light: #f7f9fc;
    --clr-gray: #e8ecf1;
    --clr-text: #2d3436;
    --clr-text-muted: #636e72;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-card: 0 4px 24px rgba(0,0,0,.07);
    --shadow-hover: 0 8px 32px rgba(11,122,117,.15);
    --transition: .3s cubic-bezier(.4,0,.2,1);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--clr-text);
    background: #fff;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-weight: 700;
    line-height: 1.3;
}

a { color: var(--clr-primary); transition: color var(--transition); }
a:hover { color: var(--clr-accent); text-decoration: none; }

/* ====== NAVBAR ====== */
.site-nav {
    background: #fff;
    box-shadow: 0 1px 12px rgba(0,0,0,.06);
    padding: .6rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.site-nav .navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--clr-primary) !important;
    letter-spacing: .5px;
}
.site-nav .nav-link {
    color: var(--clr-text) !important;
    font-weight: 500;
    padding: .5rem 1rem !important;
    position: relative;
}
.site-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 1rem; right: 1rem;
    height: 2px;
    background: var(--clr-accent);
    transform: scaleX(0);
    transition: transform var(--transition);
}
.site-nav .nav-link:hover::after { transform: scaleX(1); }

/* ====== HERO ====== */
.hero-section {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-section .hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(.55);
    z-index: 0;
}
.hero-section .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(11,122,117,.82) 0%, rgba(26,26,46,.7) 100%);
    z-index: 1;
}
.hero-section .container { position: relative; z-index: 2; }
.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 0 2px 12px rgba(0,0,0,.2);
}
.hero-section .lead {
    font-size: 1.25rem;
    color: rgba(255,255,255,.9);
    max-width: 560px;
}
.hero-section .hero-cta {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ====== BUTTONS ====== */
.btn-accent {
    background: var(--clr-accent);
    color: #fff;
    border: none;
    padding: .7rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: all var(--transition);
    box-shadow: 0 4px 14px rgba(201,168,76,.3);
}
.btn-accent:hover {
    background: var(--clr-accent-light);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201,168,76,.4);
}
.btn-outline-light {
    border: 2px solid rgba(255,255,255,.7);
    color: #fff;
    padding: .65rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: all var(--transition);
    background: transparent;
}
.btn-outline-light:hover {
    background: #fff;
    color: var(--clr-primary);
    border-color: #fff;
}

/* ====== SECTION COMMONS ====== */
.section-block { padding: 5rem 0; }
.section-block.alt-bg { background: var(--clr-light); }
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}
.section-title h2 {
    font-size: 2rem;
    color: var(--clr-dark);
    position: relative;
    display: inline-block;
}
.section-title h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--clr-accent);
    margin: .75rem auto 0;
    border-radius: 2px;
}
.section-title p {
    color: var(--clr-text-muted);
    max-width: 600px;
    margin: 1rem auto 0;
}

/* ====== SERVICE CARDS ====== */
.svc-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: all var(--transition);
    height: 100%;
    border-top: 3px solid transparent;
}
.svc-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-top-color: var(--clr-accent);
}
.svc-card .svc-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-dark));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
}
.svc-card h5 { font-size: 1.1rem; margin-bottom: .7rem; }
.svc-card p { color: var(--clr-text-muted); font-size: .95rem; margin: 0; }

/* ====== TESTIMONIAL GRID ====== */
.testi-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    position: relative;
    border-left: 4px solid var(--clr-accent);
    transition: all var(--transition);
    height: 100%;
}
.testi-card:hover { box-shadow: var(--shadow-hover); }
.testi-card .quote-icon {
    color: var(--clr-accent);
    font-size: 1.8rem;
    margin-bottom: .8rem;
    opacity: .6;
}
.testi-card p { font-size: .95rem; line-height: 1.8; color: var(--clr-text); margin: 0; }
.testi-card .testi-author {
    margin-top: 1rem;
    font-weight: 600;
    color: var(--clr-primary);
    font-size: .9rem;
}

/* ====== ABOUT SPLIT ====== */
.about-split { display: flex; align-items: center; gap: 3rem; }
.about-split .about-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    flex-shrink: 0;
}
.about-split .about-img img { width: 100%; height: auto; display: block; }
.about-split .about-text h2 {
    color: var(--clr-dark);
    margin-bottom: 1.2rem;
}
.about-split .about-text p { color: var(--clr-text-muted); }
.about-tag {
    display: inline-block;
    background: var(--clr-primary);
    color: #fff;
    font-size: .75rem;
    font-weight: 600;
    padding: .3rem .8rem;
    border-radius: var(--radius-sm);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* ====== ADVANTAGES ====== */
.adv-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    margin-bottom: 2rem;
}
.adv-item .adv-num {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--clr-primary);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.adv-item h5 { margin-bottom: .3rem; font-size: 1.05rem; }
.adv-item p { color: var(--clr-text-muted); font-size: .93rem; margin: 0; }

/* ====== CONTACT FORM ====== */
.contact-wrap {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 2.5rem;
}
.contact-wrap .form-control {
    border: 1.5px solid var(--clr-gray);
    border-radius: var(--radius-sm);
    padding: .7rem 1rem;
    font-family: inherit;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.contact-wrap .form-control:focus {
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 3px rgba(11,122,117,.12);
    outline: none;
}
.contact-wrap .btn-primary {
    background: var(--clr-primary);
    border: none;
    padding: .7rem 2.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: all var(--transition);
}
.contact-wrap .btn-primary:hover {
    background: var(--clr-primary-dark);
    transform: translateY(-2px);
}

/* ====== MAP SECTION ====== */
.map-section {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}
.map-section iframe { display: block; }
.map-cta-box {
    background: linear-gradient(135deg, var(--clr-dark) 0%, var(--clr-dark-alt) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
}
.map-cta-box h3 { font-size: 1.6rem; line-height: 1.5; }

/* ====== FOOTER ====== */
.site-footer {
    background: var(--clr-dark);
    color: rgba(255,255,255,.8);
    padding: 3.5rem 0 0;
}
.site-footer h5 {
    color: var(--clr-accent);
    font-size: 1rem;
    margin-bottom: 1rem;
    letter-spacing: .5px;
}
.site-footer a {
    color: rgba(255,255,255,.7);
    transition: color var(--transition);
}
.site-footer a:hover { color: var(--clr-accent); }
.site-footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    margin-top: 2rem;
    padding: 1.2rem 0;
    text-align: center;
    font-size: .9rem;
    color: rgba(255,255,255,.5);
}
.site-footer .footer-disclaimer {
    text-align: center;
    font-size: .82rem;
    color: rgba(255,255,255,.4);
    padding: .8rem 0 0;
}

/* ====== COOKIE BANNER ====== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--clr-dark);
    color: #fff;
    padding: 1.2rem 1.5rem;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 1.5rem;
    transition: transform .5s ease-in-out, opacity .5s ease-in-out;
    transform: translateY(100%);
    opacity: 0;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0,0,0,.15);
}
.cookie-banner.show { transform: translateY(0); opacity: 1; }
.cookie-banner p { margin: 0; font-size: .9rem; }
.cookie-banner button {
    background: var(--clr-accent);
    color: #fff;
    border: none;
    padding: .6rem 1.5rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    font-weight: 600;
    white-space: nowrap;
    transition: background var(--transition);
}
.cookie-banner button:hover { background: var(--clr-accent-light); }

/* ====== MODAL OVERRIDES ====== */
.modal-content {
    border: none;
    border-radius: var(--radius-md);
    box-shadow: 0 12px 48px rgba(0,0,0,.15);
}
.modal-header {
    border-bottom: 1px solid var(--clr-gray);
    padding: 1.2rem 1.5rem;
}
.modal-header .modal-title { color: var(--clr-primary); font-weight: 700; }
.modal-body { padding: 1.5rem; }
.modal-footer { border-top: 1px solid var(--clr-gray); }

/* ====== PAGE HEADER (for inner pages) ====== */
.page-header {
    background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-dark) 100%);
    color: #fff;
    padding: 4rem 0 3rem;
    text-align: center;
}
.page-header h1 { color: #fff; font-size: 2.2rem; margin-bottom: .5rem; }
.page-header p { color: rgba(255,255,255,.7); }

/* ====== LEGAL PAGES ====== */
.legal-content h2 {
    color: var(--clr-primary);
    font-size: 1.3rem;
    margin-top: 2rem;
    margin-bottom: .8rem;
    padding-bottom: .4rem;
    border-bottom: 2px solid var(--clr-gray);
}
.legal-content ul { padding-left: 1.5rem; }
.legal-content li { margin-bottom: .4rem; color: var(--clr-text-muted); }

/* ====== CONTACT PAGE ====== */
.contact-info-card {
    background: var(--clr-light);
    border-radius: var(--radius-md);
    padding: 2rem;
    height: 100%;
}
.contact-info-card li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: .8rem;
}
.contact-info-card i {
    color: var(--clr-primary);
    margin-top: 4px;
    font-size: 1.1rem;
}

/* ====== ANIMATIONS ====== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeInUp .7s ease-out forwards; }
.animate-delay-1 { animation-delay: .15s; }
.animate-delay-2 { animation-delay: .3s; }
.animate-delay-3 { animation-delay: .45s; }

/* ====== RESPONSIVE ====== */
@media (max-width: 991px) {
    .about-split { flex-direction: column; }
    .hero-section h1 { font-size: 2.2rem; }
}
@media (max-width: 768px) {
    .section-block { padding: 3rem 0; }
    .hero-section { min-height: 70vh; }
    .hero-section h1 { font-size: 1.8rem; }
    .cookie-banner { flex-direction: column; text-align: center; }
    .btn-accent, .btn-outline-light, a.nav-link, .navbar-toggler {
        min-height: 48px;
        min-width: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}
@font-face {
    font-family: "Font Awesome 6 Free";
    font-display: swap;
}
@font-face {
    font-family: "Font Awesome 6 Brands";
    font-display: swap;
}
