/* ============================================================
   SHARED.CSS — 微笑包裹 全站共用樣式
   ============================================================ */

/* ── TOKENS ── */
:root {
    --y:        #F3BF0D;
    --y-bg:     #FFFAE8;
    --y-mid:    #FFF0A0;
    --black:    #1C1C1C;
    --text:     #444444;
    --muted:    #999999;
    --white:    #FFFFFF;
    --off:      #F9F9F7;
    --blue-bg:  #EEF4FA;
    --green-bg: #F0FAF0;
    --max:      1280px;
    --nav-h:    64px;
    --radius:   16px;
    --radius-lg:24px;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html  { scroll-behavior: smooth; }
body  { font-family: 'Noto Sans TC', sans-serif; background: var(--white); color: var(--black); overflow-x: hidden; }
a     { text-decoration: none; color: inherit; }
img   { display: block; max-width: 100%; }
ul    { list-style: none; }

/* ── LAYOUT WRAPPER ── */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 56px; }

/* ── TYPOGRAPHY UTILITIES ── */
.section-en {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 16px; font-weight: 600; letter-spacing: 0.28em;
    text-transform: uppercase; color: var(--y);
    margin-bottom: 10px;
}
.section-ja   { font-size: clamp(26px,3.2vw,42px); font-weight: 600; color: var(--black); line-height: 1.35; }
.section-sub  { font-size: 16px; color: var(--muted); margin-top: 12px; line-height: 1.8; }
.dot-y        { display: inline-block; width: 9px; height: 9px; background: var(--y); border-radius: 50%; vertical-align: middle; margin-left: 4px; }

/* ── PAGE HEADER (non-hero pages) ── */
.page-header {
    position: relative;
    padding: 160px 0 80px;
    overflow: hidden;
}
.page-header-bg {
    position: absolute; inset: 0;
    background: url('../assets/oregon-sky.jpg') center 30% / cover no-repeat;
    filter: brightness(0.75) saturate(0.9);
}
.page-header-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(160deg, rgba(243,191,13,0.72) 0%, rgba(255,220,50,0.55) 50%, rgba(200,150,0,0.65) 100%);
}
.page-header .wrap { position: relative; z-index: 2; }
.page-header-tag {
    display: inline-block; background: rgba(255,255,255,0.3); color: var(--black);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
    padding: 5px 16px; border-radius: 100px; margin-bottom: 20px;
    backdrop-filter: blur(4px); border: 1px solid rgba(0,0,0,0.15);
}
.page-header h1 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(56px,7vw,100px); font-weight: 600; line-height: 1.0;
    color: var(--black); text-transform: uppercase;
}
.page-header h1 em { font-style: normal; color: var(--white); }
.page-header-sub {
    font-size: 18px; color: rgba(0,0,0,0.65);
    margin-top: 16px; line-height: 1.75; max-width: 560px;
}

/* ── BUTTONS ── */
.btn-primary {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--y); color: var(--black);
    font-weight: 600; font-size: 16px;
    padding: 14px 32px; border-radius: 100px;
    border: 2px solid var(--y); transition: all .2s; cursor: pointer;
}
.btn-primary:hover { background: #ffd000; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(243,191,13,0.4); }

.btn-secondary {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent; color: var(--black);
    font-weight: 600; font-size: 16px;
    padding: 13px 28px; border-radius: 100px;
    border: 1.5px solid rgba(0,0,0,0.25); transition: all .2s; cursor: pointer;
}
.btn-secondary:hover { border-color: var(--black); background: rgba(0,0,0,0.04); }

.btn-black {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--y); color: var(--black);
    font-weight: 600; font-size: 16px;
    padding: 14px 32px; border-radius: 100px;
    border: 2px solid var(--y); transition: all .2s; cursor: pointer;
}
.btn-black:hover { background: #ffd000; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(243,191,13,0.4); }

/* ── CTA BAND ── */
.cta-section {
    position: relative; overflow: hidden;
    padding: 90px 0;
}
.cta-bg {
    position: absolute; inset: 0;
    background: url('../assets/oregon-sky.jpg') center 60% / cover no-repeat;
    filter: brightness(0.75) saturate(0.85);
}
.cta-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(243,191,13,0.82) 0%, rgba(243,191,13,0.60) 60%, rgba(200,150,0,0.70) 100%);
}
.cta-inner {
    position: relative; z-index: 1;
    display: flex; align-items: center; justify-content: space-between; gap: 48px;
}
.cta-title {
    font-size: clamp(26px,3.5vw,48px); font-weight: 600;
    color: var(--black); line-height: 1.3; margin-bottom: 10px;
}
.cta-body-text { font-size: 16px; color: rgba(0,0,0,0.6); }
.cta-btns { display: flex; gap: 12px; align-items: center; flex-shrink: 0; }
.btn-cta-ghost {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--black); font-size: 16px; font-weight: 600;
    background: rgba(255,255,255,0.6); backdrop-filter: blur(6px);
    padding: 14px 26px; border-radius: 100px;
    border: 1.5px solid rgba(0,0,0,0.2); transition: all .2s; white-space: nowrap;
}
.btn-cta-ghost:hover { background: rgba(255,255,255,0.85); }

