
:root{
--bg-deep:    #2f3c19;
--bg-mid:     #46591f;
--bg-light:   #6a8033;
--bg-pale:    #8aa052;
--cream:      #f6f4ea;
--gold:       #f0c43a;
--red:        #b8312f;
--ink:        #20290f;

--font-display: 'Poppins', sans-serif;
--font-body:    'Inter', sans-serif;
--font-cjk:     'Noto Sans TC', sans-serif;

--max-width: 1200px;
}

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

html{ scroll-behavior: smooth; }

body{
font-family: var(--font-body);
color: var(--ink);
background: var(--cream);
line-height: 1.6;
}

/* visually hidden but accessible */
.visually-hidden{
position: absolute;
width: 1px; height: 1px;
overflow: hidden;
clip: rect(0 0 0 0);
}

/* ---------------------------------- */
/* Header / top bar                    */
/* ---------------------------------- */

.topbar{
display: flex;
align-items: center;
justify-content: space-between;
max-width: var(--max-width);
margin: 0 auto;
padding: 24px 32px;
}

.logo{
font-family: var(--font-cjk);
font-weight: 700;
font-size: 1.4rem;
letter-spacing: 0.15em;
}

.lang-nav{
display: flex;
gap: 28px;
}

.lang-nav button{
font-family: var(--font-display);
font-size: 1rem;
font-weight: 400;
color: var(--ink);
background: none;
border: none;
cursor: pointer;
padding: 4px 2px;
}

.lang-nav button.active{
font-weight: 700;
}

.lang-nav button:focus-visible,
.menu-toggle:focus-visible,
.contact-link:focus-visible{
outline: 2px solid var(--bg-mid);
outline-offset: 3px;
border-radius: 4px;
}

.menu-toggle{
display: none;
background: none;
border: none;
font-size: 1.6rem;
line-height: 1;
cursor: pointer;
padding: 4px 8px;
}

/* ---------------------------------- */
/* Hero section                        */
/* ---------------------------------- */

.hero{
position: relative;
overflow: hidden;
color: var(--cream);
padding: 64px 32px 96px;
min-height: 100vh;          /* or calc(100vh - header - footer) for precision */
display: flex;
align-items: center;        /* vertically centers .hero-inner within it */
}

/* Placeholder background --------------------------------------------
    Swap this whole block out for:
    background-image: url('your-graphic.svg');
    background-size: cover;
    on .hero once you have the exported artwork.
---------------------------------------------------------------------*/
.bg-shapes{
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: url(img/background.svg);
    background-size: cover;
    background-position: center;
}



.pagoda{
position: absolute;
top: 48px;
right: 5%;
width: 110px;
height: auto;
z-index: -1;
}

.hero-inner{
position: relative;
max-width: var(--max-width);
margin: 0 auto;
display: grid;
grid-template-columns: 320px 1fr;
gap: 64px;
align-items: start;
}

/* ---- left column: profile ---- */

.profile{
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 18px;
}

.photo{
width:238px;
height:238px;
border-radius: 50%;
overflow: hidden;
background: var(--bg-pale);
flex-shrink: 0;
box-shadow:
    1px 2px 0 0 #739900,      /* coin-edge / bevel shadow, tight and dark */
    0 10px 9.3px 0 rgba(0,0,0,0.25);     /* actual drop shadow, soft and offset */
transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.photo:hover{
    transform:translateY(-3px);

    box-shadow:
        2px 3px 0 #739900,
        0 18px 22px rgba(0,0,0,.28);
}

.photo img{
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}

.name{
font-family: var(--font-display);
font-weight: 700;
font-size: 1.5rem;
}

.chinese-name{
font-family: var(--font-cjk);
font-weight: 700;
font-size: 3rem;
letter-spacing: 0.2em;
line-height: 1;
}


.contacts{
display: flex;
gap: 16px;
margin-top: 6px;
}

.contact-row{
display: flex;
gap: 16px;
}


.contact-link{
width: 64px;
    height: 64px;
    border-radius: 14px;
    background: var(--cream);

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;
    text-decoration: none;

    transition:
        transform .18s ease,
        box-shadow .18s ease,
        background-color .18s ease;
}
.contact-link:hover{
transform: translateY(-4px);
    background: #fbfaf3;
    box-shadow:
        0 8px 18px rgba(0,0,0,.18);
    backdrop-filter: blur(3px);
}

.contact-link:hover svg{
    transform:scale(1.08);
}

.contact-link svg{
width: 32px;
height: 32px;
transition:transform .2s ease;
}
.contact-link .icon-stroke{
stroke: var(--bg-deep);
}
.contact-link .icon-fill{
fill: var(--bg-deep);
}





.contact-preview{
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(10px) scale(0.85);
  transform-origin: bottom center;

  width: 170px;
  background: var(--cream);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.28);
  backdrop-filter: blur(3px);
  overflow: hidden;
  z-index: 30;

  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contact-preview img{
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: transparent;
  padding: 14px;
}

.contact-id{
  border-top: 1px solid rgba(32,41,15,0.12);
  padding: 10px 12px;
  text-align: center;

  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);

  overflow-wrap: anywhere;
}

