:root{--green:#00674f;--green2:#008d6c;--cyan:#50c1d1;--ink:#1c1c1c;--gray:#f3f3f3;--line:#d9d9d9}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:'Work Sans',sans-serif;color:var(--ink);background:#fff;line-height:1.5}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
ul{list-style:none}
.wrap{max-width:1400px;margin:0 auto;padding:0 48px}
hr{border:0;border-top:1px solid var(--line);margin-top:64px}

/* header */
.site-header{position:sticky;top:0;z-index:50;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:14px 48px;border-bottom:1px solid #eee}
.logo img{height:46px;width:auto}
.main-nav{display:flex;gap:34px;font-size:15px;font-weight:500}
.main-nav a{padding:6px 0;transition:color .2s}
.main-nav a:hover,.main-nav a.active{color:var(--green2)}
.caret{font-size:12px}
.lang{font-size:14px;font-weight:500}

/* hero */
.hero{background:linear-gradient(rgba(0,40,31,.62),rgba(0,40,31,.72)),url(https://privaterealestate.com/wp-content/uploads/2026/07/The-ivy-Panama-fachada-externa.webp) center/cover;color:#fff;padding:150px 0 130px;text-align:center}
.eyebrow{font-family:'Alexandria',sans-serif;font-weight:300;font-size:clamp(34px,5vw,60px);line-height:1.1;letter-spacing:-.5px}
.hero-sub{margin:18px auto 38px;font-size:19px;opacity:.92;max-width:640px}
.pre-search{display:flex;max-width:620px;margin:0 auto;background:#fff;border-radius:4px;overflow:hidden}
.pre-search label{flex:1;display:flex;align-items:center;gap:10px;padding:0 18px;color:var(--green)}
.pre-search input{flex:1;border:0;outline:0;font:inherit;font-size:16px;padding:18px 0;color:var(--ink)}
.pre-search button{border:0;background:var(--green);color:#fff;width:64px;cursor:pointer;transition:background .2s}
.pre-search button:hover{background:var(--green2)}

/* sections */
.section{padding:80px 0 0}
.h2{font-family:'Alexandria',sans-serif;font-weight:300;font-size:clamp(28px,3.4vw,42px);line-height:1.15;margin-bottom:40px;max-width:760px}
.h2 span{color:var(--green2);font-weight:400}
.lead{max-width:560px;color:#555;margin-top:-18px}
.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.grid-5{display:grid;grid-template-columns:repeat(5,1fr);gap:20px}
.svc{background:var(--gray);padding:32px 26px;display:flex;flex-direction:column;gap:18px;min-height:300px;transition:background .25s,color .25s}
.svc i{width:54px;height:54px;border-radius:50%;background:var(--green);display:grid;place-items:center;font-style:normal;font-size:22px;filter:saturate(0) brightness(2)}
.svc p{flex:1;color:#444;font-size:15px}
.svc h3{font-size:12px;text-transform:uppercase;font-weight:700;letter-spacing:.5px}
.svc:hover{background:var(--green);color:#fff}.svc:hover p{color:#e8f5f1}

.blog-head{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:36px}
.blog-head .h2{margin-bottom:24px}
.btn{display:inline-block;border:1px solid var(--green);color:var(--green);padding:12px 26px;font-size:14px;font-weight:600;transition:all .2s;cursor:pointer;background:none;font-family:inherit}
.btn:hover,.btn.solid{background:var(--green);color:#fff}
.btn.solid:hover{background:var(--green2)}
.post{background:var(--gray);display:block;transition:background .2s}
.post:hover{background:#e7e7e7}
.post .img{min-height:240px;background-size:cover;background-position:center}
.post .body{padding:16px;display:flex;flex-direction:column;min-height:170px}
.post .t{font-size:18px;font-weight:500;line-height:1.2;margin-bottom:16px}
.post .more{font-size:12px;font-weight:700;text-transform:uppercase;margin-top:auto;padding-bottom:12px}
.post time{font-size:15px;color:#555}

.logos{display:flex;gap:16px;overflow-x:auto;padding-bottom:10px;scrollbar-width:thin}
.logos img{width:150px;height:150px;object-fit:contain;flex:none;background:#fff;border:1px solid #eee;padding:14px}

.proj{background:var(--green);color:#fff;padding:40px 32px;display:flex;flex-direction:column;gap:16px;min-height:300px}
.proj h3{font-family:'Alexandria',sans-serif;font-weight:300;font-size:30px}
.proj small{display:block;font-size:13px;letter-spacing:1px;text-transform:uppercase;opacity:.75;font-family:'Work Sans'}
.proj p{flex:1;opacity:.9}
.proj .btn{align-self:flex-start;border-color:#fff;color:#fff}
.proj .btn:hover{background:#fff;color:var(--green)}

.member img{width:100%;aspect-ratio:768/482;object-fit:cover;margin-bottom:12px;filter:grayscale(.15);transition:filter .3s}
.member:hover img{filter:none}
.member .n{font-weight:600;font-size:17px}
.member h3{font-size:13px;font-weight:400;color:#666}

/* contact */
.contact{background:var(--gray);margin-top:80px;padding:70px 0}
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:stretch}
.contact h2{font-family:'Alexandria',sans-serif;font-weight:300;font-size:34px;line-height:1.2;margin-bottom:28px}
.cform{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.cform input,.cform textarea{font:inherit;padding:15px;border:1px solid var(--line);background:#fff;border-radius:2px;outline:0}
.cform input:focus,.cform textarea:focus{border-color:var(--green2)}
.cform textarea,.cform button{grid-column:1/-1}
.cform button{justify-self:end}
.contact iframe{width:100%;min-height:420px;border:0}

/* footer */
.site-footer{background:#111;color:#cfcfcf;padding:60px 0 24px;font-size:14px}
.foot-grid{display:grid;grid-template-columns:1.4fr 1fr 1.2fr 1fr;gap:40px}
.flogo{height:50px;width:auto;margin-bottom:20px}
.info li,.site-footer ul li{margin-bottom:10px}
.fh{color:#fff;font-weight:700;letter-spacing:1px;margin-bottom:16px}
.member-logo{width:90px;margin-bottom:10px}
.copy{text-align:center;margin-top:50px;font-size:13px;opacity:.7}

/* ============ chat widget ============ */
#pre-chat{position:fixed;right:24px;bottom:24px;z-index:999;font-family:'Work Sans',sans-serif}
#chat-launcher{width:64px;height:64px;border-radius:50%;border:0;background:var(--green);color:#fff;cursor:pointer;box-shadow:0 8px 24px rgba(0,0,0,.28);display:grid;place-items:center;position:relative;transition:transform .2s,background .2s}
#chat-launcher:hover{transform:scale(1.07);background:var(--green2)}
#chat-launcher .dot{position:absolute;top:6px;right:6px;width:13px;height:13px;border-radius:50%;background:#ff4d4f;border:2px solid #fff}
#chat-teaser{position:absolute;right:76px;bottom:10px;background:#fff;padding:12px 30px 12px 16px;border-radius:12px 12px 2px 12px;box-shadow:0 6px 22px rgba(0,0,0,.2);font-size:14px;width:230px;animation:pop .4s .8s both}
#chat-teaser button{position:absolute;top:2px;right:6px;border:0;background:none;font-size:18px;cursor:pointer;color:#888}
#chat-panel{position:absolute;right:0;bottom:80px;width:380px;max-width:calc(100vw - 32px);height:560px;max-height:calc(100vh - 120px);background:#fff;border-radius:14px;box-shadow:0 16px 48px rgba(0,0,0,.3);display:flex;flex-direction:column;overflow:hidden;animation:pop .25s both}
#chat-panel[hidden]{display:none}
#chat-panel>header{background:var(--green);color:#fff;padding:16px;display:flex;align-items:center;gap:12px}
#chat-panel>header div:nth-child(2){flex:1;display:flex;flex-direction:column;line-height:1.25}
#chat-panel>header small{font-size:12px;opacity:.9;display:flex;align-items:center;gap:6px}
#chat-panel>header small i{width:8px;height:8px;border-radius:50%;background:#5dff9b}
.avatar{width:42px;height:42px;border-radius:50%;background:#fff;color:var(--green);display:grid;place-items:center;font-weight:700;font-size:13px;letter-spacing:.5px}
#chat-close{border:0;background:none;color:#fff;font-size:26px;cursor:pointer;line-height:1}
#chat-msgs{flex:1;overflow-y:auto;padding:16px;background:#f6f7f7;display:flex;flex-direction:column;gap:10px}
.msg{max-width:82%;padding:10px 14px;border-radius:14px;font-size:14.5px;animation:pop .2s both;white-space:pre-line}
.msg.bot{background:#fff;border:1px solid #e8e8e8;border-bottom-left-radius:3px;align-self:flex-start}
.msg.user{background:var(--green);color:#fff;border-bottom-right-radius:3px;align-self:flex-end}
.msg.typing{display:flex;gap:4px;padding:14px}
.msg.typing span{width:7px;height:7px;border-radius:50%;background:#aaa;animation:blink 1s infinite}
.msg.typing span:nth-child(2){animation-delay:.15s}.msg.typing span:nth-child(3){animation-delay:.3s}
.card{align-self:flex-start;background:#fff;border:1px solid #e8e8e8;border-radius:12px;overflow:hidden;width:82%;animation:pop .2s both}
.card .ph{height:110px;background-size:cover;background-position:center}
.card div:last-child{padding:10px 12px;font-size:13.5px}
.card b{display:block;font-size:15px}
#chat-quick{padding:8px 12px 0;display:flex;flex-wrap:wrap;gap:8px;background:#f6f7f7}
#chat-quick button{border:1px solid var(--green);background:#fff;color:var(--green);padding:7px 14px;border-radius:20px;font:inherit;font-size:13.5px;cursor:pointer;transition:all .15s}
#chat-quick button:hover{background:var(--green);color:#fff}
#chat-form{display:flex;border-top:1px solid #eee;background:#f6f7f7;padding:10px 12px;gap:8px}
#chat-form input{flex:1;border:1px solid #ddd;border-radius:22px;padding:11px 16px;font:inherit;font-size:14.5px;outline:0;background:#fff}
#chat-form input:focus{border-color:var(--green2)}
#chat-form button{width:42px;border:0;border-radius:50%;background:var(--green);color:#fff;cursor:pointer;font-size:15px}
#chat-panel>footer{text-align:center;font-size:11px;color:#999;padding:6px;background:#f6f7f7}
@keyframes pop{from{opacity:0;transform:translateY(8px) scale(.97)}to{opacity:1;transform:none}}
@keyframes blink{0%,60%,100%{opacity:.3}30%{opacity:1}}

@media(max-width:1024px){
  .wrap{padding:0 32px}.site-header{padding:12px 32px}.main-nav{display:none}
  .grid-4{grid-template-columns:repeat(2,1fr)}.grid-5{grid-template-columns:repeat(3,1fr)}
  .contact-grid,.foot-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:767px){
  .wrap{padding:0 20px}.site-header{padding:10px 20px}
  .grid-4,.grid-3,.contact-grid,.foot-grid{grid-template-columns:1fr}.grid-5{grid-template-columns:repeat(2,1fr)}
  .blog-head{flex-direction:column;align-items:flex-start}.cform{grid-template-columns:1fr}
  .hero{padding:90px 0 80px}
  #chat-panel{position:fixed;right:8px;left:8px;bottom:92px;width:auto;max-width:none}
  #chat-teaser{display:none}
}
