/* ═══════════════════════════════════════════════════
   瑞波清潔 官方網站 CSS
   設計風格：專業・沉穩・台灣在地清潔品牌
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+TC:wght@600;700;900&family=Noto+Sans+TC:wght@300;400;500;700&display=swap');

/* ── Variables ── */
:root {
  --navy:   #0f1f3d;
  --blue:   #1a3a6e;
  --mid:    #2356a8;
  --sky:    #4a8fd6;
  --gold:   #c9a84c;
  --gold-l: #e8c96b;
  --green:  #06c755;
  --white:  #ffffff;
  --off:    #f5f7fb;
  --light:  #eef3fb;
  --text:   #1e2d3d;
  --muted:  #637389;
  --border: #dce4f0;
  --shadow: 0 4px 24px rgba(15,31,61,.09);
  --shadow-lg: 0 12px 48px rgba(15,31,61,.14);
  --r: 10px;
  --nav-h: 68px;
  --serif: 'Noto Serif TC', serif;
  --sans:  'Noto Sans TC', sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--sans); color: var(--text); background: var(--white); line-height: 1.8; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Containers ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 30px; border-radius: 6px; font-size: 15px; font-weight: 700;
  transition: transform .2s, box-shadow .2s, background .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold    { background: var(--gold); color: var(--navy); box-shadow: 0 4px 18px rgba(201,168,76,.35); }
.btn-gold:hover { background: var(--gold-l); box-shadow: 0 8px 24px rgba(201,168,76,.45); }
.btn-navy    { background: var(--navy); color: var(--white); box-shadow: 0 4px 18px rgba(15,31,61,.25); }
.btn-navy:hover { background: var(--blue); }
.btn-line    { background: var(--green); color: var(--white); box-shadow: 0 4px 18px rgba(6,199,85,.3); }
.btn-line:hover { background: #05b04a; }
.btn-outline-white { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.55); }
.btn-outline-white:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn-outline-navy { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

/* ── Navigation ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
.nav.scrolled { box-shadow: var(--shadow); }
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; flex-direction: column; gap: 0; line-height: 1; }
.logo-mark { font-family: var(--serif); font-size: 24px; font-weight: 900; color: var(--navy); letter-spacing: .05em; }
.logo-sub  { font-size: 9px; font-weight: 500; color: var(--mid); letter-spacing: .2em; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links li a {
  padding: 8px 14px; border-radius: 6px; font-size: 14px; font-weight: 500; color: var(--text);
  transition: background .2s, color .2s;
}
.nav-links li a:hover, .nav-links li a.active { background: var(--light); color: var(--mid); }
.nav-cta {
  background: var(--gold) !important; color: var(--navy) !important;
  font-weight: 700 !important; margin-left: 8px;
  box-shadow: 0 2px 12px rgba(201,168,76,.3);
}
.nav-cta:hover { background: var(--gold-l) !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: .3s; }

/* ── Hero ── */
.hero {
  min-height: 100vh; position: relative;
  display: flex; align-items: center;
  background: var(--navy); overflow: hidden;
  padding-top: var(--nav-h);
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(35,86,168,.5) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(201,168,76,.15) 0%, transparent 60%);
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    0deg, transparent, transparent 79px, rgba(255,255,255,.03) 79px, rgba(255,255,255,.03) 80px
  ), repeating-linear-gradient(
    90deg, transparent, transparent 79px, rgba(255,255,255,.03) 79px, rgba(255,255,255,.03) 80px
  );
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 1100px; margin: 0 auto; padding: 80px 24px 100px;
  animation: fadeUp .9s ease both;
}
.hero-badge {
  display: inline-block;
  background: rgba(201,168,76,.18); border: 1px solid rgba(201,168,76,.4);
  color: var(--gold-l); font-size: 13px; font-weight: 500; letter-spacing: .1em;
  padding: 6px 18px; border-radius: 50px; margin-bottom: 24px;
}
.hero-title {
  font-family: var(--serif); font-size: clamp(36px, 6vw, 68px);
  font-weight: 900; color: var(--white); line-height: 1.25; margin-bottom: 20px;
}
.hero-title em { font-style: normal; color: var(--gold-l); }
.hero-desc { font-size: clamp(15px, 2vw, 17px); color: rgba(255,255,255,.7); margin-bottom: 36px; line-height: 1.9; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }
.hero-stats { display: flex; align-items: center; gap: 0; }
.stat { text-align: center; padding: 0 28px; }
.stat strong { display: block; font-family: var(--serif); font-size: 32px; font-weight: 900; color: var(--gold-l); line-height: 1; }
.stat span { font-size: 12px; color: rgba(255,255,255,.55); margin-top: 4px; display: block; }
.stat-div { width: 1px; height: 36px; background: rgba(255,255,255,.15); }
.stat:first-child { padding-left: 0; }
.hero-scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,.4); font-size: 11px; letter-spacing: .1em;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,.4), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ── Sections ── */
.section { padding: 88px 0; }
.section-alt  { background: var(--off); }
.section-dark { background: var(--navy); }
.section-head { text-align: center; margin-bottom: 52px; }
.section-head.light h2, .section-head.light p { color: rgba(255,255,255,.9); }
.section-head.light .section-label { color: var(--gold); }
.section-label { font-size: 12px; font-weight: 700; letter-spacing: .18em; color: var(--mid); text-transform: uppercase; margin-bottom: 10px; }
.section h2 { font-family: var(--serif); font-size: clamp(24px, 4vw, 36px); font-weight: 700; color: var(--navy); line-height: 1.35; margin-bottom: 12px; }
.section-head p { font-size: 15px; color: var(--muted); max-width: 500px; margin: 0 auto; }
.section-cta { text-align: center; margin-top: 44px; }

