/* =========================================================
   小豚宿 Guinea Stay — GoDaddy-ready static website
   Palette and reusable components
   ========================================================= */
:root {
  --cream: #fff9f1;
  --tea: #f4e9da;
  --caramel: #b9855a;
  --caramel-dark: #966945;
  --sage: #a8b89a;
  --sage-soft: #e6ecdf;
  --ink: #55463b;
  --muted: #786b61;
  --white: #ffffff;
  --line: #e7dacb;
  --shadow: 0 14px 40px rgba(85, 70, 59, 0.08);
  --radius: 26px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--cream);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  line-height: 1.75;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
:focus-visible { outline: 3px solid rgba(185, 133, 90, .38); outline-offset: 3px; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { padding: 96px 0; }
.section-soft { background: var(--tea); }
.section-white { background: var(--white); }
.section-head { max-width: 700px; margin-bottom: 42px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--caramel-dark);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--caramel); }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { margin-top: 0; line-height: 1.35; }
h1 { font-size: clamp(2.45rem, 6vw, 4.75rem); letter-spacing: -.04em; }
h2 { margin-bottom: 18px; font-size: clamp(2rem, 4vw, 3.15rem); letter-spacing: -.03em; }
h3 { margin-bottom: 12px; font-size: 1.28rem; }
.lead { color: var(--muted); font-size: 1.08rem; }
.muted { color: var(--muted); }
.skip-link { position: fixed; top: -60px; left: 18px; z-index: 2000; padding: 10px 18px; background: var(--ink); color: #fff; border-radius: 0 0 12px 12px; }
.skip-link:focus { top: 0; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 249, 241, .93);
  border-bottom: 1px solid rgba(231, 218, 203, .8);
  backdrop-filter: blur(14px);
}
.nav-wrap { min-height: 82px; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; white-space: nowrap; }
.brand-mark { width: 44px; height: 36px; position: relative; border-radius: 52% 48% 45% 55%; background: var(--caramel); }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; width: 6px; height: 6px; top: 12px; border-radius: 50%; background: var(--white); box-shadow: 0 9px 0 1px #efaaa0; }
.brand-mark::before { left: 12px; }
.brand-mark::after { right: 12px; }
.brand-name { display: block; font-size: 1.08rem; font-weight: 800; letter-spacing: .04em; }
.brand-sub { display: block; margin-top: -2px; color: var(--muted); font-size: .7rem; letter-spacing: .12em; }
.main-nav { display: flex; align-items: center; gap: 24px; }
.main-nav a { position: relative; padding: 8px 0; font-size: .9rem; font-weight: 600; }
.main-nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 2px; height: 2px; background: var(--caramel); transition: right .25s ease; }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { right: 0; }
.menu-toggle { display: none; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--tea); cursor: pointer; }
.menu-toggle span { display: block; width: 20px; height: 2px; margin: 5px auto; background: var(--ink); transition: transform .25s, opacity .25s; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }

