/* ========================================================= VIVA TOURS — Design System Local China travel experiences, based in Chongqing ========================================================= */ :root { /* Brand colors — deep green, high-end, regional identity */ --primary: #2E5B5A; /* deep green — brand */ --primary-dark: #1F3F3E; --primary-light: #E8F0EF; --accent: #C21F2B; /* china red — CTA, emphasis */ --accent-dark: #A01822; --accent-soft: #F7E4E1; --bg: #FAF7F2; /* warm off-white background */ --bg-white: #FFFFFF; --text: #1A1A1A; --text-muted: #6B6B6B; --border: #E5E0D8; --gold: #D4AF37; /* Typography */ --font-sans: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif; --font-serif: "Playfair Display", Georgia, "Songti SC", serif; /* Spacing & layout */ --container: 1200px; --radius: 8px; --radius-lg: 14px; --shadow: 0 6px 24px rgba(0, 0, 0, 0.08); --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.14); --transition: 0.25s ease; /* Sections */ --section-pad: 88px; } /* ---------- Reset ---------- */ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } html { scroll-behavior: smooth; } body { font-family: var(--font-sans); color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; } img { max-width: 100%; display: block; } a { color: inherit; text-decoration: none; } ul, ol { list-style: none; } button { font-family: inherit; cursor: pointer; border: none; background: none; } input, textarea, select { font-family: inherit; } .container { max-width: var(--container); margin: 0 auto; padding: 0 24px; } h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; color: var(--text); } h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); } h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); } h3 { font-size: 1.25rem; } h4 { font-size: 1.05rem; } .eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.78rem; font-weight: 700; color: var(--primary); margin-bottom: 12px; } .section { padding: var(--section-pad) 0; } .section--white { background: var(--bg-white); } .section--primary { background: var(--primary); color: #fff; } .section--primary .eyebrow { color: #cfe0de; } .section--primary h2, .section--primary p { color: #fff; } .section-head { max-width: 640px; margin-bottom: 48px; } .section-head--center { margin-left: auto; margin-right: auto; text-align: center; } .section-head p { color: var(--text-muted); margin-top: 12px; font-size: 1.05rem; } .section--primary .section-head p { color: #cfe0de; } /* ---------- Buttons ---------- */ .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; border-radius: 50px; font-weight: 700; font-size: 0.95rem; letter-spacing: 0.02em; transition: all var(--transition); white-space: nowrap; } .btn--primary { background: var(--accent); color: #fff; } .btn--primary:hover { background: var(--accent-dark); transform: translateY(-2px); } .btn--ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.7); } .btn--ghost:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-2px); } .btn--outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); } .btn--outline:hover { background: var(--primary); color: #fff; } .btn--dark { background: var(--primary); color: #fff; } .btn--dark:hover { background: var(--primary-dark); transform: translateY(-2px); } .btn--whatsapp { background: #25D366; color: #fff; } .btn--whatsapp:hover { background: #1EBE57; transform: translateY(-2px); } /* ---------- Header ---------- */ .header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 18px 0; transition: all 0.3s ease; } .header--scrolled { background: rgba(255, 255, 255, 0.97); box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08); padding: 10px 0; } .header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; } .logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.5rem; letter-spacing: 0.04em; color: #fff; } .header--scrolled .logo { color: var(--primary); } .logo__mark { width: 38px; height: 38px; border-radius: 8px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.05rem; font-weight: 800; flex-shrink: 0; } .logo__sub { display: block; font-size: 0.6rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.75; margin-top: -2px; } .header__nav { display: flex; align-items: center; gap: 8px; } .header__nav a { color: #fff; font-weight: 600; font-size: 0.95rem; padding: 10px 16px; border-radius: 6px; transition: background var(--transition), color var(--transition); opacity: 0.92; } .header--scrolled .header__nav a { color: var(--text); opacity: 0.85; } .header__nav a:hover { background: rgba(255, 255, 255, 0.14); opacity: 1; } .header--scrolled .header__nav a:hover { background: var(--primary-light); color: var(--primary); } .header__nav a.is-active { color: var(--accent); opacity: 1; } .header--scrolled .header__nav a.is-active { color: var(--accent); } .header__cta { margin-left: 8px; } .header__cta .btn { padding: 11px 22px; font-size: 0.9rem; } /* Language switcher */ .lang-switch { display: flex; align-items: center; gap: 2px; margin-left: 10px; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 50px; padding: 3px; } .header--scrolled .lang-switch { border-color: var(--border); } .lang-switch a { padding: 6px 10px; border-radius: 50px; font-size: 0.75rem; font-weight: 700; color: #fff; opacity: 0.7; transition: all var(--transition); } .header--scrolled .lang-switch a { color: var(--text); } .lang-switch a:hover { opacity: 1; } .header__nav .lang-switch a.is-active { background: var(--accent); color: #fff; opacity: 1; } /* Hamburger */ .nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; } .nav-toggle span { width: 26px; height: 2.5px; background: #fff; border-radius: 2px; transition: all 0.3s ease; } .header--scrolled .nav-toggle span { background: var(--primary); } .nav-toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); } .nav-toggle.is-open span:nth-child(2) { opacity: 0; } .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); } /* ---------- Hero ---------- */ .hero { position: relative; min-height: 92vh; display: flex; align-items: center; color: #fff; overflow: hidden; } .hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; animation: heroZoom 18s ease-in-out infinite alternate; } .hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.35) 48%, rgba(0,0,0,0.15) 100%); } @keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.08); } } .hero__content { position: relative; z-index: 2; padding: 140px 0 100px; max-width: 640px; } .hero__title { color: #fff; font-size: clamp(2.4rem, 5.5vw, 4rem); line-height: 1.12; margin-bottom: 20px; font-family: var(--font-serif); } .hero__title em { font-style: italic; color: var(--gold); } .hero__sub { color: rgba(255, 255, 255, 0.92); font-size: 1.12rem; margin-bottom: 32px; max-width: 520px; } .hero__actions { display: flex; gap: 14px; flex-wrap: wrap; } /* Hero stat strip */ .hero__stats { position: relative; z-index: 2; margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; max-width: 680px; } .stat { background: rgba(255, 255, 255, 0.12); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: var(--radius); padding: 18px 16px; text-align: center; } .stat__num { font-size: 1.7rem; font-weight: 800; color: #fff; line-height: 1; } .stat__label { font-size: 0.75rem; color: rgba(255, 255, 255, 0.8); margin-top: 6px; letter-spacing: 0.04em; } /* ---------- Cards ---------- */ .card { background: var(--bg-white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: transform var(--transition), box-shadow var(--transition); display: flex; flex-direction: column; } .card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); } .card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; } .card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; } .card:hover .card__media img { transform: scale(1.06); } .card__badge { position: absolute; top: 14px; left: 14px; background: var(--accent); color: #fff; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; padding: 5px 12px; border-radius: 50px; text-transform: uppercase; } .card__badge--dark { background: var(--primary); } .card__body { padding: 22px; display: flex; flex-direction: column; flex: 1; } .card__meta { display: flex; gap: 14px; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 10px; font-weight: 600; letter-spacing: 0.02em; } .card__title { font-size: 1.18rem; font-weight: 700; margin-bottom: 8px; line-height: 1.35; } .card__title a:hover { color: var(--accent); } .card__desc { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 18px; flex: 1; } .card__foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 16px; } .card__price { font-size: 0.85rem; color: var(--text-muted); } .card__price strong { font-size: 1.3rem; color: var(--accent); font-weight: 800; margin-right: 3px; } .card__link { color: var(--primary); font-weight: 700; font-size: 0.9rem; transition: gap 0.25s ease, color 0.25s ease; display: inline-flex; align-items: center; gap: 4px; } .card__link:hover { gap: 8px; color: var(--accent); } /* Grid */ .grid { display: grid; gap: 28px; } .grid--tours { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); } .grid--dest { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); } /* ---------- Feature / values row ---------- */ .feature-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; } .feature { background: var(--bg-white); border-radius: var(--radius-lg); padding: 32px 28px; border: 1px solid var(--border); transition: transform var(--transition), box-shadow var(--transition); } .feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); } .feature__icon { width: 54px; height: 54px; border-radius: 50%; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 18px; } .feature h3 { margin-bottom: 8px; } .feature p { color: var(--text-muted); font-size: 0.92rem; } /* ---------- CTA band ---------- */ .cta-band { background: linear-gradient(120deg, var(--primary) 0%, var(--primary-dark) 100%); color: #fff; border-radius: var(--radius-lg); padding: 56px 48px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; } .cta-band h2 { color: #fff; margin-bottom: 8px; } .cta-band p { color: #cfe0de; } .cta-band .btn { flex-shrink: 0; } /* ---------- Testimonials ---------- */ .quote { background: var(--bg-white); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); } .quote__text { font-size: 0.98rem; font-style: italic; margin-bottom: 18px; color: var(--text); } .quote__who { display: flex; align-items: center; gap: 12px; } .quote__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.95rem; } .quote__name { font-weight: 700; font-size: 0.9rem; } .quote__meta { font-size: 0.78rem; color: var(--text-muted); } .stars { color: var(--gold); letter-spacing: 2px; font-size: 0.95rem; } /* ---------- Page hero (inner pages) ---------- */ .page-hero { position: relative; padding: 180px 0 90px; color: #fff; background-size: cover; background-position: center; } .page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.35) 60%, rgba(0,0,0,0.45) 100%); } .page-hero__inner { position: relative; z-index: 2; } .page-hero h1 { color: #fff; margin-bottom: 12px; } .page-hero .eyebrow { color: #fff; } .page-hero p { color: rgba(255,255,255,0.9); max-width: 560px; } .breadcrumb { margin-top: 18px; font-size: 0.82rem; color: rgba(255,255,255,0.75); } .breadcrumb a { color: rgba(255,255,255,0.9); } .breadcrumb a:hover { text-decoration: underline; } .breadcrumb span.sep { margin: 0 8px; opacity: 0.6; } /* ---------- Filters (tours page) ---------- */ .filters { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; align-items: center; } .filter-chip { padding: 9px 18px; border-radius: 50px; border: 1.5px solid var(--border); background: var(--bg-white); font-weight: 600; font-size: 0.88rem; color: var(--text-muted); transition: all var(--transition); } .filter-chip:hover { border-color: var(--primary); color: var(--primary); } .filter-chip.is-active { background: var(--primary); border-color: var(--primary); color: #fff; } .tours-count { margin-left: auto; font-size: 0.85rem; color: var(--text-muted); } /* ---------- Tour detail ---------- */ .tour-hero { padding-top: 200px; } .tour-detail-grid { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: start; } .tour-gallery img { border-radius: var(--radius-lg); box-shadow: var(--shadow); } .tour-highlights { margin-top: 40px; } .highlight-list { display: grid; gap: 14px; margin-top: 20px; } .highlight-list li { display: flex; gap: 14px; align-items: flex-start; background: var(--bg-white); border-radius: var(--radius); padding: 16px 18px; border: 1px solid var(--border); } .highlight-list li span:first-child { color: var(--accent); font-weight: 800; font-size: 1.1rem; line-height: 1.4; } .itinerary { margin-top: 48px; } .itinerary__day { background: var(--bg-white); border-radius: var(--radius-lg); padding: 26px; margin-bottom: 18px; border: 1px solid var(--border); position: relative; } .itinerary__day h3 { color: var(--primary); margin-bottom: 10px; font-size: 1.05rem; } .itinerary__day p { color: var(--text-muted); font-size: 0.95rem; } .tour-side { position: sticky; top: 100px; } .booking-card { background: var(--bg-white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 30px; } .booking-card__price { font-size: 0.9rem; color: var(--text-muted); } .booking-card__price strong { font-size: 2rem; color: var(--accent); font-weight: 800; } .booking-card__row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: 0.88rem; } .booking-card__row:last-child { border-bottom: none; } .booking-card__row .val { font-weight: 700; } .booking-card__note { font-size: 0.78rem; color: var(--text-muted); margin: 14px 0; line-height: 1.5; } /* ---------- About ---------- */ .about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; } .about-grid img { border-radius: var(--radius-lg); box-shadow: var(--shadow); } .values-list { display: grid; gap: 22px; margin-top: 32px; } .values-list li { display: flex; gap: 16px; } .values-list .num { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 800; color: var(--accent); line-height: 1.2; flex-shrink: 0; } /* ---------- Contact ---------- */ .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; } .contact-form { background: var(--bg-white); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 36px; } .form-group { margin-bottom: 18px; } .form-group label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 8px; color: var(--text); } .form-group input, .form-group textarea, .form-group select { width: 100%; padding: 13px 15px; border: 1.5px solid var(--border); border-radius: var(--radius); font-size: 0.95rem; background: var(--bg); transition: border-color var(--transition); } .form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--primary); background: #fff; } .form-group textarea { min-height: 120px; resize: vertical; } .form-note { font-size: 0.78rem; color: var(--text-muted); margin-top: 10px; } .contact-info { display: grid; gap: 16px; } .contact-item { background: var(--bg-white); border-radius: var(--radius); border: 1px solid var(--border); padding: 20px 22px; display: flex; gap: 16px; align-items: flex-start; } .contact-item__icon { width: 44px; height: 44px; border-radius: 50%; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; } .contact-item h3 { font-size: 0.95rem; margin-bottom: 4px; } .contact-item p { font-size: 0.9rem; color: var(--text-muted); } /* ---------- FAQ ---------- */ .faq-item { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; } .faq-item__q { width: 100%; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 0.98rem; text-align: left; color: var(--text); } .faq-item__q .plus { font-size: 1.4rem; color: var(--primary); transition: transform 0.3s ease; flex-shrink: 0; } .faq-item.is-open .faq-item__q .plus { transform: rotate(45deg); } .faq-item__a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; } .faq-item__a-inner { padding: 0 24px 22px; color: var(--text-muted); font-size: 0.92rem; } /* ---------- Floating WhatsApp ---------- */ .wa-float { position: fixed; bottom: 26px; right: 26px; z-index: 999; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4); transition: transform var(--transition); } .wa-float:hover { transform: scale(1.1); } .wa-float svg { width: 30px; height: 30px; } .wa-float__pulse { position: absolute; inset: 0; border-radius: 50%; background: #25D366; animation: waPulse 2s infinite; z-index: -1; } @keyframes waPulse { 0% { transform: scale(1); opacity: 0.6; } 70% { transform: scale(1.5); opacity: 0; } 100% { opacity: 0; } } /* ---------- Footer ---------- */ .footer { background: var(--primary-dark); color: #cfe0de; padding: 64px 0 0; } .footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; } .footer h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; letter-spacing: 0.03em; } .footer a { color: #cfe0de; font-size: 0.9rem; transition: color var(--transition); } .footer a:hover { color: #fff; } .footer__links li { margin-bottom: 10px; } .footer__brand p { font-size: 0.9rem; margin-top: 14px; max-width: 300px; } .footer__social { display: flex; gap: 12px; margin-top: 18px; } .footer__social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25); display: flex; align-items: center; justify-content: center; transition: all var(--transition); } .footer__social a:hover { background: var(--accent); border-color: var(--accent); } .footer__bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; flex-wrap: wrap; gap: 10px; } .footer__bottom a:hover { text-decoration: underline; } /* ---------- Reveal animation ---------- */ .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; } .reveal.is-visible { opacity: 1; transform: translateY(0); } /* ---------- Responsive ---------- */ @media (max-width: 1024px) { .tour-detail-grid { grid-template-columns: 1fr; } .tour-side { position: static; } .about-grid { grid-template-columns: 1fr; gap: 32px; } .footer__grid { grid-template-columns: 1fr 1fr; } } @media (max-width: 768px) { :root { --section-pad: 60px; } .header__nav { position: fixed; top: 0; right: -100%; width: 78%; max-width: 340px; height: 100vh; background: #fff; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 0; padding: 96px 28px 40px; box-shadow: -10px 0 40px rgba(0,0,0,0.15); transition: right 0.35s ease; z-index: 1001; } .header__nav.is-open { right: 0; } .header__nav a { color: var(--text); width: 100%; padding: 14px 0; border-bottom: 1px solid var(--border); border-radius: 0; opacity: 1; font-size: 1rem; } .header__nav a:hover { background: none; color: var(--primary); } .header__nav .header__cta { margin: 20px 0 0; width: 100%; } .header__nav .header__cta .btn { width: 100%; } .nav-toggle { display: flex; } .hero { min-height: 82vh; } .hero__actions { flex-direction: column; } .hero__actions .btn { width: 100%; } .contact-grid { grid-template-columns: 1fr; } .cta-band { padding: 40px 28px; flex-direction: column; align-items: flex-start; } .footer__grid { grid-template-columns: 1fr; gap: 32px; } .tours-count { margin-left: 0; width: 100%; } .grid--tours { grid-template-columns: 1fr; } } @media (max-width: 480px) { .hero__title { font-size: 2rem; } .hero__stats { grid-template-columns: repeat(2, 1fr); } .grid--dest { grid-template-columns: 1fr; } }