/* ==========================================================================
   瑞穗牧場乳牛軋 — stylesheet
   Rewritten for responsive layout. Legacy class names are preserved so the
   original markup keeps working, but fixed 9-12px sizes have been replaced
   with fluid, accessible scales.
   ========================================================================== */

:root {
  --brand:        #b4996a;
  --brand-dark:   #8f7550;
  --brand-light:  #e9d9b0;
  --ink:          #2b2b2b;
  --ink-soft:     #5c5c5c;
  --paper:        #fffdf8;
  --rule:         rgba(0, 0, 0, .12);
  --measure:      68ch;
  --radius:       10px;
  --font: "Helvetica Neue", Arial, "PingFang TC", "Noto Sans TC",
          "Microsoft JhengHei", "微軟正黑體", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  font-size: clamp(15px, 0.95rem + 0.2vw, 17px);
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--brand);
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; border: 0; display: block; }

a { color: var(--brand-dark); }
a:hover, a:focus-visible { color: var(--ink); }

:focus-visible { outline: 2px solid var(--brand-dark); outline-offset: 2px; }

/* ---------- Layout shell ------------------------------------------------ */

.site {
  max-width: 1100px;
  margin: 0 auto;
  background: var(--paper);
  min-height: 100vh;
  display: grid;
  grid-template-columns: 200px 1fr;
  box-shadow: 0 0 40px rgba(0, 0, 0, .18);
}

.site-nav {
  background: var(--brand);
  padding: 0 0 2rem;
}

.site-main {
  padding: clamp(1.25rem, 4vw, 2.75rem);
  min-width: 0;
}

/* ---------- Navigation -------------------------------------------------- */

.nav-brand { display: block; }
.nav-brand img { width: 100%; }

.nav-toggle {
  display: none;
  width: 100%;
  padding: .9rem 1rem;
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: var(--brand-dark);
  border: 0;
  cursor: pointer;
  text-align: left;
}

.nav-list { list-style: none; margin: 0; padding: 0; }

.nav-list a {
  display: block;
  padding: .85rem 1rem;
  color: #fff;
  text-decoration: none;
  font-size: .95rem;
  border-bottom: 1px solid rgba(255, 255, 255, .2);
  transition: background .15s ease;
}

.nav-list a:hover,
.nav-list a:focus-visible { background: var(--brand-dark); color: #fff; }

.nav-list a[aria-current="page"] {
  background: var(--paper);
  color: var(--brand-dark);
  font-weight: 700;
}

/* ---------- Content ----------------------------------------------------- */

.page-title {
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem);
  line-height: 1.3;
  margin: 0 0 1.5rem;
  color: var(--brand-dark);
}

.section-title {
  font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem);
  margin: 2.5rem 0 .75rem;
  padding-bottom: .4rem;
  border-bottom: 2px solid var(--brand);
  color: var(--brand-dark);
}

.prose { max-width: var(--measure); }
.prose p { margin: 0 0 1.1rem; }

.lede { font-size: 1.05rem; color: var(--ink); }

.media { margin: 0 0 1.5rem; }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
  align-items: start;
}

/* Feature / price lists -------------------------------------------------- */

.feature-list {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: .6rem;
}

.feature-list li {
  background: var(--brand-light);
  color: var(--ink);
  padding: .7rem .9rem;
  border-radius: var(--radius);
  font-size: .95rem;
}

.price-table, .data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.75rem;
  font-size: .95rem;
}