/* Buttons */
.btn { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 9px; padding: 12px 24px; border: 1px solid transparent; border-radius: 999px; font-weight: 700; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #fff; background: var(--caramel); box-shadow: 0 8px 24px rgba(185, 133, 90, .2); }
.btn-primary:hover { background: var(--caramel-dark); }
.btn-secondary { background: var(--white); border-color: var(--line); }
.btn-secondary:hover { background: var(--tea); }
.btn-sage { background: var(--sage); color: #fff; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Page hero */
.page-hero { padding: 84px 0 72px; background: linear-gradient(135deg, var(--tea), var(--cream)); text-align: center; }
.page-hero h1 { margin: 0 0 18px; font-size: clamp(2.4rem, 6vw, 4.1rem); }
.page-hero p { max-width: 660px; margin: 0 auto; color: var(--muted); font-size: 1.06rem; }
.breadcrumbs { margin-bottom: 18px; color: var(--caramel-dark); font-size: .85rem; font-weight: 700; }

/* Home hero */
.home-hero { position: relative; padding: 70px 0 84px; overflow: hidden; }
.home-hero::before { content: ""; position: absolute; width: 330px; height: 330px; top: -120px; right: -80px; border-radius: 50%; background: var(--sage-soft); }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 70px; }
.hero-copy { position: relative; z-index: 1; }
.hero-copy h1 { margin: 12px 0 22px; }
.hero-copy h1 span { color: var(--caramel-dark); }
.hero-copy h1 .title-pet { display: inline-block; white-space: nowrap; font-size: .5em; line-height: 1; vertical-align: .18em; }
.hero-copy .lead { max-width: 590px; }
.feature-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.feature-pills span { padding: 8px 14px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; font-size: .84rem; font-weight: 700; }
.hero-image-wrap { position: relative; }
.hero-image-wrap::before { content: ""; position: absolute; inset: 24px -24px -24px 24px; border-radius: 34px; background: var(--sage); opacity: .45; }
.hero-image { position: relative; width: 100%; aspect-ratio: 4 / 4.3; object-fit: cover; border-radius: 34px; box-shadow: var(--shadow); }
.hero-note { position: absolute; right: -18px; bottom: 24px; padding: 14px 18px; background: var(--white); border-radius: 18px; box-shadow: var(--shadow); font-size: .85rem; font-weight: 700; }

/* Cards and grids */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.card { padding: 30px; background: var(--white); border: 1px solid rgba(231, 218, 203, .75); border-radius: var(--radius); box-shadow: var(--shadow); }
.icon-bubble { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 22px; background: var(--sage-soft); border-radius: 18px; font-size: 1.55rem; }
.card p { margin-bottom: 0; color: var(--muted); }
.care-card { min-height: 260px; }
.care-card:nth-child(even) .icon-bubble { background: var(--tea); }
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 70px; }
.rounded-image { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 28px; }
.check-list { list-style: none; padding: 0; margin: 24px 0; }
.check-list li { position: relative; padding: 8px 0 8px 30px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 8px; color: var(--caramel-dark); font-weight: 900; }

/* Gallery / lightbox */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-item { position: relative; display: block; overflow: hidden; padding: 0; border: 0; border-radius: 22px; background: var(--tea); cursor: zoom-in; }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .35s ease; }
.gallery-item:hover img { transform: scale(1.045); }
.gallery-item span { position: absolute; left: 14px; bottom: 14px; padding: 6px 11px; border-radius: 999px; background: rgba(255,255,255,.92); font-size: .76rem; font-weight: 700; }
.lightbox { position: fixed; inset: 0; z-index: 2000; display: none; place-items: center; padding: 24px; background: rgba(63, 51, 43, .88); }
.lightbox.open { display: grid; }
.lightbox img { max-width: min(100%, 1000px); max-height: 82vh; border-radius: 20px; }
.lightbox-close { position: fixed; top: 20px; right: 20px; width: 48px; height: 48px; border: 0; border-radius: 50%; background: #fff; font-size: 1.5rem; cursor: pointer; }
.lightbox-caption { color: #fff; text-align: center; }

/* Price */
.price-panel { max-width: 820px; margin: auto; padding: 46px; background: var(--white); border: 2px solid var(--tea); border-radius: 32px; box-shadow: var(--shadow); }
.price-label { margin-bottom: 6px; color: var(--muted); font-weight: 700; }
.price-value { margin: 0 0 26px; color: var(--caramel-dark); font-size: clamp(2.3rem, 6vw, 4rem); font-weight: 900; line-height: 1.2; }
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 28px; }
.addon-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.addon-row:last-child { border: 0; }
.addon-row strong { color: var(--caramel-dark); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; counter-reset: step; }
.step { position: relative; padding: 25px 18px; text-align: center; }
.step::before { counter-increment: step; content: counter(step); width: 42px; height: 42px; display: grid; place-items: center; margin: 0 auto 16px; border-radius: 50%; background: var(--caramel); color: #fff; font-weight: 800; }
.step:not(:last-child)::after { content: ""; position: absolute; width: calc(100% - 42px); height: 2px; top: 45px; left: calc(50% + 27px); background: var(--line); }
.step h3 { font-size: 1rem; }

/* Accordion */
.accordion { display: grid; gap: 14px; }
.accordion-item { overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 20px; }
.accordion-trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 24px; border: 0; background: transparent; text-align: left; font-weight: 800; cursor: pointer; }
.accordion-trigger::after { content: "+"; flex: 0 0 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--tea); font-size: 1.3rem; transition: transform .25s; }
.accordion-trigger[aria-expanded="true"]::after { transform: rotate(45deg); }
.accordion-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.accordion-panel > div { overflow: hidden; }
.accordion-panel p, .accordion-panel ul { margin: 0; padding: 0 24px 24px; color: var(--muted); }
.accordion-panel ul { padding-left: 46px; }
.accordion-trigger[aria-expanded="true"] + .accordion-panel { grid-template-rows: 1fr; }

