/* ============================================
   ANCIEN BAKERY — Global Styles
   ============================================ */

:root {
  --green-dark:   #2d5a27;
  --green-mid:    #3d7535;
  --green-light:  #e8f4e3;
  --cream:        #faf7f2;
  --cream-2:      #f2ede4;
  --tan:          #e8dece;
  --warm-brown:   #7a5c3a;
  --text-dark:    #1c2218;
  --text-mid:     #3e4a38;
  --text-muted:   #7a826e;
  --accent:       #e8524a;
  --accent-amber: #f7b32b;
  --white:        #ffffff;
  --radius:       12px;
  --radius-sm:    8px;
  --shadow:       0 4px 24px rgba(44,80,38,.12);
  --shadow-sm:    0 2px 8px rgba(44,80,38,.08);
  --font-serif:   'Noto Serif TC', Georgia, serif;
  --font-sans:    'Noto Sans TC', system-ui, sans-serif;
  --max-w:        1080px;
  --section-gap:  80px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

/* ── Utilities ──────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  border: none;
  letter-spacing: .03em;
}

.btn-primary {
  background: var(--green-dark);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(45,90,39,.35);
}
.btn-primary:hover {
  background: var(--green-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(45,90,39,.4);
}

.btn-full { width: 100%; }

.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 12px;
  padding: 4px 12px;
  background: var(--green-light);
  border-radius: 50px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 10px 0 40px;
}

/* ── Header ─────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,247,242,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--tan);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  gap: 1px;
}
.logo-en {
  font-family: var(--font-serif);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--green-dark);
}
.logo-zh {
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--text-muted);
}

nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
nav a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: color .15s;
}
nav a:hover { color: var(--green-dark); }

.nav-cta {
  background: var(--green-dark);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: .85rem !important;
  font-weight: 600 !important;
  transition: background .15s, transform .15s !important;
}
.nav-cta:hover {
  background: var(--green-mid) !important;
  transform: translateY(-1px);
}

/* ── Hero ───────────────────────────────────── */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-image-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: brightness(.55);
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(20,40,16,.72) 0%,
    rgba(20,40,16,.45) 60%,
    rgba(20,40,16,.3) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 60px;
  padding-bottom: 80px;
  max-width: 680px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-amber);
  margin-bottom: 18px;
  padding: 5px 14px;
  border: 1px solid rgba(247,179,43,.45);
  border-radius: 50px;
}

.hero-content h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,.45);
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.88);
  max-width: 480px;
  line-height: 1.8;
  margin-bottom: 36px;
  text-shadow: 0 1px 6px rgba(0,0,0,.3);
}

/* ── Product ────────────────────────────────── */
.product {
  padding: var(--section-gap) 0;
  background: var(--white);
}

.product-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 10px;
}

.product-card {
  background: var(--cream);
  border: 1px solid var(--tan);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: transform .2s ease, box-shadow .2s ease;
  position: relative;
  overflow: hidden;
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-dark), var(--accent-amber));
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.product-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
  line-height: 1;
}

.product-card h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.product-card p {
  font-size: .95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.product-price {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--green-dark);
}

/* ── How It Works ───────────────────────────── */
.how-it-works {
  padding: var(--section-gap) 0;
  background: var(--cream-2);
}

.steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  counter-reset: none;
  max-width: 640px;
  position: relative;
  margin-bottom: 52px;
}

.steps::before {
  content: '';
  position: absolute;
  left: 29px;
  top: 52px;
  bottom: 52px;
  width: 2px;
  background: linear-gradient(to bottom, var(--green-dark), var(--tan));
}

.step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 28px 0;
  position: relative;
}

.step-num {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--green-dark);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .05em;
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 1;
}

.step-body h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-dark);
}
.step-body p {
  font-size: .95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.info-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--tan);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
}

.info-item {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 180px;
}
.info-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}
.info-item > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.info-item strong {
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}
.info-item span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dark);
}

/* ── Order Form ─────────────────────────────── */
.order {
  padding: var(--section-gap) 0;
  background: var(--green-dark);
}

.order .section-label {
  background: rgba(255,255,255,.15);
  color: var(--accent-amber);
}

.order h2 {
  color: var(--white);
}

.order .section-sub {
  color: rgba(255,255,255,.7);
}

.order .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.order .section-sub {
  max-width: 480px;
}

.order-form {
  max-width: 560px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 40px;
  box-shadow: 0 8px 48px rgba(0,0,0,.25);
  margin: 10px auto 0;
}

.form-row {
  margin-bottom: 22px;
}

.form-row label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 7px;
  letter-spacing: .02em;
}

.req {
  color: var(--accent);
}
.optional {
  color: var(--text-muted);
  font-weight: 400;
}

.form-row input,
.form-row select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--tan);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: .95rem;
  color: var(--text-dark);
  background: var(--cream);
  transition: border-color .15s, box-shadow .15s;
  appearance: none;
  -webkit-appearance: none;
}
.form-row select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a826e' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-row input:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--green-dark);
  box-shadow: 0 0 0 3px rgba(45,90,39,.12);
}
.form-row input::placeholder { color: var(--text-muted); }

.privacy {
  font-size: .78rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.55;
}

/* ── Footer ─────────────────────────────────── */
.site-footer {
  background: var(--text-dark);
  color: rgba(255,255,255,.65);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-brand .logo-en {
  color: var(--white);
  font-size: 1rem;
  font-family: var(--font-serif);
  letter-spacing: .1em;
}
.footer-tagline {
  font-size: .8rem;
  color: rgba(255,255,255,.5);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: .88rem;
}

.attribution {
  width: 100%;
  text-align: center;
  font-size: .75rem;
  color: rgba(255,255,255,.3);
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 10px;
}
.attribution a {
  color: rgba(255,255,255,.5);
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,.2);
}
.attribution a:hover { color: rgba(255,255,255,.8); }

/* ── Section headings ───────────────────────── */
.product h2,
.how-it-works h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
}

/* ── Mobile ─────────────────────────────────── */
@media (max-width: 600px) {
  :root { --section-gap: 56px; }

  .hero { min-height: 85vh; }
  .hero-content { padding-top: 40px; padding-bottom: 60px; }

  nav { gap: 16px; }
  nav a:not(.nav-cta) { display: none; }

  .order-form { padding: 28px 22px; }

  .steps::before { display: none; }

  .info-strip { padding: 22px 20px; }
  .info-item { min-width: 140px; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 400px) {
  .hero-content h1 { font-size: 2rem; }
  .order-form { padding: 24px 18px; }
}