/* ── NAV ── */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 200;
    height: var(--nav-h);
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(8px);
    border-bottom: 2px solid var(--y);
}
.nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav-logo  { display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 30px; }
.nav-logo-name { font-weight: 600; font-size: 16px; color: var(--y); }
.nav-links { display: flex; gap: 0; }
.nav-links a {
    font-size: 16px; font-weight: 500; color: var(--text);
    padding: 8px 18px; border-radius: 100px; transition: all .18s;
}
.nav-links a:hover, .nav-links a.active { background: var(--y); color: var(--black); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-login {
    font-size: 16px; font-weight: 600; color: var(--text);
    padding: 7px 18px; border-radius: 100px; border: 1.5px solid #DDD; transition: all .18s;
}
.nav-login:hover { border-color: var(--black); color: var(--black); }
.nav-register {
    font-size: 16px; font-weight: 600; color: var(--black);
    background: var(--y); padding: 8px 20px; border-radius: 100px; transition: all .18s;
}
.nav-register:hover { background: #ffd000; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 22px; height: 2px; background: var(--black); border-radius: 2px; }

/* Mobile menu */
.mob-menu {
    display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
    background: var(--white); z-index: 199;
    flex-direction: column; padding: 32px 28px; border-top: 1px solid #eee;
}
.mob-menu.open { display: flex; }
.mob-menu a {
    font-size: 20px; font-weight: 600; color: var(--black);
    padding: 16px 0; border-bottom: 1px solid #f0f0f0;
}
.mob-menu a:hover { color: var(--y); }
.mob-cta { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; }
.mob-cta a { padding: 14px; border-radius: 100px; text-align: center; font-weight: 600; font-size: 16px; }
.mob-cta .mf { background: var(--y); color: var(--black); }
.mob-cta .mo { border: 1.5px solid var(--black); color: var(--black); }

/* ── FOOTER ── */
footer { background: var(--white); border-top: 2px solid #F0F0F0; padding: 56px 0 0; }
.ft {
    display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px; padding-bottom: 40px;
}
.ft-brand img { height: 52px; margin-bottom: 14px; }
.ft-brand p   { font-size: 16px; color: var(--muted); line-height: 1.8; max-width: 210px; }
.ft-col h5 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 16px; font-weight: 600; letter-spacing: 0.2em;
    text-transform: uppercase; color: var(--black); margin-bottom: 16px;
}
.ft-col a  { font-size: 16px; color: var(--muted); transition: color .2s; display: block; margin-bottom: 10px; }
.ft-col a:hover { color: var(--black); }
.ft-bottom {
    border-top: 1px solid #F0F0F0; padding: 18px 0;
    display: flex; justify-content: space-between; align-items: center;
}
.ft-bottom p { font-size: 16px; color: var(--muted); }
.ft-tag {
    background: var(--y); color: var(--black);
    font-size: 16px; font-weight: 600; padding: 4px 12px; border-radius: 100px;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp   { from { opacity:0; transform:translateY(22px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn   { from { opacity:0; } to { opacity:1; } }
@keyframes logoSweep {
    from { clip-path: inset(0 100% 0 0); }
    to   { clip-path: inset(0 0% 0 0); }
}
@keyframes logoPulse {
    0%, 100% { filter: brightness(1); }
    50%       { filter: brightness(1.18) drop-shadow(0 0 8px rgba(243,191,13,0.6)); }
}

/* ── RESPONSIVE SHARED ── */
@media (max-width: 1024px) {
    .wrap               { padding: 0 32px; }
    .nav .wrap          { padding: 0 32px; }
    .nav-links, .nav-right { display: none; }
    .hamburger          { display: flex; }
    .ft                 { grid-template-columns: 1fr 1fr; gap: 32px; }
    footer              { padding: 56px 0; }
    .cta-inner          { flex-direction: column; align-items: flex-start; }
    .page-header        { padding: 120px 0 60px; }
}
@media (max-width: 640px) {
    .wrap               { padding: 0 20px; }
    .nav .wrap          { padding: 0 20px; }
    .ft                 { grid-template-columns: 1fr; }
    .ft-bottom          { flex-direction: column; gap: 10px; }
    footer              { padding: 40px 0; }
    .cta-btns           { flex-direction: column; width: 100%; }
    .cta-btns a         { width: 100%; justify-content: center; }
}