/* Booking */
.line-card { max-width: 760px; margin: auto; padding: 48px; background: var(--white); border-radius: 32px; box-shadow: var(--shadow); text-align: center; }
.line-logo { width: 66px; height: 66px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 22px; color: #fff; background: #6ba96e; font-size: 1.8rem; font-weight: 900; }
.line-id-row { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 22px 0; }
.line-id { font-size: 1.45rem; font-weight: 900; letter-spacing: .05em; }
.copy-button { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--cream); cursor: pointer; }
.copy-status { min-height: 28px; color: #4f8453; font-size: .85rem; font-weight: 700; }
.qr-image { width: min(240px, 70vw); margin: 18px auto 10px; border: 1px solid var(--line); border-radius: 22px; }
.booking-checklist { counter-reset: booking; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; list-style: none; padding: 0; }
.booking-checklist li { counter-increment: booking; display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--white); border-radius: 16px; }
.booking-checklist li::before { content: counter(booking); flex: 0 0 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--sage-soft); color: var(--caramel-dark); font-weight: 800; }
.notice { padding: 26px 30px; border-radius: 22px; background: var(--tea); border-left: 5px solid var(--caramel); }
.notice h3 { margin-bottom: 6px; }
.notice p { margin: 0; color: var(--muted); }

/* Footer */
.site-footer { padding: 64px 0 34px; background: #67584e; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 60px; }
.site-footer .brand-sub, .site-footer p { color: #e1d8d1; }
.footer-links { display: grid; gap: 9px; }
.footer-links a:hover { color: #f2cfb1; }
.footer-title { margin-bottom: 16px; font-size: .9rem; letter-spacing: .14em; text-transform: uppercase; }
.copyright { margin-top: 42px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.16); color: #d7cdc5; font-size: .8rem; }
.to-top { position: fixed; right: 22px; bottom: 24px; z-index: 800; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--ink); color: #fff; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(10px); transition: .25s; cursor: pointer; }
.to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.mobile-line-cta { display: none; }

/* Placeholder image treatment */
.placeholder-note { margin-top: 10px; color: var(--muted); font-size: .75rem; text-align: center; }

@media (max-width: 1050px) {
  .main-nav { gap: 14px; }
  .main-nav a { font-size: .82rem; }
  .nav-wrap { gap: 18px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { gap: 42px; }
}

@media (max-width: 820px) {
  .section { padding: 72px 0; }
  .menu-toggle { display: block; }
  .main-nav { position: fixed; inset: 82px 0 auto; display: grid; gap: 0; padding: 18px 20px 28px; background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-14px); transition: opacity .25s, transform .25s, visibility .25s; }
  .main-nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .main-nav a { padding: 13px 10px; font-size: 1rem; }
  .main-nav .btn { margin-top: 8px; }
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero-grid { gap: 56px; }
  .home-hero { padding-top: 48px; }
  .hero-image-wrap { width: min(90%, 560px); margin: auto; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { display: grid; grid-template-columns: 54px 1fr; gap: 12px; align-items: center; text-align: left; padding: 10px 0 24px; }
  .step::before { margin: 0; }
  .step:not(:last-child)::after { width: 2px; height: calc(100% - 44px); top: 54px; left: 20px; }
  .step h3 { margin: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .section { padding: 58px 0; }
  .nav-wrap { min-height: 72px; }
  .main-nav { inset: 72px 0 auto; max-height: calc(100dvh - 72px); overflow-y: auto; }
  .brand-name { font-size: .96rem; }
  .brand-sub { font-size: .62rem; }
  .brand-mark { width: 39px; height: 32px; }
  h1 { font-size: 2.55rem; }
  h2 { font-size: 2rem; }
  .hero-note { right: -6px; bottom: 14px; }
  .grid-4, .grid-3, .grid-2, .gallery, .price-grid, .booking-checklist { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .care-card { min-height: 0; }
  .price-panel, .line-card { padding: 30px 22px; }
  .line-id-row { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-about { grid-column: auto; }
  .site-footer { padding-bottom: 100px; }
  .mobile-line-cta { position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 900; display: flex; min-height: 54px; align-items: center; justify-content: center; border-radius: 999px; background: #6ba96e; color: #fff; font-weight: 800; box-shadow: 0 12px 28px rgba(70, 95, 71, .25); }
  .to-top { right: 16px; bottom: 82px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
