/* Homepage styles: the "CONTACT AVESTA" section (.ahc) and the hero image (.ahi). */
.ahc{box-sizing:border-box;background:linear-gradient(180deg,#fff,#f1f7fc);padding:96px 24px 88px;font-family:"Noto Sans Thai",sans-serif;color:#142d49}
.ahc *{box-sizing:border-box}
.ahc-in{max-width:1200px;margin:0 auto;display:grid;grid-template-columns:1.2fr 1fr;gap:64px;align-items:center}
.ahc-badge{display:inline-block;padding:5px 14px;border:1px solid #cfe3f3;border-radius:99px;background:#fff;color:#1488cf;font-size:12px;font-weight:600;letter-spacing:.12em}
.ahc h2{margin:18px 0 0;font-size:clamp(30px,3.6vw,46px);line-height:1.25;font-weight:500;letter-spacing:-.5px;color:#142d49;text-wrap:balance}
.ahc-text p{margin:18px 0 0;color:#52657a;line-height:1.8;font-size:16px}
.ahc-btns{display:flex;flex-wrap:wrap;gap:14px;margin-top:30px}
.ahc-btn{display:inline-flex;align-items:center;gap:10px;min-height:54px;padding:14px 24px;border-radius:99px;font-size:15px;font-weight:600;text-decoration:none!important;transition:transform .2s,box-shadow .2s}
.ahc-btn.is-main{background:linear-gradient(135deg,#49bcff,#1488e6);color:#fff;box-shadow:0 10px 24px #1488e633}
.ahc-btn.is-soft{background:#fff;color:#249ef0;border:1px solid #dae8f3}
.ahc-btn:hover{transform:translateY(-2px)}
.ahc-btn.is-main:hover{color:#fff;box-shadow:0 14px 30px #1488e64d}
.ahc-btn:focus-visible{outline:2px solid #0878b9;outline-offset:4px}
.ahc-chat{width:100%;max-width:440px;justify-self:end;background:#fff;border:1px solid #dae8f3;border-radius:28px;box-shadow:0 24px 50px -20px #0a25402e;overflow:hidden}
.ahc-chat-top{display:flex;gap:12px;align-items:center;padding:16px 20px;border-bottom:1px solid #e6eff6}
.ahc-avatar{position:relative;flex:0 0 42px;height:42px;border-radius:50%;background:#fff url(../images/avesta-mark.png) center/26px no-repeat;border:1px solid #dae8f3;box-shadow:0 4px 12px #0a254014}
.ahc-avatar:after{content:"";position:absolute;right:0;bottom:0;width:11px;height:11px;border-radius:50%;background:#22c55e;border:2px solid #fff}
.ahc-chat-top b{display:block;font-size:15px;line-height:1.4}
.ahc-chat-top small{font-size:12px;color:#52657a}
.ahc-chat-body{display:flex;flex-direction:column;gap:10px;min-height:300px;margin:0;padding:20px;background:#f6fafd}
.ahc-chat-body p{margin:0;max-width:82%;padding:10px 14px;font-size:14px;line-height:1.6;border-radius:18px}
.ahc-chat-body .me{align-self:flex-end;background:linear-gradient(135deg,#49bcff,#1488e6);color:#fff;border-bottom-right-radius:6px}
.ahc-chat-body .us{align-self:flex-start;background:#fff;border:1px solid #e1ecf5;color:#142d49;border-bottom-left-radius:6px}
.ahc-typing{display:flex;gap:4px}
.ahc-typing i{width:6px;height:6px;border-radius:50%;background:#9ab4c9}
/* Messages appear one by one once the chat scrolls into view (class added by avesta-home-contact.js). */
.ahc-js .ahc-chat-body p{opacity:0;transform:translateY(8px)}
.ahc-js .ahc-chat.is-on .ahc-chat-body p{animation:ahc-msg .5s ease forwards}
.ahc-chat.is-on .ahc-chat-body p:nth-child(2){animation-delay:.7s}
.ahc-chat.is-on .ahc-chat-body p:nth-child(3){animation-delay:1.4s}
.ahc-chat.is-on .ahc-chat-body p:nth-child(4){animation-delay:2.1s}
.ahc-chat.is-on .ahc-chat-body p:nth-child(5){animation-delay:2.8s}
.ahc-chat.is-on .ahc-typing i{animation:ahc-dot 1.2s infinite}
.ahc-typing i:nth-child(2){animation-delay:.2s!important}
.ahc-typing i:nth-child(3){animation-delay:.4s!important}
@keyframes ahc-msg{to{opacity:1;transform:none}}
@keyframes ahc-dot{50%{transform:translateY(-4px);background:#1488cf}}
@media (prefers-reduced-motion:reduce){
 .ahc-js .ahc-chat-body p{opacity:1;transform:none}
 .ahc-js .ahc-chat.is-on .ahc-chat-body p,.ahc-chat.is-on .ahc-typing i{animation:none}
 .ahc-btn{transition:none}
}
@media (max-width:900px){
 .ahc{padding:64px 16px 56px}
 .ahc-in{grid-template-columns:1fr;gap:36px}
 .ahc-chat{justify-self:stretch;max-width:none}
 .ahc-btn{width:100%;justify-content:center}
}
/* Homepage hero image (head.jpg): no gradient frame; soft blue shadow, faint glow behind and a slow float.
   The wrapper keeps the theme's fade-up animation, so the float runs on the inner figure. */
.ahi{position:relative;padding:0!important;background:none!important;border-radius:28px}
.ahi:before{content:"";position:absolute;inset:8% 6% -6%;border-radius:50%;background:radial-gradient(#49bcff66,transparent 70%);filter:blur(30px);pointer-events:none}
.ahi figure{position:relative;animation:ahi-float 7s ease-in-out infinite}
.ahi img{display:block;border-radius:28px!important;box-shadow:0 40px 80px -30px #1479e680,0 18px 40px -24px #0a254066}
@keyframes ahi-float{50%{transform:translateY(-10px)}}
@media (prefers-reduced-motion:reduce){.ahi figure{animation:none}}
@media (max-width:700px){.ahi,.ahi img{border-radius:18px!important}}