.price-table th, .price-table td,
.data-table th, .data-table td {
  padding: .7rem .8rem;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

.price-table th, .data-table th {
  background: var(--brand-light);
  color: var(--brand-dark);
  font-weight: 700;
  white-space: nowrap;
}

.price-table td:last-child,
.data-table td:last-child { text-align: right; white-space: nowrap; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.steps { margin: 1rem 0 1.75rem; padding-left: 1.3rem; }
.steps li { margin-bottom: .8rem; }

.note {
  background: var(--brand-light);
  border-left: 4px solid var(--brand);
  padding: .9rem 1.1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.25rem 0;
  font-size: .95rem;
}

.contact-block { margin: 1rem 0 1.75rem; }
.contact-block dt { font-weight: 700; color: var(--brand-dark); margin-top: .8rem; }
.contact-block dd { margin: 0; }

/* ---------- Footer ------------------------------------------------------ */

.site-footer {
  grid-column: 1 / -1;
  padding: 1.5rem clamp(1.25rem, 4vw, 2.75rem);
  border-top: 1px solid var(--rule);
  font-size: .85rem;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--paper);
}

.site-footer a { color: var(--brand-dark); }

/* ---------- Responsive -------------------------------------------------- */

@media (max-width: 780px) {
  .site { grid-template-columns: 1fr; }

  .site-nav { padding-bottom: 0; }

  .nav-brand img { max-height: 150px; width: auto; margin: 0 auto; }

  .nav-toggle { display: block; }

  .nav-list { display: none; }
  .nav-list.is-open { display: block; }

  .nav-list a { padding: 1rem; }
}

@media (min-width: 781px) {
  .nav-list { display: block !important; }
}

/* ---------- Legacy class shims ------------------------------------------ */
/* Original markup used fixed 9-16px sizes; these now inherit fluid sizing.  */

.XLgrayB, .XLgray, .XLblack, .XLwhiteB, .XLwhite, .XXLgrayB {
  font-size: 1.5rem; line-height: 1.4;
}
.XLgrayB, .XLwhiteB, .XXLgrayB { font-weight: 700; }
.XLgrayB, .XLgray { color: #666; }
.XLwhiteB, .XLwhite { color: #fff; }
.XXLgrayB { color: #6666cc; }
.XLblackB { font-size: 1rem; font-weight: 700; color: var(--brand); }

.LgrayB, .Lgray, .LblackB, .Lblack, .LwhiteB, .Lwhite, .LblueB, .LgrayPoint {
  font-size: 1.05rem; line-height: 1.7;
}
.LgrayB, .LblackB, .LwhiteB, .LblueB { font-weight: 700; }
.LgrayB, .Lgray { color: #666; }
.LwhiteB, .Lwhite { color: #fff; }
.LblueB { color: #6666cc; }
.LgrayPoint { text-indent: -1rem; padding-left: 1rem; }

.MgrayB, .Mgray, .MblackB, .Mblack, .MwhiteB, .Mwhite {
  font-size: 1rem; line-height: 1.75;
}
.MgrayB, .MblackB, .MwhiteB { font-weight: 700; }
.MgrayB, .Mgray { color: #666; }
.MwhiteB, .Mwhite { color: #fff; }

.SgrayB, .Sgray, .SblackB, .Sblack, .SwhiteB, .Swhite, .SSblack {
  font-size: .875rem; line-height: 1.6;
}
.SgrayB, .SblackB { font-weight: 700; }
.SgrayB, .Sgray { color: #666; }
.SwhiteB, .Swhite { color: #fff; }
.SwhiteB { text-decoration: underline; }

.SSwhite {
  font-size: .8rem;
  text-align: center;
  color: var(--brand-light);
  background-color: #000;
  letter-spacing: 1px;
  display: inline-block;
  padding: .2rem .5rem;
  border-radius: 4px;
}

.red { font-size: 1rem; color: #990000; margin: 0; padding: 0; }

@media print {
  body { background: #fff; }
  .site { box-shadow: none; display: block; }
  .site-nav, .nav-toggle { display: none; }
}

/* ---------- Click-to-play Flash stage ----------------------------------- */

.flash-stage {
  width: 100%;
  max-width: 600px;
  aspect-ratio: 3 / 2;
  background: var(--brand);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.flash-play {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 1.5rem;
  font: inherit;
  color: #fff;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: center;
}

.flash-play:hover, .flash-play:focus-visible { background: rgba(0, 0, 0, .12); }
.flash-play-icon { font-size: 2.5rem; line-height: 1; }
.flash-play small { font-size: .8rem; opacity: .85; max-width: 30ch; }