/* ── Service Cards ── */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.service-card {
  display: block; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--r);
  padding: 30px 26px; transition: transform .25s, box-shadow .25s, border-color .25s;
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--mid), var(--sky));
  transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 52px; height: 52px; background: var(--light);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  color: var(--mid); margin-bottom: 18px;
}
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { font-family: var(--serif); font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.service-card p  { font-size: 14px; color: var(--muted); line-height: 1.75; margin-bottom: 16px; }
.card-link { font-size: 13px; font-weight: 700; color: var(--mid); }

/* ── Why Us ── */
.why-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.why-text .section-label { text-align: left; }
.why-text h2 { font-family: var(--serif); font-size: clamp(24px, 3.5vw, 34px); font-weight: 700; color: var(--navy); margin-bottom: 16px; }
.why-text > p { font-size: 15px; color: var(--muted); margin-bottom: 28px; line-height: 1.85; }
.why-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.why-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 14.5px; }
.why-icon {
  flex-shrink: 0; width: 24px; height: 24px; background: var(--mid); color: #fff;
  border-radius: 50%; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
.why-list strong { color: var(--navy); }
.why-numbers { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.num-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r); padding: 24px 20px; text-align: center;
}
.num-card.accent { background: var(--navy); border-color: var(--navy); }
.num-big { font-family: var(--serif); font-size: 40px; font-weight: 900; color: var(--mid); line-height: 1; margin-bottom: 8px; }
.num-big span { font-size: 16px; }
.num-card.accent .num-big { color: var(--gold-l); }
.num-label { font-size: 12.5px; color: var(--muted); }
.num-card.accent .num-label { color: rgba(255,255,255,.6); }

/* ── Works Grid ── */
.works-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.work-item { border-radius: var(--r); overflow: hidden; border: 1px solid var(--border); background: var(--white); box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.work-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.work-img-wrap { position: relative; overflow: hidden; aspect-ratio: 4/3; }
.work-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.work-item:hover .work-img-wrap img { transform: scale(1.04); }
.work-tag {
  position: absolute; top: 12px; left: 12px;
  background: var(--navy); color: var(--gold-l);
  font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 20px;
  letter-spacing: .06em;
}
.work-cap { padding: 14px 18px; }
.work-cap strong { display: block; font-size: 14.5px; font-weight: 700; color: var(--navy); margin-bottom: 3px; }
.work-cap span { font-size: 13px; color: var(--muted); }

/* ── Reviews ── */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r); padding: 28px 24px;
}
.review-stars { color: var(--gold); font-size: 16px; margin-bottom: 12px; letter-spacing: 2px; }
.review-card p { font-size: 14px; color: rgba(255,255,255,.75); line-height: 1.85; margin-bottom: 16px; }
.reviewer { font-size: 12.5px; color: rgba(255,255,255,.45); }

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--blue) 0%, var(--mid) 100%);
  padding: 72px 0;
}
.cta-content { text-align: center; }
.cta-content h2 { font-family: var(--serif); font-size: clamp(22px, 4vw, 34px); font-weight: 700; color: var(--white); margin-bottom: 10px; }
.cta-content p  { font-size: 15px; color: rgba(255,255,255,.7); margin-bottom: 32px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ── */
.footer { background: var(--navy); color: rgba(255,255,255,.65); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand .footer-logo { display: flex; flex-direction: column; gap: 0; margin-bottom: 16px; }
.footer-brand .logo-mark { font-size: 26px; color: var(--white); }
.footer-brand .logo-sub  { color: rgba(255,255,255,.4); }
.footer-brand p { font-size: 13.5px; line-height: 1.85; margin-bottom: 20px; }
.social-links { display: flex; gap: 8px; }
.social-links a {
  width: 34px; height: 34px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.6);
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .2s, color .2s;
}
.social-links a:hover { border-color: var(--gold); color: var(--gold); }
.footer-links h4, .footer-contact h4 { font-size: 13px; font-weight: 700; color: var(--white); letter-spacing: .08em; margin-bottom: 16px; }
.footer-links ul { display: flex; flex-direction: column; gap: 9px; }
.footer-links li a, .footer-contact li { font-size: 13.5px; }
.footer-links li a:hover { color: var(--white); }
.footer-contact ul { display: flex; flex-direction: column; gap: 9px; }
.footer-contact li a:hover { color: var(--white); }
.footer-bottom {
  padding: 20px 0; display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: rgba(255,255,255,.3); flex-wrap: wrap; gap: 8px;
}

/* ── Floating Buttons ── */
.floating-btns {
  position: fixed; right: 16px; bottom: 24px; z-index: 90;
  display: flex; flex-direction: column; gap: 10px;
}
.float-btn {
  width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.2); transition: transform .2s, box-shadow .2s;
}
.float-btn:hover { transform: scale(1.1); box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.float-line { background: var(--green); }
.float-tel  { background: var(--mid); }

/* ── Page Hero (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  padding: calc(var(--nav-h) + 56px) 0 64px;
  text-align: center;
}
.page-hero h1 { font-family: var(--serif); font-size: clamp(28px, 5vw, 46px); font-weight: 900; color: var(--white); margin-bottom: 12px; }
.page-hero p  { font-size: 16px; color: rgba(255,255,255,.7); }
.breadcrumb { font-size: 13px; color: rgba(255,255,255,.4); margin-bottom: 16px; }
.breadcrumb a { color: rgba(255,255,255,.5); }
.breadcrumb span { color: var(--gold); }

/* ── Service Detail Page ── */
.service-detail {
  display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start;
}
.service-detail-body h2 { font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--navy); margin: 32px 0 12px; }
.service-detail-body h2:first-child { margin-top: 0; }
.service-detail-body p  { font-size: 15px; color: var(--muted); line-height: 1.9; margin-bottom: 16px; }
.service-detail-body ul { padding-left: 20px; }
.service-detail-body li { font-size: 15px; color: var(--muted); margin-bottom: 8px; }
.service-sidebar { position: sticky; top: calc(var(--nav-h) + 20px); }
.sidebar-card {
  background: var(--off); border: 1px solid var(--border); border-radius: var(--r);
  padding: 24px; margin-bottom: 16px;
}
.sidebar-card h4 { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 14px; }
.sidebar-card ul { display: flex; flex-direction: column; gap: 8px; }
.sidebar-card li { font-size: 14px; color: var(--muted); }
.sidebar-card li a { color: var(--mid); font-weight: 500; }
.sidebar-card li a:hover { text-decoration: underline; }