.contact-info{
    margin-top:10px;
    border-top:1px solid rgba(0,0,0,.08);
    padding-top:10px;
    text-align:center;
}

.contact-title{
    font-family:var(--font-display);
    font-size:.72rem;
    font-weight:600;
    letter-spacing:.08em;
    text-transform:uppercase;
    color:#7c7c7c;
}

.contact-preview::after{
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: var(--cream);
}

.contact-link:hover .contact-preview,
.contact-link:focus-visible .contact-preview{
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
  pointer-events: auto;
}
.arrow{
margin-top: 4px;
margin-left: 20px;
width: 250px;
}

.arrow svg{
    width:100%;
    height:auto;
    display:block;
}

.arrow path{
    stroke-dasharray:1;
    stroke-dashoffset:1;
}

/* ---- right column: intro text ---- */

.intro h1{
font-family: var(--font-display);
font-weight: 700;
font-size: 2.75rem;
margin-bottom: 24px;
}
.intro h1[lang="zh"]{
font-family: var(--font-cjk);
}

.intro p{
font-size: 1.05rem;
max-width: 590px;
color: var(--cream);
text-align: justify;
text-justify: inter-ideograph;
}

.teaching-quote{
    margin: 36px 0 20px;

    max-width: 520px;

    padding-left: 18px;
    border-left: 3px solid var(--gold);

    font-family: var(--font-cjk);
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.8;

    color: var(--gold);
}

.offer-columns{
display: grid;
grid-template-columns: 1fr 1fr;
gap: 48px;
margin-top: 48px;
max-width: 720px;
}

.offer-col h2{
font-family: var(--font-display);
font-weight: 700;
font-size: 1.4rem;
margin-bottom: 16px;
}
.offer-col h2[lang="zh"]{
font-family: var(--font-cjk);
}

.offer-col ul{
list-style: none;
display: flex;
flex-direction: column;
gap: 10px;
}

.offer-col li{
position: relative;
padding-left: 22px;
font-size: 1rem;
}
.offer-col li::before{
content: "";
position: absolute;
left: 0;
top: 0.6em;
width: 8px;
height: 8px;
border-radius: 50%;
background: var(--gold);
}

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

.site-footer{
    text-align:center;
    padding:40px 32px;
    font-size:.85rem;
    color:var(--bg-mid);
}


/* ---------------------------------- */
/* Mobile layout                       */
/* ---------------------------------- */

@media (max-width: 860px){

.topbar{ padding: 20px 24px; }

.lang-nav{ display: none; }
.lang-nav.open{
    display: flex;
    position: absolute;
    top: 64px;
    right: 24px;
    flex-direction: column;
    background: var(--cream);
    border-radius: 12px;
    padding: 16px 20px;
    gap: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 10;
}
.menu-toggle{ display: block; }

.hero{ padding: 40px 24px 64px; }

.hero-inner{
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
}

.profile{
    align-items: center;
}

.photo{
    width: 160px;
    height: 160px;
    margin: 0 auto;
}

.contacts{ justify-content: center; }
.contact-row{ justify-content: center; }

.arrow{
    align-self: center;
    width: 200px;
}


.intro{ text-align: left; }

.intro h1{ font-size: 2rem; text-align: center; }

.intro p{ max-width: none; }

.offer-columns{
    grid-template-columns: 1fr;
    gap: 32px;
}
}


@media (hover: none), (max-width:860px) {

    .contact-preview{
        display: none;
    }

}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.hero-inner {
  animation: fadeIn 0.8s ease;
}

