/* =========================================================
   建成旅行社 GOTOGO TRAVEL — 樣式表
   版型設計參考自 goworld.com.tw（深藏青 + 香檳金）
   ========================================================= */

:root {
    --navy: #1e3a5f;        /* 主深藏青 */
    --navy-deep: #16263f;   /* 頁尾更深 */
    --gold: #c19a4e;        /* 香檳金 */
    --gold-bright: #d4ad57;
    --cream-1: #faf8f3;     /* 米色漸層淺 */
    --cream-2: #f1ece1;     /* 米色漸層深 */
    --text: #2d3748;
    --text-soft: #6b7280;
    --border: #e8e6e0;
    --serif: 'Noto Serif TC', 'Songti TC', serif;
    --sans: 'Noto Sans TC', 'Microsoft JhengHei', 'PingFang TC', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: var(--text);
    line-height: 1.85;
    letter-spacing: 0.04em;
}

h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); font-weight: 600; margin: 0; }

img { max-width: 100%; display: block; }

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- 導覽列 ---------- */
header {
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    padding: 14px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 12px rgba(30, 58, 95, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-wrapper { display: flex; align-items: center; gap: 14px; }

.logo-img {
    width: auto;
    height: 50px;
    object-fit: contain;
}

.logo-text {
    font-family: var(--serif);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: 0.12em;
    line-height: 1.25;
}

.logo-text span {
    display: block;
    font-family: var(--sans);
    font-size: 0.7rem;
    color: var(--gold);
    letter-spacing: 0.15em;
    font-weight: 500;
}

nav { display: flex; align-items: center; }

nav a {
    color: var(--navy);
    margin-left: 38px;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.25s;
    position: relative;
}

nav a:hover { color: var(--gold); }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.6rem;
    color: var(--navy);
    line-height: 1;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    background: linear-gradient(160deg, var(--cream-1) 0%, var(--cream-2) 100%);
    text-align: center;
    padding: 110px 20px 130px;
    overflow: hidden;
}

/* 同心圓裝飾 */
.hero-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.hero-rings span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(30, 58, 95, 0.08);
    border-radius: 50%;
}

.hero-rings span:nth-child(1) { width: 420px; height: 420px; }
.hero-rings span:nth-child(2) { width: 640px; height: 640px; }
.hero-rings span:nth-child(3) { width: 860px; height: 860px; }

.hero-inner { position: relative; z-index: 1; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid var(--border);
    color: var(--navy);
    font-size: 0.9rem;
    padding: 9px 20px;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(30, 58, 95, 0.06);
    margin-bottom: 36px;
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3fae6a;
}

.hero h1 {
    font-size: 3.4rem;
    letter-spacing: 0.14em;
    margin-bottom: 30px;
    line-height: 1.3;
}

.hero h1 .accent { color: var(--gold); }

.hero p {
    font-size: 1.15rem;
    color: var(--text-soft);
    margin: 6px auto;
    max-width: 760px;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.btn-pill, .btn-pill-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1.05rem;
    font-weight: 500;
    padding: 16px 38px;
    border-radius: 999px;
    transition: transform 0.25s, box-shadow 0.25s, background-color 0.25s, color 0.25s;
    text-decoration: none;
}

.btn-pill {
    background: var(--navy);
    color: #fff;
    box-shadow: 0 8px 22px rgba(30, 58, 95, 0.28);
}

.btn-pill-outline {
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--navy);
}

.btn-pill:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 12px 28px rgba(30, 58, 95, 0.35); 
}

.btn-pill-outline:hover {
    transform: translateY(-3px);
    background: var(--navy);
    color: #fff;
    box-shadow: 0 12px 28px rgba(30, 58, 95, 0.2);
}

.btn-pill .arrow, .btn-pill-outline .arrow { transition: transform 0.25s; }
.btn-pill:hover .arrow, .btn-pill-outline:hover .arrow { transform: translateX(5px); }

/* ---------- 區塊共用 ---------- */
.section { padding: 100px 0; }

.section-label {
    text-align: center;
    color: var(--gold);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.35em;
    margin-bottom: 16px;
}

.section-title {
    text-align: center;
    font-size: 2.6rem;
    letter-spacing: 0.1em;
    margin-bottom: 22px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-soft);
    font-size: 1.1rem;
    margin-bottom: 64px;
}

