/* ==========================================================
   EZ Access — warm & friendly site styles
   ========================================================== */
:root {
  --cream: #FBF6EE;
  --sand: #F4E9D8;
  --sand-deep: #EBDcc4;
  --terracotta: #C8643B;
  --terracotta-dark: #A44E2B;
  --amber: #F2A65A;
  --forest: #2F5D50;
  --forest-dark: #234639;
  --ink: #2B2420;
  --muted: #6E625A;
  --white: #FFFFFF;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(84, 56, 34, .10);
  --shadow-lg: 0 18px 50px rgba(84, 56, 34, .16);
  --font: "Nunito", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --container: 1160px;
}

/* ---------- Language switching ---------- */
html[data-lang="zh"] [data-l="en"],
html[data-lang="en"] [data-l="zh"] { display: none !important; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--terracotta-dark); text-decoration: none; }
a:hover { color: var(--terracotta); }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .6em; font-weight: 800; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.container { width: min(var(--container), 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ico { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .85em 1.6em;
  border-radius: 999px;
  font-weight: 700; font-size: 1rem; font-family: inherit;
  background: var(--terracotta); color: var(--white);
  border: 2px solid var(--terracotta);
  cursor: pointer;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn:hover { background: var(--terracotta-dark); border-color: var(--terracotta-dark); color: var(--white); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(200, 100, 59, .3); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.85); }
.btn-ghost:hover { background: var(--white); color: var(--ink); border-color: var(--white); box-shadow: none; }
.btn-sm { padding: .5em 1.15em; font-size: .95rem; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 246, 238, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(110, 98, 90, .12);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { width: 46px; height: 46px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.3rem; font-weight: 800; letter-spacing: .3px; }
.brand-text small { font-size: .72rem; color: var(--muted); letter-spacing: 1.5px; text-transform: uppercase; margin-top: 3px; }

.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav > a:not(.btn) {
  padding: .45em .95em; border-radius: 999px;
  color: var(--ink); font-weight: 700;
}
.site-nav > a:not(.btn):hover { background: var(--sand); }
.site-nav > a.active { color: var(--terracotta-dark); background: var(--sand); }
.site-nav .btn { margin-left: 8px; }
.lang-toggle {
  margin-left: 6px;
  font: inherit; font-weight: 800; font-size: .9rem;
  padding: .45em .9em; border-radius: 999px;
  border: 2px solid var(--forest); color: var(--forest); background: transparent;
  cursor: pointer; transition: background .2s, color .2s;
}
.lang-toggle:hover { background: var(--forest); color: var(--white); }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span:not(.sr-only) { display: block; width: 24px; height: 2.5px; margin: 5px 0; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 14px 20px 22px;
    background: var(--cream);
    border-bottom: 1px solid rgba(110, 98, 90, .15);
    box-shadow: 0 16px 30px rgba(84, 56, 34, .1);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav > a:not(.btn) { padding: .7em 1em; }
  .site-nav .btn, .lang-toggle { margin: 6px 0 0; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 780px);
  display: flex; align-items: center;
  color: var(--white);
  background-color: #6b4a35;
  background-size: cover; background-position: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(43, 30, 22, .78) 0%, rgba(43, 30, 22, .45) 52%, rgba(200, 100, 59, .12) 100%);
}
.hero .container { position: relative; padding: 80px 0; }
.hero h1 { color: var(--white); max-width: 15em; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.hero p.lead { font-size: clamp(1.05rem, 1.7vw, 1.22rem); max-width: 36em; opacity: .95; margin-bottom: 2em; }
.eyebrow {
  display: inline-block;
  font-size: .85rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
  color: var(--terracotta-dark);
  margin-bottom: 14px;
}
.hero .eyebrow { color: var(--amber); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.page-hero { min-height: 420px; }
.page-hero h1 { max-width: 20em; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 104px) 0; }
.section.alt { background: var(--sand); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* ---------- Pillars (home) ---------- */
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.pillar {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform .3s, box-shadow .3s;
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pillar-img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.pillar-body { padding: 30px 32px 34px; display: flex; flex-direction: column; flex: 1; }
.pillar-body p { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 0 0 24px; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 8px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--sand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C8643B' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.more-link { margin-top: auto; font-weight: 800; display: inline-flex; align-items: center; gap: 6px; }
.more-link::after { content: "→"; transition: transform .2s; }
.more-link:hover::after { transform: translateX(4px); }

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

/* ---------- Feature grid ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature {
  background: var(--cream); border-radius: var(--radius); padding: 30px 26px;
  border: 1px solid rgba(110, 98, 90, .1);
}
.section:not(.alt) .feature { background: var(--white); box-shadow: var(--shadow); border: 0; }
.feature-icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: grid; place-items: center;
  background: var(--terracotta); color: var(--white);
  margin-bottom: 18px;
}
.feature:nth-child(even) .feature-icon { background: var(--forest); }
.feature h3 { font-size: 1.15rem; margin-bottom: .4em; }
.feature p { color: var(--muted); margin: 0; font-size: .98rem; }

@media (max-width: 980px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 28px 24px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--amber); color: var(--ink);
  font-weight: 800; font-size: 1.15rem;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.1rem; margin-bottom: .35em; }
.step p { color: var(--muted); margin: 0; font-size: .96rem; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Split (image + text) ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split-img { border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.split p { color: var(--muted); }
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse > :first-child { order: 0; }
}

/* ---------- Service cards ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; }
.service {
  background: var(--white); border-radius: var(--radius); padding: 28px 26px;
  box-shadow: var(--shadow);
  transition: transform .25s;
}
.section.alt .service { background: var(--cream); box-shadow: none; border: 1px solid rgba(110, 98, 90, .12); }
.service:hover { transform: translateY(-4px); }
.service .ico { width: 30px; height: 30px; color: var(--terracotta); margin-bottom: 14px; }
.section.alt .service .ico { color: var(--forest); }
.service h3 { font-size: 1.12rem; margin-bottom: .35em; }
.service p { margin: 0; color: var(--muted); font-size: .97rem; }
@media (max-width: 980px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .service-grid { grid-template-columns: 1fr; } }

.notice {
  margin-top: 32px; padding: 18px 22px;
  border-left: 4px solid var(--forest);
  background: rgba(47, 93, 80, .07);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--forest-dark); font-size: .95rem;
}

/* ---------- CTA band ---------- */
.cta {
  background: linear-gradient(120deg, var(--terracotta) 0%, #D9824F 60%, var(--amber) 100%);
  color: var(--white); text-align: center;
  padding: clamp(56px, 8vw, 88px) 0;
}
.cta h2 { color: var(--white); }
.cta p { font-size: 1.1rem; max-width: 640px; margin: 0 auto 28px; opacity: .95; }
.cta .btn { background: var(--white); color: var(--terracotta-dark); border-color: var(--white); }
.cta .btn:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* ---------- Values ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 820px) { .values { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .contact-wrap { grid-template-columns: 1fr; } }
.contact-info { background: var(--forest); color: #EAF1EE; border-radius: var(--radius); padding: 36px 32px; }
.contact-info h3 { color: var(--white); }
.contact-info ul { list-style: none; margin: 24px 0 0; padding: 0; }
.contact-info li { display: flex; gap: 14px; margin-bottom: 20px; }
.contact-info .ico { color: var(--amber); margin-top: 3px; }
.contact-info strong { display: block; color: var(--white); font-size: .95rem; }
.contact-info a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.contact-info .muted { color: #B9CEC6; font-size: .95rem; }

.form-card { background: var(--white); border-radius: var(--radius); padding: 36px 32px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 6px; }
.field label .req { color: var(--terracotta); margin-left: 2px; }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit; font-size: 1rem; color: var(--ink);
  padding: .75em .95em;
  border: 1.5px solid #E2D6C6; border-radius: var(--radius-sm);
  background: var(--cream);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--terracotta); background: var(--white);
  box-shadow: 0 0 0 4px rgba(200, 100, 59, .14);
}
.hp { position: absolute; left: -9999px; }
.form-status { margin: 16px 0 0; font-weight: 700; display: none; padding: 12px 16px; border-radius: var(--radius-sm); }
.form-status.ok { display: block; background: rgba(47, 93, 80, .1); color: var(--forest-dark); }
.form-status.err { display: block; background: rgba(200, 100, 59, .12); color: var(--terracotta-dark); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 22px; }
.form-foot small { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: #2B2420; color: #CFC4B8; padding: 64px 0 28px; font-size: .96rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.site-footer .brand { color: var(--white); }
.site-footer .brand-text small { color: #A99D91; }
.site-footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #CFC4B8; }
.site-footer a:hover { color: var(--amber); }
.footer-about { margin-top: 16px; max-width: 30em; }
.footer-bottom {
  margin-top: 44px; padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  font-size: .85rem; color: #988C80;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