/* ── Blog ── */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r);
  overflow: hidden; transition: transform .25s, box-shadow .25s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-img { aspect-ratio: 16/9; overflow: hidden; background: var(--light); }
.blog-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.blog-card:hover .blog-img img { transform: scale(1.05); }
.blog-body { padding: 20px; }
.blog-tag { font-size: 11px; font-weight: 700; color: var(--mid); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }
.blog-body h3 { font-family: var(--serif); font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 10px; line-height: 1.4; }
.blog-body p  { font-size: 13.5px; color: var(--muted); line-height: 1.75; margin-bottom: 14px; }
.blog-meta { font-size: 12px; color: var(--muted); }

/* ── Contact Form ── */
.contact-grid { display: grid; grid-template-columns: 1fr 380px; gap: 56px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13.5px; font-weight: 700; color: var(--navy); margin-bottom: 7px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--border);
  border-radius: 7px; font-size: 15px; font-family: var(--sans); color: var(--text);
  background: var(--white); transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--mid); box-shadow: 0 0 0 3px rgba(35,86,168,.1);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-info-card {
  background: var(--navy); border-radius: var(--r); padding: 32px; color: rgba(255,255,255,.75);
  position: sticky; top: calc(var(--nav-h) + 20px);
}
.contact-info-card h3 { font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--white); margin-bottom: 24px; }
.contact-info-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 28px; }
.contact-info-list li { display: flex; gap: 12px; font-size: 14px; }
.contact-info-list a { color: rgba(255,255,255,.75); }
.contact-info-list a:hover { color: var(--white); }
.contact-btns { display: flex; flex-direction: column; gap: 10px; }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scrollPulse {
  0%, 100% { opacity: .4; }
  50%       { opacity: 1; }
}
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ── */
@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid      { grid-template-columns: 1fr; gap: 40px; }
  .reviews-grid  { grid-template-columns: 1fr; gap: 14px; }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
  .service-detail{ grid-template-columns: 1fr; }
  .blog-grid     { grid-template-columns: repeat(2, 1fr); }
  .contact-grid  { grid-template-columns: 1fr; }
  .service-sidebar, .contact-info-card { position: static; }
}
@media (max-width: 680px) {
  .nav-links { display: none; flex-direction: column; gap: 0; position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 8px 16px 16px; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 12px 16px; }
  .hamburger { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .works-grid    { grid-template-columns: 1fr; }
  .hero-stats    { flex-direction: column; gap: 16px; }
  .stat-div      { width: 60px; height: 1px; }
  .hero-actions  { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .blog-grid     { grid-template-columns: 1fr; }
  .form-row      { grid-template-columns: 1fr; }
  .footer-grid   { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cta-actions   { flex-direction: column; align-items: center; }
  .num-card .num-big { font-size: 32px; }
}