/* ---------- 服務卡片 ---------- */
.services { background: linear-gradient(180deg, #ffffff, #faf9f6); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 38px 34px;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(30, 58, 95, 0.12);
    border-color: transparent;
}

.service-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, #eef2f8, #e3ebf5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    margin-bottom: 26px;
}

.service-card h3 { font-size: 1.5rem; margin-bottom: 6px; letter-spacing: 0.06em; }

.service-card .en-name {
    color: var(--gold);
    font-family: var(--sans);
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    margin-bottom: 18px;
}

.service-card p { color: var(--text-soft); font-size: 0.98rem; margin-bottom: 24px; }

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--navy);
    font-weight: 600;
    transition: gap 0.25s, color 0.25s;
}

.service-link:hover { color: var(--gold); gap: 14px; }

/* ---------- 關於我們 ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-visual {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(30, 58, 95, 0.15);
}

.about-visual img { width: 100%; height: 100%; object-fit: cover; }

.about-badges { display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }

.about-badge {
    background: rgba(193, 154, 78, 0.12);
    color: var(--gold);
    border: 1px solid rgba(193, 154, 78, 0.4);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 999px;
}

.about-text h2 { font-size: 2.2rem; margin-bottom: 24px; letter-spacing: 0.08em; }

.about-text p { color: var(--text-soft); margin-bottom: 18px; }

.cert-box {
    background: #f8f7f3;
    border-left: 4px solid var(--gold);
    border-radius: 12px;
    padding: 26px 30px;
    margin-top: 30px;
}

.cert-box h4 { color: var(--navy); margin-bottom: 16px; font-family: var(--sans); font-size: 1.05rem; }

.cert-list { list-style: none; padding: 0; margin: 0; }

.cert-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-soft);
    margin-bottom: 12px;
    font-size: 0.96rem;
}

.cert-list li::before {
    content: '✓';
    color: var(--gold);
    font-weight: 700;
    flex-shrink: 0;
}

/* ---------- 聯絡我們 ---------- */
.contact {
    background: linear-gradient(160deg, var(--navy), #182f4d);
    color: #fff;
    padding: 100px 0;
}

.contact .section-title { color: #fff; }
.contact .section-subtitle { color: rgba(255, 255, 255, 0.7); }

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 26px;
}

.office-card {
    position: relative;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 32px 28px;
    transition: background 0.3s, transform 0.3s;
}

.office-card:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-5px); }

.office-card h3 { color: #fff; font-size: 1.35rem; margin-bottom: 6px; }

.office-card .sub-org { color: rgba(255, 255, 255, 0.55); font-size: 0.9rem; margin-bottom: 18px; }

.office-card .info-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.95rem;
    margin-bottom: 14px;
}

.office-card .info-row .ico { color: var(--gold-bright); flex-shrink: 0; margin-top: 3px; }

.office-badge {
    position: absolute;
    top: -12px;
    right: 22px;
    background: var(--gold);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 999px;
}

.contact-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 16px 30px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- 頁尾 ---------- */
footer {
    background: var(--navy-deep);
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
    padding: 46px 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 32px;
    margin-bottom: 26px;
}

.footer-links a { color: rgba(255, 255, 255, 0.8); font-size: 0.98rem; transition: color 0.25s; }
.footer-links a:hover { color: var(--gold-bright); }

footer .copyright { font-size: 0.85rem; letter-spacing: 0.05em; }

/* ---------- 進場動畫 ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- 響應式 ---------- */
@media (max-width: 960px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-visual { min-height: 280px; }
}

@media (max-width: 768px) {
    header { padding: 12px 20px; }
    .nav-toggle { display: block; }
    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 24px 22px;
        box-shadow: 0 8px 16px rgba(30, 58, 95, 0.1);
    }
    nav.open { display: flex; }
    nav a { margin: 14px 0 0; }

    .hero { padding: 80px 20px 90px; }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }
    .hero-rings span:nth-child(3) { width: 560px; height: 560px; }

    .section { padding: 70px 0; }
    .section-title { font-size: 2rem; }
    .services-grid { grid-template-columns: 1fr; }
}
