/* ============================================================
   Landing Page – AI Poster Design  |  Orange Theme
   ============================================================ */

:root {
    --primary:       #F55A2B;
    --primary-dark:  #D44B20;
    --primary-light: #FFF3EF;
    --primary-mid:   #FFE8DF;
    --text:          #2D2D2D;
    --text-muted:    #666;
    --border:        #EEE0DA;
    --white:         #fff;
    --radius-card:   16px;
    --radius-btn:    10px;
    --shadow-card:   0 4px 32px rgba(245, 90, 43, 0.10);
}

/* ── Reset / Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Noto Sans TC', 'Raleway', sans-serif;
    background: var(--primary-light);
    color: var(--text);
    line-height: 1.6;
}

a  { text-decoration: none; }
p  { margin: 0 0 .5rem; }
h1, h2, h3, h4 { margin: 0 0 .5rem; }
img { max-width: 100%; height: auto; display: block; }

/* ── Nav ──────────────────────────────────────────────────── */
.main-nav {
    background: var(--white);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 200;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
.nav-right { display: flex; align-items: center; gap: 8px; }

/* Logo */
.logo-img-link { display: flex; align-items: center; flex-shrink: 0; }
.logo-img      { height: 36px; width: auto; }

/* Generic nav link */
.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
    padding: 7px 11px;
    border-radius: 8px;
    font-size: .93rem;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
    transition: color .18s, background .18s;
}
.nav-link:hover { color: var(--primary); background: var(--primary-light); }

/* CTA nav link */
.nav-link--cta {
    color: var(--white);
    background: var(--primary);
    font-weight: 700;
    padding: 8px 16px;
    border-radius: var(--radius-btn);
}
.nav-link--cta:hover { background: var(--primary-dark); color: var(--white); }

/* Section mode links (海報 / 優惠劵) */
.nav-modes {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: 8px;
    padding-left: 10px;
    border-left: 1px solid var(--border);
}

/* ── Service Switcher ─────────────────────────────────────── */
.svc-switcher { position: relative; }

.svc-switcher__btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    padding: 7px 10px;
    border-radius: 8px;
    transition: background .18s;
    white-space: nowrap;
}
.svc-switcher__btn:hover,
.svc-switcher__btn[aria-expanded="true"] { background: var(--primary-light); }

.svc-switcher__chevron {
    flex-shrink: 0;
    transition: transform .2s;
}
.svc-switcher__btn[aria-expanded="true"] .svc-switcher__chevron {
    transform: rotate(180deg);
}

/* Dropdown panel – simple vertical list */
.svc-switcher__menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.11);
    z-index: 500;
    min-width: 160px;
    padding: 6px;
    overflow: hidden;
}
.svc-switcher__menu--open { display: flex; }

.svc-switcher__item {
    display: block;
    padding: 9px 14px;
    border-radius: 7px;
    text-decoration: none;
    font-size: .93rem;
    font-weight: 500;
    color: var(--text);
    transition: background .15s, color .15s;
    white-space: nowrap;
}
.svc-switcher__item:hover       { background: var(--primary-light); color: var(--primary); }
.svc-switcher__item--active     { color: var(--primary); font-weight: 700; }
.svc-switcher__item--active::before { content: '✓ '; }

/* Mobile nav tweaks */
@media (max-width: 640px) {
    .nav-modes { display: none; }
    .svc-switcher__menu { min-width: 260px; }
}

/* ── Page wrapper ─────────────────────────────────────────── */
.main { }
.page { padding: 28px 16px 30px; }

/* ── Main card ────────────────────────────────────────────── */
.main-card {
    background: var(--white);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 36px 32px;
    max-width: 1060px;
    margin: 0 auto;
}

/* ── Two-column grid ──────────────────────────────────────── */
.body-row {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    align-items: flex-start;
}
.col-left  { flex: 1 1 340px; min-width: 0; }
.col-right { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 0; }

/* ── Title block ──────────────────────────────────────────── */
.main-title {
    text-align: center;
    margin-bottom: 28px;
}
.main-title h1 {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}
.brand-name        { color: var(--primary); }
.underline-emphasis {
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: var(--primary);
    text-underline-offset: 4px;
}
.main-title h2 {
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--text-muted);
}

/* ── Badge ────────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 700;
    padding: 5px 15px;
    vertical-align: middle;
    line-height: 1;
}
.badge-primary { background: var(--primary); color: var(--white); }
.badge-ghost   { background: rgba(255,255,255,.25); color: var(--white); }

@keyframes shine {
    0%, 100% { opacity: 1; }
    50%       { opacity: .7; }
}
.shine-effect { animation: shine 2.5s infinite; }

/* ── Carousel ─────────────────────────────────────────────── */
.carousel-container {
    border-radius: 12px;
    overflow: hidden;
    background: var(--primary-light);
}
.carousel-slide {
    display: none;
    text-align: center;
    opacity: 0;
    transition: opacity .4s ease;
}
.carousel-slide.active {
    display: block;
    opacity: 1;
}

.carousel-slide h4 {
    padding: 14px 16px 6px;
    color: var(--primary);
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.5;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: top;
}

/* ── Feature icons ────────────────────────────────────────── */
.features {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 12px;
    margin: 20px 0 4px;
}
.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    font-size: .88rem;
    color: var(--text);
}
.feature-item i { font-size: 1.7rem; color: var(--primary); }
.feature-item p { margin: 0; }

/* ── Value props ──────────────────────────────────────────── */
.value-props {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}
.value-prop-item {
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 16px 18px 16px 48px;
    position: relative;
    background: var(--white);
    transition: border-color .2s, box-shadow .2s;
}
.value-prop-item:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 12px rgba(245,90,43,.12);
}
.value-prop-item::before {
    content: '\f058';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--primary);
    position: absolute;
    left: 16px;
    top: 16px;
    font-size: 1.1rem;
}
.value-prop-item h3 {
    font-size: .97rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text);
}
.value-prop-item p {
    font-size: .85rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
}

/* ── CTA button ───────────────────────────────────────────── */
.cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--primary);
    color: var(--white);
    padding: 17px 24px;
    border-radius: var(--radius-btn);
    font-size: 1.15rem;
    font-weight: 700;
    width: 100%;
    margin-top: auto;
    transition: background .2s;
}
.cta-button:hover { background: var(--primary-dark); color: var(--white); }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
    background: var(--white);
    box-shadow: 0 -2px 10px rgba(0,0,0,.06);
    padding-top: 28px;
}
.footer-top {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    justify-content: center;
}
.footer-logo img   { height: 52px; width: auto; }
.footer-about {
    flex: 1;
    min-width: 220px;
    font-size: .86rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}
.footer-offices {
    background: #f7f7f7;
    padding: 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}
.footer-office h5 {
    font-weight: 700;
    font-size: .9rem;
    margin-bottom: 4px;
    color: var(--text);
}
.footer-office p  { font-size: .84rem; color: var(--text-muted); margin: 0; line-height: 1.7; }
.footer-office a  { display: block; font-size: .84rem; color: var(--primary); }
.footer-office a:hover { text-decoration: underline; }
.footer-copy {
    background: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 10px 16px;
    font-size: .85rem;
}

/* ── Display helpers ──────────────────────────────────────── */
.d-none { display: none !important; }
@media (min-width: 768px)  { .d-md-inline { display: inline !important; } }
@media (min-width: 1200px) { .d-xl-block  { display: block  !important; } }

/* ── Mobile ───────────────────────────────────────────────── */
@media (max-width: 640px) {
    .main-card   { padding: 20px 14px; }
    .main-title h1 { font-size: 1.45rem; }
    .cta-button  { font-size: 1rem; padding: 15px 16px; }
    .footer-offices { gap: 24px; }
}
